vBulletin Modifications

NOT showing a hack in the postbit for banned users.

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-10-2006, 10:13 PM   #1
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default NOT showing a hack in the postbit for banned users.

I use a hack that shows a users total time logged on the board in the postbit under their avatar.

It is showing for users that have been banned though and im not sure why.
How do i get it to stop showing up in a banned users post?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-11-2006, 11:30 AM   #2
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

Change the postbit conditional to say
You must first be a registered member to view any code.
That excludes group 8 which is the default banned group.

Last edited by bairy; 08-11-2006 at 08:54 PM. Reason: typo




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2006, 12:42 PM   #3
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

that didnt work

it didnt seem to do anything at all.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2006, 12:48 PM   #4
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

you know what, this probably did work, the only banned user i had, was deleted.

So it is showing that users posts on the board, and showing him as a guest, even though there is no one in the guest group or banned users group.

So how would i go about not showing this time logged display in posts by users who have been deleted??

EDIT

and also can i add multiple usergroups to that statement?
like this

<if condition="$userinfo[usergroupid] != 1,8,12,etc?">




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2006, 08:54 PM   #5
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

You must first be a registered member to view any code.
.. I think that will work, I'm not great with ! negatives

Note: It was supposed to be $bbuserinfo in the previous thing, not $userinfo. My mistake.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2006, 01:16 AM   #6
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

i thought it was bbuserinfo i actually changed it and used that in my code .... tried it both ways before i realized the user was actually deleted... but i still have the problem of this hack showing up in the postbit of deleted users previous posts.

Since none of the other info shows up (location, gender, etc) i can safely assume that there is a way to stop this information from showing as well.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 05:32 AM   #7
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

I may have misunderstood the original request. Or gotten confused when replying... anyway.

Since it's the only one not tried yet, try $postinfo instead of $bbuserinfo.
If that fails, could you re-explain what you'd like to happen.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 01:18 PM   #8
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

that didnt work.

Heres the problem, the code you posted works perfectly for users who have been banned, but are still users on the board, who may be unbanned in the future.
When you ban someone, their old posts obviously dont go away.

HOWEVER, The user in question has been DELETED from the board, and is no longer a member at all.
Naturally, this users old posts still exist. In this users old posts, they show up as a guest, but being that the user no longer exists, they are not actually in the guest group. So using code to say "dont show this if they are a guest" wont work, since that user is gone and not actually part of any group at all.

Here is a picture to sort of show what i mean.
This user is no longer in the database at all, there is no such user as "kyle12" anymore.

So how do i stop that time logged thing from showing up.
Attached Images
File Type: jpg non user.JPG (10.3 KB, 10 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 01:57 PM   #9
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

You should be able to update a forum counter or you could do a manual clean of the db but the threads he posted in may be messed up but then a counter may fix it. Thats all May's though.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 02:19 PM   #10
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

no go dude

But like i said, this is just a hack...... so i sort of just need a way to to tell it not to display this information, if this user is not in the database




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install System Part 2 Ken Iovino Announcements 10 05-19-2005 10:40 AM


All times are GMT -3. The time now is 09:24 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)