View Full Version : vBStealth 2.0
Martin64
01-06-2003, 10:00 PM
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 (https://vborg.vbsupport.ru/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
this sounds good, i'll do it tomorrow maybe. Good job.
Martin64
01-07-2003, 12:54 AM
There is now, sorry about that. I noticed a post minute bug. :p
Logik
01-07-2003, 12:58 AM
No file. But nice sounding hack.
Martin64
01-07-2003, 01:03 AM
Screenshot of new banning option in Mod CP.
Martin64
01-07-2003, 01:08 AM
After stealth banning a user in Mod CP.
Martin64
01-07-2003, 01:18 AM
Lastpost when logged in as admin (post visible)
Martin64
01-07-2003, 01:19 AM
Lastpost when logged out (post hidden)
Martin64
01-07-2003, 01:21 AM
When trying to view a thread started by a stealth banned user and logged out
Martin64
01-07-2003, 01:26 AM
Same thread as above, but when logged in as admin. I wonder why noone has replied... :p
Schorsch
01-07-2003, 02:13 AM
very nice, thank you!
TheVoidz
01-07-2003, 02:44 AM
Been waiting for a rewrite of this hack to encompass all the stuff you have listed.. thanx.
/me installs
NuclioN
01-07-2003, 05:21 AM
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
01-07-2003, 08:50 AM
Ohhh...missed that one. Thanks :)
And thanks everyone for the feedback. :p
Frank
01-07-2003, 10:58 AM
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
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
01-07-2003, 12:30 PM
Cool idea Martin!!
* Kars10 klicks installed! :)
Martin64
01-07-2003, 01:16 PM
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
01-07-2003, 01:19 PM
Cool idea, thx!
Martin64
01-07-2003, 02:18 PM
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.
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
01-07-2003, 02:52 PM
It only does that for forumdisplay.php currently, but I'll try to get it to do that for forumhome as well. :)
tHE DSS
01-07-2003, 03:32 PM
Excellent!! Bloody Excellent!! Master Hack!!
I won't be installing any new hacks until vB3 though.
But this is a REALLY excellent idea! :cool:
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... [https://vborg.vbsupport.ru/showthread.php?s=&threadid=28561]
Martin64
01-07-2003, 06:04 PM
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... [https://vborg.vbsupport.ru/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
01-07-2003, 08:25 PM
heh this hack is great, when the troublemakers on my board start getting annoying, i'll be sure to use this hack
Martin64
01-07-2003, 09:51 PM
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.
LoL Martin, you got a great idea with this Stealth...feel sorry for your members :D (the banned ones that is :D)
LoL Martin, you got a great idea with this Stealth...feel sorry for your members :D (the banned ones that is :D)
SemperFidelis
01-08-2003, 02:31 AM
This hack is great
/me Clicks install
Has any progress been made on the forum home side of things ?
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
01-08-2003, 12:13 PM
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
01-08-2003, 12:21 PM
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
01-08-2003, 12:44 PM
vBStealth 1.2 released.
CHANGELOG:
1.2: Small fixes to search.php and newreply.php. New file modified: newthread.php.
The whole idea in general sounds very cool.
Thanks for sharing, I'll be installing this :)
Talisman
01-09-2003, 06:41 AM
Great hack. Thanks.
wooolF[RM]
01-09-2003, 12:41 PM
just what I wanted! GREAT!
bluecat
01-09-2003, 03:26 PM
Haven't installed it yet (but will later), but thank you, thank you, thank you! Excellent idea!
Martin64
01-09-2003, 05:03 PM
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
01-09-2003, 07:55 PM
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
01-09-2003, 08:42 PM
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
01-09-2003, 08:58 PM
Tnx Martin, it seems to work. :)
Martin64
01-09-2003, 11:17 PM
Sweet, I'll make sure to redirect any Store users to that post. :p
NuclioN
01-10-2003, 07:13 AM
One of our moderators asked if a stealth banned user is logged out, does he see his own missing topics?
Martin64
01-10-2003, 10:00 AM
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
01-10-2003, 03:20 PM
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
01-10-2003, 06:35 PM
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
01-10-2003, 11:11 PM
lol wetwired does have a point, but it should stop some people who just register to cause trouble and nothing else
Merjawy
01-11-2003, 11:24 AM
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
01-11-2003, 11:28 AM
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
01-11-2003, 11:32 AM
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
01-11-2003, 11:37 AM
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
01-11-2003, 11:48 AM
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
01-11-2003, 01:08 PM
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
01-11-2003, 02:57 PM
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
01-11-2003, 06:36 PM
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
01-12-2003, 10:29 AM
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
01-14-2003, 11:10 PM
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
01-14-2003, 11:37 PM
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
01-15-2003, 10:26 AM
Nice hack. Good job in incorporating all the features of "Secret Ban" and adding the new ones. :)
Martin64
01-15-2003, 11:40 AM
Thanks Erwin. :D
GunsNetwork
01-15-2003, 05:11 PM
This works absolutely fantastic!
thank You all for great job done.
Merjawy
01-15-2003, 05:16 PM
Thanks Martin.. I will try that
AussieSat
01-20-2003, 09:50 PM
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
01-21-2003, 12:00 PM
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
01-22-2003, 12:17 AM
Thats what I thought - thanks Martin64, will do.
Tony DiMera
01-22-2003, 12:19 PM
Sounds really good.
Martin64
01-22-2003, 12:38 PM
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
01-22-2003, 09:33 PM
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
01-22-2003, 10:01 PM
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
01-23-2003, 01:53 AM
Can guests see the posts of those that have been stealth banned?
Martin64
01-23-2003, 10:52 AM
[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
01-23-2003, 10:56 AM
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
01-23-2003, 01:58 PM
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:
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
01-23-2003, 11:08 PM
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
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-02-2003, 04:24 PM
]* wooolF[RM] clicks install :)
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
02-05-2003, 11:29 AM
Mod CP -> http://www.yourdomain.com/forums/mod/index.php
Overgrow
02-05-2003, 12:12 PM
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
02-05-2003, 12:20 PM
Thanks mate, I'll answer that question when I get my hands on VB3 :D
subu1
02-11-2003, 08:26 PM
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> <smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br> <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> <smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br> <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
02-11-2003, 08:49 PM
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> <smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br> <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
02-12-2003, 05:22 PM
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
02-12-2003, 06:35 PM
I'm not sure what you mean...the user can view the "modforum". What's that?
subu1
02-12-2003, 07:03 PM
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
02-12-2003, 07:20 PM
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
02-13-2003, 12:38 AM
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
02-13-2003, 02:54 PM
yeah, that was it. Thanks
greetz subu1
its my favorite Hack :-))))
subu1
02-16-2003, 11:13 AM
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
02-17-2003, 10:21 AM
That's an option when you create the new usergroup:
Add/Modify Usergroup -> Viewable on Show Groups? Set to "No".
subu1
02-17-2003, 12:55 PM
thxx, thats was it, i'm verry stupid
greetz subu1
Boofo
02-20-2003, 10:16 AM
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
02-21-2003, 12:55 PM
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.
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
02-26-2003, 09:11 PM
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.
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
03-02-2003, 03:17 PM
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
03-06-2003, 01:25 PM
Hmmm i don't find how to put the option also in admin cp...
Could someone help me?
jibious
03-27-2003, 04:11 AM
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
03-27-2003, 04:34 AM
03-06-03 at 03:25 PM feldmaresciallo said this in Post #102 (https://vborg.vbsupport.ru/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
04-03-2003, 04:27 AM
looks very nice! shall try this out!
voclain
04-28-2003, 05:05 PM
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
04-28-2003, 05:06 PM
OH I almost forgot....VB 2.2.6
http://www.pro4um.com
Kirk
solent
05-08-2003, 04:48 AM
perfect. it works like a charm and i really love this hack. it can be really really helpful a lot of times.
solent
05-08-2003, 05:11 AM
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,$sess ion,$bbdir,$excatforums,$use_forumpermissions,$sbn um_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,las tpost 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
06-01-2003, 04:08 PM
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
07-28-2003, 10:39 PM
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
08-01-2003, 08:55 PM
me too, before install this... does that text visible to banned user? I guest not, just double check...
Martin64
08-01-2003, 09:21 PM
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
08-15-2003, 09:16 PM
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
08-15-2003, 11:10 PM
Sorry guess I should revert back to vB 2.2.8 unless this is not my problem ;)
subu1
09-06-2003, 11:42 AM
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-09-2003, 05:44 AM
How can I make it so only stealth banned users and guests see stealth banned users' posts?
MaDCaT75
09-12-2003, 02:58 AM
uh.... someone?
dbode
10-17-2003, 03:41 AM
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
10-22-2003, 05:16 AM
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 he´s stealth banned.
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
12-06-2003, 10:52 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.