PDA

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


Mosh
02-07-2008, 10:00 PM
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
02-08-2008, 04:56 AM
Thank you its working good

bestword
02-10-2008, 12:34 PM
What is "Forum Leaders page"?

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

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

I see,thank u .

yotsume
03-02-2008, 03:03 AM
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
05-13-2008, 04:27 AM
Update: v3.7.002


Version numbering changed
AdminCP Options input validation

verino
05-29-2008, 08:41 AM
thank's. Works fine on 3.7.0 beta 5

*Installed*

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

Mosh
08-28-2008, 03:19 AM
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=-
08-28-2008, 03:34 PM
Excellent work and thx for the update. :)

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

Brad Jones
09-02-2008, 01:51 AM
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
09-03-2008, 09:06 AM
can we use it for staff.php page?

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

Mosh
09-03-2008, 12:23 PM
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
09-03-2008, 12:26 PM
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
09-03-2008, 09:31 PM
Well, it does now :)

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

Mosh
01-08-2009, 07:00 AM
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).