The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Quote:
I just copied and pasted the code from your own post here: https://vborg.vbsupport.ru/showpost....3&postcount=17 I didn't add or remove anything from the plugin text lol. You have activated your plugin haven't you? . Also it's probably just a typing error in the actual post but when you said what variable you used in the template you used a ) and not a }. I've highlighted it in red so you can see exactly what I'm talking about but I presume you typed it here rather than copying and pasting. |
#22
|
|||
|
|||
OK - I FINALLY FIGURED IT OUT!
It was a stupid mistake of course - on my end - basically, I didn't know you actually had to creat a custom template through the style manager - I thought you could create custom templates pragmatically - i.e. just through PHP code. For people who come find this thread later on, here's what needs to be done to get this working: 1) Create a new plugin under hook "threadbit_display" with the following code: PHP Code:
Code:
{vb:raw output} Code:
{vb:raw custom_template} |
#23
|
|||
|
|||
Ahh lol. Nah the plugin code creates an instance of that template. It can't generate it out of nowhere. The template itself still needs to be setup in the Style Manager. The idea imo is to only use the plugin to setup the variables that you'll need to use in the template i.e. if most of the template is going to be html put it straight into the template rather than setting up a variable in the plugin with the html.
Nice to hear you got it working though. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|