Notifications
Clear all

[Solved] Forum Login or Registration using an existing pop up class

5 Posts
2 Users
0 Reactions
168 Views
Posts: 13
Topic starter
(@thephysicist)
Eminent Member
Joined: 4 years ago

Hello.

I have an existing Login/Registration pop up on my site that handles all login, registration and password reset. This pop up can be called by using a class 'xoo-el-login-tgr'.

I need to know how to use this popup instead of the wpForo modals whenever wpForo needs a user action calls for the wpForo login or registration modals.

Please help me.

Thanks. 

4 Replies
Sofy
Posts: 5477
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi,

Please try the solution provided here: https://wpforo.com/community/how-to-and-troubleshooting-2/where-can-i-find-and-edit-the-file-with-login-register-links-on-the-js-popup/#post-28162

Reply
Posts: 13
Topic starter
(@thephysicist)
Eminent Member
Joined: 4 years ago

I tried that but doesn't work. What you had shared is different from what I need.

What I want is my custom login popup (class 'xoo-el-login-tgr') should open instead of wpForo redirecting to the forum login or registration.

Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5477

@thephysicist

The code is just an example — you should customize it and use your own classes as needed.

Reply
Posts: 13
Topic starter
(@thephysicist)
Eminent Member
Joined: 4 years ago

I am leaving this solution here for those who might find this useful.

I have managed to find and implement a better way around. Instead of using a pop up login to replace the wpForo login interface, I used redirections to a custom login and registration page by using wildcard regex as follow:

Sign in: https://mysite.com/sign-in/*

Sign up: https://mysite.com/sign-up/*

Now, to redirect users back to the same page before login or registration, I have used a 'Go back' button on the custom login page using the Back Button Widget.

I have also used the Block Visibility plugin to conditionally show the login/registration interface to logged out users and show the back button to logged in users on the custom login page.

Reply