Dokan Plugin: Show Register and Login when not logged in and Logout when Logged

  • Home
  • Forums
  • Dokan
  • Dokan Plugin: Show Register and Login when not logged in and Logout when Logged
This topic contains 5 reply and 3 voices, and was last updated by towhid 10 years ago
Viewing 5 Posts - 1 through 5 (of 5 total)
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 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 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 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 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 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 🙂

Viewing 5 Posts - 1 through 5 (of 5 total)