XF 1.5 iframe in sidebar

x8BiTw0LFx

Active member
Hello :) New to XF but been on phpBB for quite some time.

How do I put iframe code in a sidebar?

iframe: <iframe src='https://podomatic.com/embed/html5/podcast/5470550?autoplay=false' height='208' width='504'frameborder='0' marginheight='0' marginwidth='0' scrolling='no' allowfullscreen></iframe>

Is that scale (208x504) even compatible with sidebar - maybe a guide to make it fixed (scaleable)?

- Christian
 

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>
 

Brogan

XenForo moderator
Staff member
Add the code directly below this line:
Code:
<xen:comment> PLACE YOUR ADVERTISEMENT CODE DIRECTLY BELOW </xen:comment>
 

x8BiTw0LFx

Active member
Thank you :D I got this far:


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