Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   PATCH 133-02: Documentation fix - 'get_searchform()' should be 'get_search_form()' (http://forum.bytesforall.com/showthread.php?t=19058)

juggledad Dec 6, 2012 04:12 AM

PATCH 133-02: Documentation fix - 'get_searchform()' should be 'get_search_form()'
 
1 Attachment(s)
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


All times are GMT -6. The time now is 03:45 AM.

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