[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!
Get Involved
Locked
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

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

Post 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.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

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

Post 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
ttuu
Registered User
Posts: 224
Joined: Wed Feb 13, 2008 6:28 pm

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

Post by ttuu »

the file language/en/email/prime_notify_privmsg.txt, is not found in pakg.
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

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.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
wolfman24
Registered User
Posts: 387
Joined: Tue Mar 07, 2006 12:07 pm

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

Post 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);
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Wow, I really messed things up. I didn't realize how many changes I made. Thanks for pointing them out.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Version 1.0.2
  • Change smiley image links to plain text smiley codes.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

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

Post by stokerpiller »

Thanks for this Mod.
I have translated to danish: http://www.2shared.com/file/3736069/4a4 ... anish.html
I am done with phpBB
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Thanks!
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

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

Post by Sunka »

Looking good
2 in 1 :mrgreen:
somniumaudio
Registered User
Posts: 4
Joined: Wed Aug 27, 2008 7:19 pm

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

Post 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
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

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); 
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
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 »

Is that for anyone who installed this mod?
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Well, for the latest version anyway.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
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 »

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?
Locked

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