vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - View Forum Leaders Based On Usergroup Permissions (https://vborg.vbsupport.ru/showthread.php?t=156605)

Mosh 08-29-2007 10:00 PM

View Forum Leaders Based On Usergroup Permissions
 
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:
  1. Enable/disable this hack
  2. Usergroup permissions - which groups will be able view the Forum Leaders page

Installation Instructions
  1. Import product-jd_20070830.xml into vB using the AdminCP Product Manager.
  2. 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
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

Quote:

Originally Posted by katan (Post 1402970)
thanks you!!!

If you are using this on your site, click Mark as Installed please.

Mosh 12-18-2007 06:47 AM

Quote:

Originally Posted by GrandAmGuru (Post 1403004)
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

Quote:

Originally Posted by franzjuve (Post 1433073)
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

Quote:

Originally Posted by Boofo (Post 1433261)
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

Quote:

Originally Posted by Boofo (Post 1433261)
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

Quote:

Originally Posted by Boofo (Post 1438663)
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. ;)

[S]Bob, PM me the details I need to do this (admincp details, appropriate permissions etc,.)[/S], 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...

HTML Code:

<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...
HTML Code:

<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

Quote:

Originally Posted by Mike-D (Post 1479503)
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).


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete