Adjusting table width in the main menu

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Adjusting table width in the main menu

Postby [HOOd]-RynDog » Sun Nov 12, 2006 4:48 am

I will try to be as descriptive as possible on what I am trying to accomplish here....

I am trying to make the roster menu width (which I have modifies and removed all the links, just using the 'last updated', 'guild overview', and 'server status' scripts) a certain width in pixel or percentage. I can not find out how to force it to the size I wish. I am trying to make it match up with the rest of the width on the memberslist.php.

Here is where I am at. I tired focing a table in between the 'Guld Roster Menu' coding in menu.php, but nothing changed. I added:

Code: Select all
<table width="400" cellspacing="0" cellpagging="4" border="0">


after

Code: Select all
<!-- Begin WoWRoster Menu -->


and

Code: Select all
</table>


before

Code: Select all
<br />
<!-- End WoWRoster Menu -->


So it looks like

Code: Select all
<!-- Begin WoWRoster Menu -->
<table width="400" cellspacing="0" cellpagging="4" border="0">

<?php print border('syellow','start'); ?>

<table width="100%" cellspacing="0" cellpadding="4" border="0" class="main_roster_menu">


  <tr>
<?php
print '<td colspan="5" align="center" valign="top" class="header">
      <span style="font-size:18px;"><a href="'.$roster_conf['website_address'].'">'.$roster_conf['guild_name'].'</a></span>
      <span style="font-size:11px;"> @ '.$roster_conf['server_name'].' ('.$roster_conf['server_type'].')</span><br />';
print $wordings[$roster_conf['roster_lang']]['update'].': <span style="color:#0099FF;">'.$updateTime;

if( !empty($roster_conf['timezone']) )
   print ' ('.$roster_conf['timezone'].')';

?>
</span></td>
  </tr>
 

 <tr>
    <td colspan="5" class="simpleborderbot syellowborderbot"></td>
  </tr>
  <tr>
<!-- Links Column 1 -->
<?php
if( $roster_conf['menu_left_pane'] && $guild_data_rows > 0 )
{
   print '   <td rowspan="2" valign="top" class="row">';

   print $wordings[$roster_conf['roster_lang']]['members'].': '.$num_non_alts.' (+'.$num_alts.' Alts)
      <br />
      <ul>
        <li style="color:#999999;">Average Level: '.round($result_avg).'</li>
        <li>'.$wordings[$roster_conf['roster_lang']]['level'].' 60: '.$num_lvl_60.'</li>
        <li>'.$wordings[$roster_conf['roster_lang']]['level'].' 50-59: '.$num_lvl_50_59.'</li>
        <li>'.$wordings[$roster_conf['roster_lang']]['level'].' 40-49: '.$num_lvl_40_49.'</li>
        <li>'.$wordings[$roster_conf['roster_lang']]['level'].' 30-39: '.$num_lvl_30_39.'</li>
        <li>'.$wordings[$roster_conf['roster_lang']]['level'].' 1-29: '.$num_lvl_1_29.'</li>
      </ul></td>';
}
?>

<?php
if( $roster_conf['menu_right_pane'] && $guild_data_rows > 0 )
{
   print '    <td rowspan="2" valign="top" class="rowright">';

   if( $roster_conf['rs_mode'] )
   {
      print '<img alt="WoW Server Status" src="'.$roster_conf['roster_dir'].'/realmstatus.php" /></td>';
   }
   elseif( file_exists(ROSTER_BASE.'realmstatus.php') )
   {
      include_once (ROSTER_BASE.'realmstatus.php');
   }
   else
   {
      print ' </td>';
   }
}
?>
  </tr>

</table>

<?php print border('syellow','end'); ?>

</table>
<br />
<!-- End WoWRoster Menu -->


But nothing seemed to change. The table seems to still go to whatever width it wants. You can see it here: http://www.clanhood.com/wowroster/index.php

Am I totally going about this the wrong way, have the wrong code added in the wrong place... etc?

Thanks in advance, if you need any more information, please let me know :)
[HOOd]-RynDog
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Sun Jul 16, 2006 1:09 am

Adjusting table width in the main menu

Postby zanix » Sun Nov 12, 2006 6:20 am

What you have is a good start, but it isn't proper html

You need to edit what you have inserted

This
Code: Select all
<table width="400" cellspacing="0" cellpagging="4" border="0">

Needs to be
Code: Select all
<table width="400" cellspacing="0" cellpagging="4" border="0">
<tr><td>


And this
Code: Select all
</table>

Needs to be
Code: Select all
</td></tr>
</table>


You have to place table rows and cells for proper html
After this edit, it might work, if not...I'll think of something else
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Adjusting table width in the main menu

Postby [HOOd]-RynDog » Sun Nov 12, 2006 7:02 am

Thanks again. Looks like I won't be winning any HTML awards this month. Stoopid me. Thats what I get for using WYSIWYG editors all the time. lol.

Thanks :)
[HOOd]-RynDog
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Sun Jul 16, 2006 1:09 am

Adjusting table width in the main menu

Postby zanix » Sun Nov 12, 2006 10:43 am

Did it work?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Adjusting table width in the main menu

Postby [HOOd]-RynDog » Wed Jan 24, 2007 6:42 pm

lol, sorry i didnt respond. Im re-installing to the latest verison and re-doing some of this customization.

YES IT DID WORK! TY!
[HOOd]-RynDog
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Sun Jul 16, 2006 1:09 am


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron