vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Centering a banner image in the header template? (https://vborg.vbsupport.ru/showthread.php?t=167571)

fridaypassion 01-12-2008 06:52 AM

Centering a banner image in the header template?
 
Hi

I'm just implementing this mod for displaying a rotating banner ad on the forum header:

https://vborg.vbsupport.ru/showthread.php?t=106682

Once the plugin is set up the guide above tells you to insert "$banner" in the template and that is where the image appears.

This is great but how would I code "$banner" so that the image is then alligned to the centre?

this is how my header looks at the moment:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="center">


</td>

</table>

<!-- /logo -->
<td align="center">



<!-- content table -->
$spacer_open

$_phpinclude_output


Any help would be appreciated thanks!

earthtiger 01-12-2008 09:45 AM

Code:

align="center" valign="center" $banner
Something like this will do it, I think

Cheers
Mark

fridaypassion 01-12-2008 10:00 AM

no that hasnt worked I'm afraid

the "align="center" valign="center" text is visible on the webpage

earthtiger 01-12-2008 12:07 PM

Code:

<td align="right" valign="center" $banner></td>
You have to close the tags - try this! works on mine.

Cheers
Mark

fridaypassion 01-12-2008 01:42 PM

Hi Mark thanks for the reply. Where abouts in the header sis you insert the code above to get it to work?

Cheers

Jon

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

OK I fixed it

I fugured out you have to insert another row into the table so this works:

<tr><center>$banner</center></tr>

the "td" code inserts a column so messed up the layout

Thanks for the help anyway m8


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

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.01021 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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