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 01-16-2005, 10:37 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Keep 'em Seperated: The Admin enforced ignore

Greetings,

I have some users that can't seem to get along. Toward others they are otherwise decent human beings, but they but heads whenever their paths cross.

. I am tired of separating them and dealing with it. So I have this idea for an admin enforced ignore. I would like to be able to force them onto each other's ignore lists The admin can add names to a user's ignore list. Users can see the names, but can't remove them. Otherwise it behaves like a regular ignore. I have never been able to use ignore being an admin so I don't know all its limitations, but I would like for them

1. not to be able to see the ignored user's posts
2. not to be able to pm the ignored user
3. not to be able to leave reputation for the ignored user.

possibly:

4. not to be able to see if the ignored user is online

Regards,
Reply With Quote
  #2  
Old 01-27-2005, 09:29 PM
iforrage iforrage is offline
 
Join Date: Mar 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope someone picks up on this, as I could use it as well.
Reply With Quote
  #3  
Old 01-27-2005, 10:29 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheepo solution:

Place this in phpinclude_start
PHP Code:
$doignore[uid] = array(ignoreid1ignoreid2);

if (
array_key_exists($bbuserinfo['userid'], $doignore)) {
  
$bbuserinfo['ignorelist'] = implode(' 'array_merge(explode(' '$bbuserinfo['ignorelist']), $doignore[$bbuserinfo['userid']]));

Where
uid is the UserID of the user wher you want to add entries to his ignorelist
ignoreid1, ignoreid2 are the User IDs of the users you want him to ignore, add as many as you need separated by comma.
If you got several ppl where you want to add entries: Repeat the $doignore line as often as needed and change the IDs.
Reply With Quote
  #4  
Old 01-28-2005, 03:24 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't there be an else branch like:
PHP Code:
$doignore[uid] = array(ignoreid1ignoreid2); 

if (
array_key_exists($bbuserinfo['userid'], $doignore)) { 
  
$bbuserinfo['ignorelist'] = implode(' 'array_merge(explode(' '$bbuserinfo['ignorelist']), $doignore[$bbuserinfo['userid']])); 
}
else

  
$bbuserinfo['ignorelist'] = implode(' '$doignore[$bbuserinfo['userid']]); 

Reply With Quote
  #5  
Old 01-28-2005, 03:31 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That doesn't make sense ... does it?
The if checks if the key exists (so the else-part will be executed if it does not exist):

PHP Code:
else
{
  
$bbuserinfo['ignorelist'] = implode(' '$doignore[$bbuserinfo['userid']]);

But you are using this key (which does not exist) here?
Reply With Quote
  #6  
Old 01-28-2005, 03:52 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol, never mind, haven't finished my coffee yet, need to open my eyes.
Reply With Quote
  #7  
Old 03-06-2005, 06:06 AM
marcjd marcjd is offline
 
Join Date: Jan 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the idea. Is there a way of doing it so when you search for a member in admincp you can add the other member there and so on? I think it would be much easier than trying to change code manually, which can easily get out of hand and more time consuming. Thanks!
Reply With Quote
  #8  
Old 05-25-2005, 11:32 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was never able to figure out what was ultimately suggested above, but is there some way this could be done so the code doesn't need to be executed with every page load?

I don't mind having an extra "mustignorelist" in the usertable I can load it up with phpmyadmin because there are only a few problem user combos, but I am not sure how and when to concatenate it with the existing user ignorelist?

Regards,

Matt
Reply With Quote
  #9  
Old 08-14-2005, 08:45 PM
oldford's Avatar
oldford oldford is offline
 
Join Date: Feb 2003
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kirby's code does work, but it doesn't seem to affect PMs. As a test I put myself and another test account on each other's ignore list via the code above. But you can still send PM's to each other. When you go to view the PM is says "user is on your ingore list" but you can still click "view message" to see the PM.

Any thoughts on extending this to PMs? Thanks!
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:44 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.03799 seconds
  • Memory Usage 2,244KB
  • 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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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