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)
-   -   [release vb2.0] Miniscule-hack: split & move thread to a new forum in one go (https://vborg.vbsupport.ru/showthread.php?t=14591)

bira 04-18-2001 10:00 PM

OK, so this came out of a 'discussion' eva2000 and I had about moving posts to a "trashcan" forum, rather than deleting them. The way eva does it, is to split the thread (move the post(s) he wants to 'delete' into a new thread) and then move the new thread to the "trash-can" forum.

So I figured, why not just do it in one go?

So here's a microscopic hack to do just that :D

1) Open postings.php

Find:

PHP Code:

eval("dooutput(\"".gettemplate("threads_splitthread")."\");"); 

Immediately ABOVE it put:

PHP Code:

$moveforumbits=getmoveforums(); 

Find:

PHP Code:

    eval("standarderror(\"".gettemplate("error_cantsplitall")."\");");
  } 

Immediately BELOW it put:

PHP Code:

  if ($newforumid!="") {
      
$threadinfo[forumid] = $newforumid;
  } 


2) Edit the template threads_splitthread.

Find:

Code:

<input type="submit" class="bginput" name="submit" value="Split Thread" accesskey="s">
Immediately ABOVE it put:

Code:

<select name="newforumid">
<option value="">Select Destination Forum or Leave As-Is:</option>
$moveforumbits
</select><br>


That's it :)

Now, when you split a thread, you can either leave it in the same forum, or select a different destination forum.

Cheers,

Bira

eva2000 04-19-2001 06:25 AM

oooooh nice.. gonna try this one...

eva2000 04-19-2001 06:39 AM

works perfectly bira :D

bira 04-19-2001 06:43 AM

Thanks partner ;)

eva2000 05-22-2001 01:09 AM

bringing this up :D

bira 05-22-2001 10:12 PM

heh, thanks Eva :)

eva2000 05-23-2001 10:47 PM

no probs..can confirm this hack works on the final version :D

eva2000 07-31-2001 07:38 AM

works in 2.0.2 as well :D

this should be in the official code since it's soooooooo handy ;)

Kier 07-31-2001 07:56 AM

If you approve, Bira, I'll put this into 2.0.3, or whatever the next release is to be.

bira 07-31-2001 10:19 AM

Quote:

Originally posted by Kier
If you approve, Bira, I'll put this into 2.0.3, or whatever the next release is to be.
heh, Kier you don't need to ask for my approval. This is such a small hack, I'm ashamed to even call it one :)

So the short answer is yes ;)


All times are GMT. The time now is 12:32 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.02025 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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