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

Register an Account
Reply
 
Thread Tools Display Modes
  #81 (permalink)  
Old 03-23-2009, 01:09 PM
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie
 
Join Date: Nov 2008
Location: Palmer, PA
Posts: 64
Thanks Yank, good to know, but it would be a terrific feature though. I implemented the code to email the user of the story and it works great also with the mod to correct the unsubscribe issue.
Reply With Quote
  #82 (permalink)  
Old 06-04-2009, 06:42 PM
Casual Pligger
Pligg Version: 1.0.4
 
Join Date: Apr 2007
Posts: 55
Quote:
Originally Posted by Yankidank View Post
I have no idea what happened to this feature. I think it was made as a module or built into pligg at some point between 9.9.5 and 1.0 RC1 but I'm not sure what happened to it since then. I'll try to remember to dig into what happened to it, but I expect that it was canned for some reason.
Sounds like a great idea, either to wrap all of this into a module or into the pligg core. Have you managed to chase the status of this up yet Yankidank?.

I ask because I am tempted to wrap it into a module myself if its not already on the way..... i dont usually like hacking core code as it can get hairy when upgrading..

.
Reply With Quote
  #83 (permalink)  
Old 06-11-2009, 05:28 PM
MissDanni's Avatar
Casual Pligger
Pligg Version: 1.1.4
Pligg Template: Mainstream
 
Join Date: Jun 2009
Posts: 89
Send a message via Skype™ to MissDanni
I would be interested in this as a module.
Reply With Quote
  #84 (permalink)  
Old 06-27-2009, 09:18 AM
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie
 
Join Date: Nov 2008
Location: Palmer, PA
Posts: 64
Quote:
Originally Posted by Ghool View Post
Thanks Redwine. This is surely something I will need.

Added all and waiting for the 1 mail to arrive now.

I have a little addon to the code in libs/link.php - I noticed it did not set the subscribe field back to 0 if you later choose to stop getting mails from a thread.

I changed:

Code:
if(isset($_POST['subscribeto'])){
		$this->subscribe = "1";
		}
to

Code:
if(isset($_POST['subscribeto'])){
		$this->subscribe = "1";
		} else {
		$this->subscribe = "0";
		}

Have you been working further on the thought of every user can subscribe to the comments (if they commented them self) - I would love to get this addon - if some $ donation will help let me know

UPDATE: Sorry, the update I made above actually changed the value to 0 when someone commented. Darn... But I still got problems: Unable to unsubscribe again if checked (it just remains checked after save)


I have the same problem with this code..it unsubscribes after a comment is made.
Reply With Quote
  #85 (permalink)  
Old 06-30-2009, 02:04 PM
keg01's Avatar
Pligg Donor
Pligg Version: 1.0.0
Pligg Template: exp realnews
 
Join Date: Oct 2007
Location: Atl
Posts: 74
Quote:
Originally Posted by chuckroast View Post
We have added this feature to the next release.
Was the "next release" 1.0? I may be behind the curve on the history of this feature but I cannot find it in 1.0 using wistie ... is there a trick to enabling this as a config option? Is it a module I need to download/purchase?

This is a valuable feature and I hope I'm just over-looking it. Thank you!
Reply With Quote
  #86 (permalink)  
Old 07-08-2009, 05:22 PM
Casual Pligger
Pligg Version: 9.7
Pligg Template: yget based
 
Join Date: Aug 2007
Posts: 84
Quote:
Originally Posted by JonniE_M View Post
I have the same problem with this code..it unsubscribes after a comment is made.
See my post above - http://forums.pligg.com/modification-tutorials/4917-mail-there-new-comment-your-story-8.html#post72484

Hello everybody! How to send mail to 'author of parent comment' if somebody comment his comment? I've checked story.php and libs/comment.php, but don't understand how to do this.
Reply With Quote
  #87 (permalink)  
Old 01-31-2010, 08:21 AM
Casual Pligger
Pligg Version: 1.0.4
 
Join Date: Apr 2007
Posts: 55
Hi i just saw this thread. I have already created a notifications module that will allow an author to set if they want to receive email notifications on new comments to their stories. The preference is set in the individual users profile page so it can be enabled/disabled individually. Users can also choose if they want html or text emails. The email formats are easily customizable as they are simple smarty template files. Check it out.

Stop the BS with the Ban Spammers module and stop spam once and for all
Enhance your site appeal by showing story thumbnail images with the Auto Thumbnail Module
Reply With Quote
  #88 (permalink)  
Old 03-25-2010, 05:16 PM
Pligg Donor
Pligg Version: 1.0.4
 
Join Date: Feb 2010
Posts: 68
I have been trying to get this to work under pligg 1.03 .. all goes fine, the link_subscribe is set to 1, when i submit a story .. but something very strange is happening, after i log on with a different user name and post a comment, the link_subscribe is set to 0 in the database.

i looked over the code several times but i cannot pinpoint where the mistake is ...
Reply With Quote
  #89 (permalink)  
Old 03-26-2010, 08:02 PM
Pligg Donor
Pligg Version: 1.0.4
 
Join Date: Feb 2010
Posts: 68


edit :

The solutions mentioned below will NOT work .. read my next post in this thread, or click the link

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



I made a workaround to the problem ... my problem : the subscribe_link was set to ZERO after submitting a comment

The workaround at this moment is :


==================================

FIND the following line in STORY.PHP

---------------------
if ($link->subscribe==1) {
---------------------

and REPLACE it with:

-----------------------------------
$select_temp = $db->get_row("SELECT link_subscribe FROM pligg_links WHERE link_id=$link->id");
if ($select_temp->link_subscribe==1) {
-----------------------------------

================================================== =======

open LINK.PHP
Find ;
---------------------
if(isset($_POST['subscribeto'])){
$this->subscribe = "1";
}
---------------------

And ADD right below :

---------------------
$this->subscribe = "1";
---------------------


it should look like this

----------------------
if(isset($_POST['subscribeto'])){
$this->subscribe = "1";
}
$this->subscribe = "1";
-----------------------

My work around is very rudimentary .. and doing this will BLOCK the user to being able to STOP receiving notifications

I will digg more into the code and hopefully figure it out


You will receive an email now when someone post a new comment ... BUT ... once you have selected to receive an email when a new comment is posted ... you are not able to turn it off ... not yet :-) ..

Last edited by wannabe; 03-27-2010 at 08:08 AM.
Reply With Quote
  #90 (permalink)  
Old 03-26-2010, 08:14 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
wannabe

Thank you for sharing your progress with this.
If you can troubleshoot it I'd be happy to work on this free module and package it up for distribution with the core..
With your credit of course.
I just don't have the time to pick it apart.
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