Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2005, 09:48 PM
Kevlar's Avatar
Kevlar Kevlar is offline
 
Join Date: Nov 2001
Location: Ft. Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default quick ban?

An idea and tell me if it's possible (or worthwhile) or not.

I want to do a if/then on the postbit page that does something like this.

If admin/mod display 'quick ban' button for particular user.

The 'quick ban' button would essentially do just that. By pushing it, it would automatically add that user to one of my banned groups (I have a readonly usergroup for troublesome users) for 24 hours. This is mostly for moderators because I didn't give them permission to the mod control panel (too much permissions).

If they have the 'quick ban' button, they can put a user into 'timeout' for 24 hours until one of the admins can review it.

I know I would need to do a if/then to check the usergroups for admins or mods.

Then I know I would have to make seperate forms for each user on postbit. It would then have to pass those form variables to the banning.php file.

Thoughts?
Reply With Quote
  #2  
Old 02-05-2005, 09:52 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kevlar
This is mostly for moderators because I didn't give them permission to the mod control panel (too much permissions).
Hmm ... if you set permissions correctly your mods can't do anything (except viewing load avg and searchign in mysql/php manual).

Furthermore, this is mainly a template mod - I've added such a "Quick Ban"-Button in the user profile (Template MEMBERINFO).

HTML Code:
<if condition="can_moderate(0, 'canbanusers')">
<br />
<if condition="$usergroupcache["$userinfo[usergroupid]"][genericoptions] & ISBANNEDGROUP">
<div style="color: red; font-weight: bold; text-align: center; font-size: 18pt">This User is banned!</div>
<else />
<div style="text-align: center">
<form method="get" action="modcp/banning.php" />
<input type="hidden" name="do" value="dobanuser" />
<input type="hidden" name="period" value="PERMANENT" />
<input type="hidden" name="usergroupid" value="8" />
<input type="hidden" name="username" value="$userinfo[username]" />
<input type="submit" value="Ban User" />
</form>
</div>
</if>
</if>
Reply With Quote
  #3  
Old 02-08-2005, 05:45 PM
Kevlar's Avatar
Kevlar Kevlar is offline
 
Join Date: Nov 2001
Location: Ft. Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Hmm ... if you set permissions correctly your mods can't do anything (except viewing load avg and searchign in mysql/php manual).
Can you elaborate on this some as it would elminate on the quick ban need at the moment. I'd like my mods to be able to ban people (to a special user group ... not totally banned, just a read-only group I already have) for a period of 24-48 hours and no more.

I tried something similar to that button you have ... but it returns them to the banning page where they can mess around in the modcp.
Reply With Quote
  #4  
Old 02-08-2005, 06:00 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, check your moderator permissions.
Give them only those you want them to have
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 08:35 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.06546 seconds
  • Memory Usage 2,195KB
  • Queries Executed 13 (?)
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_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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