gurpreet Posted September 20, 2011 Share Posted September 20, 2011 (edited) 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 September 20, 2011 by gurpreet Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 20, 2011 Author Share Posted September 20, 2011 I've tried endpage(), </td> in a few places, </table> in a few places on scripts and exit;. None of these work, I even tried to edit sglobals aswell but every edit I make just makes the page even worse, so I have to revert back to the original and try again. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 20, 2011 Author Share Posted September 20, 2011 So I have to go through the staff pages and sglobals and check that everything is closed off? Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 20, 2011 Author Share Posted September 20, 2011 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. Quote Link to comment Share on other sites More sharing options...
mixmaster Posted September 20, 2011 Share Posted September 20, 2011 Try taking the <centeR> out ? Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 21, 2011 Author Share Posted September 21, 2011 (edited) 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 September 21, 2011 by gurpreet Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 21, 2011 Author Share Posted September 21, 2011 You had to replace it with the same function? :D No lol, I had to replace the second <td width=177> to <td width=100%>. I just looked above at the function_menuarea() and copied that Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 21, 2011 Author Share Posted September 21, 2011 Ah thanks anyway for bearing with my stupidness! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.