Jump to content
MakeWebGames

Mainmenu css


skooda

Recommended Posts

Hello im wondering how would I do this mainmenu in the ingame.

Heres a demo

http://deenwebindia.com/gui/wise-crime/

Im trying to figure this out right now its in html its not connected to any php source.

I want to know do the mainmenu need to be their in the html the links are home,item,explore and newspaper,forum and logout.(Im trying to say do i need the menu links in the html or do I need to code them in)

Im not sure as their an menu .php file im not sure how I would i connect the menu.php to the html.

Also not sure how to get the mainmenu background to get to go with menu.php.(trying to ask do i need to slice the mainmenu background?)

If anyone can get help me with please post. .

Link to comment
Share on other sites

Hello im wondering how would I do this mainmenu in the ingame.

Heres a demo

http://deenwebindia.com/gui/wise-crime/

Im trying to figure this out right now its in html its not connected to any php source.

I want to know do the mainmenu need to be their in the html the links are home,item,explore and newspaper,forum and logout.(Im trying to say do i need the menu links in the html or do I need to code them in)

Im not sure as their an menu .php file im not sure how I would i connect the menu.php to the html.

Also not sure how to get the mainmenu background to get to go with menu.php.(trying to ask do i need to slice the mainmenu background?)

If anyone can get help me with please post. .

Could you not just put it in an echo?

echo '<a href="link"><img src="imagepath"></a><br /> etc..';

??

I think im confused in what you are trying to ask lol. O.o

Also a quick off topic question, Why is that wise crime template on a web design company?

I hope you aren't trying to sell it or pass it on as your own work.

Link to comment
Share on other sites

Could you not just put it in an echo?

echo '<a href="link"><img src="imagepath"></a><br /> etc..';

??

I think im confused in what you are trying to ask lol. O.o

Also a quick off topic question, Why is that wise crime template on a web design company?

I hope you aren't trying to sell it or pass it on as your own work.

 

if it was his , he would know how to do it wouldn't he due , jesus not smart are you

Link to comment
Share on other sites

Hello im wondering how would I do this mainmenu in the ingame.

Heres a demo

http://deenwebindia.com/gui/wise-crime/

Im trying to figure this out right now its in html its not connected to any php source.

I want to know do the mainmenu need to be their in the html the links are home,item,explore and newspaper,forum and logout.(Im trying to say do i need the menu links in the html or do I need to code them in)

Im not sure as their an menu .php file im not sure how I would i connect the menu.php to the html.

Also not sure how to get the mainmenu background to get to go with menu.php.(trying to ask do i need to slice the mainmenu background?)

If anyone can get help me with please post. .

Is it that hard to copy the source code, and css file and make a test.php

add it then take the menu out?

Not hard to do.

Edit: PHP part is never going to show on a source code, that is hidden from everyone but the one whom added it... It is not hard to convert php into this use your brain if you have one. If your using firefox it can be done, and images can be gotten by the view page info after right clicking then under media.

Edited by lucky3809
Link to comment
Share on other sites

Is it that hard to copy the source code, and css file and make a test.php

add it then take the menu out?

Not hard to do.

Edit: PHP part is never going to show on a source code, that is hidden from everyone but the one whom added it... It is not hard to convert php into this use your brain if you have one. If your using firefox it can be done, and images can be gotten by the view page info after right clicking then under media.

Please dont give him more ideas on how to steal stuff that is not his.

Skooda seriously if you dont know how to code up a simple html/css menu you should go learn rather than asking for someone to do it for you.

Beyond lazy.

Link to comment
Share on other sites

Please dont give him more ideas on how to steal stuff that is not his.

Skooda seriously if you dont know how to code up a simple html/css menu you should go learn rather than asking for someone to do it for you.

Beyond lazy.

I been knew how to do source code and i have learn a little css/html it was just a question

Link to comment
Share on other sites

Please dont give him more ideas on how to steal stuff that is not his.

Skooda seriously if you dont know how to code up a simple html/css menu you should go learn rather than asking for someone to do it for you.

Beyond lazy.

It's not his work, but his game is wisecrime.com he had me help him before with it. So how was i to know it was stolen if it has his domain name on the logo?

Link to comment
Share on other sites

If you asked this company to code the layout for you then why are you asking us for help to code it?

Im not sure if a few things should be on the html.I seen it when they put in the html it had the bars and all that and i wasnt sure if it was suppose to be on their or not

Link to comment
Share on other sites

  • 3 weeks later...

Ok I believe I have most of this done this would be my last part.I have put the css/xhtml into mccode v2.The problem is that it dont show the username,points,steps or any of that also everything at the bottom of the page.

 

<?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 "<a href='hospital.php'>Hospital ($hc)</a><br />
 <a href='inventory.php'>Inventory</a><br />";
}
elseif($ir['jail'])
{
 print "<a href='jail.php'>Jail ($jc)</a><br />";
}
else
{
 print "<b><u>Main Menu</b></u><br />
 <a href='index.php'>Home</a><br />
 <a href='inventory.php'>Inventory</a><br />
 <a href='garage.php'>Your Garage</a><br />";
}
if($ec > 0) { print "<a href='events.php' style='font-weight: 800;'><font color='yellow'>Events ($ec)</font></a><br />"; }
else { print "<a href='events.php'>Events (0)</a><br />"; }
if($mc > 0) { print "<a href='mailbox.php' style='font-weight: 800;'><font color='yellow'>Mail ($mc)</font></a><br />"; }
else { print "<a href='mailbox.php'>Mail (0)</a><br />"; }
if($ir['jail'] and !$ir['hospital'])
{
 print "<a href='gym.php'>Jail Gym</a><br />
 <a href='hospital.php'>Hospital ($hc)</a><br />";
}
else if (!$ir['hospital'])
{
$city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));

 print"<a href='explore.php'><font color='red'>$city->cityname</font></a><br />
 <a href='gym.php'>Gym</a><br />
 <a href='job.php'>Your Job</a><br />
 <a href='criminal.php'>Crimes</a><br />
 <a href='education.php'>School</a><br />
 <a href='newspaper.php'>News Stand</a><br />
 <a href='streets.php'>Search the streets</a><br />
 <a href='hospital.php'>Hospital ($hc)</a><br />
 <a href='jail.php'>Jail ($jc)</a><br />";
}
else
{
 print "<a href='jail.php'>Jail ($jc)</a><br />";
}
if ($ir[donatordays]==0)
print"
<a href='vipnews.php'><LI></font>Donators News</font></a><br />";
if ($ir[donatordays]>0)
print"
<a href=vipnews.php><LI>Donator's News ({$ir['newann']} New!)</font></a><br />";

if($ir['new_announcements'])
{
print "<a href='ann.php' style='font-weight: 800;'><font color='yellow'>Announcements ({$ir['new_announcements']})</font></a><br />";
}
else
{
print "<a href='ann.php'>Announcements (0)</a><br />";
}
print "
<a href='search.php'>Search</a><br />";
$qq=$db->query("SELECT * FROM cities WHERE cityowner=$ir[userid]");
if(mysql_num_rows($qq) > 0)
{
print "<a href='cityadmin.php'><font color='lime'>City Admin Panel</font></a><br />";
}
if(!$ir['jail'] && $ir['gang'])
{
 print "<a href='yourgang.php'>Your Gang</a><br />";
}
if($ir['userid'] == 1)
{
print "<hr />
<a href='owner.php'>Owner Panel</a><br />
<a href='owner2.php'>Banker's Panel</a><br />
<a href='owner3.php'>Crook's Panel</a><br />\n";
}
if($ir['userid'] == 37)
{
print "<hr />
<a href='owner2.php'>Banker's Panel</a><br />\n";
}
if($ir['userid'] == 97)
{
print "<hr />
<a href='owner3.php'>Crook's Panel</a><br />\n";
}
if($ir['user_level'] > 1)
{
print "<hr />
<a href='staff.php'>Game Control</a><br />\n";
if($ir['staffnew_announcements'])
{
print "<a href='staffannouncements.php' style='font-weight: 800;'><font color='yellow'>Announcements ({$ir['staffnew_announcements']})</a></font><br />";
}
else
{
print "<a href='staffannouncements.php'>Staff Update's (0)</a><br />";
}





print "<hr /><b>Staff Online:</b><br />";
$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 "<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br />";
}
}
if($ir['donatordays'])
{
print "<hr />
<b>Donators Only</b><br />
<a href='friendslist.php'>Friends List</a><br />
<a href='assassinateuser.php'>Assassinate User</a><br />
<a href='blacklist.php'>Black List</a>";
}
print "<hr /><u><b>Personal</b></u><br />
<a href='preferences.php'>Preferences</a><br />
<a href='blogs.php'>Update your Blog</a><img src='new.png'><br />
<a href='playerreport.php'>Player Report</a><br />
<a href='breport.php'>Bug Report's</a><br />
<a href='helptutorial.php'>Help Tutorial</a><br />
<a href='gamerules.php'>Game Rules</a><br />
<a href='viewuser.php?u={$ir['userid']}'>My Profile</a><br />
<a href='logout.php'>Logout</a><br /><br />";



?>
Edited by skooda
Link to comment
Share on other sites

Well I dont see anything that should be showing the username, userid, steps, or anything like that. Most of that stuff is placed in the header and the mainmenu is just a required file in the header.

Also, if you have styles like a css file and your header has the css file included or the css is embedded within the header then im assuming you need to <div> up your mainmenu.php cause I see no styles in it

Link to comment
Share on other sites

Ok I believe I have most of this done this would be my last part.I have put the css/xhtml into mccode v2.The problem is that it dont show the username,points,steps or any of that also everything at the bottom of the page.

 

mainmenu is JUST links your field areas are in your header.php such as username,level,steps,points....

Link to comment
Share on other sites

I don't see a single line-break. Hence, all of your links are next to each other. Likely, that's way too long for the screen, so it's shoving it all down to the bottom of the page.

Yeah, I concur. Most styled up mainmenus if not all have some sort of list tags at minimum like <li><ul>.

Did the person who coded up the template give you anything like the html?

Link to comment
Share on other sites

I'm glad that you are making an effort in doing this menu, as I stated before a lot of your pages on your site has open tags and tags that are not suppose to be in the places, if you go to the page you are having problems with and look at the source code, in firefox it will show you the errors in the tag, they highlight them red. Thus is why everything is down below the menu and not correctly put into place, you have not closed a tag or have stray tags...

Link to comment
Share on other sites

<div id="wrapper">
<div id="background_bg">
<div id="header">
<div class="logo"><img src="ingame_layout/images/logo.jpg" /></div>
<div class="cor_box">
<div class="cor1"></div>
<div class="cor2">
<div id="menu">
<ul>
<li><a href="index.php" class="active">Home</a></li>
<li><a href="gym.php">Gym</a></li>
<li><a href="#">Newspaper</a></li>
<li><a href="forums.php">Forum</a></li>
<li><a href="explore.php">Explore</a></li>
<li><a href="#">Protection</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</div>
<div class="cor3"></div>
</div>
</div>
<div id="body_container">
<div class="left_container">

<div class="menu_new2">
<style="color:#ffffff;"><b><a href='viewuser.php?u={$ir['userid']}'> $gn{$u} </a> [{$ir['userid']}] $d </b><br/>
<bi>Money:</span> {$fm}<br/>
<span>Level:</span> {$ir['level']} <br/>
<span>Points:</span> {$pm} <a href='pointstemple.php'><font color = green><b><small>[use]</small></b></font></a> <br />
<span>Steps:</span> {$sm} <a href='streets.php'><font color = green><b><small>[use]</small></b></font></a><br />
<b>Energy:</b> {$enperc}% <a href='pointstemple.php?spend=energy'><font color='yellow'>[Refill]</font></a><br />
<img src=bar_left.gif height=13><img src=bargreen.gif width=$enperc height=13><img src=barred.gif width=$enopp height=13><img src=bar_fil_end.gif height=13><br />
<b>Will:</b> {$wiperc}% <a href='pointstemple.php?spend=will'><font color='yellow'>[Refill]</font></a><br /> 
<img src=bar_left.gif height=13><img src=barblue.gif width=$wiperc height=13><img src=barred.gif width=$wiopp height=13><img src=bar_fil_end.gif height=13><br />
<b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<a href='pointstemple.php?spend=brave'><font color='yellow'>[Refill]</font></a><br /> 
<img src=bar_left_purp.gif height=13><img src=barpurple.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13><br />
<b>EXP:</b> {$experc}%<br />
<img src=bar_left.gif height=13><img src=bargreen.gif width=$experc height=13><img src=barred.gif width=$exopp height=13><img src=bar_fil_end.gif height=13><br />
<b>Health:</b> {$hpperc}% <a href='pointstemple.php?spend=health'><font color='yellow'>[Refill]</font></a><br />
<img src=bar_left.gif height=13><img src=bargreen.gif width=$hpperc height=13><img src=barred.gif width=$hpopp height=13><img src=bar_fil_end.gif height=13><br />
<ul>

 

can you see what you are doing wrong? many things are wrong with your script this is just the source code...

 

You have a <bi> tag do not know what that means lol. never seen or heard of such... this is not the only thing I did not post the whole source code but through out it you have not closed over 5 div tags, and a few td tags and a table tag, also you have not closed your html tag or body tag... all simple html... Thus making your center table go below the menu, and not on the side of the menu in the center.

Edited by lucky3809
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...