mail: "there is a new comment in your story"

Register an Account
Reply
 
Thread Tools Display Modes
  #41 (permalink)  
Old 02-12-2008, 07:02 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Check my original post on page 2 (http://forums.pligg.com/core-develop...r-story-2.html), because I have modified the $message statement in the last step to add a direct link to the story in the sent email.
Reply With Quote
  #42 (permalink)  
Old 02-13-2008, 12:16 PM
jacksparrow's Avatar
Pligg Donor
Pligg Version: 9.9.0
 
Join Date: Feb 2007
Location: NJ
Posts: 27
This code is very much necessary and a great work. I am only having problem with ver 9.9 in one area which is submit_step_3.tpl as I could not locate the codes.

Please help me top place the codes given below:

$linkres->subscribe=$_POST['subscribeto'];

$main_smarty->assign('submit_subscribe', $linkres->subscribe);


I have added all the other codes - and got the check box also.
I am attaching the submit_step_1 2 & 3 files as a zip file here. They are with .txt extension.

Thanks.

Jack.
Attached Files
File Type: zip submit.zip (3.1 KB, 11 views)

Last edited by jacksparrow; 02-13-2008 at 12:31 PM. Reason: Attaching more files
Reply With Quote
  #43 (permalink)  
Old 02-13-2008, 12:34 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Quote:
Originally Posted by jacksparrow View Post
This code is very much necessary and a great work. I am only having problem with ver 9.9 in one area which is submit_step_3.tpl as I could not locate the codes.

Please help me top place the codes given below:

$linkres->subscribe=$_POST['subscribeto'];

$main_smarty->assign('submit_subscribe', $linkres->subscribe);


I have added all the other codes - and got the check box also.
I am attaching the submit_step_1 2 & 3 files as a zip file here. They are with .txt extension.

Thanks.

Jack.
Thanks for bringing this to my attention.

I added a note for 9.9 users to modify the /submit.php instead of submit_step_3.tpl.
Reply With Quote
  #44 (permalink)  
Old 02-13-2008, 02:06 PM
jacksparrow's Avatar
Pligg Donor
Pligg Version: 9.9.0
 
Join Date: Feb 2007
Location: NJ
Posts: 27
Thanks George - excellent work !
Working perfectly for version 9.9 !!

Cheers !

Last edited by jacksparrow; 02-14-2008 at 04:20 AM.
Reply With Quote
  #45 (permalink)  
Old 02-18-2008, 07:07 PM
nzbullet's Avatar
Constant Pligger/Coder
 
Join Date: Jun 2007
Location: New Zealand
Posts: 115
Any chance of making the same thing but for comments themselves.

If I post a comment say: "This is a great site what are your thoughts?" I would like to be emailed if there is either a reply to that comment or another new comment posted. The original article may have been written by someone else and they can recieve comment emails, but what about the commeters.

Again there would have to be a way to unsubscribe to this feature for each individual story, so it would have to be linked to your profile in someway. Maybe a button that says 'Subscribe' or 'Unsubscribe' and when pressed it adds/removes the nessecary details to the db for their profile to either send them the email or not.
Reply With Quote
  #46 (permalink)  
Old 02-18-2008, 10:43 PM
New Pligger
 
Join Date: Apr 2007
Posts: 6
Hello,

I am able to get most of it working. The only issue is when I submit an article for the first time, the checkbox for subscribing to an article is not saved to the db and therefore I do not get any emails.

However if I edit the article and then check it again to subscribe and save it, I get the emails no problem.

It seems like it is an issue with submit_step_2.tpl and submit_step_3.tpl since when you edit the article it uses editlink_center.tpl.

I am using 9.7 because I still have not migrated yet.

Any ideas on how to fix this issue?

Thanks,
Pliggnewbie
Reply With Quote
  #47 (permalink)  
Old 02-18-2008, 10:51 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Quote:
Originally Posted by pliggnewbie View Post
Hello,

I am able to get most of it working. The only issue is when I submit an article for the first time, the checkbox for subscribing to an article is not saved to the db and therefore I do not get any emails.

However if I edit the article and then check it again to subscribe and save it, I get the emails no problem.

It seems like it is an issue with submit_step_2.tpl and submit_step_3.tpl since when you edit the article it uses editlink_center.tpl.

I am using 9.7 because I still have not migrated yet.

Any ideas on how to fix this issue?

Thanks,
Pliggnewbie
When you submit the story, if you have implemented the steps properly, you should check the box to receive an email. The value of the box is inserted in the database, and therefore when you go to edit your story, you should find the box checked. If it is not, that means that there was a step that was missed or improperly implemented. Check it out and PM me if you need to verify the steps or send me the files.

Cheers!

Last edited by redwine; 02-18-2008 at 11:10 PM.
Reply With Quote
  #48 (permalink)  
Old 02-18-2008, 10:59 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Quote:
Originally Posted by linka View Post
Any chance of making the same thing but for comments themselves.

If I post a comment say: "This is a great site what are your thoughts?" I would like to be emailed if there is either a reply to that comment or another new comment posted. The original article may have been written by someone else and they can recieve comment emails, but what about the commeters.

I can work on that, it should not be a problem to implement.

Again there would have to be a way to unsubscribe to this feature for each individual story, so it would have to be linked to your profile in someway. Maybe a button that says 'Subscribe' or 'Unsubscribe' and when pressed it adds/removes the nessecary details to the db for their profile to either send them the email or not.

I am working on a global "Options" to subscribe to different things on the site. It will be linked to your profile on signing up and can be modified afterwards. The options to subscribe to will be listed and you can check/uncheck the ones you want.

As it is now, you can always unsubsccribe to receiving an email for each individual story by editing the link.

I just need some time to finish a current project and start working on these features.
See my notes in your post above (in red)
Reply With Quote
  #49 (permalink)  
Old 02-18-2008, 11:31 PM
nzbullet's Avatar
Constant Pligger/Coder
 
Join Date: Jun 2007
Location: New Zealand
Posts: 115
Quote:
Originally Posted by redwine View Post
See my notes in your post above (in red)
That's great, if you could keep me posted when it is done that would also be greatly appreciated
Reply With Quote
  #50 (permalink)  
Old 02-19-2008, 12:53 AM
New Pligger
 
Join Date: Apr 2007
Posts: 6
Quote:
Originally Posted by redwine View Post
When you submit the story, if you have implemented the steps properly, you should check the box to receive an email. The value of the box is inserted in the database, and therefore when you go to edit your story, you should find the box checked. If it is not, that means that there was a step that was missed or improperly implemented. Check it out and PM me if you need to verify the steps or send me the files.

Cheers!
I have reviewed all the code and I am assuming it is related to the submit_step 2 and 3 since the checkbox works when I edit the story. After I submit the story, I check in the db and the flag is not entered into the table.

I have attached my submit step files.

I really appreciate the help and the fresh set of eyes!
Attached Files
File Type: zip pligg_email2.zip (12.1 KB, 9 views)

Last edited by pliggnewbie; 02-19-2008 at 01:31 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail not working from local system mrigank Questions and Comments 3 02-23-2009 03:06 AM
Special character problems in RSS and mail subject ditto Questions and Comments 8 04-22-2008 05:28 PM
Editing a reply to a comment? bbrian017 Questions and Comments 0 01-10-2008 05:30 PM
A proposal for a more robust way of comment deletion. sefs Questions and Comments 0 10-12-2007 05:30 PM
Comment Count Update Simon Questions and Comments 4 06-01-2007 10:45 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development