Notifications
Clear all

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

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