Dokan Plugin: Show Register and Login when not logged in and Logout when Logged
Author | Posts |
---|---|
December 3, 2014 at 8:02 pm 31724 | |
towhid | Hi, I see this problem on the plugin. I can't display correctly the Register or Login links when users are not logged in, and Logout button (only) when users are logged in. Can you please advise? |
December 4, 2014 at 12:46 pm 31796 | |
towhid | Hello Roderswiss, Make sure you have enable anyone register option in WordPress Settings page. If not please navigate to Settings->General->Membership-> Anyone can register (enable the checkbox) and let me know the result. Hope it will solve your problem. Thank You 🙂 |
December 5, 2014 at 1:38 am 31868 | |
roderswiss | Hello Towhid, maybe I didn’t make my self clear enough. When you have the Dokan Theme you see at the top bar the login button when your not logged in. When you’re logged in you see the logout button. Further more the Seller Dashboard is only shown if the registered user is a Seller not a Customer. So basically it helps to navigate through the features. The problem is that when using the Dokan Plugin we will always see the Login button no matter if we are already logged in. Seller Dashboard link will be shown to everyone no matter if they are not a Seller at all. So there’s no logic running in the backend to know whether to show the login or logout link nor the seller dashboard. Hope it’s clearer now. Thanks once more. |
December 5, 2014 at 3:18 pm 31894 | |
Roberto | There are hundreds of plugins (baw login-logout, wordpress access control & so on ) that allows you to create multiple menus for logged-in loggedd-out or to protect pages. Check them out! Cheers |
December 5, 2014 at 8:37 pm 31905 | |
roderswiss | Dear Roberto thanks for your tips. Even if one of those hundreds of plugin would work it won’t certainly work to protect the Seller Dashboard as it is a Dokan only feature. Still waiting the Dokan team to respond. Thanks! |
December 7, 2014 at 12:47 pm 31953 | |
towhid | Hello Roderswiss, If You want to show dashboard and top bar for customer then there no provision. You can make all the customer as a seller and it is the solution . It is not necessary to search any function. For that you must be delete the register as a customer functional code block. Hope you understand. Thank You 🙂 |