![]() |
Showthread Query Hook
Okay, so I've been fiddling around with this hook to add more info into the postbit for the inferno rpg without adding a query.
This is what the showthread.php file looks like in that spot. Code:
$hook_query_fields = $hook_query_joins = $hook_query_where = ''; Code:
$hook_query_fields = ",inferno_user.*, inferno_jobs.*, inferno_element.*, inferno_clan.*"; If a future modification uses that hook, won't my code overwrite theirs or vice versa? Am I using the hook wrong? Thanks for any help gang :) |
If you and other Authors would use .= instead of = it should work
|
O rock, so it's as simple as
Code:
$hook_query_fields .= ",inferno_user.*, inferno_jobs.*, inferno_element.*, inferno_clan.*"; That's sweet, I'm guessing .= just adds it to the end of whatever the variable is currently defined as correct? |
Quote:
That's correct :) |
Awesome thanks!! :)
|
Thing is, you have no way of knowing for sure. hell, if no-one here told you, you would have been the CAUSE of the problem :p
I wouldn't trust that as far as you can throw Boobfool :p |
If you grab him by the angles and give a good tug before you start to twirl....
You can get some SERIOUS distance!!!! Seriously though, yeah I'm making a note to my admins to keep an eye out for hacks that add hooks to the showthread_query to be sure they do that. Either way I'm VERY glad they added that, it'll allow me to do SOO many of my custom hacks without editting the file :) Just wish they had something similiar for the postbits in PMs |
Well, as a hack developer I can't use the hook because of above reasons ;)
I can, however, release instructions on how to use that hook as an Add-On :) |
Quote:
|
Bring it on :p
|
All times are GMT. The time now is 09:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|