Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

PATCH 133-02: Documentation fix - 'get_searchform()' should be 'get_search_form()'


  #1  
Old Dec 6, 2012, 05:12 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
In the limited PHP Code, there is an example for the function 'get_searchform'. Due to a typo, the name is incorrect, it should be 'get_search_form' (note the secdond underscore).

to fix this, you can edit edit two modules or replace the two modules with the files included with this post.

to EDIT the modules
edit the module '650_sub_templates.php' found in the 'montezuma/admin/options/' folder and change line 134 from
HTML Code:
<code>&lt;?php get_searchform(); ?&gt;</code>. You can also create a new custom searchform template. See below on 
to
HTML Code:
<code>&lt;?php get_search_form(); ?&gt;</code>. You can also create a new custom search form template. See below on 
and change line 168 from
HTML Code:
<code>&lt?php get_searchform(); ?&gt;</code>
to
HTML Code:
<code>&lt?php get_search_form(); ?&gt;</code>
next edit the module 'get_whitelist.php' found in the 'montezuma/includes/' folder and change line 46 from
HTML Code:
				'<?php get_searchform(); ?>' => 'Includes <code>searchform.php</code> sub template.',
to
HTML Code:
				'<?php get_search_form(); ?>' => 'Includes <code>searchform.php</code> sub template.',
to REPLACE the modules
1) download and unzip the following attachment
2) using FTP upload the file '650_sub_templates.php' to the 'montezuma/admin/options/' folder, replacing the existing file
3) using FTP upload the file 'get_whitelist.php' to the 'montezuma/includes/' folder replacing the existing file
Attached Files
File Type: zip patch-113-02.zip (15.6 KB, 1902 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 09:21 AM
PATCH 373-02: odd character appears in the documentation for 'Add new Widget Areas' juggledad Old Version fixes and change logs 0 Dec 15, 2011 05:59 AM
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 04:57 PM
CSS documentation tunturiflyer Center area post/pages 5 May 5, 2011 06:16 PM
Documentation csguys New Versions, & Updating 6 Dec 18, 2009 11:14 AM


All times are GMT -6. The time now is 07:49 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.