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 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 01:53 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.01057 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete