vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBStealth 2.0 (https://vborg.vbsupport.ru/showthread.php?t=47453)

Martin64 01-06-2003 10:00 PM

vBStealth 2.0
 
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/showthrea...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 01-07-2003 12:39 AM

this sounds good, i'll do it tomorrow maybe. Good job.

TECK 01-07-2003 12:44 AM

No text file. :)

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_invalid id")."\");");
}

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

N9ne 01-07-2003 11:07 AM

Nice hack, good work!

TECK 01-07-2003 11:58 AM

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!!

[high]* Kars10 klicks installed! :)[/high]

Martin64 01-07-2003 01:16 PM

Quote:

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.

N9ne 01-07-2003 02:38 PM

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:

N9ne 01-07-2003 03:49 PM

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/showthrea...threadid=28561]

Martin64 01-07-2003 06:04 PM

Quote:

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/showthrea...threadid=28561]
Yes, here's how to do it and it should work with PPN's hack. Apply these changes to newreply.php:

FIND:

Code:

// 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:

Code:

// 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.

N9ne 01-07-2003 10:27 PM

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

N9ne 01-07-2003 10:27 PM

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 ?

N9ne 01-08-2003 12:12 PM

Quote:

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

Quote:

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

Quote:

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.

Vile 01-09-2003 06:31 AM

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!


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete