Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Getting email working for Subscriptions
Pages: [1]   Go Down
  Print  
Author Topic: Getting email working for Subscriptions  (Read 1308 times)
0 Members and 2 Guests are viewing this topic.
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« on: September 21, 2010, 06:16:18 »

Hi. I installed the latest version of JComments a couple weeks ago. I enabled notifications. Everytime a comment is added, the administrator (myself) gets an email fine from the system. That part is working.

However, I don't think that my users are getting emails, when they are subscribed to an article. As a test I made a new comment as a non-logged in user, and selected the box to have the user notified of updates. I then went into the comment system backend and published that comment. Then in a new browser session I went in and created a comment as another non-logged in user. I then went into the backend and published the comment. There was no notification email sent (I checked the spam folder in gmail also).

I verified that the subscription was made, in the subscription tab.

Ideas? Thanks.
Logged
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #1 on: September 21, 2010, 07:41:59 »

I just read another post that said this is known issue and is fixed in the "upcoming version". Would that fix be in the 2.02, or a version that hasn't been released yet? I'll try the hack that was posted in that other thread.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #2 on: September 21, 2010, 15:06:54 »

No, version which has fix for this issue isn't released yet. But I've already posted quick fix in other topic. You could use it until new version released.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #3 on: September 21, 2010, 19:00:11 »

I just added the hack, which brings me to notice a new problem.  The email notification to subscribers is in the non-sef url form AND it was missing the slash right after mydomain.com, so the link didn't work. So I can't use this until fixed.  However, I notice that the email to administrators from jomcomment has the nice SEF url AND they work correctly. Is this a bug? If anyone has seen this let me know before I try to hack through code again.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: September 21, 2010, 19:21:44 »

This is because Joomla doesn't allow to create SEF urls from backend (I don't know why). As I know the JomComment uses mail queue that fills from frontend/backend and used to send emails from frontend. I'm working on similar solution for JComments. It would be available in upcoming JComments version.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #5 on: September 21, 2010, 19:29:41 »

Interesting. So when a comment is submitted on the front end, that can use the SEF, whereas if it is published on the backend it can't..... The solution you are working on would be awesome.

I can try to accept that for now, but do you happen to have an idea why it's cutting off the slash on the url. It looks like this for example   http://www.mysite.comindex.php/?option=..........
« Last Edit: September 21, 2010, 19:48:31 by thejackal » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: September 21, 2010, 19:52:53 »

When comments is added from frontent or published from backend it will be inserted in mail queue. When users open comments list for some object the JComments will check mail queue and generate emails (in this case we are on frontent and could create SEF links). Also such solution could reduce mail server load in case big amount of subscribers.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #7 on: September 21, 2010, 20:34:32 »

Any ideas on the above mentioned missing slash from the url that gets sent out? I'm adding in an ugly, bad hack, but would love to know if there is a solution.
Logged
thejackal
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #8 on: September 21, 2010, 20:55:42 »

Looking around in the code I see some checks for JCOMMENTS_JVERSION == '1.5'. It seems that the code is going into these sections.  jcomments.class.php for example has:
if (strpos($link, $url) === false) {
         if (JCOMMENTS_JVERSION == '1.5') {
            $link = $url . $link;
         } else {
            $link = $url . '/' . $link;
         }

I see that the else adds the '/' to the url (my jversion is 1.5, so it must be going into the if and not adding the slash?) I don't know if that gives any hints or not.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Getting email working for Subscriptions
 
Jump to: