Log in

View Full Version : Width of forum home to be 800px , while other pages is 90% width


funfun168
06-07-2006, 05:10 PM
hi, I just purchased Vbulletin and finding way to make the width of forum home to be 800px, and other pages to be 90% width

I am finding way to do it for a day but still cannot succeed, may I know how to do it?Thank you so much

Boofo
06-07-2006, 05:13 PM
Do like I did, make a fixed skin and a fluid skin of the same style.

funfun168
06-07-2006, 05:14 PM
Do like I did, make a fixed skin and a fluid skin of the same style.

Thank you, is there any hack need to be installed?

Boofo
06-07-2006, 05:48 PM
No, I just made a fixed width skin for the 800x600 users and made a fluid skin for the higher resolutions.

funfun168
06-08-2006, 01:15 AM
Do like I did, make a fixed skin and a fluid skin of the same style.

Sorry, I dont quite understand as I am a begineer of vbulletin...
May you explain it a little bit?I believe I would improve my skill if I achieve this. thank you~

Freesteyelz
06-09-2006, 10:11 PM
You can accomplish that by 3 template edits:

In Header find:


<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">


Replace with:

<if condition="in_array(THIS_SCRIPT, array('index'))">
<table border="0" width="800px" cellpadding="0" cellspacing="0" align="center">
<else />
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
</if>


In Footer find:

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">


And replace with:

<if condition="in_array(THIS_SCRIPT, array('index'))">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="800px" class="page" align="center">
<else />
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
</if>


Lastly, in your spacer_open find:

<div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">


And replace with:

<if condition="in_array(THIS_SCRIPT, array('index'))">
<div class="page" style="width:800px; text-align:$stylevar[left]">
<else />
<div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
</if>


:)