Notifications
Clear all

Style [Solved] Do not display Members and Recent Posts to offline visitors

5 Posts
2 Users
0 Likes
697 Views
Posts: 14
Topic starter
(@helenelafitte)
Eminent Member
Joined: 3 years ago

Hello
I would like to create a private forum : Only registered and logged people can have access to information (forums, topics, information about members)
I know how to set up access to the forum (no access, read-only access, standard access…)
But I would like to disable the access to the grey banner (under the title Forum Orientation)
If you click on Membres in this banner grey, you have access to all the information about the members even if you are not registered to the forum.
Please tell me how to disable this “Membres” icon and the “Articles récents” icon too.
I know how to make these icons disappear (in Dashboard > Appearance > Widgets )
But I would like the icons (Members, Recent Posts) to be invisible when you are offline and visible when you are online.
Thank you very much

Topic Tags
4 Replies
Tutrix
Posts: 1083
(@tutrix)
Noble Member
Joined: 3 years ago

@helenelafitte

Dashboard > Forums > Settings > Forum Accessed
and also
Dashboard > Forums > User Groups > Guest

"can view" settings

 

for the Recent Posts and Search Widget you can use this Code

#wpforo #wpforo-wrap .widget_wpforo_widget_recent_replies, #wpforo #wpforo-wrap .widget_wpforo_widget_search {
display: none;
}
.logged-in #wpforo #wpforo-wrap .widget_wpforo_widget_recent_replies, .logged-in #wpforo #wpforo-wrap .widget_wpforo_widget_search {
display: block;
}

or hide the complete sidebar

#wpforo #wpforo-wrap .wpforo-right-sidebar {
display: none;
}
.logged-in #wpforo #wpforo-wrap .wpforo-right-sidebar {
display: block;
}

Dashboard > Forums > Settings > Style (custom css)

Reply
Posts: 14
Topic starter
(@helenelafitte)
Eminent Member
Joined: 3 years ago

Hello

Thank you very much !!!

This is much better.
But there is still the "Recent Articles" icon
I have done all the procedures you indicated though.
Do you have any idea what is the the problem ?

 

Thank you and have a good day

Reply
Posts: 14
Topic starter
(@helenelafitte)
Eminent Member
Joined: 3 years ago

I think this is a WordPress problem and not a wpForo problem.
I found some plugins.

I installed the pluggin: https://wordpress.org/plugins/if-menu/
I also found: https://wordpress.org/plugins/nav-menu-roles/   But I didn't try it

I chose "If menu" because it allows a more precise parameterization, with accumulation of several conditions.

Thanks a lot for your help

Reply
Posts: 14
Topic starter
(@helenelafitte)
Eminent Member
Joined: 3 years ago

I think this is a WordPress problem and not a wpForo problem.
I found some plugins.

I installed the pluggin If Menu

I chose "If menu" because it allows a more precise parameterization, with accumulation of several conditions.

Thanks a lot for your help

Reply