vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Restrict style to Usergroup (https://vborg.vbsupport.ru/showthread.php?t=82410)

between worlds 06-25-2005 11:50 AM

Works great. Thank you.

GoTTi 06-25-2005 05:21 PM

ive checked the box for the admins to view and it removed it from the drop down.

when i select a box for any usergroup to be able to use the style, i loose it in the drop down, but if i have it activated for all to see, the style shows in the drop down.

nighteyes 06-27-2005 09:30 AM

Same problem here. Once I've selected the style, it completely vanishes from the drop-down menu..... even if I change to a different style.... it doesn't re-appear and I can't re-select it from the menu.

OK edit. This appears to only take into consideration secondary usergroups. I create a styles usergroup and anyone who is in this as secondary can see the additional styles in the dropdrown menus.

Andreas 06-27-2005 09:38 AM

Strange. Does work just fine for me and I cannot reproduce the problem.

@nighteyes
Which Version do you use?
If you don't mind, pease send me a PM with an ACP and FTP account for your site so I can take a look at what is going wrong.

nighteyes 06-27-2005 09:44 AM

See above edit Kirby. Is this the way it's supposed to work? :)

Andreas 06-27-2005 09:48 AM

No, but there was a bug in the instructions.

PHP Code:

$ugarray array_merge(array($bbuserinfo['userid']), explode(','$bbuserinfo['membergroupids'])); 

should have been
PHP Code:

$ugarray array_merge(array($bbuserinfo['usergroupid']), explode(','$bbuserinfo['membergroupids'])); 

instead.
Does it also work with primary usergroups when you change this?

nighteyes 06-27-2005 10:29 AM

Yep that fixes the problem. Thanks for posting a fix so quickly. :)

87accordlxi 06-27-2005 01:23 PM

This may be a dumb question, but what does editing global.php do? When I edited it, it kept giving me parse errors so I reverted to a saved backup of the file. The hack still works.

Andreas 06-27-2005 01:27 PM

Without the global.php edit Users can still use any Style (that has User Select = Yes).
If you get parse errors, you did not make the edit correctly - check again.

87accordlxi 06-27-2005 01:38 PM

I see. They cannot select a restricted style from the dropdown menu, but they can still type the direct url of the board with that style and see it. Like http://www.mysite.com/index.php?s=&styleid=10 if Style #10 was restricted.

This is the parse error I keep getting. The edits for global.php are not very hard and i've tried it 4 or 5 times and still keep getting the error.

Quote:

Parse error: parse error, unexpected '=' in /home2/geez/public_html/global.php on line 283


All times are GMT. The time now is 01:45 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.01117 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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