The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New to pugins - suggestions?
I need a plugin that is an array of code snippets associated with forum id numbers. In the templates - a template variable would be inserted and a code snippet would be displayed based on the forum currently being viewed.
Is there code somewhere for this already? Thanks! |
#2
|
||||
|
||||
Code:
<if condition="$foruminfo['forumid'] == X">SHOW THIS</if> |
#3
|
|||
|
|||
I've done that in the templates before but I have a lot of values to assign so I need to do it in a plugin and assign a value to the variable. The template will just contain the variable.
I'm wondering about the proper syntax <if condition="$foruminfo['forumid'] == X">$template_var="this is a forum specific string"</if> Or something like that........ |
#4
|
||||
|
||||
Just do a switch statement in your plugin, and assign all the data to one variable. Use that variable in your template (without any conditionals).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|