****************************************************************************** ****************************************************************************** * MOD NAME: Move Topic Reason 6.7 * ****************************************************************************** * DESCRIPTION: Allows A reason to be entered when moving * * a topic. The explaination will be display by the moved ****************************************************************************** * BY: Brett * * DATE: May 26, 2004. * * VERSION: 1.0 * ****************************************************************************** * REQUIREMENTS: 6.7.1 & Mods Wordlets Installed * * COMPATABILITY: 6.7.1 * * TESTED ON: 6.7.1 * ****************************************************************************** * FILES MODIFIED: public_move_topic.pl, ubb_topic_maint.cgi, * * ubb_lib_posting.cgi, vars_wordlets_email.cgi * * NEW FILES: None * ****************************************************************************** ****************************************************************************** * DISCLAIMER: By using this mod, the user implicitly agrees that they * * are willingly modifying any and all files at their own * * risk. Should any errors occur either as a direct or * * indirect result of said modifications the user agrees not * * to hold Infopop Corporation or any of the individuals * * listed above accountable. * * * * * * IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO * * MODIFY PRIOR TO MODIFICATION!! * * * * * * FOR MORE TIPS AND TRICKS FOR USE WITH THE ULTIMATE BULLETIN BOARD * * PLEASE GIVE US A VISIT AT: * * * * http://www.ubbdev.com * * * ****************************************************************************** ****************************************************************************** *************************** * In public_move_topic.pl * *************************** * FIND: * ***************** print <   $vars_wordlets{move_notify_topic_starter} ************** * ADD AFTER: * **************

  
*************************** * In ubb_topic_maint.cgi * *************************** * FIND: * ***************** my @stat_line = split (/\|\|/, $topic_file[0], 12); ***************** * REPLACE WITH: * ***************** local(@stat_line) = split (/\|\|/, $topic_file[0], 15); ***************** * FIND: * ***************** # adjust @topic_file $topic_file[0] = join ("||", @stat_line); $topic_file[0] .= "\n"; ************** * ADD ABOVE: * ************** # Move Topic Reason if($in{give_explaination} eq 'yes') { $stat_line[13] = &PipeCleaner($in{explaination}); $stat_line[13] =~ s/\n/\
/sig; } # end if ***************** * FIND: * ***************** &ubb_mail_tng({ ************** * ADD ABOVE: * ************** $html_message = &Template($html_message, {COMMENT => $stat_line[13], EXTRA => $in{'ext-explaination'} }); $email_message = &Template($email_message, {COMMENT => $stat_line[13], EXTRA => $in{'ext-explaination'} }); *************************** * In ubb_lib_posting.cgi * *************************** * FIND: * ***************** @stat_line = split (/\|\|/, $topic_file[0], 12); ***************** * REPLACE WITH: * ***************** @stat_line = split (/\|\|/, $topic_file[0], 13); ***************** * FIND: * ***************** $close_transfer_wording = qq($stat_line[7]  ); ************** * ADD AFTER: * ************** $close_transfer_wording .= "
$stat_line[13]" if $stat_line[13]; ******************************* * In vars_wordlets_email.cgi * ******************************* * FIND: * ***************** q!move_topic_notify_text! => q!A topic you created at %%BBNAME%%, %%TOPIC_SUBJECT%%, has been moved to another forum. The new forum is: %%THIS_FORUM_NAME%% View Topic @ %%TOPIC_URL%%!, ***************** * REPLACE WITH: * ***************** q!move_topic_notify_text! => q!A topic you created at %%BBNAME%%, %%TOPIC_SUBJECT%%, has been moved to another forum. The new forum is: %%THIS_FORUM_NAME%% View Topic @ %%TOPIC_URL%%. The reason it was closed was: %%COMMENT%%. %%EXTRA%%!, ***************** * FIND: * ***************** q!move_topic_notify_html! => q!

A topic you created at %%BBNAME%%, %%TOPIC_SUBJECT%%, has been moved to another forum.

The new forum is: %%THIS_FORUM_NAME%%
New location: %%TOPIC_SUBJECT%%


!, ***************** * REPLACE WITH: * ***************** q!move_topic_notify_html! => q!

A topic you created at %%BBNAME%%, %%TOPIC_SUBJECT%%, has been moved to another forum.

The new forum is: %%THIS_FORUM_NAME%%
New location: %%TOPIC_SUBJECT%%

The reason it was closed was because: %%COMMENT%%. %%EXTRA%%


!,