PDA

View Full Version : Administrative and Maintenance Tools - Show/Hide Forum Sidebar On User Group Per User Group Basis


borbole
06-04-2010, 10:00 PM
This is another mod that I just coded for my own forum where some love the forum sidebars and some hate it. What you gonna do, you can''t please everyone, right :D So I came up with this solution that it will allow you to show or hide the forum sidebar on a usergroup per usergroup basis.

Installation: upload the includes folder to your forum root folder and then import the link_gids.xml file inside the mod package to Plugins&Products in the Acp of your forum.

After you install it, go to your Acp->Usergroups->Usergroup Manager->{ Chose the group that you want to show or hide the forum sidebar from->Click Edit Usergroup} and under Forum Viewing Permissions, you will see a new setting that says: Hide Forum Sidebar, and set that accordingly. By default it is et to No.

For more information, please have a look at the attached screenshot below.

PjDaBadMan
06-06-2010, 02:45 AM
This a very nice mod, Thanks!

One thing for the future though might be, a setting that is like this one but sets usergroups to view a certain block from the sidebar. In other words, setting the permission so that a certain usergroup cant see a block on the sidebar.

Just a thought. :D

voglermc
06-06-2010, 10:36 AM
or hide after a certain number of posts

borbole
06-06-2010, 11:14 AM
This a very nice mod, Thanks!

One thing for the future though might be, a setting that is like this one but sets usergroups to view a certain block from the sidebar. In other words, setting the permission so that a certain usergroup cant see a block on the sidebar.

Just a thought. :D

I see what you mean. But atm I don''t plan to expand it as it will require some work and I am tight on free time.

or hide after a certain number of posts

You can do that by creating a post count based custom group and then hide the sidebar for them at their permissions.

Zombo
06-30-2010, 03:16 AM
this mod doesn't work on 4.0.4

error when installing:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_block.php on line 943

funmasti
06-30-2010, 06:57 AM
any demo.. plz

borbole
07-01-2010, 01:44 PM
this mod doesn't work on 4.0.4

error when installing:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_block.php on line 943

I haven''t tested it yet on a vb .4.0.4. forum, but as soon as I will have some free time I will
any demo.. plz

Have a look at the attached screenshot.

demonfatal
07-13-2010, 11:33 AM
Please update for 4.0.4 needed.

borbole
07-13-2010, 12:11 PM
Please update for 4.0.4 needed.

It works with 4.0.4 as well.

demonfatal
07-15-2010, 10:10 AM
Not for me, any advice?

borbole
07-15-2010, 02:43 PM
Not for me, any advice?

What errors are you getting if any? It would help if you gave me as much details as possible.

Pathor
08-07-2010, 01:55 PM
As for now all visitor and user see the sidebar on default setup. If I restrict the sidebar that guests are unable to see the bar, is it good for the server load and does it increase the server performance?

ProFifaLeagues
09-16-2010, 05:30 PM
Working A1 for us on 4.3 thank you!

Wonksta
10-21-2011, 03:48 PM
What happens when the user is demoted from that Usergroup ie Subscriber doesn't renew subscription does that side bar stay hidden after the usergroup changes to Registered User thus showing the sidebar again?

davut_c20
12-17-2011, 12:21 AM
demo please !!

thompson
12-23-2011, 03:46 PM
marked, thanks.

chudvs
02-05-2020, 11:48 AM
works great in 4.2.5