|
#1
|
||||
|
||||
|
Comment Notification Email Glitch
I've recently noticed a couple of changes in the notification emails I get when comments are posted to my site. To start, the title of the photo used to be in the body of the message but no longer shows up. In addition, the image link ends after "http://www.greentraveler.com/photoblog/?showimage=", which obviously just throws me to the latest post.
Although this isn't a critical problem, I really like being able to see which photo the comment is for without having to log into the admin Comments page or search my phtoos randomly. Here's the code...can anyone tell me where I've gone wrong?!?!?!? ![]() Quote:
|
|
#2
|
|||
|
|||
|
first of all: things don't change just from themselves
what did you change? |
|
#3
|
||||
|
||||
|
I've tweaked the EXIF values to display D70 info correctly, added Exifer, installed 6 add-ons (Grablinks, Pixelpost Stats, Visits Today, Random Thumbs, Random Image, & Category List of Links), upgraded to 1.3, and made small HTML changes to my templates to include add-ons and design changes.
:lol: Basically, I've modified it so much that I cannot isolate exactly where the problem began. I hoped throwing the code up would reveal an obvious coding error on my part, but any further investigation would be crazy-time intensive and I know that you're stretched thin as it is. Like I said, this isn't life-threatening...more of an annoyance that I can certainly live with. And fixing it seems daunting in the way untangling cords is. When I upgrade to the next version of PP, I'll test as I tweak and have a much more accurate idea of where the trouble begins. Thanks for all your help in the forums, Connie! |
|
#4
|
|||
|
|||
|
greentraveler...thats funny, because, i've never seen the title in the email....in fact, i was going to try to add it, but ran into all sorts of problems...
ARe you sure it was there before? |
|
#5
|
|||
|
|||
|
greentraveler, try adding "index.php" to the end of your site URL in the Administration screen under "Options". I had the same problem and this is how I fixed it.
Tony S. |
|
#6
|
|||
|
|||
|
greentraveler, btw, your photoblog is awesome!
|
|
#7
|
||||
|
||||
|
tseneadza: Thanks for the tip, but it didn't end up working out for me. Appreciate it, though!
mark: Thanks for the praise. And I'm embarassed to admit that you're right...a search of my old emails shows that I never actually did get the title. I would have sworn that I did, but I must just have been recognizing the photo number in the links I'm missing now. ops:I guess I thought that this tag, $comment_image_id would show the title. Since it was delivering no displayed value in the emails, I deduced it was a problem on my end. That's the actual tag that's screwing up the link, too. The value just isn't being pulled from the comment page for some reason.
|
|
#8
|
|||
|
|||
|
greentraveler...
Here's the solution...it works.. First, in comment.html under: Code:
<input type='hidden' name='parent_id' value='<IMAGE_ID>' /> Code:
<input type='hidden' name='title' value='<IMAGE_TITLE>' /> Code:
$comment_image_id = $_POST['parent_id'];
$comment_message = clean($_POST['message']);
$comment_email = clean($_POST['email']);
Code:
$comment_title = clean($_POST['title']); Code:
$subject = "MarkMyShots - New Comment Made - $comment_title"; |
|
#9
|
||||
|
||||
|
whala!! is right...that set things up perfectly. Thanks a lot, Mark!
|
| Post Reply |
| Thread Tools | |
|
|