1oclock
Veteran
Just Getting Started
Member Likes (0)
I've tried to follow the steps to protect content on my site, but it still isn't being protected. I must be doing something wrong. Here are my steps:
1) I added a shortcode and set its default to not show content (image: shortcode1)
2) I added a positive rule for my "free" membership level indicating that they can see all shortcodes except the "premium" shortcode that I created (a negative rule makes more sense...but that's not the point)(shortcode2)
3) I wrapped the content I want protected with opening and closing shortcodes (shortcode3)
4) But the content is still showing and accessible (shortcode4)
I should mention that I double and triple-checked that I was logged in as a member that is on the specific access level that I put the positive rule on (step #2 above).
What step am I missing here?
Thanks,
John

Responses (11)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi John,
Just to confirm, the access level you're trying to hide the shortcoded content from is currently seeing the content with the unrendered [premium] shortcode text as shown in the screenshot, correct?
Strangely, that has all the appearances of you viewing the site as Admin, though you've already clarified you're logged in as a member with that particular access level.
As you've already specified for the shortcodes to not be visible by default, the rule really shouldn't be necessary. Could you give it a try without that rule there?
And inversely, could you give it a try with the shortcode visibility set to "Yes" and then use that rule? Just curious as to why that's still showing the [premium] shortcode unrendered and hoping that'll help get to the bottom of it.
Thanks,
David
Member (joined September 2011) Likes (0)
David,
Thanks for the follow-up. It seems that leaving the setting for the shortcodes not to display and then removing the rule worked. Perhaps I created some kind of a coding conflict when I added an unnecessary rule.
Anyway...thanks again!
John
Member (joined September 2011) Likes (0)
One follow-up question: Is there a way to NOT show the shortcodes to people that are allowed to see the protected content? As you can see in attachment #1, everything formats nicely when the content is protected, but as soon as the access level UN-protects the content (attachment #2) my formatting is messed up because of the inclusion of the "[premium]" shortcodes. Can I make those invisible?
Member (joined September 2011) Likes (0)
Any chance on getting a response to my follow-up question? I've waited more than the 16 hour timeframe that is supposed to be reserved for questions posted on the weekend (which indicates timeframes should be shorter for questions posted on a weekday).
Thanks.
Member (joined September 2011) Likes (0)
I know you guys don't like the "bumping" of questions, but I posted my follow-up questions four days ago and I don't have a response yet. Please provide the level of support that you indicate on your page ("Support staff hours are 9AM - 5PM CST (US) Monday - Friday... threads posted outside this time may experience response delays of 12 - 16 hours or longer at weekends. ")
Developer (joined June 2008) Likes (0)
Yes, leave the shortcode no access message blank and nothing will show when the shortcode isn't available for that user.
Developer (joined June 2008) Likes (0)
What user are you logged in as? Those shouldn't show if you are not logged in as an admin user.
Developer (joined June 2008) Likes (0)
Those are general support hours for the majority of the WPMU DEV team, however a lot of us aren't based in the US (a good few are in Europe and Australia) so you'll find us answering forum threads outside those hours
Support Kangaroo (joined March 2011) Likes (0)
Greetings 1oclock,
Sorry for the delay as we found it necessary to get the lead developer in here to answer your questions.
On occasion it is necessary to to wait for a the lead developer response which normally takes longer then a regular ticket.
Thanks you for being a WPMU Dev member!
Cheers, Joe :-)
Member (joined September 2011) Likes (0)
I had never tried logging in as a non-admin. I just tested it and it worked fine. Thanks.
As to the support hours, I was more pointing out the statement that the expected wait time on a weekend is 12-16 hours which would indicate that the wait time should be even less on a weekday. Geographic location is generally meaningless when it takes several days to get a response.
Support Kangaroo (joined March 2011) Likes (0)
Greetings 1oclock,
Happy to hear that you got things all sorted out.
Thank you for being a WPMU Dev member!
Cheers, Joe :-)
Become a member