PDA

View Full Version : Location of ban message code?


Samu3l
01-08-2010, 02:35 PM
I'm looking to add some of my own code into the "User Blocked" message a member receives when they have been banned, but have had no luck finding where the original code is.

Can anybody tell me where this might be?

mandingo
01-08-2010, 02:50 PM
Search phrases for what the banned user sees,if it's "user blocked" then search for that.
admincp>languages and phrases>search in phrases
you'll be able to edit the text,not sure about adding actual code though.

Samu3l
01-08-2010, 03:13 PM
Thanks for the quick reply, although I couldn't find the phrase.

Instead I've decided to put a usergroup check in the header template.

The code I'm writing at the moment is in attempt to detect whether a user has been banned even if they're not logged in, and I need to be able to call up the "User Blocked" screen upon a result.

Is there any way to do this?

mandingo
01-08-2010, 03:24 PM
Thanks for the quick reply, although I couldn't find the phrase.

Instead I've decided to put a usergroup check in the headinclude template.

The code I'm writing at the moment is in attempt to detect whether a user has been banned even if they're not logged in, and I need to be able to call up the "User Blocked" screen upon a result.

Is there any way to do this?

Sounds like you're going to want the miserable users mod.
you can put banned users ip addresses in and block the site entirely, redirect them elsewhere, all kinds of stuff. One of the best mods ever made.

https://vborg.vbsupport.ru/showthread.php?t=197484&highlight=miserable

Samu3l
01-08-2010, 03:39 PM
Does that work if they're using a proxy though?

I'm planning to have a shared object stored on their computer using flash once they are banned, and then if the shared object is found it'll show them the "User Blocked" screen; It won't matter if they clear their cookies or use a proxy, because if the shared object is found in the application data folder on their computer it will detect it and show them the "User Blocked" message.

Plus, this is more of a learning exercise for me. xD;

So yeah, I need to be able to call the "User Blocked" screen if the shared object is found. Is there any way to do this?

Edit: Found it, "print_no_permission();"