possible problem with Newsletter signup

Post

Posted
Rating:
#6010 (In Topic #1247)
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!
 

Post

Posted
Rating:
#6011
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.

Post

Posted
Rating:
#6013

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

Post

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

Post

Posted
Rating:
#6015

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.

Post

Posted
Rating:
#6016
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.
1 guest and 0 members have recently viewed this.