Advertisement:

Author Topic: Centering Header  (Read 9761 times)

Offline TroyG

  • Semi-Newbie
  • *
  • Posts: 62
Re: Centering Header
« Reply #20 on: September 04, 2008, 04:51:20 PM »
I tried

</head>
<body>';

echo '<center><img src="http://www.ultimateaircooled.com/imagefolder/newforumheader.jpg" usemap="#Banner" alt="" style="border-style:none" /></center>';

   // The logo, user information, news, and menu.
   echo '
   <table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">
      <tr style="background-color: #ffffff;">
         <td valign="middle" align="left"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /></td>
         <td valign="middle">';


It stills is to the left

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Centering Header
« Reply #21 on: September 04, 2008, 05:06:24 PM »
Link to site? I don't see this code on your site.

kat

  • Guest
Re: Centering Header
« Reply #22 on: September 04, 2008, 05:07:08 PM »
Yeah, sorry. The usemap bit's superfluous. You don't need that.

<center><img src="http://www.ultimateaircooled.com/imagefolder/newforumheader.jpg"></center>';

should be enough.

Offline TroyG

  • Semi-Newbie
  • *
  • Posts: 62
Re: Centering Header
« Reply #23 on: September 04, 2008, 05:32:59 PM »

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Centering Header
« Reply #24 on: September 04, 2008, 05:44:36 PM »
Are you talking about your logo? If that's true, you need to fix the rowspan. I don't see any other image code in the header.

Offline TroyG

  • Semi-Newbie
  • *
  • Posts: 62
Re: Centering Header
« Reply #25 on: September 04, 2008, 05:49:14 PM »
Yes sir , all I want is this centered on the header.....


Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Centering Header
« Reply #26 on: September 04, 2008, 06:17:19 PM »
Oh I see now. What Kat was pointing out was something you didn't need to edit at all.

Open index.template.php

Find:
Code: [Select]
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';

Replace with:
Code: [Select]
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2" align="center" class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
</tr>
</table>';

kat

  • Guest
Re: Centering Header
« Reply #27 on: September 04, 2008, 06:21:40 PM »
Therein lies the pronlem. No ftp access, at the moment.

Offline TroyG

  • Semi-Newbie
  • *
  • Posts: 62
Re: Centering Header
« Reply #28 on: September 04, 2008, 06:45:13 PM »
So I do have to go in through the ftp or can I go in through ADMIN ?

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Centering Header
« Reply #29 on: September 04, 2008, 06:59:00 PM »
For edits to the default theme, it is required to go through FTP.

How do I use FTP? / What is FTP?

Offline hayley2007

  • Semi-Newbie
  • *
  • Posts: 50
Re: Centering Header
« Reply #30 on: September 04, 2008, 10:00:52 PM »
Thank you ccbtimewiz it works for me, ive been looking how to do this for ages. You really have made my day. *virtual hug*