View Full Version : Different width on homepage and forum home if leftcol included?
DannyITR
11-30-2005, 12:54 AM
I have my homepage set to 900px in the adv_portal template. I just included a left column in the forum index page as well but I notice it has adopted the width of 900px. I would like my forum index to remain at 100% and still have the regular homepage 900px. How could I do this?
Brian
11-30-2005, 12:57 PM
Try using this if condition in your adv_portal template for the width part.
<if condition="THIS_SCRIPT == 'adv_index'">900<else />100%</if>
DannyITR
11-30-2005, 01:26 PM
Thank you very much it worked perfectly. Here is the exact line I used:
width=<if condition="THIS_SCRIPT == 'adv_index'">"900"<else />"100%"</if>
DannyITR
12-02-2005, 12:52 AM
What if I want to make a condition for the navbar based on if its the forum homepage. I tried this script but it didn't work probably because the code is in the navbar template and not the adv_portal template.
Brian
12-02-2005, 04:50 PM
The same code should work in just about any template...
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.