Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-08-2002, 07:45 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bengyeow can't you just user it like the link you posted in your first post?

index.php?styleid=3

?

regards...

g-force2k2
Reply With Quote
  #12  
Old 09-08-2002, 07:53 AM
bengyeow bengyeow is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that, doesn't work either, I can change that style but the settling doesn't keep to the original default style.
Reply With Quote
  #13  
Old 09-08-2002, 08:11 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 09-08-2002, 08:24 AM
bengyeow bengyeow is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 09-08-2002, 09:15 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 09-08-2002, 09:31 AM
bengyeow bengyeow is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 09-08-2002, 12:01 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by bengyeow
Hi Logician, should the url look like: http://www.example.com/forums/index....id=1&mystyle=3

I have implemented and tested, still does not seem to work.
If you applied my code correctly (and changed X too, the URL
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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:04 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.04229 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete