Support Forums

Add query to searchresults.php file code???

This is a discussion on Add query to searchresults.php file code??? within the Templates, HTML, CSS, and Design Help forums, part of the General category; Would anyone know how to add a search query to the searchresults.php file WITHOUT having to add that in the ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-26-2011, 09:49 AM   #1
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default Add query to searchresults.php file code???

Would anyone know how to add a search query to the searchresults.php file WITHOUT having to add that in the address bar url ... ie: searchresults.php?owner=###

Don't know if it would be added to the seachresults.php file or the showlistings.tpl file or can't it be added directly to any of the files.

Any help would be greatly appreciated.

Thanks.

Rich


.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Old 02-26-2011, 10:41 AM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,145
Rep Power: 68
John Snyder is a jewel in the rough
Default

I'm not sure if this is what your looking for, but you can always override the $_GET array at the top some place in searchresults.php to preset a specific parameter.

PHP Code:
$_GET['owner'] = 12// force the owner to owner 12 for every search. 
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 02-26-2011, 01:33 PM   #3
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default

Hey John;

I've tried adding that code to multiple places in the searchresults.php file and it doesn't effect the results. Still get ALL the listings. The file mentions ... $settings=$Core->getSearchSettings();

I've even put the code right after this statement.

Don't know where this occurs and would it be where I add the other code. I've search all the site files for this text and can't find it other than the mention of it in the searchresults.php page.

.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which file do I put a banner managers invocation code into? sitewonders Technical Support 6 06-17-2009 01:43 PM
Showlistings sql query wesse249 Technical Support 1 09-13-2008 06:50 AM
& and & encoding searchresults seymourjames Technical Support 2 08-06-2008 05:55 AM
Query Unregistered Pre Sales Questions 1 09-11-2006 01:00 PM


All times are GMT -4. The time now is 08:14 AM.


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