Simple Membership Plugin › Forums › Simple Membership Plugin › Conflict with JUPITER WORDPRESS THEME
- This topic has 11 replies, 2 voices, and was last updated 9 years, 5 months ago by
mbrsolution.
-
AuthorPosts
-
November 22, 2016 at 3:18 am #8972
ggrant32
ParticipantI have a site thats using the JUPITER THEME.https://themeforest.net/item/jupiter-multipurpose-responsive-theme/5177775
We’ve installed the Membership plugin and set certain pages to not be viewable (except to members). These pages are still able to be viewed by the general public. See https://dwaclone.mystagingwebsite.com/members-portal/ as an example.
The categories of BLOG POSTS we have set to be only viewed by members works fine…. just not pages.
Once we de-activate the theme, the plugin works fine. Do you have any idea how this could be fixed?
November 22, 2016 at 4:18 am #8974mbrsolution
ModeratorHi, I just checked your link above and I can’t see any content unless I am logged in. So I can confirm that the plugin is working correctly with your theme. What you need to do is clear your browser cache and make sure you are not logged in as an admin while viewing your content. If you have a different browser can you also try that browser.
Thank you
November 22, 2016 at 4:23 am #8975ggrant32
ParticipantReally? Ive tried different browsers and still see the header, and menus and recipe and general content? See screenshot : https://www.dropbox.com/s/qf3f3zsj2mz6kvy/Screen%20Shot%202016-11-22%20at%2012.23.11%20pm.jpg?dl=0
Can you send me a screenshot of what you see?
https://dwaclone.mystagingwebsite.com/members-portal/November 22, 2016 at 4:40 am #8976mbrsolution
ModeratorOkay I think know what the problem is. Are you trying to hide the menu, header and footer etc? If you are then that is why this plugin is not blocking this. The plugin only blocks pages and post content. It does not block menus, headers, footers etc.
November 22, 2016 at 5:05 am #8977ggrant32
ParticipantThanks, but i am trying to block the WHOLE page. The reason i listed those items is because i can still see those items on the page. If the page was blocked, i would NOT be able to see them. The header image is page content (a simple image) and the menu is also page content (just text links). The main ‘HEADER’ and ‘MENU BAR’ that the rest of the site has, has already been removed from these page templates.
See attached screenshot of how i set the WHOLE page to be blocked.
https://www.dropbox.com/s/0zd9bajp71g8bhr/Screen%20Shot%202016-11-22%20at%2011.09.55%20am.jpg?dl=0
November 22, 2016 at 11:59 am #8978mbrsolution
ModeratorCan you try the following addon. If this does not work can you carry out the following troubleshooting steps.
Thank you
November 22, 2016 at 2:25 pm #8979ggrant32
ParticipantThanks, but we have already tried that. The PAGES aren’t custom post types. Just pages.
November 22, 2016 at 8:40 pm #8985mbrsolution
ModeratorHave you tried testing one of WordPress default themes like Twenty Fifteen or Sixteen?
November 23, 2016 at 1:31 am #8987ggrant32
ParticipantYes, as stated at the start, it works fine with the default theme.
November 23, 2016 at 1:37 am #8988mbrsolution
ModeratorIn that case you will have to contact your theme developers and report this issue to them. Unfortunately we have no control in regards to your current theme.
Regards
November 28, 2016 at 1:18 am #9013ggrant32
ParticipantI Have contacte date theme developers and they have looked into the problem. Below is their request. Can you help?
I spent much time trying to solve this issue, wrote this code based on the documentations of the plugin:
/*** Auto redirect a user who isn’t logged into the site ***/
add_filter( ‘pre_get_posts’, ‘swpm_auto_redirect_non_members’ );
function swpm_auto_redirect_non_members() {
if( !SwpmMemberUtils::is_member_logged_in() && !is_page( array( ‘Member Login’, ‘membership-join’ )) ) {
wp_redirect( ‘https://dwaclone.mystagingwebsite.com/membership-login/’ );
exit;
}
}Added it to the theme but it will put the website in an infinite loop.
So, wanted you to ask the plugin development team again, that share a solution for theme integration if there is any. Actually, there must be some functions to copy to the functions.php file of the theme and make the plugin compatible. Will you please ask them this?
November 28, 2016 at 3:01 am #9014mbrsolution
Moderator@ggrant32, I just want to verify that you understand the functionality of the above mentioned function. This function only works if your whole site is private.
If you are aware of the above, can you carry out a test. Can you test one of WordPress default themes like Twenty Fifteen or Sixteen? Then carry out a test.
Regards
-
AuthorPosts
- You must be logged in to reply to this topic.