XF 1.5 iframe in sidebar

Brogan

XenForo moderator
Staff member
You can use one of the ad_sidebar_* templates to add custom code.

Specify the dimensions of the iframe based on the width available for your style.
 

x8BiTw0LFx

Active member
You can use one of the ad_sidebar_* templates to add custom code.

Specify the dimensions of the iframe based on the width available for your style.
How exactly? I'm not into coding (so much), but I'm good at following a guide:ROFLMAO:

Code:
<xen:if hascontent="true">

    <div class="section funbox">
    <div class="{xen:if @uix_removeAdWrappers_sidebar, '','secondaryContent'} funboxWrapper">
    <xen:contentcheck>

        <xen:if hascontent="true">
            <xen:contentcheck>
                <xen:hook name="ad_sidebar_below_visitor_panel" />



                <xen:comment> PLACE YOUR ADVERTISEMENT CODE DIRECTLY BELOW </xen:comment>



            </xen:contentcheck>
        <xen:elseif is="{$visitor.is_admin} && @uix_previewAdPositions" />
            <div>{xen:phrase 'template'}: ad_sidebar_below_visitor_panel</div>
        </xen:if>

    </xen:contentcheck>
    </div>
    </div>

</xen:if>
 

x8BiTw0LFx

Active member
Thank you :D I got this far:
I7lklA.gif


The iframe drops down and I don't know why.. I scaled it 111x270 according to UI.X sidebar.
 
Top