PDA

View Full Version : Little design problem - Adiminister offline message


batman1983
01-04-2008, 11:15 AM
I have a little design problem. Only administrators see that problem on top of the vBulletin logo. The page is online, and it doesn't matter if the page is on- or offline.
If I disable the plugin "vbDrupal global", everything is ok. Can anybody help?
If i change the style, the problem is still there.

Goddess
01-04-2008, 11:29 AM
you can sure come up with the weird issues, can't ya, batman? that's where your offline warning would normally be.

actually, for nonadmins, if the site is offline, they don't see the forums at all. they get whatever your offline message is set to in the vb admincp.

look at settings related to the site offline message, in vb and drupal (and vbdrupal in your vb admincp), and check your styles for the class that the offline message creates. (i don't know it off the top of my head, but do a "veiw source" and look at that part of the code.

viewing your source code can often help you track down these sorts of things.

batman1983
01-04-2008, 11:52 AM
This descripted problem is, if the forum is ONLINE.
I made two screenshots, if the forum is offline, and the plugin "vbDrupal global" is disabled.

Perhaps the code of the plugin is not right?
if (!$vbulletin->options['bbactive'] && (THIS_SCRIPT == 'drupal'))
{
if (!$vbulletin->options['vbdrupal_bbactivelink'])
{
// reactivate for vbDrupal
$vbulletin->options['bbactive'] = true;
}
}

// drupal version check
if ((THIS_SCRIPT != 'drupal') && ($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
$__dvr = $vbulletin->db->query_first("SELECT value FROM " .TABLE_PREFIX. "drupal_variable WHERE name = 'vbdrupal_version'");
$__dvr = str_replace(' ', '.', unserialize($__dvr['value']));
$__dvi = $vbulletin->db->query_first("SELECT version FROM " .TABLE_PREFIX. "product WHERE productid = 'drupal'");
$__dvi = str_replace(' ', '.', $__dvi['version']);

if (version_compare($__dvi, $__dvr) > 0) {
$vbphrase[alert_board_off] = $vbphrase[vbdrupal_version_alert];
$vbulletin->options['bbactive'] = false;
}
}

// correct home url when it's the same as the drupal url
if (!empty($vbulletin->session->vars["sessionurl_q"]))
{
if (strcmp($vbulletin->options['homeurl'], $vbulletin->options['drupalurl']) == 0)
{
$vbulletin->options['homeurl'] .= $vbulletin->session->vars["sessionurl_q"];
}
}

batman1983
01-04-2008, 04:28 PM
I solved that little problem:
I run the update script (disable java script).