View Full Version : using postbit_display_complete
PWillard
06-26-2013, 07:56 PM
Hello,
to take advantage of the postbit_display_complete I normally add a hook in the plugin section and now I make each post have a signature with the URL of my forum.
I am wondering if its possible to edit a vbulletin php file to do the same thing instead of me adding a plugin.. let me know if its doable.. thanks
Zachery
06-26-2013, 08:50 PM
Why would you opt for editing the file instead of using the plugin?
You can easily just edit the file where that hook point is...
PWillard
06-26-2013, 09:03 PM
I totally understand that its recommended to just use the plugin system instead but I am wondering if its possible through php file and which file would that be..
Zachery
06-26-2013, 09:04 PM
Yes, and I just told you how to find it :)
You could also do this with a conditional in a template, chances are.
PWillard
06-26-2013, 09:13 PM
im not talking about the plugin php file im talking about the vbulletin php file
The code that executes the postbit_display_complete hook code looks like this:
($hook = vBulletinHook::fetch_hook('postbit_display_complet e')) ? eval($hook) : false;
and it's actually in two files: includes/class_postbit.php, and includes/class_postbit_alt.php.
Zachery
06-26-2013, 09:18 PM
You could have used the hook name to find it in the files :p you're far too nice sometimes kh99.
PWillard
06-26-2013, 09:22 PM
maybe sometimes 1 useful post means more than 3 useless posts..
thanks a lot kh99!
You could have used the hook name to find it in the files :p you're far too nice sometimes kh99.
Maybe so.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.