Jump to content
MakeWebGames

Main menu issues - moving to the side


gurpreet

Recommended Posts

Hi there,

I've had this problem for a while, and I can't seem to get a hold of illegalife to help me fix it up. My main menu should look like this:

http://i53.tinypic.com/10ct6w7.png

But it ends up looking like this on a lot of pages:

http://i52.tinypic.com/qs705f.png

 

It has happened in all of the staff panel pages. Here is my smenu and $h->endpage:

 

function smenuarea()
{
include "smenu.php";
global $ir,$c;
$bgcolor = '2c0000';
print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="177"  bgcolor="#'.$bgcolor.'" valign="top">';
}
function endpage()
{
global $db;
print <<<OUT
</td>
</tr>
</table></td>
<td class="rgrad"></td>
</tr>
<tr>
<td colspan="3" align="center">
<img src="pasek2.gif" width="932" height="20" align="center"></td>
</td>
</tr>
</table><centeR>
{$db->num_queries} queries<br /></body>
</html>


OUT;
}
}

At the end of my smenu.php there is no $h->endpage or exit; so that can't be causing it.. Does anyone have any ideas?

Edited by gurpreet
Link to comment
Share on other sites

I've tried it numerous times in the following files:

sglobals

staff

header (smenu part)

smenu

The weird thing is that the normal header in game has near enough the same code, but it perfectly fine.

I've also tried ending all parts of the table, exit and more in the above files in the appropriate places. I just can't figure this out.

This is how my staff pages operate, might be different from the default MCC:

Staff

Sglobals

Smenu

Relevant staff page

Endpage

If I add an endpage to the staff menu, it finishes there and the staff page doesn't show anything.

Link to comment
Share on other sites

EDIT: Sorry guys I was so stupid! The error was staring me in the face the whole time. Had to change:

function smenuarea()
{
include "smenu.php";
global $ir,$c;
$bgcolor = '2c0000';
print '<td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="177"  bgcolor="#'.$bgcolor.'" valign="top">';
}

To:

function smenuarea()
{
include "smenu.php";
global $ir,$c;
$bgcolor = '2c0000';
print '<td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="100%"  bgcolor="#'.$bgcolor.'" valign="top">';
}

 

Thanks for all the help and for bearing with me! Once again sorry

Edited by gurpreet
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...