TinyPortal

Development => Support => Topic started by: _El_Chojin_ on April 27, 2010, 12:09:59 PM

Title: Dont show blocks to banned members
Post by: _El_Chojin_ on April 27, 2010, 12:09:59 PM
Hi:
When i ban a member on SMF (1.1.11) i would like to dont show tinyportal block to him.
Link to my site:
SMF version: 1.1.11
TP version: 0.9.8
Theme name and version: default
Browser Name and Version: Firefox
Mods installed: dont affect to my problem

If anyone know how can i configure this (without adding all banned members to a group).
Title: Re: Dont show blocks to banned members
Post by: ZarPrime on April 27, 2010, 04:59:56 PM
_El_Chojin_,

I believe this is how it works.

Basically, when a member is banned, they are unable to login to your site until the ban is lifted.  Therefore, for all intents and purposes, when they look at your site, they are viewing it as a Guest.  The only way to not show blocks to a banned member is to also not show them to Guests, unless I am mistaken.

ZarPrime
Title: Re: Dont show blocks to banned members
Post by: _El_Chojin_ on April 27, 2010, 05:47:57 PM
If you are logged on site, and after they ban you (you have cookies setted or something) because i see blocks and guest dont see it, and tinyportal is showing it to the test user that i'm using.
Title: Re: Dont show blocks to banned members
Post by: ZarPrime on April 27, 2010, 05:56:05 PM
This is probably because the banned used is seeing a cached version of the site which shows the blocks.  Until they have cleared their cache, or after a certain amount of time, they will likely continue to be able to see the blocks but not be able to interact with them.  In other words, if they are banned and they try to look at a recent topic listed in a block, they shouldn't be able to see the topic.

At least I think that's how it works.  One of the other Team Members may know more about it than I do though because I haven't tested things like this before.

ZarPrime
Title: Re: Dont show blocks to banned members
Post by: _El_Chojin_ on April 27, 2010, 06:16:59 PM
He cant see topic but he see blocks, is not a cached version i use crtl + f5 and i see all blocks
Title: Re: Dont show blocks to banned members
Post by: JPDeni on April 27, 2010, 06:58:26 PM
It seems that you already know how to keep banned members from seeing the blocks, since you said

Quote
without adding all banned members to a group

You can add the banned members to a group.

There is a check when topics are displayed in the forum to see if the person as been banned. There is no such check built in to TP before blocks are displayed. It would be simpler for you to change the group of the banned member than to re-program TP.