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

Quote:

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:

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:16 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.01072 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)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
  • (17)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