vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Force Style for Selected Users or Groups (https://vborg.vbsupport.ru/showthread.php?t=166119)

Silviu 05-25-2008 07:19 PM

Question: what happens if the forced style is set to "Cannot be selected by users"? Can I use this hack to set up a usergroup for internal testing, as it were? Or do I have to enable the style for everyone in order for the hack to work?

Mosh 05-25-2008 08:54 PM

Quote:

Originally Posted by Silviu (Post 1531225)
Question: what happens if the forced style is set to "Cannot be selected by users"? Can I use this hack to set up a usergroup for internal testing, as it were? Or do I have to enable the style for everyone in order for the hack to work?

It should still work.

BTW, please click Mark as Installed if you are using this hack.

Selene 05-26-2008 11:56 AM

downloaded and clicked *installed*

Now I am running 3.7.0 gold

I entered the usergroup ID's on which I want to force style on and then I added the forum ID too.

Now for the usergroups its working fine, but the problem is when I log out, or the "guests" they see that style too, so its not going back to default style for guests you can say.

I did not enter any ID for guest/unreg usergroup in ur style admin options.

So what can the problem be.

Mosh 05-26-2008 12:44 PM

Quote:

Originally Posted by Selene (Post 1531762)
downloaded and clicked *installed*

Now I am running 3.7.0 gold

I entered the usergroup ID's on which I want to force style on and then I added the forum ID too.

Now for the usergroups its working fine, but the problem is when I log out, or the "guests" they see that style too, so its not going back to default style for guests you can say.

I did not enter any ID for guest/unreg usergroup in ur style admin options.


So what can the problem be.

This should fix your problem:

Quote:

Originally Posted by Instructions in 1st Post
What if you need custom style permissions as well?

This question has been asked a few times: What if you need custom style permissions so that you can control which usergroups see/select what styles? The hack I use is Andreas's Restrict Style to Usergroup hack which he released for v3.5.x. It is because of that hack that this one exists, and I have tested it on v3.5.x, v3.6.x and v3.7.x, and it works for three versions and works fine with my hacks as well.

For instance on my forum I need to use both hacks, as the style I force on my guests and normal members is not selectable nor do I allow them permission to use it, and is also not my default style (all my other styles are child styles of my default one), so without Andreas's hack I would not be able to do this.

But just to let you know that Andreas's hack is unsupported and is not likely to ever be supported, so if you have problems with it, you are on your own.


Selene 05-26-2008 06:48 PM

^ I do not get how it will fix the problem.

I am using your hack and forcing X usergroup to force use style B

Now isnt it obvious that all other usergroups should get the default style? those usergroups who are not geting forced style.

So thatmeans guests should ofcourse see the default vb style that I have set.

That is what I mean.

Mosh 06-26-2008 12:50 PM

Update: v3.7.004
  • Total code rewrite
  • Added option to force style on all usergroups
  • Added option to override custom style for individual forum (as in Style Options in the Forum Manager)

savingsangel 07-17-2008 11:04 PM

Works excellent! Is it possible to add a *third or fourth* usergroup & style? Can I simply install a separate instance of this mod? GREAT MOD by the way!! Exactly what I was looking for...

Mosh 07-18-2008 03:06 AM

Quote:

Originally Posted by savingsangel (Post 1578063)
Works excellent! Is it possible to add a *third or fourth* usergroup & style? Can I simply install a separate instance of this mod? GREAT MOD by the way!! Exactly what I was looking for...

It is possible, but this hack is geared up to only force 1 style. It would probably involve another total rewrite to expand this hack for multiple styles.....I may well look into it in the future.

Pete C 08-22-2008 11:45 AM

A very useful tool, thank you. *Installed* :up:

Twilkey 08-27-2008 03:57 AM

Just an FYI. If you use the 3.5 version of this mod, then you can set up the groups to have a style per group. All you would need to do is use more then one copy of the plugin.


All times are GMT. The time now is 12:57 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.01059 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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