Notifications
Clear all

wpForo 1.x.x Login and regiister popup

2 Posts
2 Users
0 Likes
1,419 Views
propryte
Posts: 1
Topic starter
(@propryte)
New Member
Joined: 2 years ago

Hello! 

I'm using wpforo along with Houzez theme and it has login and register through a popup and i wanted to use the same for forum too as login and register. how can i redirect user to popup?

Topic Tags
1 Reply
Alvina
Posts: 1872
Moderator
(@alvina)
Member
Joined: 3 years ago

Hi @propryte,

Since wpForo 1.7.0 we have added a hook for this purpose. See the changelog below: https://wpforo.com/community/wpforo-announcements/wpforo-1-7-0-is-released/paged/2/

You should use 'wpforo_login_or_register_popup_message' filter hook. Just  put this code in your current active theme functions.php file:

function custom_wpforo_login_register_message( $html ){
return 'Please <a href="#" data-toggle="modal" data-target="#sign-in-modal">Sign in</a> or <a href="#" data-toggle="modal" data-target="#sign-up-modal">Register</a>';
}
add_filter('wpforo_login_or_register_popup_message', 'custom_wpforo_login_register_message', 10);

See the related topic below: https://wpforo.com/community/how-to-and-troubleshooting-2/which-files-contain-log-in-register-modal-code/

Reply