NSPro newsletterlist link
- Christopher Mavros
-
- Offline
- Administrator
-
7 months 2 weeks ago #7
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic NSPro newsletterlist link
Hi again Chris,
So, in your use case, the newsletter list is only accessible to registered users, but the newsletter view feature is still being used.
Right?
If the registered menu item is published, doesn't the link automatically take users to that menu item and request that they log in?
I think that's what it should do, but if it doesn't we can fix it.
So, in your use case, the newsletter list is only accessible to registered users, but the newsletter view feature is still being used.
Right?
If the registered menu item is published, doesn't the link automatically take users to that menu item and request that they log in?
I think that's what it should do, but if it doesn't we can fix it.
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 3
7 months 2 weeks ago - 7 months 2 weeks ago #8
by Chris
Cheers, Chris
Replied by Chris on topic NSPro newsletterlist link
Christopher, sorry. Perhaps I have not phrased my problem quite well:
Cheers, Chris
- In my case, there are several groups of subscribers that each receive their own newsletters
- None of the subscribers are registred users on the web site
- One group of subscribers must not be able to see / read newslettert addressed to other groups
- There is a button on the (online-)page displaying a single newsletter that leads to a list of ALL newsletters
Cheers, Chris
Cheers, Chris
Last edit: 7 months 2 weeks ago by Chris.
Please Log in or Create an account to join the conversation.
- Craig
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 2
7 months 2 weeks ago #9
by Craig
Replied by Craig on topic NSPro newsletterlist link
Hi Christopher, sorry for the slow response. I downloaded and installed the new version 3.3.3068 of NSPro and set the NSPro option "Newsletter List requires Menu Item" to Yes. and removed my Apache .htaccess rewrite rule for ~/index.php/component/nspro/newsletterlist
Then when I
For now I have put the Apache rewrite rule back.
I will find some time to do some debugging on this in the next few days.
Joomla 5.3.4
PHP 8.3.25
NSPro 3.3.3068
Then when I
- open a newsletter email
- click the view the newsletter online
- click the "Back to newsletter list" from the online view
For now I have put the Apache rewrite rule back.
I will find some time to do some debugging on this in the next few days.
Joomla 5.3.4
PHP 8.3.25
NSPro 3.3.3068
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
7 months 2 weeks ago #10
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic NSPro newsletterlist link
Hi everyone,
Let's try to address some of these issues.
First of all, you can control which individual newsletters appear in the front-end list, by going to the Newsletter Edit page, in the Publishing tab.
Secondly, you can select mailing lists in the newsletter list menu item. Perhaps your front-end list can only show some general newsletters.
Chris, you have the option to disable this list altogether. What you describe is a little ambiguous.
You are saying that each subscriber should see their own newsletters, but they are not logged-in users of the website.
So NS Pro would have to differentiate them by keeping track of them either by a cookie or by the s parameter in the URL.
What happens if someone accesses the list without any of that information? Should he see all, some or none of the newsletters?
What if someone is subscribed to multiple mailing lists? What if they unsubscribe from one mailing list, but then click on the newsletter that they received while they were still subscribed for that mailing list?
Then they will see a list of newsletters, but won't be able to find the newsletter they were looking for.
So, as you can see, this is a rather complicated issue that requires some configuration on your end, depending on your use case and needs.
Craig, you obviously enabled the "Newsletter List requires Menu Item" option, but did not create a menu item. If you create a menu item, the "Back to newsletter list" will automatically take you to that menu item, according to your settings.
If you set that menu item to be accessible only to registered users, Joomla will redirect you to the login page.
If necessary, I can happily add an option to disable the Back link from the newsletter view.
Thanks again!
Let's try to address some of these issues.
First of all, you can control which individual newsletters appear in the front-end list, by going to the Newsletter Edit page, in the Publishing tab.
Secondly, you can select mailing lists in the newsletter list menu item. Perhaps your front-end list can only show some general newsletters.
Chris, you have the option to disable this list altogether. What you describe is a little ambiguous.
You are saying that each subscriber should see their own newsletters, but they are not logged-in users of the website.
So NS Pro would have to differentiate them by keeping track of them either by a cookie or by the s parameter in the URL.
What happens if someone accesses the list without any of that information? Should he see all, some or none of the newsletters?
What if someone is subscribed to multiple mailing lists? What if they unsubscribe from one mailing list, but then click on the newsletter that they received while they were still subscribed for that mailing list?
Then they will see a list of newsletters, but won't be able to find the newsletter they were looking for.
So, as you can see, this is a rather complicated issue that requires some configuration on your end, depending on your use case and needs.
Craig, you obviously enabled the "Newsletter List requires Menu Item" option, but did not create a menu item. If you create a menu item, the "Back to newsletter list" will automatically take you to that menu item, according to your settings.
If you set that menu item to be accessible only to registered users, Joomla will redirect you to the login page.
If necessary, I can happily add an option to disable the Back link from the newsletter view.
Thanks again!
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
- Craig
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 2
7 months 2 weeks ago #11
by Craig
Replied by Craig on topic NSPro newsletterlist link
Hi Christopher, Many thanks for the response. I did already have an NSPro newsletter list menu item, (in fact that is what my workaround Apache rewrite rule was redirecting to before I removed it to test the new version of NSPro). Is there any other NSPro option setting I need to make other than the one change I made?
My debugging is showing that the exception is thrown because in view.html.php line 74 $app->input->get('Itemid', 0, 'int') is returning 0 because Itemid is null, and in the database the newsletter list menu item #_menu.id = 2726. (I suspect that Itemid should have somewhere been set to 2726)
The "backto newsletter list" link in the newsletter viewed online is pointing to ~/index.php/component/nspro/newsletterlist and if I remove the throwing of an exception the link still displays that link not my menu item.
My debugging is showing that the exception is thrown because in view.html.php line 74 $app->input->get('Itemid', 0, 'int') is returning 0 because Itemid is null, and in the database the newsletter list menu item #_menu.id = 2726. (I suspect that Itemid should have somewhere been set to 2726)
The "backto newsletter list" link in the newsletter viewed online is pointing to ~/index.php/component/nspro/newsletterlist and if I remove the throwing of an exception the link still displays that link not my menu item.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 3
7 months 2 weeks ago - 7 months 2 weeks ago #12
by Chris
Cheers, Chris
Replied by Chris on topic NSPro newsletterlist link
Well, Christopher, it would nor be as complicated as that.
What I meant (and I still think I was unclear in describing my problem, sorry abou that) is the following scenario:
When I send a newsletter, it gets sent to a group of subscribers. There is a link to the online version of this news, as not all my subscribers can or will read in their email clients. That works quite well, because I publish the online version.
But then, the problem is that viewing the newsletter online will have a button at the bottom that says 'Back to the list' or something like that. Clicking that, you will be able to see all published newsletter, including those meant for other groups.
That's what I meant, and that's what I do nor necessarily want to entertain.
I had invisaged that the presence of this button could be made configurable in the back end in 'Advanced Options', but if that's too complicated and I am the only customer with this problem, it's allright.
I have created a template override for newsletterview.php and in it deleted the whole button div.
Cheers, Chris
What I meant (and I still think I was unclear in describing my problem, sorry abou that) is the following scenario:
When I send a newsletter, it gets sent to a group of subscribers. There is a link to the online version of this news, as not all my subscribers can or will read in their email clients. That works quite well, because I publish the online version.
But then, the problem is that viewing the newsletter online will have a button at the bottom that says 'Back to the list' or something like that. Clicking that, you will be able to see all published newsletter, including those meant for other groups.
That's what I meant, and that's what I do nor necessarily want to entertain.
I had invisaged that the presence of this button could be made configurable in the back end in 'Advanced Options', but if that's too complicated and I am the only customer with this problem, it's allright.
I have created a template override for newsletterview.php and in it deleted the whole button div.
Cheers, Chris
Cheers, Chris
Last edit: 7 months 2 weeks ago by Chris.
Please Log in or Create an account to join the conversation.
Moderators: Christopher Mavros