Emailing entire rev...
 
Notifications
Clear all

Emailing entire review

11 Posts
7 Users
0 Reactions
2,525 Views
(@windiain)
Posts: 4
New Member
Topic starter
 

I've had a few members ask if it's possible for them to receive the entire review in their review notification emails, and not just a notification that they have a review on the site. Is it possible to do this, and what would I need to poke and prod?

I may be missing something obvious in the settings, in which case, oops. Otherwise, any help appreciated, thanks. πŸ™‚


 
Posted : 12/12/2009 3:40 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Try this:

reviews.php

Line 191 is:

					if($mail['newreviews']) {
include_once("includes/emailer.php");
$subject = _REVEMAIL1.$title;
$mailtext = sprintf(_REVEMAIL2, "type=$type&item=$item");
$result = sendemail($mail['penname'], $mail['email'], $sitename, $siteemail, $subject, $mailtext, "html");
}

Change:

						$mailtext = sprintf(_REVEMAIL2, "type=$type&item=$item");

To:

						$mailtext = sprintf(_REVEMAIL2, "type=$type&item=$item", $review);

languages/en.php

line 165

Change:

define ("_REVEMAIL2", "Hello,
  You have received a new review at $sitename.rn You can view your new review at <a href="'$url/reviews.php?%1$s'>$url/reviews.php?%1$s</a>."
If you no longer wish to receive e-mails such as this, please go to your accountrn
on $sitename, and edit your profile."); // Modified 11-12-05p

To:

define ("_REVEMAIL2", "Hello,
  You have received a new review at $sitename.rn You can view your new review at <a href="'$url/reviews.php?%1$s'>$url/reviews.php?%1$s</a>.rn%2$s"
If you no longer wish to receive e-mails such as this, please go to your accountrn
on $sitename, and edit your profile."); // Modified 11-12-05

archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 12/12/2009 4:45 pm
(@windiain)
Posts: 4
New Member
Topic starter
 

Thank you! Works a treat. πŸ™‚


 
Posted : 12/12/2009 5:20 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Awesome. πŸ™‚ It may mess up with weird chars or formatting...

You'll probably have to add another rn after the %2$s (which is the review variable) to format it out nicely. Or even add a sentence telling you what it is... yeahh πŸ˜›


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 12/12/2009 9:15 pm
(@Jennmc75)
Posts: 0
 

I've modified my files as indicated, but the emailed reviews contain rn between every hard return in the review.  It's rather annoying and I didn't know if I could adjust the coding to eliminate the rn from showing in the email.


 
Posted : 28/01/2010 9:24 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Sure, just remove them. πŸ™‚


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 29/01/2010 10:10 am
(@undrockroll)
Posts: 41
Eminent Member
 

this feature is amazing and works beautifully!

now, okay, I have a question - is there any way to also add to the email which member is leaving the review? this would sort of be the cherry on top and I feel like it wouldn't be that hard to add, but I'm not so good at efiction stuff. thoughts, anyone? πŸ™‚


 
Posted : 02/04/2010 1:48 pm
(@cellascarpi)
Posts: 8
Active Member
 

I am interested to see if anyone has figured out how to add the name of the member leaving the review as well.


 
Posted : 18/07/2010 2:43 pm
(@guest6594)
Posts: 0
 

Okay so I'm a demanding one.

I've searched the forums and haven't seen this but it goes along with this idea. 

I adjusdted the code from the reviews it works perfectly, I would like to not only add the name of who reviewed though, I would also like to know if when the writer replies if the reviewer could get the response in their email as well. I understand that the responses techinicly are added to the review and have no problem with them being included with said email. In fact I prefer it.

So would this work?

I'm going to play withth code when I get home, but wanted to run it by y'all to see if anyone else has already done it. 


 
Posted : 18/07/2010 4:12 pm
(@tammy)
Posts: 2577
Member Moderator
 

It can be done.  You'd need to add the e-mail code to the respond section of reviews.php


 
Posted : 20/07/2010 7:03 pm
(@izdoodle)
Posts: 101
Estimable Member
 

I figured out how to get the whole review to send, but it has these r/n things in them. What part of the code can I take out to get those not to show up?

Also, I what code do I add where, to get the reviewers name to show up in the email?

I know it's probably staring me in the face, but I've read this thread a hundred times and don't see how to do it.

Thanks for your help.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 11/10/2010 5:43 pm
Share: