1
marcdg
Top frame image size and position
  • 2004/4/10 13:54

  • marcdg

  • Just popping in

  • Posts: 23

  • Since: 2004/2/5 9


I have replaced the XOOPS bar in the top frame on my website with another picture, but I can't control the size or position of that picture. I want it to be centered in the top frame.

Can anyone tell me how to do that?

To see the problem, please visit www.virtual-communities.com and look at the top image.

2
hsalazar
Re: Top frame image size and position
  • 2004/4/10 15:59

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


marcdg:

Open your file theme.html. There's you'll find, just after the body tag, a table that holds the logo and has a place for a banner. The table reads:

Quote:

<table width="700" cellspacing="0">
<!--DWLayoutTable-->
<tr id="header">
<td width="702" height="62" valign="top"><a href=<{$xoops_url}> /><img src="<{$xoops_imageurl}>logo.gif" width="700" height="56" alt="" /></a></td>
</tr>
<tr id="header">
<td height="45">&nbsp;</td>
</tr>
</table>


There are several problems with this table, beginning with a fixed width and with the fact that it has two rows with the same id.

Change this code to:
Quote:

<table width="100%" cellspacing="0">
<!--DWLayoutTable-->
<tr id="header">
<td width="100%" height="62" valign="top"><div style="text-align: center;"><a href=<{$xoops_url}> /><img src"<{$xoops_imageurl}>logo.gif" width="700" height="56" alt="" /></a></div></td>
</tr>
</table>


This might do the trick.

Cheers

3
marcdg
Re: Top frame image size and position
  • 2004/4/13 17:09

  • marcdg

  • Just popping in

  • Posts: 23

  • Since: 2004/2/5 9


I have changed the code as you said, but it didn't have any effect.

Maby I have to make some changes in some other file's too?

4
myc1229
Re: Top frame image size and position
  • 2004/4/13 23:41

  • myc1229

  • Just popping in

  • Posts: 30

  • Since: 2004/4/10


you can either update the system module after changing the theme file or set up automaticly read from templates in admin panel->system->preference

5
myc1229
Re: Top frame image size and position
  • 2004/4/14 0:08

  • myc1229

  • Just popping in

  • Posts: 30

  • Since: 2004/4/10


try to change the code to:
Quote:
<table width="100%" cellspacing="0">
<!--DWLayoutTable-->
<tr id="header">
<td width="100%" height="62" align="center"><a href=<{$xoops_url}> /><img src"<{$xoops_imageurl}>logo.gif" width="700" height="56" alt="" /></a></div></td>
</tr>
</table>

good luck

Login

Who's Online

216 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits