View Full Version : PornStar Template
p0werm4n
06-08-2007, 10:04 PM
Currently, all the sections show up on the left column (polls, news, features, statistics, etc). I'd like to keep statistics and news on the left side, but have a column on the right for the polls, featured and sponsored on the right. Anyone know how to add a right column without messing up the page?
Thanks!
Tilek E.
06-11-2007, 04:07 PM
Hi p0werm4n,
#1. Please open footer.tpl file and find the following code:
{if $config.banners and $bottom_banner}
<!-- bottom banner start -->
{dynamic}
{include file="banner.tpl" banner=$bottom_banner}
{/dynamic}
<!-- bottom banner end -->
{/if}
</td>
</tr>
</table>
</div>
#2. Insert the highlighted code:
{if $config.banners and $bottom_banner}
<!-- bottom banner start -->
{dynamic}
{include file="banner.tpl" banner=$bottom_banner}
{/dynamic}
<!-- bottom banner end -->
{/if}
</td>
<td class="column" valign="top">
<!-- this is a content of right column -->
</td>
</tr>
</table>
</div>
#3. And then instead of <!-- this is a content of right column --> insert the codes of polls, featured, sponsored:
{if $config.polls && $polls}
{dynamic}
<!-- polls box start -->
{include file="box-header.tpl" caption=$lang.poll}
{foreach from=$polls item=poll}
<strong>{$poll.title}</strong> <br />
{if $poll.alreadyVoted}
{$poll.results}
{else}
<ul id="poll_{$poll.id}" style="list-style:none;list-position:inside;margin:0px;padding:0px;">
{foreach from=$poll.options item=option}
<li><input class="poll_option" type="radio" id="poll_option_{$poll.id}_{$option.id}"
value="0" name="poll_option_{$poll.id}" />
<label for="poll_option_{$poll.id}_{$option.id}">{$option.title}</label></li>
{/foreach}
</ul>
{/if}
<hr style="border: 1px dotted silver" />
{/foreach}
{include file="box-footer.tpl"}
<!-- polls box end -->
{/dynamic}
{/if}
{if $config.featured_box && $featured_links}
<!-- featured links box start -->
{include file="box-header.tpl" caption=$lang.featured_links}
<div class="links">
{foreach from=$featured_links item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
{include file="box-footer.tpl"}
<!-- featured links box end -->
{/if}
{if $sponsored_links}
<!-- sponsored links box start -->
{include file="box-header.tpl" caption=$lang.sponsored_links}
<div class="links">
{foreach from=$sponsored_links item=link}
<div class="sponsored-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
{include file="box-footer.tpl"}
<!-- sponsored links box end -->
{/if}
#4. Remove the codes of polls, featured, sponsored from header.tpl file.
p0werm4n
06-13-2007, 08:36 AM
Hey, thanks! I'm going to try that out this weekend, much appreciated :good:
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.