Support Forum

Admin "quick button"

< 1 2
Mr Papa
Simi Valley, CA
Member
Free Members
Aug 1, 2011 - 10:36 pm

we had intended to strip out the fixed option... but messed it up... now, the plan is to support it, so yeah a ticket is open to fix it...

Lee H
Coastal New England (USA)
Member
Free Members
Aug 1, 2011 - 11:02 pm

A quick "proof of concept" to check if wp-admin-bar is showing, and bump the SP admin bar down a notch if fixed.

sp-admin-queue-tag.php

//    if ($spThisUser->sfbarfix) { 
//        $out.= "<div id='spAdminQueueFixed' class='$tagClass'>"; 
//    } else { 
//        $out.= "<div id='spAdminQueue' class='$tagClass'>"; 
//    }

    if ($spThisUser->sfbarfix) {
        if (is_admin_bar_showing()) {
            $wp_adminbar_style = " style='top:30px;'";
            // Or something snazzy that's not inline
        } 
        $out.= "<div id='spAdminQueueFixed' class='$tagClass'" . $wp_adminbar_style . ">"; 
    } else { 
        $out.= "<div id='spAdminQueue' class='$tagClass'>"; 
    }

Seems to work.

Good to see ya Steve!

Yellow Swordfish
Glinton, England
Member
Aug 2, 2011 - 7:29 am

The issue is logged. We were planning to remove the fixed at top option. Is this something you regularly use?

Lee H
Coastal New England (USA)
Member
Free Members
Aug 2, 2011 - 8:04 am

Yellow Swordfish said:

The issue is logged. We were planning to remove the fixed at top option. Is this something you regularly use?

Meh... I could take it or leave it.

My preference is NOT to have anything fixed and taking up precious screen real estate. Heck, I don't even like the wp-admin-bar. I just have it on because I thought I should as I was making a WP-theme and it's on by default for most people. I've learned to ignore it.

< 1 2