vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Restrict Style to Usergroup (https://vborg.vbsupport.ru/showthread.php?t=95910)

Andreas 09-30-2005 05:27 PM

Strange, and normally can't happen.
Feel free to send me a PM with ACP details and i'll take a look.

evenmonkeys 10-03-2005 05:34 PM

I've got a problem with this. It's not working like I think it should be working. First of all, this style will not show up PERIOD unless I have allow user selection turned on. If I have it turned off, but I have usergroups allowed to see it, they cannot see it at all- not even with the link. If I turn user selection on, everyone can see it if they are given the link or choose it from the UserCP.

Does this not work for 3.5 Gold?

Andreas 10-03-2005 05:42 PM

It does work with Gold, however Users must be allowed to change Styles and the Style must be User selectable.
Furthermore, you can't restrict the usage of the default Style, as this Style will be used as fallback.

evenmonkeys 10-03-2005 05:54 PM

What's the point of the hack then? You say that it has to be user selectable, but the point of the hack is to disallow certain usergroups of using it. I don't understand how this hack is suppose to work then.

I've got four styles. I've got a default, two variations of a style, and a new style. The new style and one of the two variations are meant to be private. The only way you can EVER view these styles is when the user selection is checked. Are you required to have the primary usergroup be the one that views this style? I've got it set as secondary because I don't want to change primary usergroups for select admins and super mods.

I'm so confused.

Andreas 10-03-2005 05:58 PM

Styles that are not user-selectable can't be selected by any User except Admins, so the Styles must be user-selectable.
It doesn't matter if the Usergroup is primary or secondary - the user just has to be member of the allowed groups.

evenmonkeys 10-03-2005 06:02 PM

I'm still not understanding.

For Style B, I have it checked with user sel and I have Administrators, UsergroupA and UsergroupB checked only. I made a test account as a Registered User. When I logged on, I was able to view the style by typing in the url. O_o Shouldn't it not work?

Thomas Heretic 10-03-2005 06:12 PM

On vb 3.5 gold it appears to be not function at all. Only an admin account can change see the restricted style. I tried selecting just the usergroup they are in, selecting an usergroup they were not in and selecting all the usergroups. No change in behavior.
Would love to have this. Perhaps I have done something wrong. :ermm:

APhoenix 10-03-2005 06:21 PM

Quote:

Originally Posted by Thomas Heretic
On vb 3.5 gold it appears to be not function at all. Only an admin account can change see the restricted style. I tried selecting just the usergroup they are in, selecting an usergroup they were not in and selecting all the usergroups. No change in behavior.
Would love to have this. Perhaps I have done something wrong. :ermm:

I just tried installing on Gold as well, and am seeing the same problem as Thomas. Users in the authorized groups cannot see the style selector, and cannot choose the specific styles.

evenmonkeys 10-03-2005 06:27 PM

Well, at least I'm not seeing things. >_<;

Andreas 10-03-2005 06:30 PM

<a href="http://kirbydemos.ath.cx/forum" target="_blank">http://kirbydemos.ath.cx/forum</a>
3 Styles are installed:
- Default (ID 1)
- Group A Style (ID 2)
- Group B Style (ID 3)

Only Users who are member of Usergroup A can use Group A style, and only members of Group B can use group B style.
(Those are public joinable groups so you can test yourself).


All times are GMT. The time now is 03:31 AM.

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.01225 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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