possible problem with Newsletter signup

Post

Posted
Rating:
#6708 (In Topic #1739)
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’
I have the Newsletter signup box on the panel_right of my Home page.  I have module:newsletter in the Permissions Tree Editor set to disabled for Guests.  The Newsletter signup box still appears on the Home page for Guests, which is fine I guess, but if that Guest enters their email address and clicks 'Subscribe' they will receive the confirm subscription email.  This shouldn't be allowed if the permission is not set to allow it.  Correct?  Because to me Guest should not be able to sign up for newsletters (according to the permission setting) but they are still able to.

Am I doing something wrong here?

Thanks in advance for your help!
 
Online now: No Back to the top

Post

Posted
Rating:
#6709
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You disabled access to the newsletter page, but the block doesn't use the page.
If you don't want a user to see a block, you need to use the if_in_group Comcode tag.

Like…

Code

[if_in_group="*,!1"]
[block]main_newsletter_signup[/block]
[/if_in_group]

This allows everybody in a group except group #1 (Guests) to view the block.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6711
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’

Chris Graham said

You disabled access to the newsletter page, but the block doesn't use the page.
If you don't want a user to see a block, you need to use the if_in_group Comcode tag.

Like…

Code

[if_in_group="*,!1"]
[block]main_newsletter_signup[/block]
[/if_in_group]
This allows everybody in a group except group #1 (Guests) to view the block.
Excellent.  Thanks Chris.  

I would like to mention that I did sort of try this, but I used the following code to do so:

Code

{+START,IF,{$NOT,{$IS_GUEST}}}
[block]main_newsletter_signup[/block]
{+END}
This also worked.  But unfortunately after saving, doing some other stuff, and then coming back to edit some more…my custom code was gone!  It was completely removed and therefore no longer worked.  I'm not sure why that would happen, but it did…which is why I submitted this help request  :)

Just wanted to share that information with you, in case you wanted to look into it further (or maybe I did something wrong).

Edit: Never mind :$  I'm still learning a lot about this powerful software.  I have never looked at the Zone editor and once I just did that I noticed my custom comcode in the site zone but not in the welcome zone…thus it looked like it had gotten deleted but it had not.  Sorry about that.

 

Last edit: by cwdean

Online now: No Back to the top

Post

Posted
Rating:
#6712
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Possibly it's because you have two panel_left's (one for welcome zone, one for site zone), as discussed in your other topic.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6713
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’

Chris Graham said

Possibly it's because you have two panel_left's (one for welcome zone, one for site zone), as discussed in your other topic.

Sorry Chris.  I think I was editing my previous post while you were responding :)  I noticed this on my own shortly afterward my post.

But on a side question, I notice the following in the editor:

comcode.jpg
This is probably a VERY stupid question, but how do I edit the tempcode in this case?  I see Tempcode tag but can't figure out how to edit it.
Online now: No Back to the top

Post

Posted
Rating:
#6714
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
It's added like this to reduce the chance of accidentally corrupting the nesting structure when working in a WYSIWYG editor.
You need to go into the editor's source view and edit it in XML form.

Or, turn off WYSIWYG.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top