PDA

View Full Version : Can i make my own varibales?


behbv
07-19-2008, 05:34 PM
Hi,

I would like to know how can i make varibales and paste them into the template without any problems

Thanks!

Opserty
07-19-2008, 05:47 PM
You can define your variables in plugins and then use them in the templates. See the appropriate sections in the vBulletin Manual (http://www.vbulletin.com/docs/html/) for information on both topics.

behbv
07-19-2008, 06:01 PM
If i want to show a varibale in the theard what i need to do, cuz i didn't found nothing about it on the manual

RLShare
07-19-2008, 06:05 PM
What kind of information are you trying to show? There are different templates that are called when showing a thread and different plugin hook locations for the different templates.

The gist of it all is that you write a plugin that hooks some location(Usually the hook location is associated with the template you want to add your variable to). In your plug-in you fill your variable with data(html) and then edit the right template and just place your variable( ex. $yourvariablename) where you want it displayed.