The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
bengyeow can't you just user it like the link you posted in your first post?
index.php?styleid=3 ? regards... g-force2k2 |
#12
|
|||
|
|||
I tried that, doesn't work either, I can change that style but the settling doesn't keep to the original default style.
|
#13
|
|||
|
|||
eh? so you just don't want it to take precedence over the original default style? so when a user reloads etc they will just get the default style but if they click on a specified forum they'll get the other style? regards...
g-force2k2 |
#14
|
|||
|
|||
Ok, here's what I actually want
Default Style - For the main site Forum Lite Style - For the Pocket PC version of the site. Because Pocket PC displays a lower resolution compared to the desktop, it has to have a separate style to fit the screen. Currently if I access the Forum Lite Style, it will change the user setting and set that style as default, when I log back onto the desktop, I am seeing the Forum Lite Style. What I really want now is for the user to be able to access the Forum Lite style via an URL, while keeping the style setting as default so that when the user surfs the forum via Desktop, the user do not require to switch style. Hope you can help. Regards, Beng Yeow |
#15
|
||||
|
||||
You can't do it.
If you use the ?styleid=x URL it saves onto a cookie, not into the user table. If you use the modify profile to save it into the user table, and the user uses the same account on another computer, then the style will be permanent - there is no way you can come up with a hack that can distinguish between computers... One way is to redirect the user according to their browser, or display settings... that is possible, and not hard to do... just use Javascript. |
#16
|
|||
|
|||
Hi Erwin, the problem is, Javascript is not supported on Pocket IE, is there anyway we can call up the forum in the new style yet not set the styleid into the cookie. Any help would be appreciated.
|
#17
|
||||
|
||||
Quote:
http://www.example.com/forums/index.php?mystyle=3 will work provided that you dont apply a mandatory style in your forum. Say if you have style A, B and C and all of them selectable in all the boards (you can have a default one but not a mandatory one) then my code will change the style of the user if it's called from the address bar. I tested it and it is working.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|