AXXIS Forum

Forum for the products of AXXIS Internet Solutions
It is currently Thu Sep 09, 2010 5:16 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [SOLVED] Mailing list memberships not "remembered" in 4.0.9
PostPosted: Mon Mar 08, 2010 10:22 pm 
Offline

Joined: Fri Oct 02, 2009 9:07 pm
Posts: 9
I have 4.0.9 installed and am having a problem with the subscriptions by users.

When a use goes to the mailing list component, they see all the mailing lists selected regardless of what lists they have subscribed to. When they clear the selections and choose which lists they want to be a member and click the submit button, it correctly lists the mailing lists to which they have subscribed, but if they click the "Return to Mailing Lists" link on that page (or go back through the menu and select the component) all of the mailing lists are selected (not just those to which they subscribed).

I remember having a problem similar to this with the free version of UML, in fact I proposed a solution to this in this thread: viewtopic.php?f=2&t=77

It appears as though this "feature" has crept back into (or was never fixed within) the commercial version.

I briefly looked at frontcontroller.php, but see the code is different from the fix that I proposed.

Any help?


Top
 Profile  
 
 Post subject: Re: Mailing list memberships not "remembered" in 4.0.9
PostPosted: Mon Mar 08, 2010 10:54 pm 
Offline

Joined: Fri Oct 02, 2009 9:07 pm
Posts: 9
Once again, I think I have found the offending code in frontcontroller.php

In the START OF FUNCTION section, the original code looks like this:

if (count($subscribed)==0)
if ($subscribed[0]->subscription == -1)
$checked = false;

I believe it should be changed to this:

if (count($subscribed)==0)
$checked = false;
if ($subscribed[0]->subscription == -1)
$checked = false;

Reasoning: If a user has never signed up for the mailing list group, there will be no entries in the #_mailing_emails table for that group id, thus the "subscribed" will return 0 rows -- and thus the $checked should be false. However, with the code the way it is, if it returns 0 rows, it goes on to checked if the subscription column is -1 (which it can't be).

If a user has signed up for the list, and then subsequently unsubscribed to the list, their count will be non-zero, but their subscription column will be -1.

I've tested this on my site and it seems to be working. Would you please be able to evaluate my fix?

Thanks,
Mike


Top
 Profile  
 
 Post subject: Re: Mailing list memberships not "remembered" in 4.0.9
PostPosted: Tue Jun 01, 2010 6:39 pm 
Offline
Site Admin

Joined: Tue Jun 16, 2009 2:22 pm
Posts: 784
We have added this quick fix in v4.35


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group