<!-- IF S_USER_BANNED -->

Discussion forum for MOD Writers regarding MOD Development.
Locked
nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

<!-- IF S_USER_BANNED -->

Post by nexum »

i'm looking for a way to include a template condition that will allow me to check if the user is banned

here is my situation :
i have a shoutbox on my forum, but the banned users can still post in the shoutbox. i need a way to display the shoutbox only to users that are not banned

i need something like:

<!-- IF not S_USER_BANNED -->
<iframe>** shoutbox code here **</iframe>
<!-- ENDIF -->


thanks a lot!!
Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: <!-- IF S_USER_BANNED -->

Post by Ather »

try :

Code: Select all

<!-- IF S_USERNAME_BAN -->
<!-- ENDIF -->
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
User avatar
RMcGirr83
Former Team Member
Posts: 21680
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: <!-- IF S_USER_BANNED -->

Post by RMcGirr83 »

S_USERNAME_BAN is only set within the ACP and MCP. No where else.

To the OP what you want will only hide the iframe from the user, if they were creative they could still get to your outside of phpBB chat on their own.

This is one of the problems of using a chat that does not follow the auth permissions of the forum.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

Re: <!-- IF S_USER_BANNED -->

Post by nexum »

if they were creative they could still get to your outside of phpBB chat on their own.
Then i will just include the php file on the page instead of using a iframe

but i really need a way to display it for users that are not banned :/
how can i do that ? i don't mind editing php files
User avatar
RMcGirr83
Former Team Member
Posts: 21680
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: <!-- IF S_USER_BANNED -->

Post by RMcGirr83 »

Probably help if you stated and provided a link to the chat you are using.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

Re: <!-- IF S_USER_BANNED -->

Post by nexum »

the shoutbox doesnt change anything...

lets just say i want to display some text for unbanned users

i need something that i can put in my overall_header template, like

<!-- IF not S_USER_BANNED -->
Hello, you are not banned
<!-- ENDIF -->

thats all i need
User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm

Re: <!-- IF S_USER_BANNED -->

Post by Dugi »

PM me for custom extension pricing / My validated MODs / My MODs in development
nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

Re: <!-- IF S_USER_BANNED -->

Post by nexum »

Dugi wrote:There's a MOD made by me for that:
http://www.phpbb.com/customise/db/mod/s ... ed_status/
but i want it in overall_header.html template

i want to display a text to the current user in overall_header.html if user is not banned, not display the banned status of each user in postbit...
Locked

Return to “[3.0.x] MOD Writers Discussion”