PDA

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


Mosh
11-23-2009, 10:00 PM
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?Silver
This is an update to my 3.8.x version of this hack, designed to work with vBulletin v4.0.x.

This simple hack adds usergroup permissions for which Usergroups can view the Site/Forum Leaders page. If a Usergroup does not have permission to view the Site/Forum Leaders page then they will receive a custom vBulletin no permissions message (the message will differ slightly depending on if you have the Publishing Suite or Forum Classic installed - see screenshots), and it will also remove the View Forum Leaders or View Site 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:

The phrase for the custom no permissions error page


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


vBulletin Version CompatibilitySilver
This hack can be used with vBulletin versions 4.0.0 - 4.2.0.

For the v3.8.x version of this hack, which will also work with v3.7.x and v3.6.x - check here.


Hack Support/Feature RequestsSilver
IMPORTANT: This hack is no longer supported.



Install InstructionsSilver

Unzip ms_leaders_ugp_40.zip
Upload bitfield_ms_leaders_ugp.xml to your /includes/xml folder.If upgrading from an earlier version, then overwrite the previous copy.
Import the ms_leaders_ugp_40.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
In the Usergroup Manager edit the usergroup(s) you want:

To see the Forum Leaders page (disabled by default for all usergroups).


Note: If you want to change the custom error message that is displayed, you can edit it from the AdminCP Options for this hack.


Uninstall InstructionsSilver

Delete the bitfield_ms_leaders_ugp.xml file from your /includes/xml folder.
Uninstall the product in vB using the AdminCP Product Manager.



Version HistorySilver
v4.0.2 - Saturday 11th December 2010
-- Fixed: "maxversion" so product can be installed on vBulletin 4.1.0 and above
-- Changed: version number formatting

v4.0.001 - Tuesday 24th November 2009
-- Initial v4.0.x Release


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


Show Your Appreciation Silver
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.

Dr.osamA
11-24-2009, 04:11 AM
Great work
Thank you dear sir
installed
________
Caodaism Forums (http://www.religionboard.org/caodaism/)

Mosh
12-22-2009, 09:24 PM
Tested and working with vBulletin 4.0.0 Gold.

I will no longer be supporting Alpha, Beta & Release Candidates of vBulletin 4.0.0.

Mosh
01-02-2010, 12:34 AM
Hi all,

It is with regret that after over 4 years (and thousands of hours) spent providing free support for my free hacks released here, as of today I will no longer be able to provide support for free.

This is due to being unemployed for a while, being strapped for cash and unable to rely on the virtually non-existant donations from here to help to pay the bills or put food on the table for my family. I am now providing all support for my free hacks released here over at Wolfshead Solutions (http://www.wolfshead-solutions.com) via an annual support subscription (for a small fee).

It does not mean I will be no longer release free hacks, I will, but I will just no longer be supporting them for free.

My free hacks have and always will remain free to download and use. And so will updates/bug fixes.

I will be releasing more free hacks, but if you require any support at all for those free hacks, you will need to purchase an annual support subscription over at Wolfshead Solutions to receive support.

I am really sorry I have to do this, but revenue generated by my programming gigs are now my only source of income, and I can no longer afford the luxury of providing free support here, when that time can be spent creating new commerial products, doing paid work requests or providing paid support to pay the bills.

Thank you for the understanding.

Regards,

Mosh.

F4Flake
02-13-2010, 11:10 AM
For some reason I imagined this to be a hack to ensure users only see the forums they have permission to see, in showgroups.php.

For the life of me I don't understand why it doesn't conform to the forum/usergroup rules.

q3chap
07-14-2010, 03:22 PM
somebody installed this on vb 4.0.4 ???? I have installed it, but when I turn it in the usergroup permission to yes or no, nothing happens. If I dont want, that guest can see my forum (only the forumdisplay), so I turn it to yes, right? But nothing happens when it is done.

Mosh
12-11-2010, 05:21 AM
Updated: v4.0.2
-- Fixed: "maxversion" so product can be installed on vBulletin 4.1.0 and above
-- Changed: version number formatting

-=Leb=-
12-11-2010, 09:55 PM
cool thx :)

Mosh
01-08-2011, 01:16 AM
Hi all,

Free support has now been moved back to vBulletin.org.

Please see the first post for more information (and also this thread (http://www.wolfshead-solutions.com/threads/444-Our-quot-vBulletin.org-Hacks-Support-quot-subscription-has-been-scrapped) at Wolfshead Solutions).

Enjoy :)

Regards,

Mosh Shigdar - Wolfshead Solutions.

DirtRider
02-27-2011, 12:25 PM
Maybe I am missing something with this View Site Leaders. When you hit it it will show every user group you have with every user and not in any order that I find helpful. So I installed this mod and disabled the feature in all user groups. What I would like to see is when you use the feature it should only show those groups that you want and in an order you want. So I would like to see my ones like this

Admin
Super Mod
Moderator
Sponsor

To me these are my site leader in that order

BTW Mosh glad to hear you are now employed once again

Mosh
02-27-2011, 10:01 PM
Maybe I am missing something with this View Site Leaders. When you hit it it will show every user group you have with every user and not in any order that I find helpful. So I installed this mod and disabled the feature in all user groups. What I would like to see is when you use the feature it should only show those groups that you want and in an order you want. So I would like to see my ones like this

Admin
Super Mod
Moderator
Sponsor

To me these are my site leader in that order

BTW Mosh glad to hear you are now employed once again

This hack is only to limit which usergroups are allowed to view the showgroups.php page, and does not in any way cater for what usergroups are viewable on that page, nor in what order.

What you want is in usergroup permissions, well which usergroups are viewable anyway (see attached screenshot). The order in which usergroups are shown would require a hack.

Glockie
02-17-2013, 03:20 PM
Hmm odd.
I've uploaded everything and installed it and i works on the front end.
The backend however, I see no display in the usergroups' options like so;

https://vborg.vbsupport.ru/attachment.php?attachmentid=106670&d=1259027160

It's weird.. not showing at all.
Is this mod supported on VB V.4.2 patch 3?

Many thanks for a super hack either way (sorry to bump such an old thread :P )

ozzy47
09-24-2014, 12:08 AM
Try this version, [OzzModz] Site/Forum Leaders Viewable By Usergroup (https://vborg.vbsupport.ru/showthread.php?t=314491)