Page 1 of 24

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

Posted: Mon Jul 28, 2008 6:34 am
by primehalo
MOD Title: Prime Notify
MOD Description: Inserts the content of a post or private messages into the notification e-mail.

MOD Version: (see Installation Instructions for current version number)
MOD Download: Main Download
Demo Board: http://www.absoluteanime.com/forum/viewforum.php?f=95
Demo Username: Not required
Demo Password: Not required

For the release history, please view the Installation Instructions.

Note: This MOD combines the functionality of two of my other MODs, Prime Notify Topic and Prime Notify PM, so if you have those installed, please remove them before installing this one. Those two MODs will be discontinued in favor of this one.

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

Posted: Mon Jul 28, 2008 5:42 pm
by IPB_Refugee
Hi Ken,

will be be able to decide if we want to put the message of a post and/or of a private message in the notification mail? Will this be configurable via ACP?


EDIT: Or even better: Will users be able to decide what they want?

Regards
Wolfgang

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

Posted: Mon Jul 28, 2008 6:02 pm
by ttuu
the file language/en/email/prime_notify_privmsg.txt, is not found in pakg.

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

Posted: Tue Jul 29, 2008 8:41 am
by primehalo
IPB_Refugee wrote:Hi Ken,

will be be able to decide if we want to put the message of a post and/or of a private message in the notification mail? Will this be configurable via ACP?


EDIT: Or even better: Will users be able to decide what they want?

Regards
Wolfgang
Version 1.0.1 allows you to set it individually for posts and private messages. Currently, the optional User's Choice add-on only works with posts.
ttuu wrote:the file language/en/email/prime_notify_privmsg.txt, is not found in pakg.
Whoops, thanks for pointing this out. It has been corrected.

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

Posted: Tue Jul 29, 2008 10:41 am
by wolfman24
2 more errors I discovered.
1. in includes/functions_posting.php ist must be

Code: Select all

 	$prime_notify->setup_post($sql);
2. in includes/prime_notify.php at line 187 it must be

Code: Select all

					$sql = substr_replace($sql, ', u.user_notify_content ', strpos($sql, 'FROM'), 0);
Correct me if I'm wrong, but I needed those two changes. Other than that, keep up the good work.

EDIT:
Hm, colours don't work in code-tag, so here again in quote tags for better view:
$prime_notify->setup_post($sql);
$sql = substr_replace($sql, ', u.user_notify_content ', strpos($sql, 'FROM'), 0);
Also dicovered something else: in includes/functions_posting.php does it have to be
$prime_notify->setup_post_template($notify_rows[$row['user_id']],$row);

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

Posted: Tue Jul 29, 2008 5:49 pm
by primehalo
Wow, I really messed things up. I didn't realize how many changes I made. Thanks for pointing them out.

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

Posted: Sat Aug 02, 2008 9:14 pm
by primehalo
Version 1.0.2
  • Change smiley image links to plain text smiley codes.

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

Posted: Sun Aug 10, 2008 7:05 am
by stokerpiller
Thanks for this Mod.
I have translated to danish: http://www.2shared.com/file/3736069/4a4 ... anish.html

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

Posted: Thu Aug 14, 2008 10:01 am
by primehalo
Thanks!

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

Posted: Sun Aug 24, 2008 1:59 am
by Sunka
Looking good
2 in 1 :mrgreen:

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

Posted: Wed Aug 27, 2008 7:27 pm
by somniumaudio
I was wondering if any knows why I am getting this error.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_notify.php on line 159: Missing argument 2 for setup_post_template()  
I get this error repeated 3 times but only when I reply to a post.

Also is there a way to make the notifications go to the person posting the topic. Currently it does not do this.

Best

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

Posted: Wed Aug 27, 2008 8:59 pm
by primehalo
Looks like there was a mistake in the installation instructions. In includes/functions_posting.php, change this:

Code: Select all

$prime_notify->setup_post_template($notify_rows[$row['user_id']]); 
To this:

Code: Select all

$prime_notify->setup_post_template($notify_rows[$row['user_id']], $row); 

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

Posted: Wed Aug 27, 2008 10:49 pm
by DragonMaster1
Is that for anyone who installed this mod?

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

Posted: Wed Aug 27, 2008 11:17 pm
by primehalo
Well, for the latest version anyway.

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

Posted: Wed Aug 27, 2008 11:30 pm
by DragonMaster1
primehalo wrote:Looks like there was a mistake in the installation instructions. In posting.php, change this:

Code: Select all

$prime_notify->setup_post_template($notify_rows[$row['user_id']]); 
To this:

Code: Select all

$prime_notify->setup_post_template($notify_rows[$row['user_id']], $row); 

shouldn’t this be in includes/functions_posting.php and not posting.php?