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 - Force Style for Selected Users or Groups (https://vborg.vbsupport.ru/showthread.php?t=143885)

Mosh 03-30-2008 07:47 AM

Quote:

Originally Posted by Ronin Six (Post 1477642)
Thanks for this mod!! Been using it a little while now.

Just having some issues with guest users seeing a custom style even though I'm not forcing it on them. Here's the situation:

Parent style is the default style. Custom style is a child of the default.
I'm forcing the custom child style on user groups that have been promoted to a certain level.

I'm not forcing the custom child style on the guests, but they're seeing it anyway.

I have a feeling it might be because I'm using it slightly different that you have it for your own forums (your default is a child style, and what you're forcing is the parent). Any help would be appreciated. Thanks!

I think it may be a problem with style permissions, either a style is selectable or it is not, there are no usergroup permissions for styles by default, well, not without a hack.

The solution for you may be:

Quote:

Originally Posted by Instructions
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 both v3.5.x, v3.6.x and v3.7.x, and it works for both and works fine with my hacks for both versions as well.

For instance on my own forum I need to use both hacks, as the style I force on my guests and normal members is not selectable or 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.


stamos2003 04-01-2008 07:02 AM

very good hack, this should be integrated in to VB anyway!

reverse1312 05-01-2008 07:27 AM

Hello,

I'm with vB 3.6.5
I created a special new style to test it.
in my options styles are not selectable
tried to force a special new secondary group to use this style. Did not work
tried to force a special news main usergroup to use it. Did not work
tried to force 1 user . It succeded. :-)
2 users too but with a third one it did not work...

How is it possible ?

Mosh 05-02-2008 01:30 AM

Quote:

Originally Posted by reverse1312 (Post 1504265)
Hello,

I'm with vB 3.6.5
I created a special new style to test it.
in my options styles are not selectable
tried to force a special new secondary group to use this style. Did not work
tried to force a special news main usergroup to use it. Did not work
tried to force 1 user . It succeded. :-)
2 users too but with a third one it did not work...

How is it possible ?

Refer to the solution in post #31, it may well solve you issue.

Let me know if it does not.

reverse1312 05-03-2008 09:28 AM

Quote:

Let me know if it does not.
You're right, I had to install the other hack ;-)
Thank you very much !

Mosh 05-03-2008 11:32 AM

Quote:

Originally Posted by reverse1312 (Post 1506625)
You're right, I had to install the other hack ;-)
Thank you very much !

You are most welcome :)

madkeen 06-04-2008 08:38 AM

Thanks

Mosh 09-03-2008 04:22 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).

TheMusicMan 09-12-2008 09:15 AM

Hi All

How would I make this mod work as I want it to thus;

I want to force a Style on a usergroup, but I don't want anyone else to be able to see or select this style unless it is forced on them...?

Sounds unusual - but I have several members who don't want to see the ads AND who want the default vB style (as this is easy on their eyes). I dont want to have to create a derivative/child of my single style for them, so to allow them visibility of the default style containing no ads is the solution. They will have paid to support the site thus entitleing them not to see ads.

Can I configure this hack (with template conditionals I guess) to work for these requirements...?


All times are GMT. The time now is 02:07 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.01064 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
  • (5)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
  • (9)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