1
lolothom
modify size of banners
  • 2005/1/9 9:28

  • lolothom

  • Just popping in

  • Posts: 26

  • Since: 2002/5/10


hello

i want to change the size of xoops's banners and i don't find the parameters i want banners 758*182 pixels

i have in theme.html


<div id="xoopsbanner"><{$xoops_banner}></div>

2
lolothom
Re: modify size of banners
  • 2005/1/9 11:52

  • lolothom

  • Just popping in

  • Posts: 26

  • Since: 2002/5/10


i've tried

<div id="xoopsbanner">
   <
div id="bannerxoops">
   <{
$xoops_banner}></div>
   </
div>



but nothing

3
ladon
Re: modify size of banners
  • 2005/1/9 12:18

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


If you want the div to have a fixed size you have to find the xoopsbanner id in your theme.css. There you can give it a size. It doesn't make any sense to put it inside tow div's. The easy way is to simply put it in the div tag in your theme.html file (just insert height and width).

4
lolothom
Re: modify size of banners
  • 2005/1/9 14:22

  • lolothom

  • Just popping in

  • Posts: 26

  • Since: 2002/5/10


now it's ok with photos

my banners are in flash and it's not working all banners in flash are 63 px of height ?

5
implodeme
Re: modify size of banners
  • 2005/1/13 5:55

  • implodeme

  • Just popping in

  • Posts: 4

  • Since: 2004/11/6


Banners sizes are controlled in the following location.

I am just figuring this out myself, so if I make a mistake, sry.

/modules/system/admin/banners/

Still looking into what all needs to be modified.

My belief is that when you link a .swf banner file it saves the entire OBJ string into the database, this would make it so that any previous banner that you added would need to be deleted, or maybe modified to accept the new changes.

//exec diving mode
//slueth variable -strong
// :)

6
implodeme
Re: modify size of banners
  • 2005/1/13 6:32

  • implodeme

  • Just popping in

  • Posts: 4

  • Since: 2004/11/6


Quote:

implodeme wrote:
Banners sizes are controlled in the following location.

I am just figuring this out myself, so if I make a mistake, sry.

/modules/system/admin/banners/

Still looking into what all needs to be modified.

My belief is that when you link a .swf banner file it saves the entire OBJ string into the database, this would make it so that any previous banner that you added would need to be deleted, or maybe modified to accept the new changes.

//exec diving mode
//slueth variable -strong
// :)


Ok,

/modules/system/admin/banners/banners.php
Modifications to the above file ONLY changes the display output on the banner administration pages.

The Fix
/include/functions.php LINE 348
Modify the TWO Height and Width variables listed here.

It might be better to remove the width variable and leave the height variable. This will allow you to upload variable sized banners and it will maintain the height and the width will be equal in proportion to the adjusted height. This will keep the flash from being distorted.

Login

Who's Online

229 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 229


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