kcmajor36 Posted August 3, 2010 Share Posted August 3, 2010 Okay well like some others are wondering how to have the secs and assistances go to there own staff panel on the mainmenu instead of the staff.php. Well I attemped to do this but from the mainmenu part in the v1. Heres my code if someone can help me this an error on line 63. <?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 "[url='hospital.php']Hospital ($hc)[/url] [url='inventory.php']Inventory[/url] "; } elseif($ir['jail']) { print "[url='jail.php']Jail ($jc)[/url] "; } else { print "[url='index.php']Home[/url] [url='inventory.php']Inventory[/url] "; } if($ec > 0) { print "[url='events.php']Events ($ec)[/url] "; } else { print "[url='events.php']Events (0)[/url] "; } if($mc > 0) { print "[url='mailbox.php']Mailbox ($mc)[/url] "; } else { print "[url='mailbox.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "[url='gym.php']Jail Gym[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "[url='explore.php']Explore[/url] [url='gym.php']Gym[/url] [url='criminal.php']Crimes[/url] [url='job.php']Your Job[/url] [url='education.php']Local School[/url] [url='hospital.php']Hospital ($hc)[/url] [url='jail.php']Jail ($jc)[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "[url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } print " [url='newspaper.php']Newspaper[/url] [url='search.php']Search[/url] "; if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print "<hr /> if($ir['user_level']==2) { print "[url='admin.php']Admin Panel[/url] \n"; } if($ir['user_level']<4) { print "[url='secpanel.php']Secretary Panel[/url] \n"; } if($ir['user_level']<6 and $ir['user_level'] != 4) { print "[url='asspanel.php']Assistant Panel[/url] \n"; print "<hr />[b]Staff Online:[/b] "; $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 "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> [b]Donators Only[/b] [url='friendslist.php']Friends List[/url] [url='blacklist.php']Black List[/url]"; } print "<hr /> [url='preferences.php']Preferences[/url] [url='preport.php']Player Report[/url] [url='help.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='logout.php']Logout[/url] Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); ?> Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 3, 2010 Share Posted August 3, 2010 print "<hr /> hmm idk what the error could be there. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted August 3, 2010 Share Posted August 3, 2010 find print"<hr /> add "; after Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 3, 2010 Share Posted August 3, 2010 Danny stop it I was trying to make him spot the mistake lol :P Quote Link to comment Share on other sites More sharing options...
Danny696 Posted August 3, 2010 Share Posted August 3, 2010 When i posted i didnt see your post. Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted August 3, 2010 Share Posted August 3, 2010 XD nice picture there KC, for an inspector you suck at finding errors :P I'm a n00b like you to tho :P Quote Link to comment Share on other sites More sharing options...
kcmajor36 Posted August 4, 2010 Author Share Posted August 4, 2010 XD nice picture there KC, for an inspector you suck at finding errors :P I'm a n00b like you to tho :P Lol Thanks, I didn't see it I was tired. But I see it now. Quote Link to comment Share on other sites More sharing options...
kcmajor36 Posted August 4, 2010 Author Share Posted August 4, 2010 Okay well I got it to work now. Thanks. Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted August 4, 2010 Share Posted August 4, 2010 Thats all that matters :) 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.