UBB.Dev
Posted By: wsu 5.4.6 user hacks box doesn't work - 11/20/2001 3:59 AM
In the "Edit configuration setting" function, there is a user hacks box which allows user to put their own variables.

Unfortunately, it's not working. Here is the fix:

in editconfig.php file, starting from line 689:

$extras;
while (list($key,$value) = each($config)) {
if (!ereg("-$key-",$knownkeys)) {
[:red]$extras .= "\$config[$key] = '$config[$key]'\n";
}

Change the red line to the following:

[:green]$extras .= "\$config['$key'] = $config[$key]\n";

in the file doeditconfig.php, line 345, add the following (right after ICQ config):

[:green]// User define extra
$configextras

For example, if you need a config[test] variable, you can put this int the box:

$config['test'] = "test";

The doeditconfig will update the file correctly now and you will see the user define variables in the "Edit configuration setting".
Posted By: AllenAyres Re: 5.4.6 user hacks box doesn't work - 11/25/2001 6:24 AM
Nice catch, thank you wsu []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
© UBB.Developers