PDA

View Full Version : Banners Help


jkcerda
07-19-2008, 08:01 PM
I am using brotator & finally got it working after going thru most of the post & reading, but I have a couple of issues (besides hair loss).

I got mine working, but it shows the same 2 banners on the right side by side.

I need both on the right, but on on top and one on the bottom.
here is my code.
for single banners.

fixed 1 logo only

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"></td> <td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>
</tr>
</table>
<!-- /logo -->

for 2 banners as described.

2 logos on right.
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"></td><td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td> <td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>
</tr>
</table>
<!-- /logo -->

any Help to get the second logo below the other one would be appreciated,

I would also like to add a banner to my navbar.

thanks for the help.

snakes1100
07-19-2008, 10:31 PM
Without a link to the site and looking at the code, i would try a <br /> in between the td's

</td><br /> <td align="$stylevar[right]">

jkcerda
07-20-2008, 03:44 AM
I dont have it on my board yet, i mess with things offline b4 i make any changes to the actual board,it has kept me out of trouble ;-')

Ill try thst, thanks

RLShare
07-20-2008, 04:27 AM
NO do not put a break tag in there. Tables have rows and columns, you have both showing in the same row, add a closing and opening <tr> tag to seperate them into different rows instead of 2 columns in the same row.

jkcerda
07-20-2008, 05:20 PM
NO do not put a break tag in there. Tables have rows and columns, you have both showing in the same row, add a closing and opening <tr> tag to seperate them into different rows instead of 2 columns in the same row.

something like this?
2 logos on right.
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"></td> <tr> <td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a> </tr>
</td> <td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>
</tr>
</table>
<!-- /logo -->

RLShare
07-20-2008, 05:47 PM
No... You should read this
http://www.w3schools.com/html/html_tables.asp


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>



<td align="$stylevar[left]"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"></td>




<td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>




<td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>



</tr>
</table>
<!-- /logo -->
I seperated the above so you can better see what Im saying, Each seperation inside the table here is a Seperate Cell all in the same row.

example fix...


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>



<td align="$stylevar[left]"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"></td>

<td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>

</tr>
<tr>


<td align="$stylevar[right]">
&nbsp;
</td>



<td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>



</tr>
</table>
<!-- /logo -->
The red shows you what is needed to seperate them into different rows.
The blue is an extra cell added to keep the same amount of cells in each row. You can move this below or after the the second banner cell depending on how you want it aligned.

jkcerda
07-20-2008, 05:48 PM
Thanks, ill try to get it working right now:)

--------------- Added 1216581744 at 1216581744 ---------------

they still show side by side,but now they have a space between them, I copied the code you left here.

I am going to play with it, ill post if I am succesful.

--------------- Added 1216582342 at 1216582342 ---------------

I needed to do it on the style that i wanted to change.:o.


now I need to mess with the aligment, first banner is on the right, second is centered below the title & first banner.

--------------- Added 1216582566 at 1216582566 ---------------

the banners oth have "$stylevar[right]" yer one banner is on the right, the other is centered below?:confused:

--------------- Added 1216583447 at 1216583447 ---------------

working now,,,,, 1 issue, I took out the nbsp as my 2 banners (now both on the rigth thanks) are bigger than my title image & they have a huge space between them, how do I get rid of the space?

or how do I make the space between them smaller?