Forum Replies Created
-
AuthorPosts
-
dimabuko
ParticipantHi.
I tested your plugin with WordPress Social Login. It works but not correctly.
After login with social network (for example instagram) you are logged to site as WordPress User but not logged as a Simple Membership User (you haven’t access to posts etc.)
May be I need to do some tricks after normal wordpress authorisation to force SMWP auth?
dimabuko
ParticipantThanks for response @admin. There are not a lot of issues I think. Everything almost fit my needs. I really think your plugin is great and now I’m going to continue to use it. I just need to add some little features like username in header and Log in/Sign up links. Notw I’ll try to fix it with “plugins_loaded” action hook. Excuse me if my issues insult you.
April 30, 2016 at 2:56 pm in reply to: User with Free Membership Level can post comments to Premium Level #6785dimabuko
ParticipantI don’t understand. I also tested it with turned off another plugins and there is the same bug.
You say that it is not a bug in the plugin but the browser cache.
OK, but I’ve got a lot of questions from my users:1. Why I see post but I can’t add comment to that post?
2. Why I see form but I can’t send that form?
3. Why I click “Log In” and can’t log in because of strange screen with Logout link?All of these questions because of that bug, because of the browser cache you said.
I understand that could be browser cache, but help me to fix this issue, is it possible?
I only need a username link in my header it’s a basic thing for Membership plugin I think.April 29, 2016 at 10:37 pm in reply to: User with Free Membership Level can post comments to Premium Level #6763dimabuko
ParticipantTested with default theme Twenty Sixteen. I can make a screeenshots but the language of UI will be Russian.
April 29, 2016 at 11:28 am in reply to: User with Free Membership Level can post comments to Premium Level #6753dimabuko
ParticipantOK. I tested it without any turned on plugins and there is the same bug.
User with Free membership level can add comment to Premium membership level protected post.dimabuko
ParticipantI think I understand the task.
To create smth that wouldn’t be showed for non logged in members you should use this code:
<?php if(!SwpmMemberUtils::is_member_logged_in()) { echo '<a href="#">Example link</a>'; } ?>And for users that logged in this code :
<?php if(SwpmMemberUtils::is_member_logged_in()) { echo '<a href="#">Example link</a>'; } ?>It described in this article.
If you want to create different menus you should use these codes in your templates that way.
April 29, 2016 at 11:06 am in reply to: User with Free Membership Level can post comments to Premium Level #6751dimabuko
Participant1. I am sure that member doesn’t have an access to protected page. Also he can’t see it and that’s ok.
2. It is page, not a post.
3. I’ll test it without other plugins in 30 minutes and leave a comment.dimabuko
ParticipantSure, excuse me that I didn’t it last time.
If I clear the browser cache (tested in Safari on Mac) it works fine:
1. User isn’t logged
2. Links showing correctly. Showed Log In and Sign Up links.
3. User can’t access protected pages without authentication.And what could we do with that now?
dimabuko
ParticipantSo I can’t fix this problem alone. Need help.
Again, my tasks are:
1. Show username to logged in user
2. Show static links: ‘Sign Up’ & ‘Log in’ for non logged in userNow I add these lines to my HEADER.PHP child theme:
<?php if ( SwpmMemberUtils::is_member_logged_in() ) { global $current_user; get_currentuserinfo(); echo('<a href="/membership-login/membership-profile/" title="Edit Profile"><div class="user_menu user_menu_registered">' . $current_user->user_login . '</div></a> <a href="/membership-login/?swpm-logout=true" class="logout_icon" title="Log Out"></a>'); } if ( !SwpmMemberUtils::is_member_logged_in() ) { echo '<a href="/membership-login/"><div class="user_menu">Sign In/Sign Up</div></a>'; } ?>It works sometimes, but there is a bug sometimes.
1. When I login first time it works.
2. When I log out it works.
3. When I login, then close the browser (ex. Safari on Mac OS), then open browser again, open site. There is a bug — username not showing, showing only Log Out icon.Could you help me to get username please?
April 28, 2016 at 3:42 pm in reply to: Translation to Russian updated, but there is a problem… #6723dimabuko
ParticipantPlease give me to know when it will be possible to translate it. I’ll add it to Russian translation.
dimabuko
ParticipantOK, also I am showing a username in site header and logout link.
But because of described bug I have situations when users are logged in, have access to protected pages, but can’t comment on it and there are no username in header.
I understand that described case looks strange for you now. But I use your great plugin for 1 000 000 registered users and a lot of them using iPhones/iPads where this bug appears after browser relaunch.
Please help me or ask me smth additional.
dimabuko
ParticipantI understand.
But looks like you logged in because you have an access to post but you can’t comment on it because wordpress thinks you are not logged in.
And that’s not ok.
dimabuko
ParticipantDid you tested that way?
1. Log in (remember me unchecked), do smth
2. Close Safari. Close the app (not hide it, close it)
3. Open Safari (relaunch)
4. Open (it will be reloaded) site, access protected page
4. If you try to open protected content – it is showing to you. But you can’t comment it and is showing standard WordPress message “Please Log in to comment”.dimabuko
ParticipantThe same actions in Chrome wouldn’t show the bug. Now found that it happens only in Safari — desktop, iPhone, iPad (latest iOS and Mac OS X).
-
AuthorPosts