Jump to content
MakeWebGames

Main Menu


webster2001

Recommended Posts

Re: Main Menu

 

<?php
global $db,$c,$ir, $set;
$hc=$set['hospital_count'];
$jc=$set['jail_count'];
$ec=$ir['new_events'];
$mc=$ir['new_mail'];
.mover a:hover { font-weight:bold; color: pink; }
function mover()
{
if($ir['hospital'])
{
 print "[url='hospital.php']Hospital ($hc)[/url]

($hc)</a>
[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='Undercon.html']Car Garage[/url]

 [url='gym.php']Gym[/url]

 [url='bounty.php']Hitlist[/url]

 [url='monkeys.php']Monkey Butlers![/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='bugtracker.php']Bug tracking[/url]

 [url='cstaff.php']Contact a member of staff[/url]

 [url='jail.php']Jail ($jc)[/url]

 [url='scubadive.php']Go Diving[/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 (0)[/url]
";
}
print "
[url='newspaper.php']Newspaper[/url]

[url='advsearch.php']Search[/url]

";
if(!$ir['jail'] && $ir['gang'])
{
 print "[url='yourgang.php']Your Gang[/url]
";
}
if($ir['user_level'] > 1)
{
print "<hr />[b]Staff Stuff[/b]

[url='staff.php']Staff Panel[/url]

[url='sqladmin.php']MySQL Control Panel[/url]";

print "<hr />[b]Non-game stuff[/b]

[url='youtube.php']Youtube downloader[/url]

<hr />[b]Affiliates[/b]

[url='http://mccodes.com']MCcodes[/url]
";

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='helptutorial.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');
}
?>

Something like That

Link to comment
Share on other sites

Re: Main Menu

Um....not quite...It's CSS. You've gotta wrap the CSS it style tags..

<style type="text/css">
.mover .a:hovor
{
font-weight: bold;
color-red;
}
</style>

Or stick it in your header!

#mover .a:hovor 
{
font-weight: bold;
color-red;
}

And put a div tag on your mainmenu..

<?php
global $stuff..
$mail..
$event..
print "<div id=mover>";
if($ir['hospital'] > 0)

And so on. - either works fine!

Link to comment
Share on other sites

Guest Anonymous

Re: Main Menu

 

print "<div id=mover>";

....

And so on. - either works fine!

Hmm... I suggest you read up on CSS selectors MTG. ID's are required to be unique within a page, however classes may be shared.

Making basic assumptions here can cause a lot of problems later on down the line. Learn the basic CSS standards (which are of course generally ignored by Internet Explorer - but that's something you will have to live with).

Link to comment
Share on other sites

Re: Main Menu

 

What part of it?

No offense but if you can't do very basic CSS, theres no way you should be running a game.

Also, i've been to the w3schools website, and if you look around it shouldn't be to hard to navigate. I found that it was setup quite nicely, in terms of easily being able to get where you want to go, for the right info... so don't be so quick to demand help, just look at the website, and you'll find it. Good luck with your game.

Link to comment
Share on other sites

Re: Main Menu

 

What part of it?

No offense but if you can't do very basic CSS, theres no way you should be running a game.

Also, i've been to the w3schools website, and if you look around it shouldn't be to hard to navigate. I found that it was setup quite nicely, in terms of easily being able to get where you want to go, for the right info... so don't be so quick to demand help, just look at the website, and you'll find it. Good luck with your game.

 

Lol i didnt actually go to it....

Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...

Re: Main Menu

I hate IE anyway :P

and reading through what you said now makes more sense to me than it did when you first posted it...

Thanks again :)

 

print "<div id=mover>";

....

And so on. - either works fine!

Hmm... I suggest you read up on CSS selectors MTG. ID's are required to be unique within a page, however classes may be shared.

Making basic assumptions here can cause a lot of problems later on down the line. Learn the basic CSS standards (which are of course generally ignored by Internet Explorer - but that's something you will have to live with).

 

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...