Helpful Information
 
 
Category: vBulletin 5 Connect Discussion
Temaplate Variables support needed

Hi all, i am porting over a VB4 product of mine its a simple template edit but need support on 1 issue

1) data from admincp
i have this option available within admincp
http://img706.imageshack.us/img706/6166/cd982d3a0606441da415346.png

the varname is taken from the xml file and is shown in admincp

<setting varname="socialbadge_fbbadge_active_link" displayorder="20">
<datatype>free</datatype>
</setting>

this allows me to enter custom data as shown in the screenshot

now im trying to load that data from admincp into the template using this varaiable
which i am 100% sure its correct, but its now working
{vb:raw vboptions.socialbadge_fbbadge_active_link}


can anyone help please

Did you set it to be public in Settings?

Did you set it to be public in Settings?

its an admincp settings which is

settinggroup name="socialbadge"

<setting varname="socialbadge_fbbadge_active_link" displayorder="20">
<datatype>free</datatype>
</setting>

i need to show the data entered from socialbadge_fbbadge_active_link
into a template

You need to add this:

<public>1</public>


Under:

<datatype>free</datatype>


Remember that there is an easier way to add settings enabling debug mode.

You need to add this:

<public>1</public>
Under:

<datatype>free</datatype>
Remember that there is an easier way to add settings enabling debug mode.


thank you so much it worked a treat










privacy (GDPR)