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. π
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:
site:
Available for skin/mod commission! π
Thank you! Works a treat. π
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:
site:
Available for skin/mod commission! π
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.
Sure, just remove them. π
archive:
site:
Available for skin/mod commission! π
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? π
I am interested to see if anyone has figured out how to add the name of the member leaving the review as well.
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.
It can be done. You'd need to add the e-mail code to the respond section of reviews.php
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.
