PDA

View Full Version : Miscellaneous Hacks - View Forum Leaders Based On Usergroup Permissions


Mosh
08 Feb 2008, 04:05
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).

Please click Mark as Installed if you are using this hack.


vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

This is an update of my v3.6.x hack available here.

This simple hack adds usergroup permissions for which Usergroups can view the Forum Leaders page. If a Usergroup does not have permission to view the Forum Leaders page then they will recieve a custom vBulletin no permissions message, and it will also remove the View Forum Leaders link on the forumhome page.

This hack was created because I liked the idea of the request in this thread.

There are no file or template changes at all and is fully phrased.

AdminCP settings for this hack available in vBulletin Options > View Forum Leaders Based On Usergroup Permissions.
Settings that can be changed are:

Enable/disable this hack
Usergroup permissions - which groups will be able view the Forum Leaders page (no usergroups can view the Forum Leaders page by default)



Installation Instructions

Import ms_leaders_ugp.xml into vB using the AdminCP Product Manager. If upgrading then set Allow Overwrite to Yes.
Alter the settings in the Admin CP to your liking.

Note: If you want to change the custom error message that is displayed, you will need to edit the nopermission_forum_leaders phrase, please ensure that {1}, {2} and {3} are left intact, they represent stylevar[right], forumhome url and the current session url respectively.

Uninstall Instructions

Uninstall the product in vB using the AdminCP Product Manager.



Version History

v3.7.005 - Wednesday 3rd September 2008
-- Final Release
-- Added: New plugin, to remove the View Forum Leaders link on the forumhome page if no usergroup permissions

v3.7.004 - Friday 29th August 2008
-- Fixed: Usergroup permission checkboxes not working with vBulletin v 3.6.x

v3.7.003 - Thursday 28th August 2008
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Added: New plugin, for processing usergroup permissions
-- Removed: AdminCP Options input validation (no longer needed)

v3.7.002 - Sunday 11th May 2008
-- Changed: Version numbering
-- Added: AdminCP Options input validation

v2.0.0 - Friday 8th February 2008
-- Initial v3.7.x Release


Thanks

Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

NeuroLancer
08 Feb 2008, 05:56
Thank you its working good

bestword
10 Feb 2008, 13:34
What is "Forum Leaders page"?

Mosh
10 Feb 2008, 19:01
What is "Forum Leaders page"?
This is an example - View Forum Leaders (http://www.vbulletin.com/forum/showgroups.php)

bestword
14 Feb 2008, 07:02
This is an example - View Forum Leaders (http://www.vbulletin.com/forum/showgroups.php)

I see,thank u .

yotsume
02 Mar 2008, 04:03
Installed! Works great but my question is how many other php files like showgroups.php don't I know about that I consider a huge security hole in vbulletin! That damn file shows all your users to the world. I run a locked forum.

So anyone know what other php files can be directly linked to that show critical information like this?

Mosh
13 May 2008, 05:27
Update: v3.7.002


Version numbering changed
AdminCP Options input validation

verino
29 May 2008, 09:41
thank's. Works fine on 3.7.0 beta 5

*Installed*

transparent
07 Jul 2008, 07:46
Exactly what I was looking for! Thx alot ; ) Works perfect on 3.7.1

Mosh
28 Aug 2008, 04:19
Update: v3.7.003
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Added: New plugin, for processing usergroup permissions
-- Removed: AdminCP Options input validation (no longer needed)

-=Leb=-
28 Aug 2008, 16:34
Excellent work and thx for the update. :)

Mosh
29 Aug 2008, 03:07
Update: v3.7.004
-- Fixed: Usergroup permission checkboxes not working with vBulletin v 3.6.x

Brad Jones
02 Sep 2008, 02:51
Mosh,

I have no idea how possible this idea is, but could you add the option of not showing the link at all, unless they're a member of the allowed groups? I find that much more intelligent than allowing them to click a link and then reprimanding them for clicking said link.

TilkiBey
03 Sep 2008, 10:06
can we use it for staff.php page?

Mosh
03 Sep 2008, 13:22
Update: v3.7.005
-- Added: New plugin, to remove the View Forum Leaders link on the forumhome page if no usergroup permissions

Mosh
03 Sep 2008, 13:23
Mosh,

I have no idea how possible this idea is, but could you add the option of not showing the link at all, unless they're a member of the allowed groups? I find that much more intelligent than allowing them to click a link and then reprimanding them for clicking said link.
Well, it does now :)

Thanks for the suggestion :)

Mosh
03 Sep 2008, 13:26
can we use it for staff.php page?
It will only work if staff.php contains the following line at the start of the main script:
($hook = vBulletinHook::fetch_hook('showgroups_start')) ? eval($hook) : false;
As it is this hook that this hack relies on.

Brad Jones
03 Sep 2008, 22:31
Well, it does now :)

Thanks for the suggestion :)
Thank you for the implementation!

Mosh
08 Jan 2009, 08:00
This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).