News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to "fix" these tables?

Started by Proenski, September 14, 2005, 05:51:17 PM

Previous topic - Next topic

Proenski

Hi there,

Since I have a fixed width for my board www.depechemodeforum.com/smf I would also like to fix the width of tables like:


  • Forum profile information
  • Look and layout preferences
  • Track user
  • Etc

Any help on where I can find these settings is welcome.
May the force be with you

Captain_Morrigan

In the Index.Template.php find:


// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


And fix the width from 100% to the size you want.

Proenski

I tried that but it doesn't work  :-\

Login with "test" and "test" and then "forum profile information" even though I set the maximum width to 690 pixels the content is pushing that table to a width of 730....
May the force be with you

1MileCrash

Quote from: Captain_Morrigan on September 14, 2005, 08:48:29 PM
In the Index.Template.php find:


// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


And fix the width from 100% to the size you want.

That only controlls how the boardindex.template is displayed.
The only thing php can't do is tell you how much milk is left in the fridge.



Proenski

Quote from: Tippmaster on September 15, 2005, 04:41:32 PM


That only controlls how the boardindex.template is displayed.

You got that right  ;D

But any ideas on how to tackle this??
May the force be with you

[Unknown]

You'll just have to fix the width of said templates, I suppose.

-[Unknown]

Proenski

Quote from: [Unknown] on September 15, 2005, 11:00:40 PM
You'll just have to fix the width of said templates, I suppose.

-[Unknown]

Like the idea but so far I couldn't find, for example, where you can set the width for "Forum Profile Information". I opened the Profile.template.php and set the table width to 650 but it has no effect.

// Assuming there are actually some areas the user can visit...
if (!empty($context['profile_areas']))
{
echo '
<table width="650" border="0" cellpadding="0" cellspacing="0" style="padding-top: 1ex;">
<tr>
<td width="180" valign="top">
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="170">';

// Loop through every area, displaying its name as a header.
foreach ($context['profile_areas'] as $section)
{
May the force be with you

Advertisement: