vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I force styles by Usergroup (https://vborg.vbsupport.ru/showthread.php?t=279235)

Rckcrwlr 02-27-2012 05:20 PM

How can I force styles by Usergroup
 
There used to be a Mod for it but is not compatible with 4.1.10 from what I am hearing.

Any other options?

kh99 02-27-2012 05:31 PM

Have you tried this mod: https://vborg.vbsupport.ru/showthrea...=229038&page=3 ? In the last post someone mentions it working with a recent version, if you change the version check in the product xml before importing.

Rckcrwlr 02-27-2012 05:42 PM

I'm not good at this stuff.

Would I change it to 4.1.10?

What is the worst that could happen?

Thanks

kh99 02-27-2012 05:45 PM

Yeah, try 4.1.10. To be honest I'm not sure what happens if you have it installed and then update vb to a later version. You could enter 5.0.0, but I don't know if it's necessary. It really doesn't matter what's there until/unless some incompatability appears in a later version.

Well, the worst that would happen is it causes problems with your site and you have to uninstall it. But I think that's unlikely. I think it's much more likely that if it's incompatible that it just won't work.

Rckcrwlr 02-27-2012 05:48 PM

Quote:

Originally Posted by kh99 (Post 2303967)
Yeah, try 4.1.10. To be honest I'm not sure what happens if you have it installed and then update vb to a later version. You could enter 5.0.0, but I don't know if it's necessary. It really doesn't matter what's there until/unless some incompatability appears in a later version.

Well, the worst that would happen is it causes problems with your site and you have to uninstall it. But I think that's unlikely. I think it's much more likely that if it's incompatible that it just won't work.

How do you edit it? I opened it and it is un-editable. is there a special program needed?

kh99 02-27-2012 05:50 PM

Quote:

Originally Posted by Rckcrwlr (Post 2303968)
How do you edit it? I opened it and it is un-editable. is there a special program needed?


Oh, you probably need to save it to your computer then edit it with a text editor. I think it you just open it in windows it opens it read-only in a browser. Try right-clicking it and choosing "edit". I think that will open it in notepad which will probably work OK.

Rckcrwlr 02-29-2012 12:04 PM

Doesn't look like it is working for 4.1.10

I guess my next question is how can I do this?

I have to groups that frequent my site. If I can give them their "look" they will sponsor and support the site.

I will need to have three styles.

When someone is identified in that group I could assign them a usergroup that will then change the look to match theirs.

Thanks

kh99 02-29-2012 12:15 PM

You could try a plugin using hook style_fetch and code like this:

Code:

if (is_member_of($vbulletin->userinfo, 1, 2, 3))
{
    $styleid = ID1;
}
else if (is_member_of($vbulletin->userinfo, 4, 5))
{
    $styleid = ID2;
}
// etc


and of course replace ID1 and ID2 with actual style ids.


All times are GMT. The time now is 07:17 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.01716 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete