Support Forums

searchlisting_joins hook request

This is a discussion on searchlisting_joins hook request within the Technical Support forums, part of the Technical Support Forums category; Can I request a new searchlisting_joins hook in getAllListings(), so ...: Code: $select = $modules->call_hook('searchlistings_select', ''); // Call any module ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 02-09-2008, 05:05 PM   #1
PHP Mechanic
 
 
Join Date: Nov 2007
Posts: 117
Rep Power: 16
cheesegrits has a spectacular aura about
Default searchlisting_joins hook request

Can I request a new searchlisting_joins hook in getAllListings(), so ...:

Code:
			$select = $modules->call_hook('searchlistings_select', ''); // Call any module functions
			$sSQL = "SELECT p.id, p.owner, p.title, p.featured, p.section, p.shortDescription, p.description, p.price, p.dateadded, p.expiration, p.display, p.pHighlighted, p.pBold, p.hitcount, p.url, u.state, u.city, u.country ". $select ." FROM ".PREFIX."listings AS p LEFT JOIN ".PREFIX."users AS u ON p.owner = u.id ";
... becomes ...

Code:
			$select = $modules->call_hook('searchlistings_select', ''); // Call any module functions
			$joins = $modules->call_hook('searchlistings_joins', ''); // Call any module functions
			$sSQL = "SELECT p.id, p.owner, p.title, p.featured, p.section, p.shortDescription, p.description, p.price, p.dateadded, p.expiration, p.display, p.pHighlighted, p.pBold, p.hitcount, p.url, u.state, u.city, u.country ". $select ." FROM ".PREFIX."listings AS p LEFT JOIN ".PREFIX."users AS u ON p.owner = u.id " . $joins . " ";
Or just set $joins = '' before the existing _select hook, and let that add $joins if need be. Either way.

-- hugh
cheesegrits is offline  
Old 02-10-2008, 12:31 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Done. If you need any others please let us know.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 02-10-2008, 10:16 PM   #3
PHP Mechanic
 
 
Join Date: Nov 2007
Posts: 117
Rep Power: 16
cheesegrits has a spectacular aura about
Default

I guess my next question is, have you given any thought to allowing licensed users to access SVN?

-- hugh
cheesegrits is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 09:26 PM.


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