Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 06-13-2002, 01:43 AM
chris frolic chris frolic is offline
 
Join Date: Jan 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Ban a user by making them "ignored" by everyone?

Wouldn't a good way of secretly banning a user be that they become "ignored" by everyone?

For example, couldn't whatever process vB goes through when showing posts and keeping people on your ignore list invisible be expanded slightly to also make posts by people in a "banned" category ignored as well? (except by mods/admins).

Any idea how difficult this might be? I don't have the skills, so I thought I'd throw the idea out there.
Reply With Quote
  #2  
Old 06-13-2002, 02:38 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

frist get your functions.php file from the admin dir.

find this bit of code

PHP Code:
if (!$ignore[$post[userid]]) {
        eval(
"\$retval = \"".gettemplate("postbit")."\";");
    } else {
        eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } 
under it add.

PHP Code:
if ($post[userid]==*users id here* AND $bbuserinfo[userid]!=*users ID here*) {
           eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
      } 
replace *user id here* with the members user ID.

go to your postbit_ignore template and deleate everything in it, now the member is on site wide ignore, they see their post but no one else can, you can also do the same with user gourps, that way u can just change their status and they go under the ban, however others with cp acess can edit this, so i dont use it.

fallow what i posted about but insted of adding that code up there add this

PHP Code:
if ($post[usergroupid]==*user gourp id here AND $bbuserinfo[usergroupid]!=*user gourp id here) {
           eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } 
now make a new user gourp, something like banned, and replace the bits int he code with its #
Reply With Quote
  #3  
Old 06-14-2002, 06:06 AM
chris frolic chris frolic is offline
 
Join Date: Jan 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool, thanks for the response.

Posts disapear, but is there a way to make a Thread topic disapear if that same user started it? Now the thread remains visible, but no posts are inside it.
Reply With Quote
  #4  
Old 06-14-2002, 11:08 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wasn''t there an ultimate ignore hac in the release forum??
i don't know what exactly it does, but you should take a look
Reply With Quote
  #5  
Old 06-14-2002, 11:11 PM
chris frolic chris frolic is offline
 
Join Date: Jan 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as far as I can tell, that Ultimate Ignore hack is unfinished and buggy?
Reply With Quote
  #6  
Old 06-16-2002, 05:22 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

don't know, i don't use it
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07102 seconds
  • Memory Usage 2,209KB
  • 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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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