Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Don Fischer

    (@prophecy2040)

    I’ll try to add that to the next version, but that will probably be some time off.

    In the meantime, you can add this line to the plugin file to make it only available to Super Admins. Add this at line 62 (in the global_show_hide_admin_bar function right after the global declaration of $show_admin_bar):

    if(current_user_can('manage_network')){return true ;}else{return false;}

    Additionally, you could completely bypass the plugin and add the following to the beginning of the functions.php:

    add_filter( 'show_admin_bar', 'myfile_show_hide_admin_bar' );
    function myfile_show_hide_admin_bar($showvar) {
    	global $show_admin_bar;
    	if(current_user_can('manage_network')){
    		$show_admin_bar = true;
    		return true ;
    	}else{
    		return false;
    	}
    }

    Best of luck.
    Don

    Thread Starter marikamitsos

    (@marikamitsos)

    Thank you for the quick reply Don. Really appreciate it.
    I will try it and see what I get. ??

    Still, there is something else that puzzles my mind.
    I am no developer so I cannot understand (since you provide the solution in a matter of hours and would probably take you only 10-20 minutes to update the file) why is it not possible to update the plugin itself

    I’ll try to add that to the next version, but that will probably be some time off.

    so everyone can benefit without having to base the whole result on “luck”.

    I am just asking you since it came up in the post and I find this particular plugin extremely useful. It is not a personal question. I just take the opportunity because I see similar replies a lot in the forums and it would make me very happy if you could give me an answer.

    Thank you again for your time and excellent plugin.
    marikamitsos

    Thread Starter marikamitsos

    (@marikamitsos)

    Brilliant. !!!!
    I tried it and works great.
    Thank you Don.

    Plugin Contributor Don Fischer

    (@prophecy2040)

    marikamitsos,
    Glad it worked for you.

    To answer the other question:

    The main reason to not do an immediate update to the plugin itself, is that when you are dealing with thousands of users it becomes a very delicate matter. Since an update was JUST done, we now have to test EVERYTHING added to the plugin before we roll out the new version. Because it can take some time to test in many environments, and since we have several outside testers, it makes it difficult to get the testing done quickly. That is, unless it is a major issue or security item – then we work on it immediately to make sure the least amount of people are affected by the problem – and for your issue, that is not the case.

    For items that are issues only for a few people, or certain types of installs only (which IS your case), then we put them into the queue for a future update – granted that they are something that will one, benefit the plugin or two, fix an issue. If it does not fall into either category, it does not get added.

    You also have to keep in mind that if we modified the plugin every time someone wanted a new feature or had a problem, it is likely there would be daily updates – and NOBODY wants to have to update a plugin that often. I get dozens of emails a day from users wanting to add something or change something in a plugin. Most are outside the scope of the plugins intended purpose or are something that they want to be able to do for their website or specific need. I currently have 4 plugins I offer and support – and they have been downloaded in combination over 200,000 times – so I cannot accommodate every request for the plugins – but I do try to steer them in the right direction when I can.

    Look at WordPress itself, for example, they only updates they do are ones that are absolutely necessary – except for the major version roll-outs that add new features and fix old bugs. So, most plugin programmers I know will only update the plugins when either the need arises, or on a somewhat scheduled basis. It keeps the costs down and the user frustration level low. And when something comes up like your need, we try to help out where we can until the next update.

    You have to remember one very important thing – most WordPress plugins are FREE. That means whoever is programming them, and updating them, and testing them, and supporting them – is doing so on their own time and at their own expense. So I know personally, that I would LOVE to just work on plugins and help people out all day long, but I have paid work I need to complete so that I can continue to be able to support the free plugins for everyone else… if my business goes under because I spend too much time working on non-paying projects, then everyone loses – no income for me and no plugins for everyone else.

    Hope that helps clear up the mystery at least a little bit.
    Warm regards,
    Don

    Thread Starter marikamitsos

    (@marikamitsos)

    Thank you Don for the reply,
    it certainly clarifies things and makes me happy that we had this conversation. As a matter of fact I think every single user on these forums should read your reply so they (if haven’t so far) understand the developer’s point of view.

    You have to remember one very important thing – …FREE…LOVE… – no income for me and no plugins for everyone else.

    I couldn’t agree more. And that is something many people tend to forget…

    Looking forward for future updates, thanks again.
    marikamitsos

    Plugin Contributor Don Fischer

    (@prophecy2040)

    Thank you marikamitsos!
    Warm Regards,
    Don

    Great plugin – I too am looking for an option to have this enabled only for Super Admins on a WPMS setup. Just wondering if there has been any progress? Appreciate you are no doubt busy, but would be a great help!

    Thanks,

    James

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Global Hide/Remove Toolbar Plugin] Can I show for super admins only?’ is closed to new replies.