Support Forums

modifying the quick search bar

This is a discussion on modifying the quick search bar within the Modules / Plugins / Modifications forums, part of the Developer Forums category; What is conflicting? the search module is independent....


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 01-20-2009, 11:52 AM   #11
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,041
Rep Power: 74
seymourjames is a jewel in the rough
Default

What is conflicting? the search module is independent.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 01-20-2009, 08:08 PM   #12
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,026
Rep Power: 64
juven14 is a jewel in the rough
Default

I would add something around the module code to prevent it from displaying on search. Something like:
Code:
{if $SCRIPT_NAME == "/search.php"}
	{if $quick_search}
		{include file=$quick_search}
	{/if}
{/if}
You are right, the variables for the ajax will conflict, so it shouldn't be displayed on search.php. I'll update the readme to reflect this.

Edit: In fact, I will just have the form not work on search.php since it will have html ids that are duplicate and it isn't necessary for it to display there.
__________________
John Snyder
PHP Developer

Last edited by juven14; 01-20-2009 at 08:26 PM.
juven14 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Ad Search Problems bowers01 Technical Support 5 10-15-2008 04:54 AM
Quick Search out of alignment bowers01 Technical Support 0 06-29-2008 04:50 AM
Modifying Search Form jonahcoyote Technical Support 10 06-27-2008 01:50 PM


All times are GMT -4. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0