lotusfleet
11-14-2009, 12:05 AM
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 1258188406 at 1258188406 ---------------
Found the answer
require_once('./includes/adminfunctions_language.php');
build_language(-1);
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 1258188406 at 1258188406 ---------------
Found the answer
require_once('./includes/adminfunctions_language.php');
build_language(-1);