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 09-04-2001, 08:58 AM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,
someone ever came accross the idea to temporarily deactivate a member's account - would be helpful occassionally
-Tom
Reply With Quote
  #2  
Old 09-04-2001, 10:50 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just create a new usergroup, with no post-permissions.
Reply With Quote
  #3  
Old 09-04-2001, 01:16 PM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi FireFly,
thanks for the kick in the butt!
Sure, that's the best way, so I just create a group "Arrest" with no post-permission and may play with the error-message to state the current status of the user...
Just another quick question Would it be hard to create an extra error message for this user group "You're under posting arrest, please wait a week and be a little more friendly in the future"?
Thanks, your fast replies are as always greatly appreciated,
-Tom
Reply With Quote
  #4  
Old 09-04-2001, 02:34 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kicking people in the butt is always fun.

About the error message, it shouldn't be too hard.
Take a look at functions.php, find this:
PHP Code:
  if ($bbuserinfo[userid]==0) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
  } else {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
  } 
change it to
PHP Code:
  if ($bbuserinfo[userid]==0) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
  } elseif (
$bbuserinfo[usergroupid]==555) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_arrested")."\");");
  } else {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
  } 
but change 555 to the usergroup of the arrested, and also create a template named error_nopermission_arrested.

Yup, that should work.
Reply With Quote
  #5  
Old 09-04-2001, 04:54 PM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a bunch, great, very clean solution - thanks!
You should become an IT teacher/trainer, since you can make things very clear
-Tom
Reply With Quote
  #6  
Old 09-04-2001, 05:05 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So it worked... cool.

There's one "bug" in this though. If a user tries to get to some kind of admin. options, he'll get a "You are arrested punk!" message. If you care so much I'll try to fix it.
Reply With Quote
  #7  
Old 09-05-2001, 06:45 AM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, worked instantly very well!

I lost you here, how could that happen?
If you don't mind, I would like to hear how to solve a potential problem

Cheers pal for your help on this
Reply With Quote
  #8  
Old 09-05-2001, 10:26 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How could that happen? Very easily:

A user tries to edit another's post.
If he is not logged in, he will get the "No permissions not logged in" message.
If he is logged in, and under arrest, he will get the "You are under arrest man" message.
Else, he will get the "No permissions logged in" message.

Got it?
Reply With Quote
  #9  
Old 09-05-2001, 10:36 AM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
If he is logged in, and under arrest, he will get the "You are under arrest man" message.
Else, he will get the "No permissions logged in" message.
Well, that's fine, isn't it?

Quote:
Got it?
Not sure
thx,
-Tom
Reply With Quote
  #10  
Old 09-05-2001, 10:42 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess it's fine... but just make sure you add all of the other options that the regular nopermission templates have.
Just add something for the arrested part.

Hey, if it's good for you, it's sure good for me.
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 01:04 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.04734 seconds
  • Memory Usage 2,259KB
  • 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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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