Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Stop Banned Users from being Newest Member
bananalive
Join Date: Oct 2007
Posts: 2,800

UK
by bananalive bananalive is offline 02 Jun 2009

Prevents Banned Users from Displaying in What's Going On? Statistics phrase: Welcome to our newest member
  1. Open file: includes/functions_databuild.php
  2. Find:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. Replace:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  4. Save File

Last edited by bananalive; 02 Jun 2009 at 12:55..
Views: 4434
Reply With Quote
Comments
  #2  
Old 22 Jun 2009, 23:52
NewAyenee NewAyenee is offline
 
Join Date: Oct 2006
I've applied this change to my page, but I'm not seeing it take affect on the page.

The current newest user is in the banned group, and when I try what the query should be from the AdminCP Execute SQL Query page, I get the right results, but when I refresh the index page, I keep seeing the banned user as the newest.

Is there anything else I need to do to get this to work correctly?


EDIT
Just as a test, I changed later lines on the page to return fixed values in the values array, like so:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And it still got the banned user as the newest user, as it's always been getting. Even putting an exit() statement in the page didn't prevent it from running.

It's the only file on the host with that function and that query, but it doesn't seem to be working, and I'm not sure why.

Last edited by NewAyenee; 23 Jun 2009 at 00:14. Reason: More information
Reply With Quote
  #3  
Old 23 Jun 2009, 18:08
SurfCityvBer SurfCityvBer is offline
 
Join Date: Feb 2008
I believe I've had this problem before when deleting a banned user -- try going into the Maintenance menu and Update Counters, Update User Titles and Ranks.
Reply With Quote
  #4  
Old 23 Jun 2009, 23:19
NewAyenee NewAyenee is offline
 
Join Date: Oct 2006
Originally Posted by SurfCityvBer View Post
I believe I've had this problem before when deleting a banned user -- try going into the Maintenance menu and Update Counters, Update User Titles and Ranks.
Well, there was already a cron job set through vBulletin to handle that, so this morning (by the time I saw your response), it had already taken effect.
Reply With Quote
  #5  
Old 29 Jun 2009, 06:51
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Real name: Steve
Thanks
Reply With Quote
  #6  
Old 29 Jun 2009, 08:23
bananalive bananalive is offline
 
Join Date: Oct 2007
Real name: Dom
To update the newest member immediately you can go:

AdminCP -> Scheduled Tasks -> Scheduled Tasks Manager -> Daily Statistics Log -> run now
__________________
Reply With Quote
  #7  
Old 01 Jul 2009, 18:25
Sweeks's Avatar
Sweeks Sweeks is offline
 
Join Date: Jul 2008
After running the task it isnt working for me here somehow.
________
KTM LC4

Last edited by Sweeks; 06 Apr 2011 at 13:29.
Reply With Quote
  #8  
Old 21 Jul 2009, 12:42
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Worked like a charm! thank you for this tip!
Reply With Quote
  #9  
Old 28 Jul 2009, 15:09
sebaot sebaot is offline
 
Join Date: Jul 2005
Thanks for an awesome tip! It wasn't cool to see banned users and their names come up on the forum index. I used this, but I modified the query some:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I guess it should theoretically create a bit slower query on the database server, but result in less memory being allocated since the result is slimmed down to 1 row instead of all members in the users-table, even if the business class uses query_first. Never ran any tests to verify it, though. :-)
Reply With Quote
  #10  
Old 10 Aug 2009, 18:40
goshalim goshalim is offline
 
Join Date: Oct 2007
I've applied this change to my forum but I'm not seeing it take affect on the forum , and still showing the banned users.
Reply With Quote
  #11  
Old 11 Aug 2009, 19:52
goshalim goshalim is offline
 
Join Date: Oct 2007
On the other hand it complitely stoped to welcomes new members. this is not what i wanted . Just to prevent the welcome for the Banned users
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Hide Log Out Button From Banned Users - Template change only peterska2 vBulletin 3.5 Template Modifications 6 13 Jul 2006 23:15



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 07:30.

Layout Options | Width: Wide Color: