The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Programmatically change vbphrase.
I am trying to use vbphrase in templates to change a few images. Instead of going to ACP every time, I wrote a few lines of code to shorten the process.
Now, it seems that vbulletin doesn't like it when changes are made to the db behind its back. My query puts in the same data as phrase.php would do, but the images do not change. I checked phrase.php and found out that when a phrase is updated, it first deletes the phrase and then inserts it again. I did that too, still vbulletin doesn't reflect changes made to the phrase value. It does that only when a change is made via ACP. [Doesn't work with vboptimse turned off.] [Haven't put in any code here as it doesn't even work when making changes directly via SQL.] Is there anyway I can make vbulletin aware of changes made to the db from outside of ACP? --------------- Added [DATE]1258188406[/DATE] at [TIME]1258188406[/TIME] --------------- Found the answer require_once('./includes/adminfunctions_language.php'); build_language(-1); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|