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,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Block visibility for Admin

Started by garyt, April 07, 2012, 04:50:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garyt

Using SM2.0.2 and TP 1.0 released.

I have an HTML Block for Guests to inform them about registration.
The visibility is set to Guest only.
However, it always shows up for me since I am the Admin.
Is there a setting / solution available to also turn it off for the Admin.
It is a message I don't always want to look at since it does not apply.

I understand that I could set up a separate non Admin account to get around it, but in my mind that would only be a "band-aid".

Any suggestions / recommendations?

-------------
Note: I did read the recent post about this subject with older versions of SMF and TP. My hope is that this has been resolved in the latest releases  :)

lurkalot


ZarPrime

garyt,

This can be done with the latest version of TinyPortal but you need to jump through a few hoops to make it work, so to speak. ;) We recently had this same question asked by a member who was indeed using an older version and this may be the topic that you mentioned that you saw.

The thing to understand is that, by default, Admins see all blocks even if a block is set to show to just Guests.  There is a switch in TinyPortal General Settings to turn off visibility of ALL blocks for Admins and this works fine as you might have already tried but it is all or none.  However, you will probably want Admins to see most blocks even though you don't want Admins to see those blocks only set to show to Guests.  The solution is to setup a secondary membergroup only for Admins so that each block that is to be visible to Admins has visibility set to "On" for that secondary group and each block that is to be invisible to Admins has visibility for that block set to "Off".

I recently wrote a tutorial about how to do this and here is the link --> http://www.tinyportal.net/index.php?topic=34836.msg278413#msg278413

Read that and see if it makes any sense to you as that is the correct method to make it work.  If not, let us know and one of us can access your site and set this up for you.

ZarPrime

garyt

First of thanks for the quick responses.
I thought the least I can do is provide some feedback.

Quote from: lurkalot on April 07, 2012, 05:00:21 PM
Not sure if this will work for you, see this, http://www.tinyportal.net/index.php?topic=32135.0

This essentially works with drawbacks. The block is mostly invisible with the exception of a blank graphic bar (I guess this depends on the Theme). Even without a Theme assigned to the Block, it offsets the Panels by a line break. Therefore, it does cause a misalignment of things by a line. It might also be a challenge for implementation with different code Blocks. Never-the-less an interesting solution.

Quote from: ZarPrime on April 07, 2012, 05:58:08 PM
garyt,

This can be done with the latest version of TinyPortal but you need to jump through a few hoops to make it work, so to speak. ;) We recently had this same question asked by a member who was indeed using an older version and this may be the topic that you mentioned that you saw.

The thing to understand is that, by default, Admins see all blocks even if a block is set to show to just Guests.  There is a switch in TinyPortal General Settings to turn off visibility of ALL blocks for Admins and this works fine as you might have already tried but it is all or none.  However, you will probably want Admins to see most blocks even though you don't want Admins to see those blocks only set to show to Guests.  The solution is to setup a secondary membergroup only for Admins so that each block that is to be visible to Admins has visibility set to "On" for that secondary group and each block that is to be invisible to Admins has visibility for that block set to "Off".

I recently wrote a tutorial about how to do this and here is the link --> http://www.tinyportal.net/index.php?topic=34836.msg278413#msg278413

Read that and see if it makes any sense to you as that is the correct method to make it work.  If not, let us know and one of us can access your site and set this up for you.

ZarPrime

This works as described. Once I had it all set up, which was really not that time consuming, it worked as expected. The important part is to REMEMBER that visibility has to be assigned to the group for every new Block that Admins are supposed to see.

NOTE: The one thing that caused me first a little problem was assigning visibility. When I accessed it through Block Access it worked just fine and it is the easiest way to do it. However, when I Edited a single Block (via Blocks) and tried to assign visibility my new AdminSecondary group did not show as a choice under visibility selection. The group was however listed as a choice under the selection of which group is permitted to edit the Block. Something I haven't figured out yet why that is. Could it be a setting I chose for the Group or could this be a bug? All my other groups I did set up do show.

ZarPrime

Quote from: garyt on April 07, 2012, 08:39:18 PM
However, when I Edited a single Block (via Blocks) and tried to assign visibility my new AdminSecondary group did not show as a choice under visibility selection. The group was however listed as a choice under the selection of which group is permitted to edit the Block. Something I haven't figured out yet why that is. Could it be a setting I chose for the Group or could this be a bug? All my other groups I did set up do show.

The likely reason for this happening with existing blocks (though I'm not sure) is that the option to "Choose your membergroups that will able to see this block." is cached by your browser.  If you close your site, clear your browser cache, and then reopen your site, I think the new group will probably show up in the block editing screen. ;)

ZarPrime

garyt

I closed the Browser, logged-out and logged-in and now it is showing.
So I can't say if it was one or the other, but it is working all the way.

Thanks again for the great support!

ZarPrime

No problem Gary, glad to help.  Topic marked solved. O0

ZarPrime

IchBin

I actually wonder if it the SMF cache that is causing this. I've seen some weird quirks just like that with permission stuff. I'll keep an eye out for that stuff. Thanks for reporting back!

This website is proudly hosted on Crocweb Cloud Website Hosting.