TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 577
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 296
  • Total: 296

Block Visibilties -- Admin accounts

Started by FireDitto, June 09, 2012, 10:04:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FireDitto

Link to my site: http://katila.second-pass.net
SMF version: 2.0.2
TP version: 1.107
Default Forum Language: English
Theme name and version: DarkBreak (RC3 atm, gotta fix that)
Browser Name and Version: FireFox ... 12?
Mods installed: >_> too many
Related Error messages: N/A

Okies. So.

What I Would like to be able to do, is to hide certain blocks from view when logged in as the admin. At present, I have the blocks set up two fold; there are those that Guests can see, and those that Members can see. Unfortunately, as an Admin, I can see everything and it looks god %(#*ing awful!

Is there a  way I can hide the blocks from the Admin accounts that I don't want to be seen, or don't want to be stuck looking at? It's really doing my head in :(

Thanks guys!

ZarPrime

You can do this but it's not particularly intuitive, nor is it a well documented feature.  Last year, in August of 2011, we had a 3 page discussion on the Beta Tester Board here about how this feature works, or how it should work, and came up with some answers.

First off, you should understand that in SMF, by default, Admins can see everything on their Forums.  In order to actually hide some blocks from Admins, we have to jump through a few hoops.  There is a method to the madness so follow along closely.  In essence, all Admins on your site that you want to hide some blocks from must also have a secondary membergroup, including yourself.  This assumes that their primary membergroup is "Admin".  Here are the steps to make it work ...


  • Go to YourSite/index.php?action=admin;area=membergroups
  • Add a new group (/index.php?action=admin;area=membergroups;sa=add).  Name it something that makes sense like "AdminSeeBlocks" or something like that.  After you click "Add Group", you should see your new group.  Modify it as you wish.
  • Now, each Admin on your site that you want to hide some blocks from must have this new group you just created as a secondary membergroup.  There are several ways to accomplish this but my preference is to go to the profile of each of those Admins, one at a time, and add them to the group.  To do this, just go to their profile account settings (yours should be at YourSite/index.php?action=profile;area=account;u=1).  Down the page you will see that their Primary MemberGroup is "Administrator".  Right below that, you'll see a link for [ show additional groups ].  Click that and you will see all the membergroups that are available at your site, including the new group you just created.  Now, select the checkbox for the new group, scroll to the bottom, and click "Change profile".
  • Once you have done the above for all Admins, each Admin should have the new group as a secondary membergroup.  We are almost done, 2 things left to do.
  • Go to TP Admin and select the "Block Access" link (YourSite/index.php?action=tpadmin;sa=blocks;overview).  You will see all of the blocks that are on your site and what groups can see them.  None of the blocks will have the new group selected.  Go down the page and look at each block.  For each block, if you want your Admins to see that block, select the checkbox for the new group you created earlier.  If you want that block to be hidden to your Admins, Don't select the new group.  Do this for each block until you reach the bottom of the page.  Depending on how many blocks you have on your site, this will take you a few minutes.
  • After you have gone through each block, and reached the bottom of the page, click the "Save" button.  One more thing left to do.
  • Go to TP Admin.  Under "Settings & Frontpage", click "Settings".  Near the bottom of the next page, you will see "Admin can see all blocks?"  Click the radio button that says "No" and Save.
  • Go back to your Forum, or FrontPage, and you will see that some of the blocks, the ones that the newly created membergroup can't see, are now hidden for Admins.

You should only have to go through this exercise once.  In the future, if and when you create a new block, you will be able to select the new group for block visibility if you want Admins to see it, or not select it if you want the block to be hidden for Admins.  One warning though, when you create a new block in the future, you must select the new group to be able to see the block until you have finished editing it.  After you are done editing the new block, you can then go back to modify the block to deselect visibility for the new group.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.