Jump to:
| Project: | Simplenews Register Block |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I'd like to configure the Simplenews Registration Block to look EXACTLY like the picture on the module home page even when a user is logged into their account. I do not want the logged in username to appear in the SRB when a user is logged into their account. Additionally, my SRB is requesting a password for someone to sign up for the newsletter - I would like to delete this requirement as well. In summary, I'm looking for:
When Unsubscribed:
Name
Email Address
Checkbox to subscribe to newsletter
Subscribe button
When Subscribed:
No Simplenews Registration Block Appears
I tested this directive, but the block disappeared whether logged in or not:
To show the Simplenews block only to unsubscribed users you have to configure the block and copy the code into the box below Page specific visibility settings. Make sure to select the last radio button (Show if the following PHP code returns TRUE).
<?php
global $user;
if ($user->subscriptions_subscribe !=0){
return TRUE;
} else {
return FALSE;
}
?>Many thanks to anyone willing to lend a hand.
Comments
#1
First line above should be changed to:
I'd like to configure the Simplenews Registration Block to look EXACTLY like the picture on the module home page UNLESS a user is logged into their account.
Thank you.