vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to center logo? (https://vborg.vbsupport.ru/showthread.php?t=215659)

Devanand 06-08-2009 02:26 PM

How to center logo?
 
How can I center logo?
I was trying but never got in the middle.

Bacteria1 06-08-2009 03:29 PM

<div align="center">IMG & OTHER CODE HERE </div>

EagleNick 06-08-2009 03:34 PM

In your header template, find the following:

Code:

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

Devanand 06-08-2009 03:36 PM

Quote:

Originally Posted by EagleNick (Post 1825742)
In your header template, find the following:

Code:

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

I did this before but its not working.

EagleNick 06-08-2009 03:37 PM

Quote:

Originally Posted by Devanand (Post 1825745)
I did this before but its not working.

Could you paste the entire contents of your header template here?

Devanand 06-08-2009 03:50 PM

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><div id="header"><h1><a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions[bbtitle]</a></h1></div>  </td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open


$_phpinclude_output

$ad_location[ad_header_end]


EagleNick 06-08-2009 04:22 PM

Are you sure you tried the change I posted above? I don't see it in the code you pasted.

Devanand 06-08-2009 04:52 PM

Yes, I put it back when it didn't work.

Seven Skins 06-08-2009 05:13 PM

HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center"><div id="header"><h1><a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions[bbtitle]</a></h1></div>  </td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]


This should work.

Devanand 06-08-2009 07:08 PM

I just told that it doesn't work

Edit:

I found it. I forgot that I have some extra CSS in Additional CSS Definitions.

Thank for help anyway :)


All times are GMT. The time now is 01:02 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.01033 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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