MarFur93 Posted April 18, 2008 Posted April 18, 2008 Could someone please modify this code so that the whole mainmenu.php in MCcodes v2.0 is aligned to the left, instead of centered. I have tried the HTML codes, though I can't get them to work. <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "Hospital ($hc) Inventory "; } elseif($ir['jail']) { print "Jail ($jc) "; } else { print "Home Inventory "; } if($ec > 0) { print "Events ($ec) "; } else { print "Events (0) "; } if($mc > 0) { print "Mailbox ($mc) "; } else { print "Mailbox (0) "; } if($ir['jail'] and !$ir['hospital']) { print "Jail Gym Hospital ($hc) "; } else if (!$ir['hospital']) { print "Explore Gym Crimes Your Job Local School Hospital ($hc) Jail ($jc) "; } else { print "Jail ($jc) "; } print "Forums "; if($ir['new_announcements']) { print "Announcements ({$ir['new_announcements']}) "; } else { print "Announcements (0) "; } print " Newspaper Search "; if(!$ir['jail'] && $ir['gang']) { print "Your Gang "; } if($ir['user_level'] > 1) { print "<hr /> Staff Panel \n"; print "<hr />Staff Online: "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "{$r['username']} ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> Donators Only Friends List Black List"; } print "<hr /> Preferences Player Report Help Tutorial Game Rules My Profile Logout Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); ?> Quote
Floydian Posted April 18, 2008 Posted April 18, 2008 Re: N00B Question: Align Menu To Left in MCcodes v2.0 at the top of this file add: echo '<div align="left">'; and at the bottom add: echo '</div>'; Quote
MarFur93 Posted April 18, 2008 Author Posted April 18, 2008 Re: N00B Question: Align Menu To Left in MCcodes v2.0 Thank you So Much For that! :-D Quote
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.