Forum Replies Created
-
AuthorPosts
-
dimabuko
ParticipantOn desktop there is the same bug. Tested is Safari.
1. Log in (remember me is unchecked)
2. Close Safari, open Safari again
3. Access the protected page (permitted for your level). It opens.
4. In the comments area you see the message “Log in to comment”Additional info
1. If you try to open /membership-login/membership-profile/ it opens.Problem:
Authorised user with right permission for page can’t comment it. WordPress thinks that user isn’t logged in.Please help! For my project it’s now super critical issue.
April 14, 2016 at 8:09 am in reply to: Bug: user without rights for protected post can add comment to this post #6474dimabuko
ParticipantYes, I can. I’ll do it soon.
But it’s not about theme — it’s about Custom Messages add-on.dimabuko
ParticipantHello!
Excuse me but I need help with that.
My tasks:
1. Show username to logged in user
2. Show static link to non logged in user.
Sounds easy and documentation is clear. So I write this code in 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.I understand that the problem in this part of code:
$current_user->user_loginI understand that it is ok to show that way username for WordPress but it’s not the same for SM Plugin.
Unfortunately I can’t use shortcodes here and I don’t now how to get username. By the documentation I tried these:<?php if ( SwpmMemberUtils::is_member_logged_in() ) { $mp_username = SwpmMemberUtils::get_logged_in_members_user_name(); echo('<a href="/membership-login/membership-profile/"><div class="user_menu user_menu_registered">' . $mp_username . '</div></a> <a href="/membership-login/?swpm-logout=true" class="logout_icon"></a>'); } if ( !SwpmMemberUtils::is_member_logged_in() ) { echo '<a href="/membership-login/"><div class="user_menu">Вход/Регистрация</div></a>'; } ?>But it cause some parse errors and don’t work.
Could you help me to get this username please :() and paste it to variable?
$mp_username = SwpmMemberUtils::get_logged_in_members_user_name();April 14, 2016 at 7:00 am in reply to: Bug: user without rights for protected post can add comment to this post #6465dimabuko
ParticipantExcuse me, I made a screenshot with comments in red.
dimabuko
ParticipantWeb servers use the MO files to display the translations. You should compile .po file to .mo and upload 2 files.
dimabuko
ParticipantHi!
I found that in HTML there is message I need:
<div id="message" class="updated"><div class="swpm-registration-success-msg">Регистрация прошла успешно.Пожалуйста, <a href="http://lililove.me/membership-login/">Войдите</a></div><ul></ul></div>May be my css caused the problem but now I’ll fix it! Excuse me for disturb.
dimabuko
ParticipantThank you so much! Sorry, feel really stupid now )
dimabuko
ParticipantHi guys again!
When I was working on my project I found that in produced HTML there is such code:
<input type="checkbox" name="rememberme" value="checked='checked'">I’m not sure but looks there is mistake here:
value="checked='checked'".April 13, 2016 at 10:34 am in reply to: Bug: user without rights for protected post can add comment to this post #6447dimabuko
ParticipantHi again guys!
Now when my project is open for users this problem is looking crazy — link.
In comments field there are form-form-form! Please help with any advice.
dimabuko
ParticipantI think the simplest way is just to hide a password in email.
dimabuko
ParticipantI understand, thanks.
April 11, 2016 at 1:39 pm in reply to: Bug: user without rights for protected post can add comment to this post #6354dimabuko
ParticipantSo I’m not sure if you are going to fix bug that I described.
April 9, 2016 at 12:38 pm in reply to: Bug: user without rights for protected post can add comment to this post #6318dimabuko
ParticipantI don’t understand.
At the moment this is an intended behavior. WordPress has an option to enable comment posting for logged in users only. Our plugin will work with that option.
Ok, in my case this option is enabled and there is bug with protected page. User without rights to see page and comments (but registered user, with free subscription) can add comment to that page.
Also what about second bug I described? (Message added in custom messages add-on not showing in comments area)
April 8, 2016 at 12:21 pm in reply to: Bug: user without rights for protected post can add comment to this post #6285dimabuko
ParticipantIt works as you described with Posts but not with Pages. I have no posts on website and I have only pages without any categories.
April 8, 2016 at 10:04 am in reply to: Not getting membership e-mails / admin e-mails / membership confirmations. #6269dimabuko
Participanthi @kwestfehling. And do you get any standard e-mails from wordpress or other plugins (ex. Contact Form 7)?
-
AuthorPosts