Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

9 Posts
2 Users
0 Reactions
1,659 Views
Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 7 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: 990

@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: 7 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