Support Forum
Hi,
We have an active community running Simple:Press, with memberships managed by PMPro. We have the following issue:
On the forum page, I have set the PMPro "require membership" to our core membership levels. (Four checkboxes set in the Edit window for the /forum page.) From any browser session that isn't even logged into the site, I can still view the forum page, which shows the message "The requested group does not exist or you do not have permission to view it."
Here's the forum page: http://cafewriter.com/forum/ and since you're not logged in you can see the forum also. Among other things, we want to suppress the general public from seeing current members and that kind of stuff.
The /forum page does not contain any content. It's just the page linked from Simple Press's configuration.
I want the page to show the standard PMPro message that indicates that the content isn't permitted to be displayed. It does this for other pages that have this restriction.
I want it to show this instead: http://cafewriter.com/test-private-page/ (so, the restrictions do work but on a non forum page.)
Other stuff:
WpEngine hosting
Genesis main theme, Eleven 40 Pro child theme
I've gone into WpEngine's settings and purged the page cache. No difference.
Suggestions?
...thanks.
It looks to me that we can divide this up into two separate issues - one being the forum page being loaded when it should not be and the other user permissions within the forum.
Let;s deal quickly with the latter issue first. And I have to start by saying that we have no direct experience of PMPro - only what we have learnt through the odd user - and it does seem a rare plugin to use. Simple:Press bases it's default permission structure on user roles as defined by WordPress - after all, it is a WordPress plugin. As I understand it PMPro does not map it's user processing to WP roles. To do things properly we would recommend the use of roles. This is all actually described in some detail in an FAQ written for the use of WishList Member which itself does not utilise roles. So it is pertinent: Setup SP and a Membership Plugin.
I would also recommend a quick look at our Getting Started codex section which explains user Permissions and User Groups and how to exploit them.
Moving now to the first issue we would really need to know just how, when and where PMPro affects normal WP page loading and redirects. I would assume that it hooks into the WordPress processing using a filter of some sort but without knowledge of the exact method of redirecting it is hard to know why it does not work on the forum page. Are you able to find this out - perhaps in their documentation?
YELLOW
SWORDFISH
|
Swordfish, did you actually look at the two links I provided? Forgive me but your answer doesn't sound like it and I apologize in advance if you did look. Your response just sounds very coding oriented.
Again, if you click this you will see all of the Simple Press decoration which I really don't want anonymous users to see.
I should not be seeing this with the membership settings that I made to the /forum page.
I should instead be seeing something like this:
http://cafewriter.com/test-private-page/
PMPro is extremely popular. We don't use WP roles. I wasn't able to figure out how to reliably coordinate WP roles with PMPro membership levels.
The thing is - I don't want to see any elements of the Simplepress forum display, including the overall SP theme's page, on the Wordpress page that restricts permission. I just want that /forum page to display the message "This content is for Premier Membership and VIP Membership members only."
This sounds like I have to hack the theme or PMPro myself. And this feels like one of those "vendor says it's the other guy's stuff" finger pointing situations. I was hoping for something more specific.
Let me try this approach: is there a way to embed the forum into a Wordpress page with a shortcode or with PHP in a new theme page type?
I could work with that and get out of your hair.
not sure what you are getting at... the forum appears on a single wp page... if you want to protect it like any other wp page, with or without a membership plugin, you can... again, ALL forum content appears on that single wp page... does this pmpro not allow protecting wp pages???
you get to pick which wp page the forum appears on... of course, one is created at install, but you can make it any page... you can change it on forum - integration - page and permalink...
and that is just a normal, run of the mill wp page... as such, we appear within the page in your wp theme... so you can give any predefined template page or create a new one... just edit the wp page (its in there with the rest of your pages) and select whatever template you want... no shortcode or php needed...
hope that helps... if not, please clarify...
Visit Cruise Talk Central and Mr Papa's World
Again - click the links I just provided as examples. Please?!
A NON forum page can always be protected.
The page /forum I have set for Simple Press to use as its URL cannot be protected. Even though I edit it, set the membership required checkboxes to indicate only certain logged in member types can see it.
The following image shows what I am trying to achieve.
Once again: your forum shows up, even though the WordPress page it displays on has been set with the PMPro settings that are supposed to display a "must log in" message and nothing else.
I can't possibly be any clearer.
This example page shows how you display on our site. It's a hybrid. It shows the "must be logged in" message which is coming from the PMPro membership plugin. Then under that it shows the Simple Press stuff. I don't want the simple press stuff to display at all.
of course I did look...
why can you not protect the forum page??? it is but a single wp page... there are not more than one forum page... the appearance of multiple pages is simple url rewrite...
you can even edit the wp page and set a password like any other wp page.. of course, not what you want to do, just an example... like you, cannot be more clear either...
if the page is protected, why would the pmpro plugin show the content?
one thing you could try is go to forum - integration - page and permalink and try setting the strict wp api option in case the other plugin is doing abnormal things...
btw, if that doesnt work, we can give you a filter that can be hooked into in order to remove the page content based on logged in status or other check... thats all we do is make the wp page content our current display... most membership type plugins we have come across would limit access to the wp page content if protected...but as I said, if the api option does not help, we can give you another filter to add the check...
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
of course I did look...
Thanks. From the replies I was wondering.
one thing you could try is go to forum - integration - page and permalink and try setting the strict wp api option in case the other plugin is doing abnormal things..
I did that. IT WORKED. Thank you.
See it now: http://cafewriter.com/forum/
This displays clean, with no forum debris. This is exactly what I was asking for all along.
1 Guest(s)