The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
template hook in postbit not working
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 |
#2
|
||||
|
||||
Would need to see the plugin code to know for sure why it's not working.
|
#3
|
|||
|
|||
"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 |
#4
|
||||
|
||||
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?
|
#5
|
|||
|
|||
I summed up 3 things I've tried, just raw echo 'test'; or just "TEST" didn't work either
|
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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 )
|
#8
|
||||
|
||||
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: Code:
$template_hook['whatever'] = 'TEST'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|