The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Weirdness with $vbphrase
Hello,
I ran this question over on vBulletin.com and surprise, surprise, they referred me here. I created a new setting in my admincp called termsofuse so that I could just add the URL to the file to load, just exactly like the Privacy Statement. The $vboption[termsofuse] works perfectly BUT the $vbphrase piece is empty for some reason even though I can see and access it in the database and in the phrase utility in the admincp. For some reason, the array value $vbphrase[termsofuse] that I think is suppose to contain "Terms Of Use" is empty and no matter what I do, I can not get or don't know how to get that value loaded from the database to the working array. This code works: Code:
<if condition="$vboptions[termsofuseurl]"><a href="$vboptions[termsofuseurl]">Terms Of Use</a> - </if> Code:
<if condition="$vboptions[termsofuseurl]"><a href="$vboptions[termsofuseurl]">$vbphrase[termsofuse]</a> - </if> Any idea where or how I can initialize the array to grab the correct phrase from the database? TIA for your help. regards, mikesz |
#2
|
|||
|
|||
What phrasegroup did you use?
|
#3
|
|||
|
|||
Global
I just notice a weirdness that I didn't see before. At first I added my table field directly to the database using the privacy field as a guide. I just noticed that searching for the field failed in the Phrase manager but trying to add it failed with a message that it already existed. I deleted their record from the database and used the phrase manage to add it back which it happily did and now it works correctly. go figure! thanks for the insight, asking what group made me look at it with a fresh view. regards, mikesz |
#4
|
||||
|
||||
A rule of thumb - if there is something you can do via the CP, do it that way, directly messing with the database causes issues (such as caching and the like).
|
#5
|
|||
|
|||
Good advice, though I am not clear how I would have added the fields to the options page without adding that directly into the database. I don't see how that would be possible though I for sure may be looking at it squarely and don't recognize it.
Thanks for the reply. mikesz |
#6
|
|||
|
|||
Set your board in debug mode, and you will have the option to add settings/settinggroups.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|