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)
-   -   NUKE posts [FINAL RELEASE] (https://vborg.vbsupport.ru/showthread.php?t=36888)

The Keeper 04-01-2002 10:00 PM

NUKE posts [FINAL RELEASE]
 
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 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.

Dade 04-02-2002 07:59 AM

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

Quote:

&nbsp;<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?

TaP 07-15-2002 04:25 PM

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.

Brad 07-20-2002 08:46 AM

[sql]blah[/sql]


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

Quote:

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

Quote:

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

N9ne 10-12-2002 10:32 PM

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

Quote:

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?


All times are GMT. The time now is 02:46 AM.

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.01347 seconds
  • Memory Usage 1,808KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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