Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Maksa - toukokuu 31, 2006, 08:17:55 AP

Otsikko: Header Logo Problem
Kirjoitti: Maksa - toukokuu 31, 2006, 08:17:55 AP
I have modify Header in Index Page. I deleted Site name and Site Logo n placed my own header logo (an image file).

This is the orignal CODE

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

echo '
</td>
</tr>


Replaced with the following Code

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" valign="top" width="100%" style="position: relative;">
  <tr>
    <td align="center" valign="top" ><img src="http://www.maksazone.com/testing.jpg" width="765" height="100" /></td>
  </tr>


Now my site header is changed but page size changed... everything spoiled.

Login box width incresed any idea what should i do?

URL of My Site : http://www.maksazone.com (http://www.maksazone.com)

Waiting for help.... :(
Otsikko: Re: Header Logo Problem
Kirjoitti: SoaringUSAEagle - toukokuu 31, 2006, 08:26:07 AP
Lainaus käyttäjältä: Maksa - toukokuu 31, 2006, 08:17:55 AP
I have modify Header in Index Page. I deleted Site name and Site Logo n placed my own header logo (an image file).

This is the orignal CODE

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

echo '
</td>
</tr>


Replaced with the following Code

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" valign="top" width="100%" style="position: relative;">
  <tr>
    <td align="center" valign="top" ><img src="http://www.maksazone.com/testing.jpg" width="765" height="100" /></td>
  </tr>


Now my site header is changed but page size changed... everything spoiled.

Login box width incresed any idea what should i do?

URL of My Site : http://www.maksazone.com (http://www.maksazone.com)

Waiting for help.... :(


Needs to be...

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="http://www.maksazone.com/testing.jpg" style="float: right;" alt="" />
';

echo '
</td>
</tr>
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - toukokuu 31, 2006, 08:33:55 AP
Thankssssssss  a lotttttttt EAGLE  8)


Is there any way to make my header image in center?


see now : www.maksazone.com
Otsikko: Re: Header Logo Problem
Kirjoitti: fallen_angel - kesäkuu 02, 2006, 04:52:03 IP
Lainaus käyttäjältä: SoaringUSAEagle - toukokuu 31, 2006, 08:26:07 AP

Needs to be...

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap; text-align: center;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="http://www.maksazone.com/testing.jpg" style="float: right;" alt="" />
';

echo '
</td>
</tr>


Add in a 'text-align: center;' to the table cell and removing the 'float: right;' on the image as above should do it.

HTH
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 03, 2006, 12:29:42 AP
Hey Angel it's not working... planing to use some redy made template now.. ::)

Thanks a lot for trying to help... btw your website is really cool. :)

Tc
Otsikko: Re: Header Logo Problem
Kirjoitti: fallen_angel - kesäkuu 03, 2006, 05:11:27 AP
Hmmmm, that's odd. It worked when I tried it locally. The only other thing I can think of, bit of a quick 'n' dirty fix but sometimes where needs must, is to put the image between <p> tags (zeroing out margins and padding to avoid getting unwanted space) and put a 'text-align: center' on the <p> tag.
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 04, 2006, 08:19:30 AP
thanks for help...

i have made some changes in my header. now trying to insert logo image..

have a look  www.maksazone.com (http://www.maksazone.com)

reply here after some time thanks...
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 05, 2006, 08:08:09 AP
I have changed header. Now my Design is spoiled on the top.  I wanted USER BOX under Header image with proper formatting.  :'(

what should i do?

check here  www.maksazone.com (http://www.maksazone.com)

my code is as under



// The logo and the three info boxes
if(isset($settings['topbar']) && !empty($settings['topbar']))
echo '<div style="text-align: center; padding: 10px;">'.$settings['topbar'].'</div>';
  // For some STRANGE reason, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
  echo '
  <div id="headerarea" style="padding: 12px 20px 4px 20px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';
echo '
<a href="http://www.maksazone.com"><img src="http://www.maksazone.com/header.jpg" alt="Maksazone.com" width="739" height="122" border="0" align="left"></a>' ;



:-X I m really confused. Hopefully this is my last question in forum  ::)
Waiting for fast reply....please
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 06, 2006, 04:40:25 AP
Help me please  :'( :'( :'( :'( :'(
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 06, 2006, 06:00:09 AP
Waiting For Reply
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 06, 2006, 08:30:05 AP
Help me pleaseeeeeeeeeeeeeeeeee waiting for some one to reply :(
Otsikko: Re: Header Logo Problem
Kirjoitti: matera - kesäkuu 08, 2006, 10:47:16 IP
Take that align="left" out of the image tag, that is "grabbing" whatever follows it and holding it to the left. I think that will do it. I've done a couple of header tricks with that SMF version.

Hope your throat isn't sore from hollering ;)

Oh, and check your spelling, you have "Maska" as well as "Maksa" in the image. (I did something like that once  :-[ - I was lucky, it wasn't on my website)
Otsikko: Re: Header Logo Problem
Kirjoitti: Maksa - kesäkuu 09, 2006, 09:27:05 AP
Hey Matera :),

It's working... but again one more problem... when i click on SHRINK or EXPAND Header again harder design is spoiling.... please look in to it...

URL: www.maksazone.com (http://www.maksazone.com)

Waiting for ur reply dear...

BTW:-  it's not spelling mistake in Image coz "Maksa" means "Butter" in Hindi. so it's like "Magic of Butter" Thinking wat should i keep insted of that ugly line  ;)
Otsikko: Re: Header Logo Problem
Kirjoitti: fallen_angel - heinäkuu 02, 2006, 03:43:28 IP
Lainaus käyttäjältä: Maksa - kesäkuu 09, 2006, 09:27:05 AP
It's working... but again one more problem... when i click on SHRINK or EXPAND Header again harder design is spoiling....
Have you fixed it? It's working okay for me.