The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Request: Forum Style Hack
Dear all, would like to request for a hack that allows the users to view another style via http://www.example.com/forums/index.php?styleid=2 and doesn't change the style setting of the user.
This is because I am trying to create a lite version of the forum for use with handheld devices. I would not want the users to have to take the trouble to change style back to the default one when they are accessing it via a Desktop. Any help would be appreciated. Cheers, Beng Yeow |
#2
|
||||
|
||||
Firefly's dropdown style hack - do a search - you'll find it.
|
#3
|
|||
|
|||
Hi Erwin, I need to change the style via a url not a dropdown box, as the resolution on the PDA and the Desktop is very different.
Any other solutions? |
#4
|
|||
|
|||
Can anyone help ?
|
#5
|
||||
|
||||
Quote:
PHP Code:
Not tested and I'm not sure if it will work, but seems ok in the first look. However you may want to improve the code by adding a few more conditionals to restrict this usage to certain usergroups or hide certain styles' ids etc... This is just the basic algorithm.. |
#6
|
|||
|
|||
Where should I put this?
|
#7
|
||||
|
||||
global.php .. (eg. before ?> )
|
#8
|
|||
|
|||
Hi Logician, it does not work
Anyone have any ideas? |
#9
|
||||
|
||||
Try adding the code right after
PHP Code:
|
#10
|
|||
|
|||
Hi Logician, should the url look like: http://www.example.com/forums/index.php?styleid=1&mystyle=3
I have implemented and tested, still does not seem to work. Regards, Beng Yeow |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|