block in sidebar

Status
Not open for further replies.

Andrea Marucci

Premium Member
Mar 15, 2011
292
0
315
61
www.shift.it
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
Mar 15, 2011
292
0
315
61
www.shift.it
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
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
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
Mar 15, 2011
292
0
315
61
www.shift.it
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
Jan 18, 2011
76
4
135
is there any limit for external traffic?
i tried another img src source and it had succeded
 

principia

OMG Member
Mar 23, 2011
148
0
75
61
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.
 

Lms_imported

OMG Member
Apr 6, 2011
3
0
35
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.