vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Banners Help (https://vborg.vbsupport.ru/showthread.php?t=185776)

jkcerda 07-19-2008 08:01 PM

Banners Help
 
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

Quote:

Originally Posted by RLShare (Post 1579575)
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

Quote:

Originally Posted by jkcerda (Post 1579967)
<!-- 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...

Quote:

Originally Posted by jkcerda (Post 1579967)
<!-- 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 [DATE]1216581744[/DATE] at [TIME]1216581744[/TIME] ---------------

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 [DATE]1216582342[/DATE] at [TIME]1216582342[/TIME] ---------------

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 [DATE]1216582566[/DATE] at [TIME]1216582566[/TIME] ---------------

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

--------------- Added [DATE]1216583447[/DATE] at [TIME]1216583447[/TIME] ---------------

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?


All times are GMT. The time now is 02:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete