Firefox PHP

Module: Highlighted Search Terms

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date  
highlighted_search_terms_screenshot.png 11.8 KB open | download Joe Curia 02/11/2010 Read message
highlighted_search_v5_2_1_01.zip 3.5 KB open | download Joe Curia 11/29/2010 Read message
Module: Highlighted Search Terms
February 11, 2010 12:59AM
This module allows the admin to highlight search terms using font and background colors or custom HTML.

Installation:
After installing this module in the mods folder, you can visit the settings page to choose a simple font color and background color with which to highlight the search terms. These colors should be CSS colors (eg. #000000, or "Black"). You also have the option to place HTML code before and/or after the search terms (eg. <strong>sample</strong>). If both of the HTML code fields on the settings page are empty, the simple colors will be used.

Changelog:
v5.2.1.01
 - Bugfix: PCRE meta characters in search terms would cause the search to error 
   out.  Thanks go to Phorum user Robert Angle for reporting this bug.
 - Bugfix: If there are no search terms to hightlight, no need to run the search
   hook.  Thanks go to Phorum user Scott Finegan.
v5.2.1.00
 - Initial version.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 1 time(s). Last edit at 11/29/2010 04:54PM by Joe Curia.


Attachments:
open | download - highlighted_search_v5_2_1_01.zip (3.5 KB)
Re: Module: Highlighted Search Terms: Undefined index...
February 12, 2010 01:35PM
Hi Joe,

I copied the module, placed it in mods, enabled it with the default settings. I have a few of these now...

02/12/2010  	10:51AM  	 highlighted_search   	 Module   	PHP notice: Undefined index: search  	 details
	
User info:

Anonymous user
User IP address = xxxxxxxxxxxxx

Additional details:

Message:

PHP notice: Undefined index: search

PHP notice generated at /home/xxxxxxxx/public_html/phorum5214/mods/highlighted_search/highlighted_search.php:12

Back trace:

Function phorum_mod_highlighted_search called
----
Function call_user_func_array called at
{path to Phorum}/common.php:1691
----
Function phorum_hook called at
{path to Phorum}/search.php:323
----

Request info:

HTTP_HOST = www.xxxxxxxx.com
REQUEST_URI = /phorum5214/search.php?1,author=407,match_type=USER_ID,match_dates=0,match_threads=0
QUERY_STRING = 1,author=407,match_type=USER_ID,match_dates=0,match_threads=0
Re: Module: Highlighted Search Terms
February 12, 2010 03:20PM
Thanks for catching that bug. As searches for all of an authors posts would not have search terms, there would be no terms to highlight.

Please redownload/reinstall the module (or at least the highlighted_search.php file) to remove those notices.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Module: Highlighted Search Terms v5.2.1.01 - Bugfixes
November 29, 2010 04:55PM
I have release version 5.2.1.01 of this module with the following changes:

- Bugfix: PCRE meta characters in search terms would cause the search to error out. Thanks go to Phorum user Robert Angle for reporting this bug.

- Bugfix: If there are no search terms to hightlight, no need to run the search hook. Thanks go to Phorum user Scott Finegan.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.

Click here to login