vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Screen resolution Forum Home with blocks optimizing (https://vborg.vbsupport.ru/showthread.php?t=231672)

valendono 12-29-2009 10:00 PM

Screen resolution Forum Home with blocks optimizing
 
1 Attachment(s)
So when you have forum blocks on forum home, there some problem if you are using modification like Subforum Manager 4.0 with Screen resolution 1024x768 and below. The templates really messed up.

And the real problem is if you really like the "forum blocks" but the templates will be messy if your users only have 1024x768px resolution. So how ?

Now I have solution that I discussed on http://www.vbulletin.com/forum/showt...ose-at-default , how if the forum blocks closed by default on users screen resolution under or same 1024x768 pixels

This the trick:

I make file named vbulletin-sidebar-closed.js on folder clientscript/
So the position is clientscript/vbulletin-sidebar-closed.js

Fill this code below

HTML Code:

if ((screen.width<=1024) && (screen.height<=768))
{
                var expires = new Date();
                expires.setTime(expires.getTime() + (1000 * 86400 * 365));
                set_cookie('vbulletin_sidebar_collapse', 1, expires);
}

and put on your templates FORUMHOME

Find:
HTML Code:

<script type="text/javascript" src="{vb:stylevar yuipath}/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>
below put:

HTML Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar-closed.js?v={vb:raw vboptions.simpleversion}"></script>
and save.

It will make you forum home if your user using screen resolution 1024x768 and below the forum blocks will hide automatically everytimes your user come into your forum home.

Example: http://www.indogamers.com

Dr.osamA 12-30-2009 01:02 PM

thanx installed
________
Rear-Engine Mercedes-Benz

rajubd 12-30-2009 01:22 PM

great mod man

cloferba 01-07-2010 07:24 PM

messed up?

what does it means?

im not an english speaker

nkumaran 01-13-2010 07:07 AM

Not working.

valendono 01-13-2010 11:56 AM

its working... let me see what is your problem.

DaRK mAN306 02-14-2010 10:33 AM

I was looking for such a thing ..

but instead of making the sidebar collapse as default for certain screen resolution, I made it collapse as default for any resolution by removing the conditional sentence ..

INSTALLED with many thanks to u valendeno .!


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