Announcement

Collapse
No announcement yet.

Quick Administrator Links (and Quick Mod Links) don't display

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • z-at-ox
    replied
    Originally posted by |Show| View Post
    I got a fix to this through the support team.

    So if anyone else has a problem, read on...

    This is what I got from the support team:
    What file did you edit?

    Leave a comment:


  • |Show|
    replied
    I got a fix to this through the support team.

    So if anyone else has a problem, read on...

    This is what I got from the support team:

    Your php setup was not allowing the script to check load averages. Normally vB just wouldn't display them, but I removed the offending code and it seems fine now:

    if (!$is_windows AND function_exists('exec') AND $stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match('#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#', $stats, $regs))
    {
    $loadavg[0] = vb_number_format($regs[1], 2);
    $loadavg[1] = vb_number_format($regs[2], 2);
    $loadavg[2] = vb_number_format($regs[3], 2);
    }
    else if (!$is_windows AND @file_exists('/proc/loadavg') AND $stats = @file_get_contents('/proc/loadavg') AND trim($stats) != '')
    {
    $loadavg = explode(' ', $stats);
    $loadavg[0] = vb_number_format($loadavg[0], 2);
    $loadavg[1] = vb_number_format($loadavg[1], 2);
    $loadavg[2] = vb_number_format($loadavg[2], 2);

    Leave a comment:


  • Quick Administrator Links (and Quick Mod Links) don't display

    Hi,

    Both Quick Admin Links & Quick Mod Links don't display on my CPs - no idea why, I've tried to re-upload various versions of the required files and nothing fixes it. I used to love how easy things were with that part of the index page!!

    I've attached a screenshot - Any idea how to get these links back?
    Attached Files
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X