PDA

View Full Version : vBStealth 2.0


Martin64
07 Jan 2003, 01:31
vBStealth 2.0
(by Martin64, martin64@vbhackers.com)

[about]

vBStealth is a hack that prevents trouble makers from spreading their stupidity at your board and it does that by hiding their threads, making their posts magically disappear and helping the world by ignoring their pityful private messages. These users are unaware that they are ignored; their threads and posts show up normally when they're viewing them - only admins, mods, stealth banned users and guests are able to see these. Mhuahahah!

vBStealth was initially based on Frank's "Secretly ban a user" hack (http://www.vbulletin.org/forum/showthread.php?&threadid=36205) but is much more advanced and is is taking the idea of putting users on ignore further. This hack makes the secretly banned users even more secret - they have been stealth banned! *LOL*, please forgive me for naming the hack that. :p

[what it does]

- Threads and posts before the user was banned will show up, but threads and posts after the user was banned will be hidden to everyone but admins, mods, stealth banned users and guests.
- Hides threads in forumdisplay started by stealth users to everyone but admins, mods, stealth banned users and guests.
- Hides posts in showthread by stealth users to everyone but admins, mods, stealth banned users and guests.
- Ignores private messages sent by stealth users.
- Gives the option for moderators to either set a regular ban or a stealth ban in the Mod CP.
- Moderators are able to unban stealth banned users in the Mod CP.
- Skips updating the count post, last poster name and date for stealth banned users in forumdisplay and forumhome.
- Hides stealth users threads and posts when searching to everyone but admins, mods, stealth banned users and guests.

[note]

Make sure to backup your files! I don't want to be held responsible if you lose your two hundred hacks installed. :p

[important!]

You MUST stealth ban your users from the Mod CP, just changing usergroup in the Admin CP won't add the neccessary timestamp. The same goes for unbanning stealth banned users, you MUST do that from the Mod CP as well for the same reason.
If you have upgraded, you MUST put the users back to the registered group and then stealth ban them, or it won't add the neccessary timestamp.

[credits]

SJR and Xenon, for helping with some code fixes :)
Frank for creating "Secretly ban a user" which inspired me to work on vBStealth.

[upgrading from 1.X]

Be sure to do what's listed under [important!] above! Also, although not needed, I recommend completely uninstalling 1.X versions before installing vBStealth 2.0, as the file changes have changed for many of the files. If you are to upgrade, be sure to run the query, and go through the file changes very carefully.

[change log]

2.0: Hack now uses timestamps: Threads and posts before the user was banned will show up, but threads and posts after the user was banned will be hidden to everyone but stealth banned users, admins and mods.
1.3: Undid the changes to showthread.php, as it could lead to suspicion among stealth banned users if they communicate (thanks WetWired for the heads up). Also, I changed the code changes to newreply.php, so that it'll work if you have the Store Hack by Lesane installed.
1.2: Small fixes to search.php and newreply.php. New file modified: newthread.php.
1.1: Added changes to search.php as suggested by TECK (thanks :D), which hides stealth users threads and posts when searching.
1.0: First release, no changes dummy. :P

mx3
07 Jan 2003, 01:39
this sounds good, i'll do it tomorrow maybe. Good job.

TECK
07 Jan 2003, 01:44
No text file. :)

Martin64
07 Jan 2003, 01:54
There is now, sorry about that. I noticed a post minute bug. :p

Logik
07 Jan 2003, 01:58
No file. But nice sounding hack.

Martin64
07 Jan 2003, 02:03
Screenshot of new banning option in Mod CP.

Martin64
07 Jan 2003, 02:08
After stealth banning a user in Mod CP.

Martin64
07 Jan 2003, 02:18
Lastpost when logged in as admin (post visible)

Martin64
07 Jan 2003, 02:19
Lastpost when logged out (post hidden)

Martin64
07 Jan 2003, 02:21
When trying to view a thread started by a stealth banned user and logged out

Martin64
07 Jan 2003, 02:26
Same thread as above, but when logged in as admin. I wonder why noone has replied... :p

Schorsch
07 Jan 2003, 03:13
very nice, thank you!

TheVoidz
07 Jan 2003, 03:44
Been waiting for a rewrite of this hack to encompass all the stuff you have listed.. thanx.
/me installs

NuclioN
07 Jan 2003, 06:21
Looks good!

In the readme:

---
ABOVE IT ADD:

$threadgroupuserid=$DB_site->query_first("SELECT usergroupid FROM user WHERE userid=$thread[postuserid] ORDER BY usergroupid DESC LIMIT 1");
if ( $bbuserinfo['usergroupid'] != 16 && $bbuserinfo['usergroupid'] != 6 && $bbuserinfo['usergroupid'] != 5 && $bbuserinfo['usergroupid'] != 7 && $threadgroupuserid['usergroupid'] == 16 )
{
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
}

REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP.
---

In the readme is usergroup 16 instead of the XX, i guess this must be changed. ;)

Martin64
07 Jan 2003, 09:50
Ohhh...missed that one. Thanks :)
And thanks everyone for the feedback. :p

Frank
07 Jan 2003, 11:58
Nice hack Martin. I think everyone who is using my hack would do well to use Martin's instead now, as his is more up to date and advanced :D

N9ne
07 Jan 2003, 12:07
Nice hack, good work!

TECK
07 Jan 2003, 12:58
Nice work, however there is a problem with your hack. You forgot to edit also the search.php file.
If I search your forums and display posts as results, it will show the stealth posts. :)

Kars10
07 Jan 2003, 13:30
Cool idea Martin!!

/me klicks installed! :)

Martin64
07 Jan 2003, 14:16
Originally posted by TECK
Nice work, however there is a problem with your hack. You forgot to edit also the search.php file.
If I search your forums and display posts as results, it will show the stealth posts. :)

That's a good suggestion, I'll do my best to get it working asap. :)

alkatraz
07 Jan 2003, 14:19
Cool idea, thx!

Martin64
07 Jan 2003, 15:18
vBStealth 1.1 released.

This release includes the suggestion by TECK; it hides stealth users threads and posts when searching. If you already have vBStealth 1.0 installed, you just need to apply the changes to search.php as noted in the new instructions file.

N9ne
07 Jan 2003, 15:38
Does this affect forumhome?

It shows the last poster in the forum, and the time, will this hack also hide that kind of thing from forumhome?

Martin64
07 Jan 2003, 15:52
It only does that for forumdisplay.php currently, but I'll try to get it to do that for forumhome as well. :)

tHE DSS
07 Jan 2003, 16:32
Excellent!! Bloody Excellent!! Master Hack!!

I won't be installing any new hacks until vB3 though.

But this is a REALLY excellent idea! :cool:

N9ne
07 Jan 2003, 16:49
Martin64, would it be possible, when incorporating the stealth hack into forumhome, that you include the last thread title too? I use PPN's hack... [http://www.vbulletin.org/forum/showthread.php?s=&threadid=28561]

Martin64
07 Jan 2003, 19:04
Originally posted by N9ne
Martin64, would it be possible, when incorporating the stealth hack into forumhome, that you include the last thread title too? I use PPN's hack... [http://www.vbulletin.org/forum/showthread.php?s=&threadid=28561]

Yes, here's how to do it and it should work with PPN's hack. Apply these changes to newreply.php:

FIND:


// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET
replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE
forumid IN ($foruminfo[parentlist])");
}


REPLACE WITH:


// update forum stuff
if ($bbuserinfo['usergroupid'] != XX)
{
if ($visible==1) {
$DB_site->query("UPDATE forum SET
replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE
forumid IN ($foruminfo[parentlist])");
}
}


REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP.

ULTIMATESSJ
07 Jan 2003, 21:25
heh this hack is great, when the troublemakers on my board start getting annoying, i'll be sure to use this hack

Martin64
07 Jan 2003, 22:51
I did a small change to search.php, and therefore I have just updated the instructions (no new release) to include this. Earlier it was hiding threads started by stealth banned users for everyone, but now admins, mods and users in the stealth group are able to view the threads upon searching. Note that they will still not see threads started by other stealth banned users when searching, only when searching for their own username.

The changes to newreply.php above have also been included in the instructions.

N9ne
07 Jan 2003, 23:27
LoL Martin, you got a great idea with this Stealth...feel sorry for your members :D (the banned ones that is :D)

N9ne
07 Jan 2003, 23:27
LoL Martin, you got a great idea with this Stealth...feel sorry for your members :D (the banned ones that is :D)

SemperFidelis
08 Jan 2003, 03:31
This hack is great
/me Clicks install

Has any progress been made on the forum home side of things ?

N9ne
08 Jan 2003, 13:12
Originally posted by v-net
This hack is great
* v-net Clicks install

Has any progress been made on the forum home side of things ?

Look on page 2, Martin posted a modification to be made to newreply for forumhome.

Wait, that makes me think...what about newthread?

Martin: When a stealth user posts a new thread, it will still show on forumhome am I right? A fix for this? :D

Martin64
08 Jan 2003, 13:13
Originally posted by v-net
This hack is great
* v-net Clicks install

Has any progress been made on the forum home side of things ?

Yes, in the "Last Post" column for both forumhome and forumdisplay you will never see the name of a stealth banned member, as it skips updating the lastpost of the database (this is the changes you're doing to newreply.php) when a stealth banned user replies to a post. :rambo:

Martin64
08 Jan 2003, 13:21
Originally posted by N9ne


Look on page 2, Martin posted a modification to be made to newreply for forumhome.

Wait, that makes me think...what about newthread?

Martin: When a stealth user posts a new thread, it will still show on forumhome am I right? A fix for this? :D

Yes, I'll go make the fixes and post that here soon, mmmkay? :bunny:

Martin64
08 Jan 2003, 13:44
vBStealth 1.2 released.

CHANGELOG:

1.2: Small fixes to search.php and newreply.php. New file modified: newthread.php.

Vile
09 Jan 2003, 07:31
The whole idea in general sounds very cool.

Thanks for sharing, I'll be installing this :)

Talisman
09 Jan 2003, 07:41
Great hack. Thanks.

wooolF[RM]
09 Jan 2003, 13:41
just what I wanted! GREAT!

bluecat
09 Jan 2003, 16:26
Haven't installed it yet (but will later), but thank you, thank you, thank you! Excellent idea!

Martin64
09 Jan 2003, 18:03
Thanks. :)
I can't believe how good feedback I've got on this so far, it's great. :D

If you have any suggestions of what to do next, just let me know and I'll see if it can be done. :p

NuclioN
09 Jan 2003, 20:55
Great! Could you give also the code for newreply.php so that it doens't conflict with the store hack? I mean there are lot's of people who have this code there. ;)

Martin64
09 Jan 2003, 21:42
As requested, here's the instructions for installing vBStealth if you already have Lesane's Store hack installed, do these changes to newreply.php instead of the ones listed in my instructions for vBStealth 1.2. Note once again, you must have the store hack installed previously! As I don't have the store hack installed, I haven't tested if it works but it should. Please report back to me your results. :)

NuclioN
09 Jan 2003, 21:58
Tnx Martin, it seems to work. :)

Martin64
10 Jan 2003, 00:17
Sweet, I'll make sure to redirect any Store users to that post. :p

NuclioN
10 Jan 2003, 08:13
One of our moderators asked if a stealth banned user is logged out, does he see his own missing topics?

Martin64
10 Jan 2003, 11:00
A user who is logged out will not see posts by stealth banned users. We could make stealth posts visible to all logged out visitors, but not to stealth banned users only who are logged out.

NuclioN
10 Jan 2003, 16:20
Hm...is it an option to put the whole "Unregistered / Not Logged In" in the stealth ban usergroup, so nobody sees them if they logged in or logged out?

WetWired
10 Jan 2003, 19:35
Good idea. I will discuss the possibility of using this with the rest of the staff.

I see one fundemental flaw in this: What if you get a group of trouble makers?
(example IM convo:)
TM1: Hey man, read this: http://www.yourforums.com/forums/showthread.php?threadid=nnn he's gonna get all upset, it'll be so funny
TM2: It says invalid thread
TM1: Link works for me
TM2: Strange man, check this out: http://www.yourforums.com/forums/showthread.php?threadid=nnn
TM1: It doesn't work. :( WTF is going on here?
TM2: Maybe our accounts are broken or something
TM1: Yeah, better make new ones.

ULTIMATESSJ
11 Jan 2003, 00:11
lol wetwired does have a point, but it should stop some people who just register to cause trouble and nothing else

Merjawy
11 Jan 2003, 12:24
great hack , I installed it.. and one and the only mod who knows about it.. is about to pee in his pants hehehe he loves it and so do I...

but one banned user logged out and was browsing and that could alert him to the problem.. since someone asked I will not ask again about it

maybe the idea of adding all logged out to the ban group is a good one then again.. most my users log out till they feel like posting.. so they will see

confusing now.. maybe instead of the link is not a valid thread we make it say something else.. the poster chosen to not allow guests to view his post for example :) what ya think?


also.. this not a request but is it posible to show some posts of the banned user? or nothing at all?


Thanks for a great hack it saved me alot of answers that I didn't want .. why did you delete my post? why did you delete me? etc. etc.

Merjawy
11 Jan 2003, 12:28
Originally posted by NuclioN
Hm...is it an option to put the whole "Unregistered / Not Logged In" in the stealth ban usergroup, so nobody sees them if they logged in or logged out?


Thats not the point.. the point is he/she knows what he posted and it should be there but he/she doesn't see it when he/she logs out

so making all logged out stealth won't change nothing really

good try though

Merjawy
11 Jan 2003, 12:32
Originally posted by WetWired
Good idea. I will discuss the possibility of using this with the rest of the staff.

I see one fundemental flaw in this: What if you get a group of trouble makers?
(example IM convo:)
TM1: Hey man, read this: http://www.yourforums.com/forums/showthread.php?threadid=nnn he's gonna get all upset, it'll be so funny
TM2: It says invalid thread
TM1: Link works for me
TM2: Strange man, check this out: http://www.yourforums.com/forums/showthread.php?threadid=nnn
TM1: It doesn't work. :( WTF is going on here?
TM2: Maybe our accounts are broken or something
TM1: Yeah, better make new ones.



I am a little ahead of you :)

new members get to test drive the Stealth as they register till we know they are ok then we graduate them !!!!


cheers

Merjawy
11 Jan 2003, 12:37
Oh by the way.. sorry for the many posts


but I have a little problem


I am runing 2.2.8 and at the last step in search.php I couldn't find the requested line

$postids AND $searchthreadquery thread.threadid=post.threadid

so I changed whatever was to change before that and saved it

any idea why I don't have that? or would that effect anything about stealth or otherwise?

Martin64
11 Jan 2003, 12:48
Originally posted by NuclioN
Hm...is it an option to put the whole "Unregistered / Not Logged In" in the stealth ban usergroup, so nobody sees them if they logged in or logged out?

Unregistered/logged out users won't see threads/posts by stealth banned users.

Originally posted by WetWired
Good idea. I will discuss the possibility of using this with the rest of the staff.

I see one fundemental flaw in this: What if you get a group of trouble makers?
(example IM convo:)
TM1: Hey man, read this: http://www.yourforums.com/forums/showthread.php?threadid=nnn he's gonna get all upset, it'll be so funny
TM2: It says invalid thread
TM1: Link works for me
TM2: Strange man, check this out: http://www.yourforums.com/forums/showthread.php?threadid=nnn
TM1: It doesn't work. :( WTF is going on here?
TM2: Maybe our accounts are broken or something
TM1: Yeah, better make new ones.

Yes, that's a flaw but easy to solve when I come to think of it. Just skip doing the changes to showthread.php, as users can't find the threads by searching or through the forumdisplay anyway.

Originally posted by Merjawy
Oh by the way.. sorry for the many posts


but I have a little problem


I am runing 2.2.8 and at the last step in search.php I couldn't find the requested line

$postids AND $searchthreadquery thread.threadid=post.threadid

so I changed whatever was to change before that and saved it

any idea why I don't have that? or would that effect anything about stealth or otherwise?

On an unhacked search.php you'll find that line below the following:

LEFT JOIN icon AS posticon ON post.iconid=posticon.iconid
WHERE


I hope that helps. :)

Martin64
11 Jan 2003, 14:08
New version released: vBStealth 1.3

CHANGELOG:

1.3: Undid the changes to showthread.php, as it could lead to suspicion among stealth banned users if they communicate (thanks WetWired for the heads up). Also, I changed the code changes to newreply.php, so that it'll work if you have the Store Hack by Lesane installed.

Merjawy
11 Jan 2003, 15:57
thnx for the help , I will check it out



as for the new release 1.3 I don't think it made it budd.. it says 1.3 but when downloaded its still 1.2



Oops... hehehe you are ahead this time.. after I posted I went back and theres the new file :) thnx

Merjawy
11 Jan 2003, 19:36
oh by the way..

for thoes who use more than one style.. I think they should create the new template on all styles. don't they?

Martin64
12 Jan 2003, 11:29
It was probably cache pulling your leg, as I didn't change the attachment after you posted about it. :)

You need to create the new template on all styles.

Merjawy
15 Jan 2003, 00:10
yeah I did

but now I am facing yet another problem :(

I have Mod in two groups and so are the S.Mods

males and females

now male Mods and S Mods can see stealth howeve the females can't see the originals but they see any replyes from other mods

I checked all settings unde groups and all the same
I just copied Moderators to ModeratorsF all settings the same

unless there are files accosicated with them hmmmmm

I just thought of that
I have a file called moderator.php, need I to copy it to moderatorF.php? and do the same with mod.php?

thnx

Martin64
15 Jan 2003, 00:37
That shouldn't be hard. You just need to include that new mod group to some of the files you have made changes to.

Search for "6" in the vBStealth 1.3 instructions and you'll find which files to modify.

Erwin
15 Jan 2003, 11:26
Nice hack. Good job in incorporating all the features of "Secret Ban" and adding the new ones. :)

Martin64
15 Jan 2003, 12:40
Thanks Erwin. :D

GunsNetwork
15 Jan 2003, 18:11
This works absolutely fantastic!

thank You all for great job done.

Merjawy
15 Jan 2003, 18:16
Thanks Martin.. I will try that

AussieSat
20 Jan 2003, 22:50
Have installed due to one very annoying user and works well except:
Threads started by the Stealth Banned (SB) user are listed in forumdisplay with both "Thread Starter" and (if not replied to) "Last Post" credited to them.
I have had a number of members asking why they can see the thread links for posts that the SB user has started (and never been replied to) but there is nothing there when they click on them.
In the case of a thread started by the SB user before the ban was introduced, members are asking why the thread starters name is listed but apparently hasn't posted in the thread.

Is the way I describe the same as what others have found or have I missed a step in the install?

Martin64
21 Jan 2003, 13:00
Originally posted by AussieSat
Have installed due to one very annoying user and works well except:
Threads started by the Stealth Banned (SB) user are listed in forumdisplay with both "Thread Starter" and (if not replied to) "Last Post" credited to them.
I have had a number of members asking why they can see the thread links for posts that the SB user has started (and never been replied to) but there is nothing there when they click on them.
In the case of a thread started by the SB user before the ban was introduced, members are asking why the thread starters name is listed but apparently hasn't posted in the thread.

Is the way I describe the same as what others have found or have I missed a step in the install?

Go through the instructions once again, threads started by stealth banned users will not show up in forumdisplay except to admins, mods and the stealth banned user who posted it.

AussieSat
22 Jan 2003, 01:17
Thats what I thought - thanks Martin64, will do.

Tony DiMera
22 Jan 2003, 13:19
Sounds really good.

Martin64
22 Jan 2003, 13:38
Just to let you know, I'm working on a new version that changes how things are working quite a bit. I have tested it locally and will now run it on my real board to see how it's working out.

What's new?

- Stealth banned users will see eachother's posts, but noone else except admins and mods will.
- Threads and posts before the user was banned will show up, but threads and posts after the user was banned will be hidden to everyone but stealth banned users, admins and mods.

Martin64
22 Jan 2003, 22:33
vBStealth 2.0 released.

CHANGELOG:

2.0: Hack now uses timestamps: Threads and posts before the user was banned will show up, but threads and posts after the user was banned will be hidden to everyone but stealth banned users, admins and mods.

Martin64
22 Jan 2003, 23:01
Now what one of the moderators at my boards said earlier is actually true:

"Stealth banned users can now converse among themselves. :cool:

vBStealth user 1 - can anyone see my posts???!!

vBStealth user 2 - I can see it.

Moderator - Yeah, everything's fine.

vBStealth user 1 - Ok, I thought something was wrong.

*Moderator laughs"

:D :p

Mike Gaidin
23 Jan 2003, 02:53
Can guests see the posts of those that have been stealth banned?

Martin64
23 Jan 2003, 11:52
[important!]

You MUST stealth ban your users from the Mod CP, just changing usergroup in the Admin CP won't add the neccessary timestamp. The same goes for unbanning stealth banned users, you MUST do that from the Mod CP as well for the same reason.
If you have upgraded, you MUST put the users back to the registered group and then stealth ban them, or it won't add the neccessary timestamp.

Martin64
23 Jan 2003, 11:56
Originally posted by J-OST
Can guests see the posts of those that have been stealth banned?

Read my first post thoroughly, it explains how the hack works.

Martin64
23 Jan 2003, 14:58
OK, I've redone a few things. Guests are now able to see all stealth banned posts. This solves the problem of stealth banned users logging out and noticing something is fishy since their new posts doesn't show up. Check the attached pic to understand better how the hack works. :smoke:

N9ne
23 Jan 2003, 19:40
Hey Martin, I have vBStealth 1.3 installed and I was wondering, would you have upgrade instructions to 2.0? Reinstalling takes too long :(

Martin64
24 Jan 2003, 00:08
Originally posted by N9ne
Hey Martin, I have vBStealth 1.3 installed and I was wondering, would you have upgrade instructions to 2.0? Reinstalling takes too long :(

Yeah, something like this I suppose you could call upgrade instructions:

1. Put all your stealth banned users back in the registered group and take notes of who they are.
2. Run the query.
3. Do the changes to the following files: ADMIN/FUNCTIONS.PHP, MOD/INDEX.PHP, MOD/USER.PHP, FORUMDISPLAY.PHP, NEWREPLY.PHP, SEARCH.PHP. The other files haven't been changed since 1.3. The changes you're doing will be very similar to what you've done in vBStealth 1.3 so the code changes should not be hard to find.
4. Stealth ban your users from the Mod CP.

I'm afraid I can't do easier upgrade instructions than that.

For everyone who still haven't upgraded, 2.0 ownz 1.3 :banana: :p

over
25 Jan 2003, 16:21
nicely done :) however wont be using at the moment, not really got a need to :) atm prefer banned persons to show up as banned. got reason box on site for ban in their profile, so others know if break rules, (flaming only reason have banned peeps so far for...) woudl be nice though to see a hack that will remove a banned usergroup count from the total members count... (which this thread gave me idea of :D )

wooolF[RM]
02 Feb 2003, 17:24
/me clicks install :)

Hoth
05 Feb 2003, 01:49
Originally posted by Martin64
You MUST stealth ban your users from the Mod CP, just changing usergroup in the Admin CP won't add the neccessary timestamp.

Excuse my stupidity, but could anyone tell me where in the world this "Mod CP" is, if it's not the Admin CP?

Martin64
05 Feb 2003, 12:29
Mod CP -> http://www.yourdomain.com/forums/mod/index.php

Overgrow
05 Feb 2003, 13:12
Nice hack! I'd install but I already have most of these things integrated in a much sloppier way. I hope you release something similar for 3.0 that is as complete as this.

Martin64
05 Feb 2003, 13:20
Thanks mate, I'll answer that question when I get my hands on VB3 :D

subu1
11 Feb 2003, 21:26
oh i want to install this verry great hack, but if i change my funktions.php I have a error.

FIND:

eval("\$retval = \"".gettemplate("postbit")."\";");

REPLACE WITH:

if ($post[datestealthbanned] < $post[dateline]) {
if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
$post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==XX) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==1) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_banned")."\";");
}
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
}
return $retval;
}

REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP.



after i have this error

Parse error: parse error, unexpected '}' in /home/virtual/site7/fst/var/www/html/forums/admin/functions.php on line 364

Fatal error: Call to undefined function: getuserinfo() in /home/virtual/site7/fst/var/www/html/forums/admin/sessions.php on line 365

this my funktions.php

if ($post[datestealthbanned] < $post[dateline]) {
if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
$post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==XX) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==1) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_banned")."\";");
}
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
}
return $retval;
}
}
return $retval;
}

is return a doubel???

sorry for my eng.

subu1

Martin64
11 Feb 2003, 21:49
Ah yes, the return shouldn't be doubled. These are the correct instructions:

FIND:


eval("\$retval = \"".gettemplate("postbit")."\";");


REPLACE WITH:


if ($post[datestealthbanned] < $post[dateline]) {
if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
$post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==16) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']==1) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_banned")."\";");
}
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}


REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP.

subu1
12 Feb 2003, 18:22
it is very fantastic this Hack, i love this Hack, big thxx

but i have only questions. The User can view the modforum, i must forum access adjust seperat for the stealt banned User?

greetz subu1

oh oh my eng.

Martin64
12 Feb 2003, 19:35
I'm not sure what you mean...the user can view the "modforum". What's that?

subu1
12 Feb 2003, 20:03
oh excuse please, I meant stealt banned the User(my dummy) can moderators the forum to see and thats not normally. Is's a Forum for Moderators not for User.


greetz subu1

Martin64
12 Feb 2003, 20:20
I'm sorry, I still don't understand your question. :(

Perhaps if you read my first post again you could an answer to your question. Or you could try asking me again, I'm a little slow. :p

Link14716
13 Feb 2003, 01:38
I'm thinking that he means the stealth banned member can view the private forum(s) of the board.

You must deny their access by going to "Forum Permissions" in the Admin CP.

subu1
13 Feb 2003, 15:54
yeah, that was it. Thanks

greetz subu1


its my favorite Hack :-))))

subu1
16 Feb 2003, 12:13
hi Friends , i have a little bug.The User can see the Stealt banned Table in the Showgroups.php. Its not so good, what can i do?

i hope my eng. is ok :paranoid:

Martin64
17 Feb 2003, 11:21
That's an option when you create the new usergroup:

Add/Modify Usergroup -> Viewable on Show Groups? Set to "No".

subu1
17 Feb 2003, 13:55
thxx, thats was it, i'm verry stupid

greetz subu1

Boofo
20 Feb 2003, 11:16
This looks like a great hack. Is there a way to make it so you can stealth ban and unban (is that even a word?) from the Admin CP? I'd like to be able to do it from there also.

Martin64
21 Feb 2003, 13:55
Originally posted by Boofo
This looks like a great hack. Is there a way to make it so you can stealth ban and unban (is that even a word?) from the Admin CP? I'd like to be able to do it from there also.

Yeah, you'd have to change admin/user.php and admin/index.php but it shouldn't that be hard. Have a look at the changes for mod/user.php and mod/index.php and you'll see how to do it.

khat
26 Feb 2003, 14:04
Fantastic....

A couple of ideas though. You may want to work on a way to get the "Last Post by" field to show up as the user for the user. I tell you why: If a user realises that while he or she is stealth banned that they don't show up on the Last Post part then detection of a stealth ban will be very fast.
I was thinking that you could add another "lastpost/lastposter" field to the tables, and use that for the admins etc... But I know that would mean a handful of columns and that's not so great...

Another idea would be to add a flag on the posts table to record if the post was made from a user stealth banned at the time. This might also be useful if the user gets un-stealth banned, and all the posts they made during stealth banned status won't suddenly appear.

Martin64
26 Feb 2003, 22:11
Originally posted by khat
Fantastic....

A couple of ideas though. You may want to work on a way to get the "Last Post by" field to show up as the user for the user. I tell you why: If a user realises that while he or she is stealth banned that they don't show up on the Last Post part then detection of a stealth ban will be very fast.
I was thinking that you could add another "lastpost/lastposter" field to the tables, and use that for the admins etc... But I know that would mean a handful of columns and that's not so great...

Another idea would be to add a flag on the posts table to record if the post was made from a user stealth banned at the time. This might also be useful if the user gets un-stealth banned, and all the posts they made during stealth banned status won't suddenly appear.

Thanks for the suggestion. :) I haven't noticed any stealth banned user at my board discovering this "bug" though.

Anyway, I won't release any new versions of my hacks because of two reasons: 1) vB3 is just around the corner. 2) lack of time.

khat
27 Feb 2003, 09:17
mmm, well I banned two as soon as I installed the hack and within hours they are both complaining that their names aren't on the Last Post by part.

I'll mod it in myself. Thanks :)

Mike Gaidin
02 Mar 2003, 16:17
Does this work with Erwin's search thread hack?

I'm installing Erwin's hack after I've installed this one, but I just want to make sure the stealth feature is still in effect if people search the thread.

Thanks!

feldmaresciallo
06 Mar 2003, 14:25
Hmmm i don't find how to put the option also in admin cp...
Could someone help me?

jibious
27 Mar 2003, 05:11
a few things to think about fixing once you do start working on it again:

1) polls still show up as last post
2) user can click on 'Last Post' and still get to poll - no invalid link
3) something else, but i cant remember ...i'll post in a min when my memory decides to come back

subu1
27 Mar 2003, 05:34
03-06-03 at 03:25 PM feldmaresciallo said this in Post #102 (http://www.vbulletin.org/forum/showthread.php?postid=361945#post361945)
Hmmm i don't find how to put the option also in admin cp...
Could someone help me?

the option is in the mod.php :knockedout:

greetz subu1

Mathiau
03 Apr 2003, 05:27
looks very nice! shall try this out!

voclain
28 Apr 2003, 18:05
Did I do something wrong???

When I tested this HACK...I log on as a STELT Banned user..post something...then I can see what is written...the TITLE of the thread show up, but what I wrote when I was logged on as the STELTH does not????

EVERTHING else...show up properly (admins, mods)..and not show up (registered, guest)...

HOWEVER...one more small problem.........

I have PHOTO POST PHP....now I updated the usergroups, and it reccognizes the STETH BAN Group, but it does not keep them out???

ONLY PAYING customers get to see in the PHOTO POST area,,,,but when someone is on BAN..it allows them to see???

ANY SUGGESTIONS???

Kirk

voclain
28 Apr 2003, 18:06
OH I almost forgot....VB 2.2.6
http://www.pro4um.com

Kirk

solent
08 May 2003, 05:48
perfect. it works like a charm and i really love this hack. it can be really really helpful a lot of times.

solent
08 May 2003, 06:11
i need some help here. well the hack works perfect but i just notice that i am using vbportal hack which has an Active Topic Block on the Home page. http://212.31.97.197/ you can see the vbstealth test thread over there. here is the php file that creates that block.


<?php
$blocks_modules[activetopics] = array(
'func_display' => 'blocks_activetopics_block',
'text_type' => 'activetopics',
'text_type_long' => 'Active Topics',
'text_content' => 'Active Topics',
'support_nukecode' => false,
'allow_create' => false,
'allow_delete' => false,
'form_url' => false,
'form_content' => false,
'form_refresh' => false,
'show_preview' => true
);

function blocks_activetopics_block($row) {
global $DB_site,$bbuserinfo,$dateformat,$timeformat,$session,$bbdir,$excatforums,$use_f orumpermissions,$sbnum_active,$sbtitlelen;
if ($excatforums == "" or $excatforums <= "0") {
$whereatsql = "WHERE visible AND open!=10";
} else {
$whereatsql = "WHERE visible=1 AND open!=10 AND thread.forumid NOT IN ($excatforums)";
}
$counter =0;
$result = $DB_site->query("select threadid,forumid,title,postusername,lastposter,lastpost from thread $whereatsql order by lastpost desc limit $sbnum_active");
while ($sbthread=$DB_site->fetch_array($result)) {
if ($counter == 0) {
$block_content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">";
}
if ($use_forumpermissions){
$atperms=getpermissions(intval($sbthread['forumid']),$bbuserinfo['userid']);
}else{
$atperms['canview']=1;
}
if ($atperms['canview']) {
$startedby=$sbthread['postusername'];
$lastposter=$sbthread['lastposter'];
$sbthreadid=$sbthread['threadid'];
$sbpostid=$thread_array['postid'];
$atpostdate=vbdate($dateformat,$sbthread['lastpost']);
$atposttime=vbdate($timeformat,$sbthread['lastpost']);
$sbtitle = substr($sbthread["title"],0,$sbtitlelen);
if (strlen($sbtitle) == $sbtitlelen) {
$sbtitle =substr ( $sbtitle, 0, strrpos($sbtitle," "));
}
if (($counter++ % 2) != 0) {
$vbp_atbc="{firstaltcolor}";
} else {
$vbp_atbc="{secondaltcolor}";
}
eval("\$block_content .= \"".gettemplate('P_activetopics_sidebox')."\";");
}
}
if ($counter > 0) {
$block_content .= "</table>";
}
unset($result);
return $block_content;
}
?>


any ideas how i can modify it and not show the vbstealth threads.

djroketboy
01 Jun 2003, 17:08
ok i thought everything was working until today... i keep getting a DB error when doing a search... i've double checked all my files... even went as far as re-doing the hack.... still get the error...

Invalid SQL: SELECT postid,wordid FROM searchindex WHERE wordid IN(0,'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17' ,'18','19','20','21'.............
mysql error: Got a packet bigger than 'max_allowed_packet'

mysql error number: 1153

GsxrTony
28 Jul 2003, 23:39
Hey I've got a quick question before I go through the install. When and if I decide to unban someone. does the extra text "this user is banned" disappear or will that now be visable to everyone.

Frzzy
01 Aug 2003, 21:55
me too, before install this... does that text visible to banned user? I guest not, just double check...

Martin64
01 Aug 2003, 22:21
You mean the user title? The user title does not change, as the user is not banned through a standard banning system, but instead through file hacks.

Jugglor
15 Aug 2003, 22:16
Thank you for this awesome hack Martin64!

Stealth posts are perfectly hidden except the stealth's "Last post by" name in forumhome and forumdisplay remain visible to everyone including registered members.

I have read this thread and checked all files and they seem ok? My "registered" user group is 2 and I am running vB 2.2.9...any suggestions other than upgrading vB :)

Jugglor
16 Aug 2003, 00:10
Sorry guess I should revert back to vB 2.2.8 unless this is not my problem ;)

subu1
06 Sep 2003, 12:42
hi Friends i have a big Problem :cry:

...each Time i have a Problem with a registered User , if I kick everybody User from my Board he is change in stealt banned User ????? and not in Guest.

and here is my Header Problem

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 117

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 121

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 132

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 135

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 161


its verry important for me, please help me :)

MaDCaT75
09 Sep 2003, 06:44
How can I make it so only stealth banned users and guests see stealth banned users' posts?

MaDCaT75
12 Sep 2003, 03:58
uh.... someone?

dbode
17 Oct 2003, 04:41
Hi, someone loggt in into my forums this night and posted something out of our internal forums, which are not viewable to the public into other forums.

He claimed that he could do that because of AntiStealth, the thread dealed about this hack and not to tell the users about : The above message was part of a discussion in the internal Forum and was written by dbode the forum administrator i guess.
Many thx to "AntiStealth" who gaved me this precious information which i am sure everybody wants 2 be informed about.
So IS there a security risk with this thread ?

dbode
22 Oct 2003, 06:16
It seems like that was my fault, I set the permissions wrong :-/

--> There is some other thing witch might be cool : The post count of the stealth banned user remains at the value when you apply the stealth mod on him. So I think this might be something where the stealth banned user might see, that hes stealth banned.

Sue
04 Nov 2003, 13:21
Is there a way to make it so that you can put a moderator into this stealth group and have them not be able to see that they have been stealth banned (along with all other mods and super mods)?

jdennis
06 Dec 2003, 23:52
I'm having a problem... occasionally (1 out of 5?) new members initial post is showing that they are stealth banned. Possibly more than their initial post, but I've jumped on the problem pretty quickly. What is strange is that the users are not stealth banned - if we try and un-ban then, it says you cannot unban someone who isn't banned. The work-around is to stealth ban, then unban them, though the mod cp. I'd really like to get this resolved, as it's a pain in the rear.