Board watch

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

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

Joe_Joe wrote:Can they be changed in the data base since on the second install the latter was run. I want this to default to no unless the Member wants it.
Yes, just use phpmyadmin to change the default for each of the three columns to whatever you want (the changing default settings file that you mentioned tells you what the options are for each of those three columns and how to change defaults and settings for existing users after the fact).
Last edited by asinshesq on Tue Aug 25, 2009 4:00 pm, edited 1 time in total.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

[deleted]
Joe_Joe
Registered User
Posts: 52
Joined: Sun Apr 26, 2009 8:16 pm

Re: Board watch

Post by Joe_Joe »

asinshesq wrote:
Joe_Joe wrote:Can they be changed in the data base since on the second install the latter was run. I want this to default to no unless the Member wants it.
Yes, just use phpmyadmin to change the default for each of the three columns to whatever you want (the changing default settings file that you mentioned tells you what the options are for each of those three columns and how to change defaults and settings for existing users after the fact).
Thank you, that took care of the problem, and again thank you for your great work.

JJ
t2ffn
Registered User
Posts: 61
Joined: Tue Jun 02, 2009 7:44 pm
Location: Hull, England

Re: Board watch

Post by t2ffn »

Thanks entirely to Alan's help, here is a small mod to enable moved topics to trigger forum notification emails in each forum they are moved to. On my forum I move the topic to each required forum, and leave a shadow topic in each previous forum move.

This is a big requirement of my site, and after weeks of me trying and failing :roll: , I asked Alan to help me, and he knocked this mod up for me :D :D :

Code: Select all

OPEN
includes/mcp/mcp_main.php
FIND
      foreach ($topic_data as $topic_id => $topic_info)

BEFORE, ADD
      include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);

FIND
         // Get the list of forums to resync, add a log entry

BEFORE, ADD
         user_notification('post', $row['topic_title'], $row['topic_title'], $forum_data['forum_name'], $to_forum_id, $topic_id, $row['topic_first_post_id']);

OPEN
includes/functions_posting.php

FIND
   include($phpbb_root_path . 'includes/functions_boardwatch.' . $phpEx);
   include($phpbb_root_path . 'includes/constants_boardwatch.' . $phpEx);

REPLACE WITH
   include_once($phpbb_root_path . 'includes/functions_boardwatch.' . $phpEx);
   include_once($phpbb_root_path . 'includes/constants_boardwatch.' . $phpEx);

I hope this helps some others out as much as it did me.

Thanks

Edited to remove the last section of code as it most likely isn't required.
Last edited by t2ffn on Mon Sep 07, 2009 10:35 am, edited 1 time in total.
astonmak
Registered User
Posts: 10
Joined: Thu Sep 03, 2009 4:10 pm

Re: Board watch

Post by astonmak »

MOD Robot wrote:Modification name: Board watch
Author: asinshesq
Modification description: This mod gives users a 'board watch' option to receive notifications for posts made anywhere on the site (analogous to forum watch but for the entire board). Each user can choose between two ways for board watch to work: (1) send notification of the first post since the user's last visit and send no further notifications until the user revisits the site (analogous to the way forum watch and topic watch work) or (2) send notifications of all posts. In addition, each user can choose whether forum watch and topic watch work in the normal phpbb3 way (analogous to (1) above) or instead send notifications of all posts or replies in the subscribed forums or topics. The ability to choose between these two ways of working for boardwatch. forum watch and topic watch can be turned off in the acp. This mod also slightly changes the wording of the regular phpbb3 notifications to let recipients know how to change their notification settings, and it changes the post links in those notifications so that they lead to the earliest unread post in the topic in question (which I think is a more logical destination than the most recent post in the topic).
Modification version: 1.0.1
Tested on phpBB version: See below

Download file: boardwatch_1-0-1e.zip
File size: 97571 Bytes

Modification overview page: View


Selected tags:
  1. Category
    1. Communication
  2. Complexity
    1. SQL Schema Changes
    2. Template Changes
    3. Language Changes
    4. File Edits
  3. Time
    1. ~ 20 Minutes
  4. phpBB
    1. 3.0.5
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.

Hi, I feel the function of this MOD is great, it has given an alternative options to the notification upon different scenerio.

I have a simple question to 1 case, if "USER A" as a post writer and write a new post (topic), then "USER B" and "USER C" reply to USER A's post/topic. Under this scenerio, at Board Watch, if I choose option "(2) send notifications of all posts", I think "USER A" must receive the notification upon the reply from "USER B" and "USER C", but would the "USER B" still receive the notification by "USERS C"'s reply?

Actually, I'm looking for a MOD that could do this :
1) send notifications of all posts
2) notifications send to post (topic) writer "ONLY" (In the other words, the reply writer do not to receive notification when other users make a reply to the post.)

I hope this MOD could give help, thanks :>
-----------------------------------------
Im new in phpbb. :>
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

astonmak wrote:...I have a simple question to 1 case, if "USER A" as a post writer and write a new post (topic), then "USER B" and "USER C" reply to USER A's post/topic. Under this scenerio, at Board Watch, if I choose option "(2) send notifications of all posts", I think "USER A" must receive the notification upon the reply from "USER B" and "USER C", but would the "USER B" still receive the notification by "USERS C"'s reply?
Yes, if B is subscribed to boardwatch with the option to receive all posts, then he will get notice of A's post and C's reply.
Actually, I'm looking for a MOD that could do this :
1) send notifications of all posts
2) notifications send to post (topic) writer "ONLY" (In the other words, the reply writer do not to receive notification when other users make a reply to the post.)

I hope this MOD could give help, thanks :>
No, if a user is subscribed to boardwatch he will get notice of all posts or replies.
t2ffn
Registered User
Posts: 61
Joined: Tue Jun 02, 2009 7:44 pm
Location: Hull, England

Re: Board watch

Post by t2ffn »

Hi Alan,

Something has been reported to me by my forum users ref email notifications:

Users that are subscribed to multiple forums, get emails from each forum when I move a topic into each forum they are in.

I understand this is because they are subscribed to each of the forums, and the forums are getting "new topics" posted in them, but as it is a moved topic, the topic ID remains the same, doesnt the "ignore users already sent notification" come into play here?

Just a thought anyway :idea:
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

t2ffn wrote:Hi Alan,

Something has been reported to me by my forum users ref email notifications:

Users that are subscribed to multiple forums, get emails from each forum when I move a topic into each forum they are in.

I understand this is because they are subscribed to each of the forums, and the forums are getting "new topics" posted in them, but as it is a moved topic, the topic ID remains the same, doesnt the "ignore users already sent notification" come into play here?

Just a thought anyway :idea:
With the extra mod you've got (which is not part of regular boardwatch), a move of the topic is treated as though it were a brand new post (which triggers a notice to all users who have boardwatch on or are following the destination forum). So that doesn't surprise me. You could write code to get around that - by adding to the ignore users list all users who are following the original forum whenever you move a topic from one forum to another - but that would start to get more involved (especially if you are trying to provide for multiple moves to multiple forums for a single topic).
t2ffn
Registered User
Posts: 61
Joined: Tue Jun 02, 2009 7:44 pm
Location: Hull, England

Re: Board watch

Post by t2ffn »

I'll live with it ;)
senortim
Registered User
Posts: 14
Joined: Mon Mar 02, 2009 2:42 am

Re: Board watch

Post by senortim »

I just got this error when trying to install Board Watch for the first time. What am I missing?

Code: Select all

General Error
SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: includes/db/dbal.php
LINE: 379
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1318
CALL: dbal->sql_in_set()

FILE: includes/functions_posting.php
LINE: 2489
CALL: user_notification()

FILE: posting.php
LINE: 1001
CALL: submit_post()
senortim
Registered User
Posts: 14
Joined: Mon Mar 02, 2009 2:42 am

Re: Board watch

Post by senortim »

Interestingly, Board Watch just sent me an update for the message. So I guess something went right.

If this adds any info: When I follow the emailed link to notification settings for boardwatch, I get an error: "General Error
Module not accessible"

Thanks,
Tim
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

senortim wrote:I just got this error when trying to install Board Watch for the first time. What am I missing?...
You probably made an error in the changes you made to functions_posting.php. Double check those changes. Did you install by hand or did you use automod?
When I follow the emailed link to notification settings for boardwatch, I get an error: "General Error
Module not accessible"
You probably have not granted the global permissions for changing boardwatch settings to the user or a group of which the user is a member. You need to go to the ACP and grant global permissions to any group or user who you want to give permission to adjust the settings this mod gives you. This won't fix your first problem, though.
senortim
Registered User
Posts: 14
Joined: Mon Mar 02, 2009 2:42 am

Re: Board watch

Post by senortim »

Yeesh! I made three errors modifying things by hand. (All were cases where I replaced the whole line rather than adding before or after.)

It now works without an error, so thanks!

I'm (clearly) new to phpBB Mods. There is something I can use to make these kinds of file changes automatically? The whole searching and replacing/adding/deleting thing seems so 1979 to me. And I personally find the phpBB boards to be utterly overwhelming -- separating the fixes from the chatter (like what I'm doing now) distracts me to a stand-still. Any help would be delightful.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq »

senortim wrote:...There is something I can use to make these kinds of file changes automatically? The whole searching and replacing/adding/deleting thing seems so 1979 to me...
Yup. In fact, the whole reason that mods are required to be in xml format is so that a robust installer can be designed to automatically install mods for you. Here's the official one (still in RC form but it works fine and is being widely used): http://www.phpbb.com/mods/automod/
senortim
Registered User
Posts: 14
Joined: Mon Mar 02, 2009 2:42 am

Re: Board watch

Post by senortim »

Thanks, Alan. But hey, I'm having another problem. I'm unable to get to the module to unwatch a topic.

I've double checked my edits to the other modules and no solution jumps out at me.

Here's the URL
http://richmondannex.com/share/ucp.php? ... boardwatch

And error
"General Error
Module not accessible"

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