PDA

View Full Version : Changed values in tbl_phrase, how to show them?


LookitsPuck
12-28-2007, 05:23 PM
I've made changes in tbl_phrase, however, it looks like vBulletin hasn't updated them, yet. I'm guessing it's session based, or those values are loaded in memory. How do I restart vBulletin to get those values set?

I'm trying something I've found elsewhere and I get this message:

Warning: build_language(DIR/includes/class_xml.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\sasbazooka\forums\includes\admi nfunctions_language.php on line 121

Fatal error: build_language(): Failed opening required 'DIR/includes/class_xml.php' (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\sasbazooka\forums\includes\admi nfunctions_language.php on line 121

I'm running this code:

<?php
require_once('includes/adminfunctions_language.php');
build_language(-1);
?>

Marco van Herwaarden
12-29-2007, 05:08 AM
You are including vBulletin files without properly loading the vBulletin framework. At least the DIR constant should be set before including any vBulletin files, best is to include globabl.php prior to any other files.

Dismounted
12-29-2007, 12:27 PM
You need to do something like this:
<?php
// current directory
$curdir = getcwd();

// switch to vbulletin directory -- CHANGE THE PATH
chdir('./your_forum_path/');

// include global.php
require_once('./global.php');

// run functions
build_language(-1);

// switch back directory
chdir($curdir);
?>