vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Location of ban message code? (https://vborg.vbsupport.ru/showthread.php?t=232540)

Samu3l 01-08-2010 02:35 PM

Location of ban message code?
 
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

Quote:

Originally Posted by Samu3l (Post 1950430)
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/showthrea...ight=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();"


All times are GMT. The time now is 05:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete