vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatic thread move when a user deletes a thread *Recycle Bin* (https://vborg.vbsupport.ru/showthread.php?t=36107)

SpeedStreet 09-06-2002 03:29 PM

that would be awesome, thanks g-force

Trident 09-07-2002 08:13 PM

it is not work on 2.2.6 !

it get Parse error in postings.php on line 875 !!

any modify ?

good luke g-force2k2 :)

Neo 09-07-2002 09:33 PM

Quote:

Originally posted by g-force2k2
right i think i got this...

*adds to the list to do... perphaps i will make / release this hack tonight... sounds easy enough ;) regards...

g-force2k2


Also thsi feature is with VB3 T_T;; but if you want you can use the code I already posted in the begining of the thread I am busy working on VB3D =P

Meirion 01-07-2004 02:36 PM

Just to let everyone know, I've added this to a 2.3.2 board without any problems (so far)

Where it says
Quote:

##### now in postings.php find ( around line 121 ) #####

$firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
if ($bbuserinfo[userid]!=$firstpostinfo[userid]) {
show_nopermission();
}
}
}
}

### and place this under it ###

if ($threadinfo[forumid]!=XX && $recycle_bin==1) { // make the XX the number of the recycling bin
$DB_site->query("UPDATE thread SET forumid='XX' WHERE threadid='$threadid'"); // make the XX the number of the recycling bin
eval("standardredirect(\"".gettemplate("redirect_d eletethread")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");
exit;
}
it's line 105 - 20 lines under the block that starts with...
Quote:

// ############################### start do delete thread ###############################
Thanks again for building this Neo, simple but effective :)

str 01-07-2005 03:32 AM

SMF has this feature as default. Does vb3 has it yet?


All times are GMT. The time now is 01:54 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.01006 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)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
  • (5)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