gothic |
06-28-2010 06:08 AM |
(Updated) GARS - vBAdvanced Block
1 Attachment(s)
This is simply an updated version of THIS module for vBAdvanced.
This has been installed and tested with GARS 2.1.9 / vBulletin 3.8.5 and vBAdvanced 3.2.2
All I have altered in the 'gars.php' file are the following:
Search for (line 66)
PHP Code:
if (!$result['image'])
{
$result['image'] = $vbulletin->options['bburl'] . "/geek/gars/images/" . $url_to_default_image;
}
elseif (substr($result['image'], 0, 1) == ".")
{
$result['image'] = $vbulletin->options['bburl'] . substr($result['image'], 1);
}
else
{
$result['image'] = $vbulletin->options['bburl'] . $result['image'];
}
Replace with
PHP Code:
if (!$result['image'])
{
$result['image'] = $vbulletin->options[''] . "/geek/gars/images/" . $url_to_default_image; //replaced options 'bburl'
}
elseif (substr($result['image'], 0, 1) == ".")
{
$result['image'] = $vbulletin->options[''] . substr($result['image'], 1); //replaced options 'bburl'
}
else
{
$result['image'] = $vbulletin->options[''] . $result['image']; //replaced options 'bburl'
}
Search for (line 105)
PHP Code:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_module_shell') . '";');
Replace with
PHP Code:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_module_wrapper') . '";');
I will try to offer support, but I only manage to get in here a couple of times a week, so you may have to be patient.
|