[2.0.13] Forum Watch

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
32
78%
Very Good
3
7%
Good
3
7%
Fair
0
No votes
Poor
3
7%
 
Total votes: 41

das_spektakel
Registered User
Posts: 27
Joined: Mon Jan 02, 2006 3:01 pm

Post by das_spektakel » Thu Jan 12, 2006 1:15 pm

Hi there,

i have a little problem with the forum watch and my 2.0.19 board. Please read my original post here:
http://www.phpbb.com/phpBB/viewtopic.php?p=1947804
So, now i changed the code inside the functions_post.php (forum watch code) from

Code: Select all

$sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status)
VALUES (" . $row['user_id'] . ", $topic_id, 0)";
to

Code: Select all

$sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) 
VALUES (" . $userdata['user_id'] . ", $topic_id, 0)";
Now i can reply to posts without getting an error message. Is this a bug inside the forum watch mod or did I something wrong?

regards,

das_spektakel

gduan2000
Registered User
Posts: 4
Joined: Sun Jan 15, 2006 6:14 am

forum watch 1.0.2 issue?

Post by gduan2000 » Sun Jan 15, 2006 8:58 am

I installed forum watch 1.0.2 on a phpBB2.0.19. Here is a strange thing I am having:

When I post a new topic, I check "Notify me when a reply is posted". However, after I submit I can see that the topic is NOT watched. It still says "Watch this topic for replies", which actually should be "stop watching this topic" (because it is supposed to be watched).

If I edit this topic, and check the "Notify me when a reply is posted" again. This time the choice is recorded and the text becomes "stop watching this topic".

Any ideas?

net83it
Registered User
Posts: 500
Joined: Sun Jan 15, 2006 2:42 pm
Location: Sicily
Contact:

Post by net83it » Sun Jan 15, 2006 3:11 pm

drb wrote: Could somebdoy please help me out?

This is what I understood about forum_watch. This is a MOD to a MOD. I don't know where the main MOD is. Because readme.txt of this forum_watch is asking me to install the main MOD first. What and where is that?


i think the author refers to the Forum-Watch-Topic mod that is a mod of the Forum-Watch mod.

somoene correct me if i'm wrong

IgnorantNewGuy
Registered User
Posts: 452
Joined: Thu Jul 14, 2005 9:27 pm

Post by IgnorantNewGuy » Thu Jan 19, 2006 6:31 am

Well, I'm sorry to report that I've got nothing with this MOD.

I've got a 2.0.17 board, quite a few MODs, but nothing seemed to be a conflict while altering files.

Now, I've got no link allowing me to subscribe to a forum.

I ran the SQL - no problem.
I altered all files - uploaded via phpMyadmin.

I've got no clue and I'm not as much as a novice as my username suggests. :wink:

Site: www.test.carphighalumni.com
Username: CHSGrad
Password: test

Any thoughts?
Scott 8)

christiansongwriter
Registered User
Posts: 102
Joined: Tue May 24, 2005 2:53 am

Post by christiansongwriter » Wed Feb 01, 2006 12:44 am

Hi,

This mod looks like just what I need, but I've got a problem with posting.php - I have another mod (admin email topics to selected groups) that has changed this file considerably. Can you please take a look at my code, and let me know if it's still possible to use your mod (and if so, the code changes needed)?

Code: Select all

		if ($error_msg == '' && $mode != 'poll_delete')
		{
			// the following code is borrowed from David Herrmann's forum notification mod on phpbbhacks...
			// the code replaced the original lines in phpbb that read 'user_notification($mode blah blah...
			// but I changed the fourth line below this to test whether mode is newtopic rather than whether post is first post to avoid repeat emails when a first post is edited numerous times...

			$post_data['subject'] = $subject;
			$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
			$post_data['message'] = $message;
			if ( $mode == 'newtopic' )
			{
				// fetch topic title
				$sql = "SELECT topic_title, topic_id
					FROM " . TOPICS_TABLE . "
					WHERE topic_id = $topic_id";

				if ( !($result = $db->sql_query($sql)) )
				{
					message_die(GENERAL_ERROR, 'Could not obtain topic title for notification', '', __LINE__, __FILE__, $sql);
				}

				if ( $topic_info = $db->sql_fetchrow($result) )
				{
					user_notification('newtopic', $post_data, $topic_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user, $mail_to_enabled_groups, $include_text, $include_unauthorized_users, $group_id, $email_re, $board_signs);
				}

			}
			else
			{
				user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user, $mail_to_enabled_groups, $include_text, $include_unauthorized_users, $group_id, $email_re, $board_signs);
			}
		}
		// end mod email to designated groups
Thanks for any help!

James

parkera
Registered User
Posts: 1
Joined: Thu Feb 02, 2006 12:48 am
Location: Santa Barbara, Ca

Re: forum watch 1.0.2 issue?

Post by parkera » Thu Feb 02, 2006 12:57 am

gduan2000 wrote: I installed forum watch 1.0.2 on a phpBB2.0.19. When I post a new topic, I check "Notify me when a reply is posted". However, after I submit I can see that the topic is NOT watched. It still says "Watch this topic for replies", which actually should be "stop watching this topic" (because it is supposed to be watched).

If I edit this topic, and check the "Notify me when a reply is posted" again. This time the choice is recorded and the text becomes "stop watching this topic".


Open posting.php and replace this code

Code: Select all

		if ($error_msg == '' && $mode != 'poll_delete')
		{
			if ($mode == 'newtopic')
			{
				user_notification_forum($post_data, $subject, $post_info['forum_name'], $forum_id, $topic_id, $post_id);
			} else {
				user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
			}
		}
with this code

Code: Select all

		if ($error_msg == '' && $mode != 'poll_delete')
		{
			if ($mode == 'newtopic')
			{
				user_notification_forum($post_data, $subject, $post_info['forum_name'], $forum_id, $topic_id, $post_id);
			}
			user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
		}
That should solve the problem.
Parker Abercrombie
parkera <-- this at that --> engineering dot ucsb dot edu

alosito
Registered User
Posts: 42
Joined: Mon Oct 31, 2005 4:58 pm

Post by alosito » Sun Feb 05, 2006 3:26 am

I install the mod with EasyMod, got the following Critical Error, and added the code from the error manually. It was the only error during the installation so I assume everything else went fine. Now my question is how can I choose to watch my forum for new topics? I can't find that option anywhere on my forum.
Critical Error

FIND FAILED: In file [includes/functions_post.php] could not find:

//
// Fill smiley templates (or just the variables) with smileys
// Either in a window or inline
//

MOD script line #231 :: FAQ :: Report

alosito
Registered User
Posts: 42
Joined: Mon Oct 31, 2005 4:58 pm

Post by alosito » Tue Feb 07, 2006 2:56 am

bump :P

shalini
Registered User
Posts: 9
Joined: Fri Jan 27, 2006 8:45 am

Post by shalini » Tue Feb 14, 2006 3:48 am

I read thru the entire thread and installed this on 2.0.19. The 'watch this forum' comes but it does not send the e-mail. E-mail is otherwise working for watch this topic, and I tried with 2 user accounts as well.

Any suggestions?

shalini
Registered User
Posts: 9
Joined: Fri Jan 27, 2006 8:45 am

Post by shalini » Tue Feb 14, 2006 3:53 am

Also I did set up the table but am not sure what this means

KEY forum_id (forum_id),
KEY user_id (user_id),
KEY notify_status (notify_status)
);

aymanati
Registered User
Posts: 2
Joined: Tue Feb 21, 2006 9:18 am

No Notification!!

Post by aymanati » Tue Feb 21, 2006 9:26 am

Hello;

thanks for the good mod.
I installed it with no error messages.
However, it's not working! I get no notifications on my email after posting new topics. I hit the "Watch this forum for new topics" link ..

I installed the SQL table successfully ..
I found a table with 3 fields, forum_id, user_id and notify_status.
When I hit the "Watch this forum for new topics" link, the "notify_status" value become "0". Is this what it supposed to be?
Also I tested my email and sent a test message via the forum and it's working.
So what's wrong? Why I can't get the notification?

My phpbb version is 2.0.19

Please give me a help.

Thanks.

aymanati
Registered User
Posts: 2
Joined: Tue Feb 21, 2006 9:18 am

Post by aymanati » Tue Feb 21, 2006 10:08 am

Hoo ..

It's working.
I just realized that when I post, I won't get notifide.
So, another person has to post then I'll get the notification ..

It would be better if this is was written in the comments of the code ..

thanks :)

User avatar
ergot
Registered User
Posts: 12
Joined: Mon Jul 14, 2003 10:08 am
Location: Oz
Contact:

Post by ergot » Mon Feb 27, 2006 1:56 pm

Does this mod only send an email when a new topic is started in the watched forum, or does it send an email when *any* post is made in the watched forum?

Can anyone comment on its stability within v2.0.19?

How is this mod different/better than David Herrmann's Forum Notification mod 1.4? It is shorter. ;)
Half a bee must ipso facto half not be. But can a bee be said to be or not to be when half the bee is not a bee due to some ancient injury? - M.Python

asuh
Registered User
Posts: 93
Joined: Fri May 31, 2002 12:14 am

Post by asuh » Mon Feb 27, 2006 8:45 pm

To supplement the questions above, does this mod allow moderators/users to ONLY see new posts and replies to a specific forum, not board wide? I am looking for a way for moderators to see new posts (threads or replies) and any activity ONLY within the forum of which he or she is moderating/watching.

bcampagnolo
Registered User
Posts: 1
Joined: Tue Feb 28, 2006 6:37 am

email notification 'leave on' ?

Post by bcampagnolo » Tue Feb 28, 2006 6:43 am

I have an alias that I would like to be notified using forum watch.
I installed it and it's working great. Is there a way to not have to return to the forum to 'reset' the watch?
I would like to use an alias that always is on for updates, new posts regardless of having returned to the forum.

Thanks a head of time.

Post Reply

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