Notifications
Clear all

wpForo 1.x.x [Closed] Guest cant see profiles

9 Posts
2 Users
0 Reactions
1,319 Views
Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

If you need this code is this one

add_filter('autoptimize_filter_noptimize','ao_noptiforum',10,1);
function ao_noptiforum($in) {
        if (strpos($_SERVER['REQUEST_URI'],'escortsforum')!==false) {
                return true;
        } else {
                return $in;
        }
}
2 Replies
Moderator
(@martin)
Joined: 9 years ago

Support Team
Posts: 992

@central4allgmail-com,

This code is better, please change it:

add_filter('autoptimize_filter_noptimize','wpforo_ao_noptiforum', 10, 1);
function wpforo_ao_noptiforum($in) {
     if( function_exists('is_wpforo_page') && is_wpforo_page() ){
            return true;
     }
     return $in;
}
(@central4allgmail-com)
Joined: 6 years ago

Prominent Member
Posts: 533

@martin i will later i must take poor dog out, he dont understands errors and codes 🙂

thank you i will let you know

Page 2 / 2