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)

Sebastian 12-29-2002 01:53 AM

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

blackout 12-29-2002 07:42 PM

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/

Guichi 01-11-2003 11:43 AM

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:

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

[high]* Frozen Dreams clicks install[/high]

InnerSelf 06-01-2003 08:57 PM

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?


All times are GMT. The time now is 01: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.01025 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_php_printable
  • (1)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
  • (7)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