Forum list conditional

T3G Silas

Active member
I'm trying to make an advertisement on the Forum home be reduced size(Because of the sidebar) then change to full length when on any other page that doesn't have the sidebar.

Is there a variable to only allow something to show on the Forum list?


T3G Silas

Active member
The ad is javascript.

<script type="text/javascript">
var pan_widget_width=650;
var pan_widget_height=90;
var pan_border_color="";
var pan_background_color="000000";
var pan_title_color="edff85";
var pan_headline_color="edff85";
var pan_text_color="ffffff";
var pan_link_color="edff85";
var pan_hover_color="ffca84";
<script type="text/javascript" src="http://widget.****com/pub/adsgen.js"></script>
The only difference is the other code will have a larger width and centered so it doesn't look odd when the sidebar is not on the page.


XenForo moderator
Staff member
The width of the advert seems to be fixed at 650px.
Is your main content area less than that? That seems very narrow.

Have you tried wrapping it all in a div using a max-width attribute of 100%?