vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Banned page. (https://vborg.vbsupport.ru/showthread.php?t=35872)

okrogius 03-08-2002 05:27 PM

Banned page.
 
It would be really nice if someone could createa hack to display a custom template instead of the standard erorr_nopermission_loggedin template if the user belongs to a certain usergroup (banned by moderators).

Thanks in advance.

inetd 03-08-2002 05:55 PM

Good idea! :cool:

Neo 03-08-2002 06:12 PM

interesting.... explain more

okrogius 03-08-2002 07:38 PM

If any regular user is banned through mod control panel they're moved to auser group called 'Banned By Moderators' (not always same group id). If anyone in that group tries to access any part of teh forums they jsut get a vbulletin message showing error_nopermission_loggedin template, which summarized says taht you either haven't activated your account, don't have permission to be there, etc and you're logged in as so and so.

Well to make it easier for who is banned and who is not (in case not banned person tries to post something when havne't activated account or access some private area they get sma error page. So if a user belogns to a usergroup called 'Banned By Moderators' instead of giving him/her error_nopermission_loggedin give another template in vbulletin message format jsut like that one is, which specifically explains you're bnaned and what to do regarding false bans, etc.

cditty 03-08-2002 07:59 PM

This is a good idea. I recently had to ban a user and I saw the banned screen. It basically just says there was an error or you do not have permission to access this section. Kinda confusing.

Chris

TECK 03-08-2002 08:29 PM

this is extremly easy.
PHP Code:

if ($bbuserinfo['usergroupid'] == X) {
  eval 
code
} else {
  
more eval code


1. look at the dooutput() function to insert a template.
2. create a custom template to suit your forum needs.
3. you are done. get a snack (i prefer a cigarette) ;)

okrogius 03-08-2002 09:20 PM

just one issue with that nakkid. Keep in mind it has to be forum wide. (show same on every page) I really don't feel like modifying every display php file (forumdisplay.php, index.php, showthread.php,usercp.php, etc.)

Secodnly is the point that users are getting the erro pare in first place not becuase its coded ina simple form, buyt due to them being prohibited to access forum s in cp and getpermissions trigerring it off in the global.php code.


All times are GMT. The time now is 08:13 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.02234 seconds
  • Memory Usage 1,722KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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