Support Center

Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 03:56:06 PM
22774 Posts in 5217 Topics by 2974 Members
Latest Member: Vijitha
News: Do not post any jReviews files or large amounts of code in the forums please. Only template files and code are allowed.
 
jReviews Support Forum  |  jReviews 1.x  |  General Discussion  |  How does e-mail notification work? « previous next »
Pages: [1] 2
Author Topic: How does e-mail notification work?  (Read 1586 times)
bflora
Jr. Member
**
Offline Offline

Posts: 37


« on: April 10, 2007, 12:44:54 AM »

Who gets notified when a review is added to a piece of jReviews content?

I know the admin gets an e-mail.  Is it possible to automatically send an e-mail to the person designated as the item's "creator"?  Does that automatically happen already?

is there e-mail notification with jReviews?  I don't see how it works...
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #1 on: April 10, 2007, 12:53:00 AM »

Quote
Is it possible to automatically send an e-mail to the person designated as the item's "creator"?  Does that automatically happen already?

No. I understand this is useful and will try to add it at some point.

Right now anyone who is designated to receive admin messages will be notified. You will see the little mail icon in the backend show the number of new messages and if you configure the messaging to send out emails, then those users should receive an email as well. The email part got broken in Joomla 1.0.11 but supposedly the Joomla guys fixed it in 1.0.12.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
bflora
Jr. Member
**
Offline Offline

Posts: 37


« Reply #2 on: April 10, 2007, 01:03:02 AM »

Thanks for the speedy reply.  Hope you had a nice week off.

I'm finally going ahead with launching my jReviews site over at http://www.collegeconsultantreviews.com in case you're interested in featuring it on here.

Would this feature be something to look forward to in a future edition?
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #3 on: April 10, 2007, 09:24:27 AM »

Please add your site to the site showcase in the forum and I will consider adding it to the frontpage when I have some more time.

I would like to add this feature in a future version, it's just a matter of time.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
GStone
Newbie
*
Offline Offline

Posts: 13



« Reply #4 on: July 27, 2007, 02:07:22 AM »

 If I understand this correctly, anyone set to receive admin emails will receive all emails, not just jReviews ones.

I'd like to set it so that my review editor and I both get notification of new review content, but so that he doesn't get other non-review related admin notifications.  Possible?
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #5 on: July 27, 2007, 08:23:58 PM »

This is not possible. When I get back from holiday mid-August I can give you some pointers on how to change the code to do this.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
GStone
Newbie
*
Offline Offline

Posts: 13



« Reply #6 on: July 28, 2007, 05:55:50 PM »

Thanks; looking forward to it.  Have a great holiday.
Logged
weazle
Newbie
*
Offline Offline

Posts: 1


« Reply #7 on: September 17, 2007, 10:31:19 PM »

Bumping this with a twist! How about just emailing a certain access group such as Editor or Author? that way you can seperate who gets what without having to go thru all that? Or actually what would be cool is to have only those certain ppl who submitted content under s certain category recieves an email when a review or new content is submitted. In other words, everyone who has submitted content in a "category A" receives notification whenever somebody else submits new content or a new review in that category.

Just a thought, is there a way to do this with CB integration utilizing the custom fields/tabs/lists? I don't know anything about these functions in CB, maybe I'm way off here!

Thanks!

Scott
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #8 on: September 19, 2007, 12:13:00 PM »

Sorry for not following up on this one. Joomla and Mambo have a function called mosemail that can be used to send emails Smiley

mosMail($fromemail, $fromname, $toemail, $subject, $body);

I haven't tested this, but after someone does and we get it working I will post it on the tips and tricks.

In jreviews.common.php, function saveReview, you can put this line either at the end of the following if stament either inside or outside the closing curly brace "}" depending on whether you want the notification setting to also affect this email to listing owners.

Loof for this if statement and find the closing brace for it further down
Code:
// messaging for new reviews
<?php
if ( $jrsettings->notify_review ) {
?>


Place this code either before or after the closing brace. Before turns off the email together with the email notification.

Code:
<?php
/****************/

//get listing owner email
$sql "SELECT user.email"
."\n FROM #__content AS content"
."\n LEFT JOIN #__users AS user ON content.created_by = user.id"
."\n WHERE content.id = ".$formValues['pid']
;
$database->setQuery($sql);
$toemail $database->loadResult();

if ($toemail
{
global $mainframe;
$subject "New review for ".$title;
$body $message;
@mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('sitename'), $toemail$subject$body);
}

/****************/
?>


Ignore the php tags <?php and ?> in the code above.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
jake002
Jr. Member
**
Offline Offline

Posts: 32


WWW
« Reply #9 on: November 15, 2007, 12:29:46 PM »

I tried that...deos not seem to work. I made sure I was the creator of the sobi2 listing and then added the code as below...Is the code placed correctly?

Code:
// messaging for new reviews
if ( $jrsettings->notify_review ) {

include_once( _PATH_JOOMLA .'/components/com_messages/messages.class.php' );
$c_name = '';

if ($mode == 'com_content') {
$query = "SELECT title FROM #__content WHERE id = '$row->pid'";
} else {
// Get component settings
@include_once( _PATH_JOOMLA . "/components/com_jreviews_everywhere/jreviews_everywhere.php" );
$c = new jReviewsEverywhereComponent($mode);
$table = $c->value['entry_table'];
$title = $c->value['entry_title'];
$entry_id = $c->value['entry_id'];
$c_name = " [".$c->name."]";

$query = "SELECT $title FROM $table WHERE $entry_id = '$row->pid'";
}
                   
$database->setQuery($query);
$entry_title = $database->loadResult().$c_name;

if ($isNew) {
$subject = "jReviews notification: new review for <b>$entry_title</b>";
} else {
$subject = "jReviews notification:a review was edited for <b>$entry_title</b>";
}
$message = "[$row->name] submitted the following comments [$row->comments]";

jReviewsCommon::sendAdminMsg( $subject, $message );

}
                        //get listing owner email
$sql = "SELECT user.email"
."\n FROM #__content AS content"
."\n LEFT JOIN #__users AS user ON content.created_by = user.id"
."\n WHERE content.id = ".$formValues['pid']
;
$database->setQuery($sql);
$toemail = $database->loadResult();

if ($toemail)
{
global $mainframe;
$subject = "New review for ".$title;
$body = $message;
@mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('sitename'), $toemail, $subject, $body);
}


Logged

http://www.servicedomino.com
Recommended Services- Servicedomino.com
udigolan
Newbie
*
Offline Offline

Posts: 15


« Reply #10 on: December 07, 2007, 04:27:14 PM »


Alejandro's code works like magic for me (as anything else he provides).

Excellent!

Thanks,
Udi.
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #11 on: December 07, 2007, 04:39:42 PM »

Yeah, problem with the previous poster is that this wasn't meant to work with jReviewsEverywhere. Udi, I hate to impose, but would you be willing to create a new tips&tricks post with just the steps you followed so it's useful for others instead of being buried in this post? Smiley
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
vntica
Newbie
*
Offline Offline

Posts: 1


« Reply #12 on: January 02, 2008, 10:17:21 PM »

Quote
if you configure the messaging to send out emails

Alejandro, How can I configure Joomla so that email notification will be sent directly to my mailbox, not a little mail icon in the back end

Thanks
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8996


« Reply #13 on: January 03, 2008, 05:31:45 PM »

There's a setting when editing users in the Joomla user manager:

Receive System E-mails: YES NO
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
TheSaint
Newbie
*
Offline Offline

Posts: 22


« Reply #14 on: April 30, 2008, 01:33:52 AM »

Can I change the code in jreviews.common.php somehow to have it send only notifications on new items and not on edited entries?
Logged
Pages: [1] 2
« previous next »
    Jump to: