block in sidebar

Status
Not open for further replies.

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
http://xenforo.com/community/threads/block-partner-pub-in-the-sidebar.7515/#post-186097

This template mod let me put a block in the sidebar and it's very handy. Problem is that I've tried to put in an image and I'm not able to see that. I've double checked the url but it's correct. I suppose this is a CSS problem but I'm not so competent to discover where the problem is.

The code I would like to use is

Code:
<div class="section">
    <div class="secondaryContent partenaire" id="partenaires">
        <h3>Pubblicità</h3>
          <div class="pairsJustified">
            <a href="http://www.shift.it" target="_blank"><img src="http://www.shiftcdn.it/kog/forum/bannershift.png"></a>
          </div>
    </div>
</div>
and I've asked on xenforo but no one replied by now.

Have someone an idea?
 

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
No way. This is my last part of the template from the insertion point down

Code:
<dl><dt>{xen:phrase latest_member}:</dt>
                        <dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
                    <!-- slot: forum_stats_extra -->
                </div>
            </div>
        </div>

        <!-- end block: forum_stats -->

<!-- ::MOD:: blocco nella sidebar
<div class="section">
     <div class="secondaryContent partenaire" id="partenaires">
        <h3>Pubblicità</h3>
           <div class="pairsJustified">
            <a href="http://www.shift.it" target="_blank"><img src="http://www.shiftcdn.it/kog/forum/bannershift.png" height="228" width="228" border="0"></a>
          </div>
    </div>
</div>
 ::MOD:: fine blocco nella sidebar -->

        <xen:include template="sidebar_share_page">
            <xen:set var="$url">{xen:link canonical:index}</xen:set>
        </xen:include>

    </xen:hook>
<xen:include template="tenshi_latest_thread"></xen:include>
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />
</xen:sidebar>

Please note that inserting text links works flawlessly...
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,101
There is an open comment, and a close comment.
So the code is inside it. Remove the commenting out code, and it should show?

<!-- ::MOD:: blocco nella sidebar
::MOD:: fine blocco nella sidebar -->
 

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
Sorry Floris. I've put the comments in to hide it since it don't work. If I delete the comments the block show with the title but there's nothing inside the block. If you see it with Safari it show the little blue square with the qeustion mark as if the image link was incorrect but it is correct because if you copy and paste it the image show up. It's seems that there's something that prevent the image to show up...
 

TilkiBey

OMG Member
Joined
Jan 18, 2011
Messages
76
is there any limit for external traffic?
i tried another img src source and it had succeded
 

principia

OMG Member
Joined
Mar 23, 2011
Messages
148
Andrea
have you ever tried the Widget Framework?
I have easy integrated an external pic in seconds with it.(with HTML Widget)

or try to use the adtemplates.(ad_sidebar_top) there are several for the sidebar.
just put your HTML into this and it runs.
 

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
There isn't any limit as fas as I know. I'll try adtemplates. I'm a little newbie about XenForo so I'm learning as I go...
 

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
principia you solved the problem. I've put the code inside ad_sidebar_bottom and not the images appears... Thanks a lot...
 

Lms_imported

OMG Member
Joined
Apr 6, 2011
Messages
3
And what is the size of the image? Try this
PHP:
<div class="section">
      <div class="secondaryContent" id="partenaires">
         <h3>Pubblicità</h3>
            <div class="pairsJustified">
             <a href="http://www.shift.it" target="_blank"><img src="http://www.shiftcdn.it/kog/forum/bannershift.png"></a>
          </div>
     </div>
 </div>

Salud2
 
Status
Not open for further replies.
Top