vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   High Res / Style Optmizer (https://vborg.vbsupport.ru/showthread.php?t=89830)

Colicab2 09-21-2004 10:00 PM

High Res / Style Optmizer
 
This was written as a custom mod for Artorg.co.uk. It is meant to be used
in cases where a style may be rendering in-correctly at a certain resolution.
With this code the option of a new highres style defined by you.

For example you may have an expanding version of the style (liquuid) aswell as
a style thats fixed width.

Maybe you feel the fixed width style looks to small on large resolutions and want your users
to be able to quickly set there style to the expanding version (liquid).

Well this code does just that by checking the users resolution, if its greater than 1024x768
then the high res style is set else its the low res one.

Users to your site can quickly click the link and the style will change, this works for guests,
logged in users, admins , anyone.

Demo : www.artorg.co.uk

KW802 09-22-2004 12:20 PM

Colicab-d, cool idea. :cool:

Any thoughts on modifying it so that it'll recognize what the current style is and then setting the new style based upon it? To clarify, if I have two completly different skins installed and each of them have a fixed & liquid option then there'd be four skins all together (eq: 1, 2, 3, 4). If the current style is "1" and if the resolution is X then use style "2" else if the current style is "3" and resolution is X then use style "4".

For boards that only use one style this script will be pretty nice as is. I'm one of those geeks, though, that have several different ones. :o

Colicab2 09-22-2004 02:34 PM

I,ll see what i can do, still learning Js but if I could maybe get it to integrate with variables from mysql / php then yeah i may be bale to :) that or get readin up on arrays lol


All times are GMT. The time now is 11:09 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.00907 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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