AI Assistant
Notifications
Clear all

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

5 Posts
2 Users
0 Reactions
562 Views
Posts: 13
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@thephysicist)
Eminent Member
Joined: 5 years ago
[#62717]

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: 5781
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@thephysicist)
Eminent Member
Joined: 5 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: 5781
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@thephysicist

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


Reply
Posts: 13
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@thephysicist)
Eminent Member
Joined: 5 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
Share: