Jump to content
MakeWebGames

BlueDevil23

Members
  • Posts

    328
  • Joined

  • Last visited

Everything posted by BlueDevil23

  1. Re: [mccodesV2]main menu help Try this out, not tested...   <?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['new_announcements']) { print "[url='ann.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='ann.php']Announcements (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] "; 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 /> [url='staff.php']Staff Panel[/url] \n"; } 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'); ?>
  2. Re: Please review My Game   why should it say that? Because it is the McCode engine, and it is supposed to remain there.
  3. Re: [MCCode V2] Tabbed Explore [MCC V2] Thank you all :)   PM me, i should be able to help you out, if you explain more.
  4. Re: [MCCode V2] Tabbed Explore [MCC V2]   Thanks, MDK and Dylan :)
  5. Re: Please review My Game Actually, should be Powered by codes made by Dabomstew... something along those lines, dont remember the exact thing
  6. Here is a explore with a basic tabbed interface, for all to use. I commented all the essential CSS, to change colors easily. I only included the most of the links, from an original explore.php, but any links, and tabs should be easy enough to add. By following the simple pattern, if you need help figuring it out, just let me know, I'll be glad to help. Also, thanks to Nyna, for fixing a pesky error. Firstly, copy this and save it in your main directory as tabs.min.js /* idTabs ~ Sean Catchpole - Version 2.2 - MIT/GPL */ (function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i<arguments.length;++i){var a=arguments[i];switch(a.constructor){case Object:$.extend(s,a);break;case Boolean:s.change=a;break;case Number:s.start=a;break;case Function:s.click=a;break;case String:if(a.charAt(0)=='.')s.selected=a;else if(a.charAt(0)=='!')s.event=a;else s.start=a;break;}} if(typeof s['return']=="function") s.change=s['return'];return this.each(function(){$.idTabs(this,s);});} $.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected)) return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;} var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);list.each(function(){$("#"+this.href.split('#')[1]).hide();});var test=false;if((test=list.filter('.'+s.selected)).length);else if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);if(test){test.removeClass(s.selected);test.trigger(s.event);} return s;} $.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.2";$(function(){$(".idTabs").idTabs();});})(jQuery);} var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;} var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);} var s=document.getElementsByTagName('script');var src=s[s.length-1].src;var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();add(src);})(); And, secondly, replace your explore.php with this: <?php /*----------------------------------------------------- -- Made By BlueDevil23 -- Free Mod for the CE Community - Not to be sold -- Tabs via a JQuery extension made by Sean Catchpole -----------------------------------------------------*/ include "globals.php"; ?> <html> <head> <script type="text/javascript" src="tabs.min.js"></script> <style type="text/css"> #explore { color:#6688DD; float:left; font-family:Cambria,Times New Roman,serif; font-size:1.3em; font-stretch:normal; font-style:italic; font-weight:normal; line-height:normal; width:100px; } #explore li a { background:#222222 none repeat scroll 0 0; /* Change this value to change the backgroud of the tabs */ display:block; font-size:0.8em; /* Change this value to change the font size in the tabs */ font-style:normal; font-weight:bold; margin:1px; padding:2px 6px 4px; text-align:left; text-decoration:none; width:90px; /* Change this value to change the width of the tabs */ } #explore li a:hover { background:#0A0A0A none repeat scroll 0 0; /* Change this value to change the color of when the tab is hovered over */ width:90px /* This value should be the same as the width of the tabs above */ } #explore li a.selected { background:#FFFFFF none repeat scroll 0 0; /* Change this value to change the color of the tab when it is active */ color:#000000; cursor:default; width:90px; /* This should also be the same as the two above widths */ } .container { background:#181818 none repeat scroll 0 0; /* Change this value to change the background color of the links container */ border:1px solid #222222; margin:20px auto; padding-top:2px; width:400px; /* Change this value to change the width of links container */ } .container p { padding:2px 12px 10px; text-align:left; } </style> </head> <body> <?php $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $q = $db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE (u.userid=$userid)"); $r = $db->fetch_row($q); print <<<EOF2 [b]You begin exploring the area you're in, you see a bit that interests you.[/b] <ul id="explore" class="idTabs"> [*][url="#markplace"]Market Place[/url] [*][url="#smm"]Serious Money Makers[/url] [*][url="#darkside"]Dark Side[/url] [*][url="#statdept"]Stats Dept.[/url] [*][url="#mystery"]Mysterious[/url] [/list] <div class="container"> <ul id="markplace"> [*][url="shops.php"]Shops[/url] [*][url="itemmarket.php"]Item Market[/url] [*][url="cmarket.php"]Crystal Market[/url] [/list] <ul id="smm"> [*][url="monorail.php"]Travel Agency[/url] [*][url="estate.php"]Estate Agent[/url] [*][url="bank.php"]City Bank[/url] EOF2; if($ir['location'] == 5) print "[*][url='cyberbank.php']Cyber Bank[/url]"; print <<<EOF3 [/list] <ul id="darkside"> [*][url="gangcentral.php"]Gangs[/url] [*][url="gangwars.php"]Gang Wars[/url] [*][url="fedjail.php"]Federal Jail[/url] [*][url="slotsmachine.php?tresde=$tresder"]Slots Machine[/url] [*][url="roulette.php?tresde=$tresder"]Roulette[/url] [*][url="lucky.php"]Lucky Boxes[/url] [/list] <ul id="statdept"> [*][url="userlist.php"]User List[/url] [*][url="stafflist.php"]{$set['game_name']} Staff[/url] [*][url="halloffame.php"]Hall of Fame[/url] [*][url="stats.php"]Game Stats[/url] [*][url="usersonline.php"]Users Online[/url] [/list] <ul id="mystery"> [*][url="crystaltemple.php"]Crystal Temple[/url] [/list] </div> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you two valuable crystals! </body> </html> EOF3; $h->endpage(); ?> First mod, so leave me some feedback :P Oh yeah, I don't have a publicly facing game currently, so I could only take a screenshot of it. Doesn't really do it any justice, but at least, you get the look of it. Screenshot:
  7. Re: AJAX Main Page Offer closed.
  8. Well this may seem odd to some, but I am offering to make the first taker, Login and Register pages, for their game, and using some AJAX in their... Yes, I'm using this as a learning experience, but no, I am not going to give you something that, you'd be embarrased to show the public, in the end. Why dont I just make it for my game? Simple because I believe mine, is good how it is now, so Im'a leave it be. So, if I'm going to make one, might as well make it useful in the end, by having someone use it. So, if any takers, just post here. Or, PM with details[Colors etc...] or with IM details. and we can talk on their... Thanks.
  9. Re: favicon No problem, glad to help :)
  10. Re: [mccode] login/register addon He's not saying, not to center it, hes saying, use CSS to center it, instead of the <center> tags, since <center> is a deprecated element. #center { text-align: center; } Hope, that helps. :)
  11. Re: favicon http://criminalexistence.com/ceforums/i ... ic=12175.0 Try that :)
  12. Re: [mccode] Screenshots Yup, i use something similar, SlimBox, so it uses JQuery...and it gives the screenshots a nice look Check it out at: www.jailkings.com/screenies.php But for a more basic approach, this would work just fine, so good job Solid Snake
  13. Re: [Other] Free chat mod Yes, it is, at irc.nyna.co.uk --> channel: #ce
  14. Re: [mccode v2] Staff Applications   Because, all i was saying, is it doesnt absolutely necessarily, no other way, have to be in CSS, you can still use the <font> attribute, and it will still work, its just not the right way the right way? is there a code of ethics or something lol Yes, yes there is, if you could do it any way, what is the point in W3C Validation?
  15. Re: [mccode v2] Staff Applications   Because, all i was saying, is it doesnt absolutely necessarily, no other way, have to be in CSS, you can still use the <font> attribute, and it will still work, its just not the right way
  16. Re: [mccode v2] Staff Applications   wtf...   wtf what?
  17. Re: [MCCode V2]Staff Icon   :) Good to hear.
  18. Re: [MCCode V2]Staff Icon Not main menu... but the Character information part in your header.. like Name: Money: Level: etc etc...
  19. Re: [mccode v2] Staff Applications lies! :P it will still pick it up, but the <font> attribute, wont pass HTML 5 validation, like md said so yea, if you wanna do it the correct way, listen to md, and use CSS
  20. Re: New MSN Virus Yeah, someone sent this to me, well their MSN did but, i was sooooo close to clicking it, but then i remembered this post, so thanks Tonka!!!! :)
  21. Re: [mccodes V2] Bounty Hunter Game Radio_Active...   Im going to guess that user from his brother's game, is "SoldierB" , seeing as he only has one post here, and prolly just joined to see his idea in action.
  22. Re: [mccodes V2] Bounty Hunter Game Wow, War Hero great job, thats a nice mod, especially for free. Keep up the good work, you pump out a lot of quality mods :)
  23. Re: [mccode v2] inventory.php lol.
  24. Re: Cool Menu Maker Also, what about the people without Flash, or Flash disabled? You may lose additional members there... But thank you for posting the link niko, some people will find it very useful.
  25. Re: Cool Menu Maker Yea... i made a menu through FlashVortex for my game, albeit it looked great....not functional at all.... Sure it could be done like illusions said, but pointless when you can make a nice CSS menu, that looks great, and fully functional...
×
×
  • Create New...