[RC] Prime Notify - Put the message in notification emails

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: [RC] Prime Notify - Put the message in notification emails

Post by Diet Ebola Cola » Wed Oct 22, 2008 6:08 pm

Is a digest mode available?

Digest mode sends a summary of messages received over a 24 hour period.. that way users are not getting spammed by each message..

If a spambot floods the board but the mods manage to clean it up before the digest messages are sent out.. and the email notification skips the deleted posts.. that would be a useful feature to minimize email spam as well..
Diet Ebola Cola

tripecac
Registered User
Posts: 1
Joined: Tue Oct 28, 2008 5:46 pm

Re: [RC] Prime Notify - Put the message in notification emails

Post by tripecac » Tue Oct 28, 2008 5:49 pm

Emails seem to be queuing yup and are not sending until another post is made into a watched forum.
I am getting this same behavior. However, I think someone just needs to view a page in order for the queued notifications to be sent.

Since my board does not get much traffic, it can be hours or even days before the queued notifications are sent.

Has anyone found a fix?

hammi99
Registered User
Posts: 5
Joined: Sun Sep 21, 2008 9:37 pm

Re: [RC] Prime Notify - Put the message in notification emails

Post by hammi99 » Thu Nov 27, 2008 7:52 am

Thank you for all the work you have done!
QUESTIONS:
1) Prior to adding the prime notify MOD, the email notification used to include a direct link to the topic. Can someone advise on how to include that again? A direct link to the topic is pretty valuable.

2) When logged in as the main admin to the board, and posting a reply or new topic, it seems as if the email notification does not come through. We are subscribed to each forum although not each individual topic. We used to get notification without a problem prior to installing prime notify.

OUR NOTE:
We installed prime notify and as someone previously posted, the msg itself was not appearing in the email nofiticaion. Once we made this suggested change, the msg appeared in the emails and all was good.

function setup_post_vars(&$messenger, $msg_lang, $template)
{
if ($this->enabled)

Wanginator
Registered User
Posts: 8
Joined: Wed Dec 04, 2002 6:06 pm

Re: [RC] Prime Notify - Put the message in notification emails

Post by Wanginator » Mon Dec 29, 2008 1:05 am

Hi,

i have the same problem with the subject in the email. The emails are sent fine but none of them have a subject. Instead the subject is given as the first line of the body: "Subject: etc.".

Is there a fix for it?

User avatar
matt1206
Registered User
Posts: 213
Joined: Wed Mar 08, 2006 3:04 pm
Location: Sheffield, UK
Name: Matt Worthington

Re: [RC] Prime Notify - Put the message in notification emails

Post by matt1206 » Mon Dec 29, 2008 4:01 am

Installed and working fine on my board.

Wanginator
Registered User
Posts: 8
Joined: Wed Dec 04, 2002 6:06 pm

Re: [RC] Prime Notify - Put the message in notification emails

Post by Wanginator » Mon Dec 29, 2008 11:52 am

Works fine with English email text that is build in. I have made some German ones, but apparently the subject is not shown. I believe it is because they are line breaks in the text. Is this a problem?

User avatar
primehalo
Former Team Member
Posts: 2828
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by primehalo » Fri Jan 02, 2009 11:47 pm

There are definitely line breaks in the text, but the first line of the email template should show up as the subject line so long as Subject: is placed before it.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
brushwoodnursery
Registered User
Posts: 31
Joined: Sat Jan 12, 2008 1:49 am
Location: Philly, PA USA
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by brushwoodnursery » Sun Jan 11, 2009 11:19 pm

Ken, is this up for 3.0.4?
-Dan
Using all ten thumbs, rusty scalpels and blunt instruments on PHP

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by DragonMaster1 » Sun Jan 11, 2009 11:26 pm

I use it on my 3.0.4 an it works perfectly

User avatar
brushwoodnursery
Registered User
Posts: 31
Joined: Sat Jan 12, 2008 1:49 am
Location: Philly, PA USA
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by brushwoodnursery » Sun Jan 11, 2009 11:28 pm

Cheers!
-Dan
Using all ten thumbs, rusty scalpels and blunt instruments on PHP

Badog
Registered User
Posts: 14
Joined: Thu Feb 19, 2004 4:53 am

Re: [RC] Prime Notify - Put the message in notification emails

Post by Badog » Fri Jan 16, 2009 1:19 am

I'm using this on a 3.0.4 board and everything works fine except when I subscribe to a forum and someone posts a new topic to that forum, I get an email about the new topic in that forum like it should, but every reply to that topic comes to me as a new forum topic not a topic reply. I unsubscribe from the forum and it starts sending topic reply emails...

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by DragonMaster1 » Mon Jan 19, 2009 11:43 am

This has been working perfectly for a long time and now suddenly I get:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_notify.php on line 159: Missing argument 2 for prime_notify::setup_post_template(), called in /includes/functions_posting.php on line 1210 and defined
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2119: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3206)
prime_notify.php:

Code: Select all

/**
		*/
LINE 159: 		function setup_post_template(&$notify_row, &$row)
		{
			$this->user_enabled = (!isset($row['user_notify_content']) || (PRIME_NOTIFY_USER_CHOICE && !empty($row['user_notify_content'])));
			if ($this->enabled && $this->user_enabled)
			{
				$notify_row['template'] = ($notify_row['template'] == 'forum_notify') ? 'prime_notify_forum' : ($notify_row['template'] == 'topic_notify' ? 'prime_notify_topic' : 'prime_notify_newtopic');
			}
functions_posting.php

Code: Select all

//-- mod: Prime Notify ------------------------------------------------------//
LINE 1210:			$prime_notify->setup_post_template($notify_rows[$row['user_id']]);
//-- end: Prime Notify ------------------------------------------------------//
functions.php:

Code: Select all

// Behave as per HTTP/1.1 spec for others
LINE 2119: 	header('Location: ' . $url);
	exit;
}
functions.php

Code: Select all

// remove complete path to installation, with the risk of changing backslashes meant to be there
				$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
				$msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text);

LINE 3206:			echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
			}

			return;

		break;
Please give me an idea of how to correct whatever might be wrong

I should also mention that I am one of the subscribers to that topic and I did get the notification of the post with the complete text....

Thanx In Advance!!!

Porutchik
I've Been Banned!
Posts: 275
Joined: Sat Dec 31, 2005 11:11 am
Location: Russia, Orenburg (Россия, Оренбург)
Name: Sergey O
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by Porutchik » Mon Jan 19, 2009 3:27 pm

Hi, primehalo!
Translated on Russian.
You can download here.
My forum | Advanced Similar Topics
Excuse me please for my awful English. Thanks!. Please do not P.M., ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic.

Wanginator
Registered User
Posts: 8
Joined: Wed Dec 04, 2002 6:06 pm

Re: [RC] Prime Notify - Put the message in notification emails

Post by Wanginator » Mon Jan 19, 2009 4:49 pm

Porutchik wrote:Hi, primehalo!
Translated on Russian.
You can download here.
Very Nice! Is there someone who is willing to translate it to German?

User avatar
primehalo
Former Team Member
Posts: 2828
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Notify - Put the message in notification emails

Post by primehalo » Mon Jan 19, 2009 8:45 pm

DragonMaster1 wrote:

Code: Select all

//-- mod: Prime Notify ------------------------------------------------------//
LINE 1210:			$prime_notify->setup_post_template($notify_rows[$row['user_id']]);
//-- end: Prime Notify ------------------------------------------------------//
This doesn't look quite right... try downloading the latest version and go through the edits again to confirm everything is how it should be.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Locked

Return to “[3.0.x] MODs in Development”