Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
NUKE posts [FINAL RELEASE] Details »»
NUKE posts [FINAL RELEASE]
Version: 1.00, by The Keeper The Keeper is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-01-2002 Last Update: Never Installs: 29
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 12-29-2002, 01:53 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's missing an extra } before elseif

should be:

Code:
} elseif ($post[nuked]) {
$username='Some petty foo';
$reviewmessage = '<i>deleted by moderator</i>';
}
works great, thanks
Reply With Quote
  #53  
Old 12-29-2002, 07:42 PM
blackout blackout is offline
 
Join Date: Nov 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what i done

in template 'postnuke', changed NUKED to: -
PHP Code:
*NUKED BY $nukerinfo[username]* 
then
PHP Code:
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
PHP Code:
 //do nuking
  
$nuker $bbuserinfo[userid]; 
  
$DB_site->query("UPDATE post SET nuked ='$nuker' WHERE postid ='$postid'"); 
find '//do restore' and add
PHP Code:
 //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/
Reply With Quote
  #54  
Old 01-11-2003, 11:43 AM
Guichi's Avatar
Guichi Guichi is offline
 
Join Date: Jan 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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:
Reply With Quote
  #55  
Old 03-19-2003, 01:35 AM
cnczone cnczone is offline
 
Join Date: Mar 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work with version 2.3.0?
Reply With Quote
  #56  
Old 04-16-2003, 06:11 PM
Christoff's Avatar
Christoff Christoff is offline
 
Join Date: May 2002
Location: Poland
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #57  
Old 05-01-2003, 05:12 PM
Frozen Dreams's Avatar
Frozen Dreams Frozen Dreams is offline
 
Join Date: Apr 2003
Location: Germany
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

took me a while but works now
nice hack indeed

[high]* Frozen Dreams clicks install[/high]
Reply With Quote
  #58  
Old 06-01-2003, 08:57 PM
InnerSelf InnerSelf is offline
 
Join Date: Jun 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works like a charm
Code:
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04451 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete