View Full Version : NUKE posts [FINAL RELEASE]
The Keeper
04-01-2002, 10:00 PM
This hack gives moderators and administrators the ability to disable a post, rather than delete it.
A small asterisk is added at the side of each post. If it is clicked by a moderator, a window will flicker up. The next time the thread is viewed the post will simply be replaced with the word "Nuked", indicating that a moderator has disabled it. Such a feature you may have seen on smaller non-vbulletin forums.
Moderators still have the option to see what the post was by clicking the asterisk on a nuked post. They may also restore the post (which isn't possible with deleted posts).
http://www.gaters.net/showthread.php?s=&threadid=1168
The above link is an example of a nuked post. Notice the asterisks down the bottom of threads, those are the nukers.
There are many practical benefits to nuking a post instead of deleting it. It's fast, it's reversable, it gives users the knowledge that content was removed, and admins may still review the disabled content.
Installation:
You need vbHacker (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36378&perpage=15&display=&pagenumber=1) to install this.
Just upload the attatched data file to the /admin directory and run vbHacker to install it.
(The hack works by adding a new attribute to each post in the database which determines whether the post is nuked or not. If it is, the post is displayed through a seperate template, much like posts of ignored people.)
The Keeper
04-02-2002, 06:04 AM
There seems to be some trouble with the vbhacker version of this hack.
Attatched are the instructions for a manual installation.
(It requires running an sql query)
If you've got a question, or problem, please post it in this thread.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/valkyrec/public_html/forums/showthread.php on line 28
Parse error: parse error in /home/valkyrec/public_html/forums/showthread.php on line 48
And everytime I try to reinstall the hack it adds another '*', so far I've got 3 of them. I'll edit them out later. I'd really like this hack, but I can't get it to work.
69-FLy-gUy
04-02-2002, 08:23 AM
the reason you have more *'s everytime you reinstall is because it is adding the query again and again.....
69-FLy-gUy
04-02-2002, 08:24 AM
and i just got the same error.. are you running vb 2.2.5???
69-FLy-gUy
04-02-2002, 08:31 AM
To get rid of this-> Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/valkyrec/public_html/forums/showthread.php on line 28
go to that line and where it says:
if ($action==/"showdisabled\") {
replace that with
if ($action=="showdisabled\") {
and it will work.. i am trying to figure out the parse error rioght now.
The Keeper
04-02-2002, 08:50 AM
2.2.5? wtf!!
Hey is this problem you guys are having something I've done?
vbhacker seems to have put in a lot of slashes everywhere in the code.
69-FLy-gUy
04-02-2002, 08:52 AM
yeah... i noticed a lot of slashes.....
I am not sure what the problem is... The Keeper.. go to install it with vbhacker, but select "get text file"
let me know if that is the right code?
The Keeper
04-02-2002, 09:00 AM
Yeah that's what I did to see all those slashes. Some of the file replacements have been slashified, others haven't.
69-FLy-gUy
04-02-2002, 09:08 AM
hmmmm... do you have the orig file you could post or send?
The Keeper
04-02-2002, 09:22 AM
<a href="https://vborg.vbsupport.ru/attachment.php?s=&postid=235530" target="_blank">https://vborg.vbsupport.ru/attac...&postid=235530</a>
69-FLy-gUy
04-02-2002, 09:23 AM
Thanks i will try it now and let you know if it works.
69-FLy-gUy
04-02-2002, 09:26 AM
one itty bitty problem..
i get a 404 error..
this is what it is trying to point to...
http://www.xxxxxxxx.com/"javascript:
The Keeper
04-02-2002, 09:28 AM
Works for me, try the link in the second post of this thread.
69-FLy-gUy
04-02-2002, 09:29 AM
stupid me.. it works now. lol thank you
69-FLy-gUy
04-02-2002, 09:40 AM
Hmm.. one problem though... when i click the asterix.. nothing happens. i have tried logging in under another uiser to view it.. but nothing happens...
i have tried reinstalling it.. but still nothing.. any ideas.
The Keeper
04-02-2002, 09:44 AM
The code in functions.php will actually do the hiding of the post. Please hit your 'reply' button, and see if the post appears Nuked in the reply page.
Also did you run the query properly? And know that there is that extra nuked column there?
btw what's your forum url.
69-FLy-gUy
04-02-2002, 09:55 AM
i will send you a PM.....:)
MrLister
04-02-2002, 01:16 PM
69-FLy-gUy: How come all your posts come in pairs. When you post once there's another one right below it. Some even come in 4's.
aidler
05-15-2002, 01:01 AM
Ok I give up. It's not working. Somewhere in this line
<a href="javascript: window.open('postings.php?s=$session[sessionhash]&action=nuke&postid=$post[postid]'); void('');">*</a>
must be an error. Internetexplorer gives me an "syntax wrong" error each time i click on the asterix and nothing happens. :disappointed:
aidler
05-15-2002, 11:06 AM
Problem solved.
The differenz between void(" ) and void('' ) ist realy difficult to spot in your NukeDocumentation.rtf. It took me a while to figure that out. I should add that I have absolut no experience with javascript.
Thanks anyway....
ixian
07-03-2002, 06:21 AM
Looks like a nice hack - was the vbhacker version ever fixed?
Flash Trizo
07-15-2002, 04:04 PM
is this working in 2.2.6?
how would you make it say who it was nuked by?
marc49
07-20-2002, 01:24 AM
how do you run a query? i'm a beginner and need serious help.
blah
click the link above that box :)
Leo[GR]
07-31-2002, 11:24 AM
]Great hack but I have a strange error. It works fine for me, I am the admin, but it doesn't work for my moderators. They get a "You don not have permission to access this page" error if they try to nuke a post. What I can do about it ? Many thanks. :)
Reflex
07-31-2002, 03:41 PM
Leo - replace any instances of:
if (!ismoderator($threadinfo[forumid],"candeleteposts")) {
in this hack with:
if (!ismoderator()) {
Otherwise, only mods of the forum the post resides in will be able to use the hack
:)
Reflex
07-31-2002, 04:11 PM
Oh, i forgot - thanks for the great hack by the way! It works like a charm :)
Leo[GR]
07-31-2002, 09:02 PM
]Thanks Reflex, it works now :D
marc49
08-05-2002, 04:06 PM
to make sure I get them all, how many instances of
if (!ismoderator($threadinfo[forumid],"candeleteposts")) {
are there??
blackout
09-10-2002, 01:33 PM
Updated this hack just alittle, for 1 i fixed the installation problems you people seem to be having due to \'s
Also added *NUKED BY <Nuker Username>*
EDIT: corrected a problem, the content when you view the nuked thread is now formatted, not just raw database output.
EDIT EDIT: made it when you click the Nuke '*' it reloads the page so you can see it nuked. Same when you Restore the post it reloads the main thread so you can see it unnuked.
The Keeper
09-17-2002, 10:49 AM
a problem, the content when you view the nuked thread is now formatted, not just raw database output.
That wasn't a problem. It was done on purpose because the post might have been nuked because the code was misused, or you don't want the image to load if it was offensive etc...
made it when you click the Nuke '*' it reloads the page so you can see it nuked.
That was also done on purpose because often you want to nuke lots of posts in a thread, and having it reload each time is annoying :P
But thanks for keeping this hack alive. I still use it for sure, it's proved to be very handy for my mods.
blackout
09-17-2002, 12:08 PM
np man
i just suited this hack to my likings n posted for other ppls :D
also made it so it says "*NUKED BY <Username>*" :D
The Keeper
09-18-2002, 12:41 AM
Sweet, good job
The Keeper
09-23-2002, 12:38 PM
just wondering, does anyone have this hack working with 2.2.7 ? because it just stopped working when i upgraded my board with araxis merge
I will fix it tomorrow
Any news "The Keeper"? I would like to run this on 2.2.8...not sure if it works.
MartynJ
12-25-2002, 07:02 PM
I have it working on 2.2.9
EDIT: Here's a fix for this hack that prevents nuked posts showing up in searches. Hope The Keeper doesn't mind me posting this here.
Sebastian
12-25-2002, 07:11 PM
cool, is it possible to hide the username of the person that had their post 'nuked' ?
MartynJ
12-25-2002, 07:26 PM
Originally posted by Sebastian
cool, is it possible to hide the username of the person that had their post 'nuked' ? In what manner? In the postbit within showthread.php?
Sebastian
12-25-2002, 07:29 PM
yeah, showthread, say i nuke a post by a member called "sam" i don't want other members to know that "sam" had a post nuked.
MartynJ
12-25-2002, 07:44 PM
Should be fairly simple, gimme a sec and I'll look into it. :)
EDIT:
Ok, got it. Replace your postnuked template with this:
This will also leave the info intact so mods etc can see who the post was by.
Sebastian
12-25-2002, 09:29 PM
well, i installed this hack and i am getting this:
Parse error: parse error, unexpected T_STRING in /home/forums/dev/showthread.php on line 42
i am running vb229, some have said this hack works for 229 but i am getting errors.
MartynJ
12-25-2002, 10:02 PM
Please attach your showthread.php and I'll take a look. These kind of errors are usually solved dead easy. :)
Sebastian
12-25-2002, 10:39 PM
Originally posted by MartynJ
Please attach your showthread.php and I'll take a look. These kind of errors are usually solved dead easy. :)
can't post full files .. board rules. PM?
MartynJ
12-26-2002, 12:00 PM
Oh yeah, oops, I'm an idiot. I just thought those without licences couldn't download. Anyway, yeah, you can email me or PM me about it. If you email me though, use the link from the bottom of my forums, I think the one for this site is out of date.
Sebastian
12-28-2002, 10:47 PM
MartynJ: I got it to work, not sure what it was.. probably a typo..
only problem is when you post a reply you can see the person that had their post nuked in the "review thread" at the bottom, possible to do it like in the postbit?
look at the image.
MartynJ
12-28-2002, 11:39 PM
Oh, those "deleted by moderator" posts are nuked ones I'm assuming?
Sebastian
12-28-2002, 11:51 PM
yep, i changed it from "nuked" to "deleted.." I added that hack you made so it doesn't show the username in postbit when you nuke a post, but when you reply to the thread you can see the name of the person in the "Topic Review (Newest First)" section lol. workaround?
MartynJ
12-28-2002, 11:59 PM
Here's the fix.
Sebastian
12-29-2002, 01:53 AM
it's missing an extra } before elseif
should be:
} elseif ($post[nuked]) {
$username='Some petty foo';
$reviewmessage = '<i>deleted by moderator</i>';
}
works great, thanks :)
blackout
12-29-2002, 07:42 PM
what i done
in template 'postnuke', changed NUKED to: -
*NUKED BY $nukerinfo[username]*
then
if ($post[nuked]!='0') {
$nukerinfo = getuserinfo($post[nuked]);
eval("\$retval = \"".gettemplate("postnuked")."\";");
} el......
you have to change the above if to "!='0'" for the nuke to work cause you then change 'nuked' in the db to the users member id.
find '//do nuking' and add
//do nuking
$nuker = $bbuserinfo[userid];
$DB_site->query("UPDATE post SET nuked ='$nuker' WHERE postid ='$postid'");
find '//do restore' and add
//do restore
$nuker = $bbuserinfo[userid];
$DB_site->query("UPDATE post SET nuked ='$nuker' WHERE postid ='$postid'");
thats all i done and works fine
check http://www.thebunker.com.au/forum/
Guichi
01-11-2003, 11:43 AM
Originally posted by MartynJ
I have it working on 2.2.9
EDIT: Here's a fix for this hack that prevents nuked posts showing up in searches. Hope The Keeper doesn't mind me posting this here.
did you make any changes to it? i couldnt get it running at all. :cry:
cnczone
03-19-2003, 01:35 AM
Does it work with version 2.3.0?
Christoff
04-16-2003, 06:11 PM
Yes it does but you'l have to change some little things in code...sorry but i don't remember which :P but if such n00b as me could find them you will do it too.
Frozen Dreams
05-01-2003, 05:12 PM
took me a while but works now
nice hack indeed :)
* Frozen Dreams clicks install
InnerSelf
06-01-2003, 08:57 PM
works like a charm
This post was nuked 1x by Shaolin because: right between you eyes
but still got a question
i want only the first post nuked and not all, anyone got the solution?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.