Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

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

9 Posts
2 Users
0 Reactions
2,294 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: 991

@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