UBB.Dev
Mod Name / Version: Move thread will PM topic starter

Description: My forum reached critical mass on bitch mode, regarding moving threads. The topic starters wanted to know of the move via PM, but the mods are too busy to PM all the time. Hence the idea. It was also spurred on by one of the suggestions by oceanwest in the other forum here

Working Under: UBB.Threads 6.3, 6.4

Mod Status: Finished

Any pre-requisites: An editor and the ability to follow instructions.

Author(s): sirdude

Date: 04/28/04

Credits: oceanwest

Files Altered: admin/domovethreads.php

New Files: None

Database Altered: None

Info/Instructions: Click Here, read and implement.

Note: there are a couple of params you can tweak:

$pmPersonal = 0 - 3rd person PM, 1 - 1st person PM
$pmInform = 0 - PM even if they aren't accepting PM's, 1 - Don't PM

Note: i also figured it was obvious NOT to send a PM, if the topic starter is yourself! Hence the decision.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Sweet!
What if the thread was made by anonymous

Find:
Code
<br />if ($user['U_Number'] != $posterid) {<br />

Replace with:
Code
<br />if (( $user['U_Number'] != $posterid) && ( $posterid > 2) ) {<br />
good catch. i don't allow anon posters on my board, so it wasn't thought of.

thanks

note: and i believe it's [:"red"]($posterid > 1)[/], since the 1st admin is user is #2 and he/she might want to be notified
note: link updated with new code.
[]sirdude said:
i don't allow anon posters on my board, so it wasn't thought of.
[/]
Me neither - i only allow them to browse forums, login, register and read faq

[]sirdude said:
note: and i believe it's [:"red"]($posterid > 1)[/], since the 1st admin is user is #2 and he/she might want to be notified [/]
Dunno - I only have #1 - #2 does not exist.
hrm, i just installed a fresh ubbthreads and the 1st member is #2, so that jives with all my boards. i guess peeps will have to take care as to who the 'real' first $posterid is.

btw: my version(s) are 6.4.1 and 6.4.2.
Awesome, a great time-saver. This one works out of the box on v6.3.2 btw.
I've installed this on my website, and I'm sure my users will benefit greatly from this, since PMing them on a move has never been practiced by either my mods or I.

This should be a standard feature, IMHO. *hint, hint*

Great job! The Dude abides!
[]Twisty said:
Awesome, a great time-saver. This one works out of the box on v6.3.2 btw. [/]

ah, cool. i'll modify the description to include 6.3 as well. thanks for testing on that version.
Great mod!
I had requests from all my mods to do this. Glad I found yours. WORKS PERFECT! Thanks
Works in the same way in 6.5, except that the file to change is
domovethread.php .
© UBB.Developers