Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2010, 02:35 PM
Samu3l Samu3l is offline
 
Join Date: Mar 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 01-08-2010, 02:50 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-08-2010, 03:13 PM
Samu3l Samu3l is offline
 
Join Date: Mar 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 01-08-2010, 03:24 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Samu3l View Post
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
Reply With Quote
  #5  
Old 01-08-2010, 03:39 PM
Samu3l Samu3l is offline
 
Join Date: Mar 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:53 PM.


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.03806 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete