Moved Topic Message

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
7
88%
Very Good
0
No votes
Good
1
13%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 8

User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Re: Moved Topic Message

Post by Dogs and things »

Of course,

I´ll give it a good try. ;)
For phpBB2 support visit phpBB2refugees.
screamer_hardstyle
Registered User
Posts: 16
Joined: Tue Feb 22, 2005 8:36 pm
Contact:

Re: Moved Topic Message

Post by screamer_hardstyle »

Its hardcoded, sorry to lazy to do it with ACP :lol:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
modcp.php

#
#-----[ FIND ]------------------------------------------
#
					}
				}

				// Sync the forum indexes
				sync('forum', $new_forum_id);
				sync('forum', $old_forum_id);
# 
#-----[ REPLACE WITH ]-----------------------------------------------------------------
# 
				}
			
				// Sync the forum indexes
				sync('forum', $new_forum_id);
				sync('forum', $old_forum_id);
#
#-----[ AFTER, ADD ]------------------------------------------
#

				$current_time = time();
				$topic_time = $row[$i]['topic_time'];
				$topic_move_time = $topic_time + 7776000;
				
				if ( $topic_move_time < $current_time )
				{
				message_die(GENERAL_MESSAGE, 'Topic Moved Without Notification!');
				}
				}

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
This hack requires that phpBB Moved Topic Message be installed. The hack was tested on Moved Topic Message 1.3.0 and phpBB 2.0.20. Once installed, the hack disable a automatic e-mail or PM notification to the topic starter when a topic is moved older then 90 days.
Change the variables from 7776000 to match your own need. 1 Month is 2592000 seconds. So 2 months will be 2x 2592000 and so on...
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Re: Moved Topic Message

Post by Dogs and things »

Very nice, thank you, I´ll report here in case problems arise.

Another thing that would come in nicely is something that avoids notifications are send when topics are moved (temporarily) to a limited access forum for moderation purposes.

But I guess that would be more complicated to write.
For phpBB2 support visit phpBB2refugees.
screamer_hardstyle
Registered User
Posts: 16
Joined: Tue Feb 22, 2005 8:36 pm
Contact:

Re: Moved Topic Message

Post by screamer_hardstyle »

Dogs and things wrote:Very nice, thank you, I´ll report here in case problems arise.

Another thing that would come in nicely is something that avoids notifications are send when topics are moved (temporarily) to a limited access forum for moderation purposes.

But I guess that would be more complicated to write.
I never had to do this, so I can't help you with this...
Have fun with the small change
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Re: Moved Topic Message

Post by Dogs and things »

To avoid email from being sent when moving a topic to a specific forum

OPEN modcp.php

FIND

Code: Select all

				if ((($userdata['user_topic_moved_mail'] == 1) && ($board_config['board_email_moved_topic'] != 1)) || (($board_config['board_email_moved_topic'] == 1) && ($board_config['board_topic_moved_mail'])))
REPLACE WITH

Code: Select all

				if ((($userdata['user_topic_moved_mail'] == 1) && ($board_config['board_email_moved_topic'] != 1) && ($new_forum_id != 24)) || (($board_config['board_email_moved_topic'] == 1) && ($board_config['board_topic_moved_mail'])))
To avoid PM from being sent when moving a topic to a specific forum

FIND

Code: Select all

				if ((($userdata['user_topic_moved_pm'] == 1) && ($board_config['board_email_moved_topic'] != 1)) || (($board_config['board_email_moved_topic'] == 1) && ($board_config['board_topic_moved_pm'])))
REPLACE WITH

Code: Select all

				if ((($userdata['user_topic_moved_pm'] == 1) && ($board_config['board_email_moved_topic'] != 1) && ($new_forum_id != 24)) || (($board_config['board_email_moved_topic'] == 1) && ($board_config['board_topic_moved_pm'])))
To avoid the PM and/or Email sent message from appearing in the confirmation message that shows after moving a topic:

FIND

Code: Select all

					if (($userdata['user_topic_moved_mail'] == 1) && ($userdata['user_topic_moved_pm'] != 1))
REPLACE WITH

Code: Select all

					if (($userdata['user_topic_moved_mail'] == 1) && ($userdata['user_topic_moved_pm'] != 1) && ($new_forum_id != 24))
FIND

Code: Select all

					else if (($userdata['user_topic_moved_mail'] != 1) && ($userdata['user_topic_moved_pm'] == 1))
REPLACE WITH

Code: Select all

					else if (($userdata['user_topic_moved_mail'] != 1) && ($userdata['user_topic_moved_pm'] == 1) && ($new_forum_id != 24))
FIND

Code: Select all

					else if (($userdata['user_topic_moved_mail'] == 1) && ($userdata['user_topic_moved_pm'] == 1))
REPLACE WITH

Code: Select all

					else if (($userdata['user_topic_moved_mail'] == 1) && ($userdata['user_topic_moved_pm'] == 1) && ($new_forum_id != 24))
In all cases, 24 is the ID of the forum you want to exclude from triggering the PM sender, change it to the ID of the forum you are using. In my case it is the ID of the ID moderators move topic into for evaluation purposes.
For phpBB2 support visit phpBB2refugees.
Samael1976
Registered User
Posts: 30
Joined: Wed Jun 07, 2006 6:15 pm
Contact:

Re: Moved Topic Message

Post by Samael1976 »

This mod is Great! it's possible to to the same thing when a topic is deleted?
User avatar
Sr X
Registered User
Posts: 202
Joined: Wed Feb 07, 2007 9:25 am

Re: Moved Topic Message

Post by Sr X »

can someone update this mod to phpBB3? i think that is very userful, thanks.
net83it
Registered User
Posts: 500
Joined: Sun Jan 15, 2006 2:42 pm
Location: Sicily
Contact:

Re: Moved Topic Message

Post by net83it »

Sr X wrote:can someone update this mod to phpBB3? i think that is very userful, thanks.
yes. i'm with you
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: Moved Topic Message

Post by Wicher »

Due to the fact of the retiring of phpBB2 soon, any further support for this mod can best be asked at http://www.wichersmods.nl
Post Reply

Return to “[2.0.x] MOD Database Releases”