The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change or Replace Variable!
Hi,
I'm doing my first vbulletin product. and everything seems to be OK as I'm trying to figure out how is everything is working with vbulletin. I came across this issue: (my English is not that good and I'm afraid I won't be able to perfectly explain my issue, so please bear with me ) - I added templates and phrases and plugins. - I added new setting group for my product. - Chose the varname and title and other required things as well. - Then added settings for my products and set if () in it's plugin and everything seems to be fine till now. - then I added other setting with a blank field under the (Option Code) and chose it's varname which is rtrf_xxx_yyy. Now, this varname should be an element of an array. and it should be $vbulletin->options['rtrf_xxx_yyy'] when called, right? I just want to replace or change this variable (array element) and move it's value to a new variable so that I can use the new variable within the templates of my product instead of using $vbulletin->options['rtrf_xxx_yyy'], but I didn't know how to do that! I've tried this in the plugin: PHP Code:
But it works fine if I use {$vbulletin->options['rtrf_xxx_yyy']} within the template. So my question is: - How to replace $vbulletin->options['rtrf_xxx_yyy'] with a variable like $test and be able to use $test in the template that I need and make it shows up where I want in the forum? - Does it matter where the hook is for variable replacement or variable changing? Hope I did well explaining my issue, and hope I can get a fast reply ASAP. thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|