View Full Version : template hook in postbit not working
Paul K
12-29-2010, 08:10 PM
Heyho,
This is in the postbit_legacy: {vb:raw template_hook.postbit_userinfo_right_after_posts}
I've added a plugin with the hook locaiton set on that place, but whatever I'm typing in the plugin PHP field, it just not showing up... Any ideas? (yes It's active)
Thanks
Digital Jedi
12-29-2010, 08:19 PM
Would need to see the plugin code to know for sure why it's not working.
Paul K
12-29-2010, 08:21 PM
"Plugin PHP Code Use this field to enter the PHP code that you would like to be run. "
I tried:
<?php echo 'test';?>
TEST
echo 'test';
I guess at least 1 should be working so I guess it's not in the typestyle
Digital Jedi
12-29-2010, 08:29 PM
Well, for one, you don't use PHP tags in a plugin. I don't know if you can just write it out like that. Have you tried str_replace, yet?
Paul K
12-29-2010, 08:32 PM
I summed up 3 things I've tried, just raw echo 'test'; or just "TEST" didn't work either :(
Digital Jedi
12-29-2010, 08:35 PM
Try a str_replace if all you're doing it trying to put some simple code in the template. I don't think echo is enough to do anything.
Paul K
12-29-2010, 08:37 PM
According to other stuff I tried ( Just doing TEST) in the file, it should be working (on another hook location it did work) but not on this one :/ (The standard set it did work, the added ones didn't )
Lynne
12-29-2010, 10:07 PM
First of all, which hook location are you using for your plugin?
Second of all, if you are wanting to insert something where there is a template hook, you need to write something like this in the plugin:
$template_hook['whatever'] = 'TEST';
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.