Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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.

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Sweet!

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
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 />


Kind regards,
PaNTerSan
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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.

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
[]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.


Kind regards,
PaNTerSan
Sponsored Links
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Awesome, a great time-saver. This one works out of the box on v6.3.2 btw.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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!

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
[]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.

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Great mod!

Sponsored Links
Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
I had requests from all my mods to do this. Glad I found yours. WORKS PERFECT! Thanks

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Works in the same way in 6.5, except that the file to change is
domovethread.php .


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)