PDA

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


Mosh
08-29-2007, 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. But not to worry, you can now check out the new 3.8.x version of this hack which will work with v3.7.x, as well as with 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 both vBulletin v3.6.x and v3.7.x.


What Does This Hack Do?

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 the standard vBulletin no permissions message.

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

There are no file or template changes at all.

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


Installation Instructions

Import product-jd_20070830.xml into vB using the AdminCP Product Manager.
Alter the settings in the Admin CP to your liking.



Version History

v1.1.0 - Tuesday 25th September 2007
-- Final Release
-- Fixed: Usergroup Permissions

v1.0.0 - Thursday 30th August 2007
-- Initial Release


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.

radarhunter
08-30-2007, 02:29 PM
<font color="Red">*Reserved*</font>

radarhunter
08-30-2007, 02:30 PM
but isn`t that by default in vb ???

Mosh
08-30-2007, 02:45 PM
No, it is not, just the ability for a Usergroup to be displayed on the Forum Leader's page.

Silver Boy
08-30-2007, 03:04 PM
thanks jdsinclair (https://vborg.vbsupport.ru/member.php?u=62814)
that's one of hack that I need
finally u made it https://vborg.vbsupport.ru/external/2007/08/3.gif
thanks again :up:

sincerely

Cybershaolin
08-31-2007, 02:47 AM
Great. I thank you sir to fill out my request. This should be a default option in vBulletin.

ShawneyJ
09-18-2007, 12:29 AM
was just looking for this, very very good :) thx

Mosh
09-25-2007, 09:01 AM
Update: Version 1.1.0 - Fixed usergroup permissions problem.

yoyoyoyo
09-25-2007, 11:37 PM
thanks for the update

Cybershaolin
09-27-2007, 01:20 AM
Yep, Thanks a lot. :)

Nathan2006
09-27-2007, 07:06 AM
Thank you jdsinclair

Just what I needed to stop people looking at my mods :D

Install

Mosh
12-17-2007, 06:02 PM
WORKS WITH v3.7.0 Beta2

katan
12-17-2007, 06:18 PM
thanks you!!!

GrandAmGuru
12-17-2007, 06:57 PM
anyone know if this will work on 3.5.5?

Mosh
12-18-2007, 06:42 AM
thanks you!!!
If you are using this on your site, click Mark as Installed please.

Mosh
12-18-2007, 06:47 AM
anyone know if this will work on 3.5.5?
You will probably have to edit the product-jd_20070830.xml file to remove all instances of executionorder="5", before importing the product, but it should work after that. If you use this hack, ensure you click Mark as Installed.

franzjuve
01-31-2008, 11:27 AM
hello and thanks jdsinclair :up:

i can instal it on vb3.6.8 ?
i'm searching too a similar hack like -> View Online members On Usergroup Permissions
regards
franzjuve

Mosh
01-31-2008, 04:43 PM
i can instal it on vb3.6.8 ?

Yes, on all v3.6 versions.

Boofo
01-31-2008, 04:48 PM
Wouldn't it be better to have a special error show up that explains why they can't view the page? It would save alot of PMs to the staff asking what was wrong with the site. ;)

Mosh
02-01-2008, 06:23 AM
Wouldn't it be better to have a special error show up that explains why they can't view the page? It would save alot of PMs to the staff asking what was wrong with the site. ;)
Hey Bob, long time :)

It was just something I threw together, and it was easiest to use the standard No Permission message, never really thought about a special error message, just did not occur to me.

I will look into it :)

Mosh
02-08-2008, 03:10 AM
Wouldn't it be better to have a special error show up that explains why they can't view the page? It would save alot of PMs to the staff asking what was wrong with the site. ;)

View Forum Leaders Based On Usergroup Permissions for v3.7.x is available here.

@ Bob, it fixes your request.

Boofo
02-08-2008, 04:13 AM
You are the man! Thank you, sir. 3.7 version is installed. ;)

Now, if I can just talk you into helping me install flashchat, I will be as set. ;)

Mosh
02-08-2008, 05:39 AM
You are the man! Thank you, sir. 3.7 version is installed. ;)

Now, if I can just talk you into helping me install flashchat, I will be as set. ;)
Bob, PM me the details I need to do this (admincp details, appropriate permissions etc,.), and I will sort it out for you :)

Mike-D
03-31-2008, 10:24 PM
Question: Why did you removed in Version 1.0.0 the <optioncode> as below...

<setting varname="vflbougp_grps" displayorder="20">
<datatype>free</datatype>
<optioncode><![CDATA[" . eval('foreach($vbulletin->usergroupcache AS $usergroupid => $usergroup)
{
$options .= "\\t\\t<label for=\\"setting[$setting[varname]]$usergroupid\\" title=\\"usergroupid: $usergroupid\\"><input type=\\"checkbox\\" tabindex=\\"1\\" name=\\"setting[$setting[varname]]"."[]\\" id=\\"setting[$setting[varname]]$usergroupid\\" value=\\"$usergroupid\\"" . iif(strpos(",$setting[value],", ",$usergroupid,") !== false, \' checked="checked"\') . iif($vbulletin->debug, " title=\\"name=&quot;setting[$setting[varname]]&quot;\\"") . " />$usergroup[title]</label><br />\\n";
}
return "<span class=\\"smallfont\\">\\n$options\\t</span>";') . "]]></optioncode>
</setting>


what has been replaced now through this Code in Version 1.1.0 as below...
<setting varname="vflbougp_grps" displayorder="20">
<datatype>free</datatype>
<defaultvalue>0</defaultvalue>
</setting>

By which I mean: The first Code is better, esp to have checkboxes which are more comfortabler than simple Input Fields in the 2nd Code ;)

Mosh
04-01-2008, 04:31 AM
Question: Why did you removed in Version 1.0.0 the <optioncode> as below...

........

By which I mean: The first Code is better, esp to have checkboxes which are more comfortabler than simple Input Fields in the 2nd Code ;)

Because you can not uncheck all the checkboxes once you have selected at least one, so if I wanted no one to have permission (for some reason), then it would be impossible with the checkboxes. That is a bug which I could not fix, and so, it was removed about 6 months ago.

Mosh
09-03-2008, 04:25 AM
NOTE: 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. But not to worry, you can now check out the new 3.7.x version of this hack, as it also works with v3.6.10 (and maybe even earlier versions).