vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Buddies in Banned user group are removed from all member's lists (https://vborg.vbsupport.ru/showthread.php?t=80923)

T3MEDIA 05-03-2005 11:46 AM

Buddies in Banned user group are removed from all member's lists
 
Once a member on vb is on the banned list they still show up on buddy lists which makes no sense.

Anyone out there knows how to auto remove all banned members from user buddylists?

Thank you.

why-not 05-03-2005 12:36 PM

Do you want them removed for good or just based on the ban! I mean if you ban someone for a day or week then I would just remove them from the users list for that time period, if it's a bye bye for good ban then just remove them from everyone! The second type 'forever' would be a best for the admin option, the other for the forum, because you can just add IF() or something to the query to not return any users in the ban!

If someone else does not look at it, I will when I have a chance to view the code. I am not near any vB code moment or I would tell you how to add it to the admin functions for the forever ban and also add it to the functions for a temp ban! In fact I think I already have this done, when I break for lunch I will check!

Sonia

T3MEDIA 05-03-2005 03:39 PM

well its kinda straght forward.
If a user is banned (short or long)
there buddies are removed.
That is what I was looking for.

T3MEDIA 05-06-2005 10:48 AM

bump?

T3MEDIA 05-11-2005 10:23 PM

bump

T3MEDIA 05-14-2005 11:06 AM

bump...

(sounds like the begining of house music...)

nexialys 05-22-2005 09:17 AM

cool, some great beat... ;)

i would help, but my license is off...

btw i can help a bit, telling what to do with this.

1- for each listing, like memberslist and buddies, where there is SELECT ... FROM " .TABLEPREFIX. "user, you need to merge (LEFT_JOIN) with the usergroup table and filter if the member are in the banned group... if yes, not display, simply...

2- if you need something more efficient, you can also make a UPDATE of the buddylist by removing the person from everyone's list when he goes BANNED, but the problem is when he comes back... can't add it back...

T3MEDIA 05-22-2005 01:06 PM

what hap to the lic?
maybe we can talk outside of vb nothing going on here really anyway... (of course only love for 4 members who know who they are)

Quote:

Originally Posted by why-not
In fact I think I already have this done, when I break for lunch I will check!


Sonia

In my book if you got banned in the first place that is your problem getting back your friends list so I dont care if I decide to unban them they have to re get friends.

Hope you can help

T3MEDIA 06-03-2005 11:46 PM

Well... might as well...
bump


All times are GMT. The time now is 07:03 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.01528 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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