Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Change Wording on email_new_comment_message.tpl
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/13/13 11:26 
"A new comment has been posted by xxxx to one of your items:"

I would like to change "items" to display what the comment was really on. In JR4 I had a conditional statement and would like to do the same. How would this get written in jr5?

This is what I had in JR4.


Code
{if $COMMENT_TYPE == "band"}
You have a new Artist Comment from {$COMMENT_USER}!
{elseif $COMMENT_TYPE == "song"}
You have a new Song Review from {$COMMENT_USER}!
{elseif $COMMENT_TYPE == "photo"}
You have a new photo comment from {$COMMENT_USER}!
{elseif $COMMENT_TYPE == "video"}
You have a new video comment from {$COMMENT_USER}!
{elseif $COMMENT_TYPE == "message"}
You have a new blog comment from {$COMMENT_USER}!
{/if}


Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/14/13 05:44 
I've not tested this, but see if it will work for you.

In your jrComments/templates/email_new_comment_message.tpl file, change this:


Code
{jrCore_lang module="jrComment" id="14" default="A new comment has been posted by %1 to one of your items:" 1=$comment_user_name}

{$comment_item_url}


to this:


Code
{jrCore_lang module="jrComment" id="14" default="A new comment has been posted by %1 to %2:" 1=$comment_user_name 2=$comment_item_title}

{$comment_item_url}


Again, I've not tested it so I'm not 100% sure if it will work or not.


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/14/13 06:04 
Thanks Douglas. It did not come out 100%. I changed the language file and the template and received the below.


A new comment has been posted by Admin on :

http://www.site.com/blah/blog/5264/blah

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.