1
bbutkins
Creating New Pages in PHP - XOOPS
  • 2006/8/28 15:24

  • bbutkins

  • Just popping in

  • Posts: 15

  • Since: 2005/10/5


I followed the advice in here in order to create new pages, such as this page:
http://golfalmanac.net/PGA/pga_money_list_2005.php
I am using the following code:

include("/usr/local/apache2/htdocs/GOLFALMANAC.NET/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>


INSERT CONTENT -HTML HERE



include(XOOPS_ROOT_PATH.'/footer.php');
?>



My question is: It appears as though the page wants to "span", even though I have a table of fixed width (see
http://golfalmanac.net/PGA/pga_money_list_2005.php). How do I stop it from spanning ? Is the file "mainfile.php" causing the problem?

Thanks for any help...Bob

2
Cuidiu
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 17:14

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


That's odd. I have no idea why that would happen but I'm fairly new to XOOPS.

Perhaps if you tried wrapping a div around it with a specified width...?
<div style="width:339px;"><table><tr><td>table contentstd>tr>table>
div>


Otherwise, I'll leave it to someone here with more expertise to help...
Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)

3
msdana
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 17:19

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


I've had this happen. Your CSS is probably defining the style at 100%, overriding the setting in your PHP file.

In your CSS, you can create a new table class and set the width at 80% (or what you want) and apply that class to the table in the PHP file.

That should work
If God is watching us, the least we can do is be entertaining.
Graphic Worx : Xoops Themes

4
Cuidiu
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 17:26

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


< smacking forehead > But of course! See, I knew someone with more expertise could help. Thanks msdana!

Quote:

msdana wrote:
I've had this happen. Your CSS is probably defining the
style at 100%, overriding the setting in your PHP file.

In your CSS, you can create a new table class and set the width at 80% (or what you want) and apply that class to the table in the PHP file.

That should work
Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)

5
bbutkins
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 19:22

  • bbutkins

  • Just popping in

  • Posts: 15

  • Since: 2005/10/5


Thanks for the QUICK feedback. I will try that and let you know.

6
bbutkins
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 19:37

  • bbutkins

  • Just popping in

  • Posts: 15

  • Since: 2005/10/5


OK - but would my theme css be the one to edit or the
xoops.css ?? I assume the theme css would be the culprit ?

7
bbutkins
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 19:46

  • bbutkins

  • Just popping in

  • Posts: 15

  • Since: 2005/10/5


OK- sorry to look stupid, but my css code for the table is:
table {width: 100%;}
table td {vertical-align: top;}

I cannot find in Dreamweaver how to create another table
class, which I could then call up in the php coded page??

8
msdana
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 19:53

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


In your theme CSS, add something like this:

Quote:
table.pgatable { width: 80% }


Or whatever name and width you choose.

Then in your phpfile, use this in the


Quote:


Of course, you can always change the "0" to your preference.

HTH
If God is watching us, the least we can do is be entertaining.
Graphic Worx : Xoops Themes

9
bbutkins
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 20:04

  • bbutkins

  • Just popping in

  • Posts: 15

  • Since: 2005/10/5


You are a genius ! Works perfectly...see new page:
http://golfalmanac.net/PGA/pga_money_list_2005.php

Thanks so much...now I can use this same style to apply to about 100+ other pages of data I need to build...

10
msdana
Re: Creating New Pages in PHP - XOOPS
  • 2006/8/28 20:10

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Glad it worked for you
If God is watching us, the least we can do is be entertaining.
Graphic Worx : Xoops Themes

Login

Who's Online

146 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 146


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits