![]() |
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! |
Code:
<if condition="$foruminfo['forumid'] == X">SHOW THIS</if> |
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........ |
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).
|
All times are GMT. The time now is 05:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|