UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Inserting banners in global.tpl.php

Inserting banners in global.tpl.php

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Apr 2007
Posts: 6
I'm trying to insert some banners in the forum via global.tpl.php file, but I have some problems with styles.css

I insert this html coe:


....
{debug_info_large}

<!-- Here is the bottom banner -->
<p class="publicidadforoinferior">
<img src="../publicidad/inferior_1.jpg" width="700" height="80" />
</p>
<!-- end of the bottom banner -->

<p id="bottom">
{usebb_copyright}
</p>
....


The css added are:

/* PUBLICIDAD */
.publicidadforoinferior
{
clear:both;
float: left;
width: 705px;

margin-bottom: 10px;
padding: 3px 9px 3px 9px;

background-image: url(gfx/topmenu_bg.png);
background-repeat: repeat-x;
background-color: #E8E8E8;

border: 1px solid #369;
font-style: normal;
text-align: right;
color: #333;
}



In IE, the bottom of the template it's ok, but the header, lose the right shadow and place white solid color.

In firefox, the header it's ok, but the div that wrap all the forum, don't close correctly, and the p with the powered by goes out of the white background.

If I modify the class removing the float:left, I solve the firefox problem, but not the problem with the header in IE.

Where is the mistake?

Thanks,
Member
Registered: Apr 2007
Posts: 6
I have been able to solve the problem closing some floats with a clear:both tag.

In the page's top:


...
<h2 id="boarddescr">{board_descr}</h2>-->

<br class="limpiarfloats" />
...


In the page's bottom:


...
<p class="publicidadforoinferior">
<img src="../publicidad/inferior_1.jpg" width="700" height="80" />
</p>

<p id="bottom">
{usebb_copyright}
</p>

<div id="bottom-shadow"></div>

<br class="limpiarfloats" />
...


and the styles css file:


...

/* PUBLICIDAD */
.limpiarfloats
{
clear: both;
}

.publicidadforoinferior
{
clear:both;
float:left;

width: 705px;

margin-bottom: 10px;
padding: 3px 9px 3px 9px;

background-image: url(gfx/topmenu_bg.png);
background-repeat: repeat-x;
background-color: #E8E8E8;

border: 1px solid #369;
font-style: normal;
text-align: right;
color: #333;
}

...


I'm going to make a right banners now! :mrgreen:
Member
Registered: May 2005
Posts: 294
Location: 98671
Any chance of posting a link to the forum?

Edit: I type too slow.
Member
Registered: Apr 2007
Posts: 6
Hi,

Thanks, I'm testing on local first , so I haven't an url to show.

Regards, Marcos
Member
Registered: May 2007
Posts: 7
Location: Nigeria
When thru and url ready, post it here for all to see.

Page: 1

UseBB Community » Help & Support » Inserting banners in global.tpl.php

UseBB Community is powered by UseBB 1 Forum Software