vb.org Archive

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

leylandfor 10-26-2008 05:05 PM

Centering logo
 
Hi

As you can see on www.buckshawvillage.com the custom logo is aligned to the left, what file do i edit so that the logo will be centered?

Many thanks

snakes1100 10-26-2008 05:14 PM

header template and comment out the right td use a <!-- --> around it.

crazyfalcon 10-26-2008 05:14 PM

you can do this by adding a center tag
<center>

Falcon

snakes1100 10-26-2008 05:17 PM

Quote:

Originally Posted by crazyfalcon (Post 1653216)
you can do this by adding a center tag
<center>


Falcon

You 1st need to remove one of the two td's, centering it before then, will not work.

leylandfor 10-26-2008 05:36 PM

Code:

<!-- 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]" /></a></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

what would i edit in the header template?

Winterworks 10-26-2008 05:40 PM

I'd just make that last little bit white (in photoshop, on that right side) then center it manually in photoshop, then reupload it.

leylandfor 10-26-2008 05:41 PM

umm, we are changing logo soon though so would like to center it via vbulletin if possible

Winterworks 10-26-2008 05:43 PM

But it'd look bad on both sides, with gray there. Just finish the logo, make it go all across, erase text, and redo it in center :/

snakes1100 10-26-2008 05:43 PM

Quote:

Originally Posted by Winterworks (Post 1653244)
I'd just make that last little bit white (in photoshop, on that right side) then center it manually in photoshop, then reupload it.


You cant, it has two td's in the header.


@leyland

Code:

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


Winterworks 10-26-2008 05:46 PM

Ohh, I get it.

crazyfalcon 10-26-2008 06:07 PM

No Problem its gone

Lynne 10-26-2008 06:10 PM

I would not suggest using crazyfalcon's code.The html is incorrect in that template and will give errors in an html validator (and possibly in different browsers too).

crazyfalcon 10-26-2008 06:16 PM

Ok Lynne no Problem...Please delete it...Thanks

Lynne 10-26-2008 06:23 PM

crazyfalcon, if you want help getting it coded correctly, just make a thread. I'm sure we could easily get that written correctly so you don't get any errors on your site.

leylandfor 10-26-2008 08:50 PM

lynne, could you inform me on what edits i need to make to the header template so it will be center?

Lynne 10-26-2008 08:58 PM

Quote:

Originally Posted by leylandfor (Post 1653366)
lynne, could you inform me on what edits i need to make to the header template so it will be center?

snakes1100 posted what needed to be done in his post above.

leylandfor 10-26-2008 11:35 PM

Quote:

Originally Posted by snakes1100 (Post 1653248)
You cant, it has two td's in the header.


@leyland

Code:

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


i deleted the current header template code and added the code above but i got a vbulletin warning saying the code had errors and said i should not proceed, any ideas? thanks for your all help so far

Lynne 10-26-2008 11:51 PM

Replace "$stylevar[center]" with just the word "center" (I don't think there is a $stylevar[center]).

snakes1100 10-27-2008 10:21 AM

Sorry leyland, that may not work on all versions.

Use this:

Code:

<!-- 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="$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



All times are GMT. The time now is 05:49 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.01199 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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