PDA

View Full Version : How can I force styles by Usergroup


Rckcrwlr
02-27-2012, 06:20 PM
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, 06:31 PM
Have you tried this mod: https://vborg.vbsupport.ru/showthread.php?t=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, 06: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, 06: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, 06:48 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.

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

kh99
02-27-2012, 06:50 PM
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, 01: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, 01:15 PM
You could try a plugin using hook style_fetch and code like this:


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.