
spikereloaded
Members-
Posts
145 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by spikereloaded
-
How to integrate SMF into any McCodes Package
spikereloaded replied to sniko's topic in Free Modifications
/* SMF Integration - The following ___VALUE___'s, enter the relevant details for SMF database*/ $link = mysql_connect("localhost", "site", "password"); mysql_select_db("DB", $link) or die(mysql_error()); $passwd = sha1(strtolower($username) . $_POST['password']); mysql_query("INSERT INTO DB.`smf_members` (`member_name`,`date_registered`,`real_name`,`email_address`,`passwd`) VALUES ('{$username}',unix_timestamp(),'{$username}','{$_POST['email']}', '{$passwd}')"); mysql_query("UPDATE `smf_settings` SET `value`='{$username}' WHERE `variable`='latestRealName'"); mysql_query("UPDATE `smf_settings` SET `value`=`value`+1 WHERE `variable`='totalMembers'"); mysql_close($link); /* SMF Integration */ It's possible to do it like this aswell? or is that bad practice? -
How to integrate SMF into any McCodes Package
spikereloaded replied to sniko's topic in Free Modifications
thanks guys, working on it now. I've had another issue aswell, because at the time of the new users being inserted into the smf tables, they dont have a userid defined yet, ive found that there's nothing solid linking the user details in the smf members table to the user details in the site users table. Is it just a case of starting with a fresh set of table so the ID's automatically match as people sign up. Sorry if I'm missing an obvious fix here. -
How to integrate SMF into any McCodes Package
spikereloaded replied to sniko's topic in Free Modifications
hmmm having a look through the SMF source.... very complex for my ability. have asked for some assistance in their forums though so hopefully will get it sorted! -
How to integrate SMF into any McCodes Package
spikereloaded replied to sniko's topic in Free Modifications
hi great topic, really helped me get started on integrating a better forum to our site. One question I have though is how could I make it so if someone changes their password in the forums, it updates on the main site. I've had a look but cant seem to find anywhere that would allow me to enter a query. It appears pretty easy to do the other way around (change on main site, update forum password) just struggling to do it from the forum side. I know this isnt something that people would really do anyway but theres bound to be one person that does it then says their locked out because it didn't update their main password. thanks for any info you can give! -
Thanks turkey This guys been a pain in the ass recently. He's basically a little kid who can't code so tries to steal other people's stuff Have a look at this topic I posted a week or so ago http://makewebgames.io/showthread.php/43306-Not-a-nice-subject-Lightning?highlight=Lightning Lucky he's completely stupid so hopefully he won't be able to scam anyone! We're looking at a release date of sometime in June! Vague I know haha! Keep visiting though mate! Support is greatly appreciated!!
-
HI I'm one of the co-owners of End of Timez. You can check my previous posts and confirm this with my partner Bennyh. I'm a little confused. Nobody from our site has offered to sell anything to anyone. This game is still in development and we have absolutely no plans to sell it. So I would say you are being scammed because it's definately not anyone from End of Timez who's trying to sell it to you. Hope that clears that up! whats this guys email btw?
-
Not a nice subject - Lightning
spikereloaded replied to spikereloaded's topic in Collaboration Experiences
Well we have email validation on our registration so we weren't worried about him spamming, but just thought if make people aware as some games aren't as far along as ours and its just be annoying for an owner to have to deal with that if they haven't safeguarded against it yet. Plus I doubt very much that he possess' the ability to seriously spam anyone to a serious degree! -
Not a nice subject - Lightning
spikereloaded replied to spikereloaded's topic in Collaboration Experiences
Yea from looking round the forums it's pretty easy to see he's full of it. Some of the stuff he says is so ridiculous it's actually funny. -
Sorry to go all negative people but I just have to make everyone aware of a certain individual who has been caught out trying to sell peoples free mods and pass them off as his own. A member named Lightning has recently started trying to get a staff position on our site (http://www.endoftimez.com) and he was respectfully asked to show us some of his work to see if he was any good. After many excuses and asking for payment, he gave me a starter pack code that has blatantly been copied and pasted from this forum. he flatly denies it but it was identical. When he was told he'd been caught out he started getting pretty nasty and threatening to spam our site. copied from Skype conversation (hazzy is Lightning): [26/04/2013 00:16:12] hazzy: The game is mccodes so thats a lie. Enjoy the 6000 spam users i give you [26/04/2013 00:16:44] Lewis: like i said, actually learn to code yourself and you'll find it alot more satisfying. by all means keep playing our game but dont pretend to know stuff you dont [26/04/2013 00:17:27] Lewis: its based on the mccodes engine yes and im not saying we didnt start of basic. im saying all the mods and customisation has been done by us [26/04/2013 00:17:39] Lewis: and good luck with those spam users [26/04/2013 00:18:06] hazzy: I do know how to code. I created my own engine unlike you. Watch the game account number rise. Plus its an automated code [26/04/2013 00:20:03] hazzy: Clever blocking me [26/04/2013 00:22:42] Lewis: like i said..good luck Like is said i don't want to be negative about the community but it's important for people to know who the bad eggs are when there's not a hell of a lot of us around these days! Not sure on the admin rules for naming and shaming so if i've broken any I'm sorry! Needless to say he won't be coming back to visit us!
-
I'm the co-owner of this game and have done a big proportion of the development and design. I appreciate your review Lightning, but I would have to disagree on a few of your statements. The video is purely something I did to add a bit more personally to the game, it's not meant to be amazing and I think you'd be hard pushed to find many other MC Codes games that have had the amount of effort put into them as ours. The picture taken for the splash page was taken by myself whilst in Milan, nobody in the picture is recognisable and even if they were I am completely within my rights to take pictures in a public place and use them for no profit projects. The game title has a Z at the end of it just to tie into the zombie theme, it was our assumption that the zombie theme was pretty obvious but maybe we need to work on highlighting that a little better. The search location page is still in development and still needs an explanation for it's purpose. Basically there is a place on that picture that isn't highlighted, that you can click and you gain items and weapons from doing this. Like i said it still needs some work and a bit of an explanation to make it effective. Again we do appreciate the reviews but just wanted to clear up some of those bits mentioned. Thanks mate, definitely come back in a few weeks and hopefully you'll see some improvements
-
works great on our site! will let you know if we come up against any bugs!
-
could there not be some kind of vouching system, eg if you want to sell something somebody has to vouch for you? if nobody vouches then the topic is locked or deleted? This tends to work well on other forums! And this Skooda guy tried to message me about buying 'his game engine'....as i saw this before hand, i told him where to go!
-
no worries, still got some work to do on the activiation email process as its a bit messy still from the old game! what resolution are you on? this is one of the problems i've been coming up against, need to get onto converting it to a responsive design
-
The test account is now working again, some kind person did decide to change the password....... so username= bentest password=bentest
-
Thanks for the suggestions i'll take a look at them. It may be that some kind person has logged in in the test account and changed the password....lovely. so will hav to set up a new test account. Also illusions I'm guessing you've checked your junk mail folder? let me know if it still hasn't come through and I'll pass it on to bennyh. Cheers guys
-
have now taken of the text shadow....any feedback on whether this has improved readability?
-
ah maybe it wasnt a standard thing! was son long ago i saw a standard set up!
-
Should be pretty simple, if you have the stats ranking on your index page (which I think comes as standard) you should just be able to copy and past the code over? It'll be something like $ir{'statsrk'} or something! Just change ir to r Could be wrong though?
-
hey guys Im the guy doing the photoshop and layout for the site, any suggestions are greatly appreciated and make them as specific as you can! Still a lot to do but making some slow progress! Thanks again for the feedback!
-
what do you think of my login page x2
spikereloaded replied to LearningCoder's topic in Graphic Design
constructive criticism is always better than just plain criticism....try it sometime -
screenshot added to original post!:D
-
Hey people. This is a mod i made using an expandable bar and just modified it a bit. its basically a tab that sits at the bottom of the players screen, when moused over, it exapnds to show details such as recent mailbox messages, recent announcements and recent events. It also shows a "new notification" text when a new mail, event or announcement is received. So first of all add this to your header.php <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <link rel="stylesheet" href="expstickybar.css" /> <script src="expstickybar.js"> </script> next make a file called expstickybar.js and add this to it /*Expandable Sticky Bar (Initial: Nov 1st, 2010) * This notice must stay intact for usage * Author: Dynamic Drive at http://www.dynamicdrive.com/ * Visit http://www.dynamicdrive.com/ for full source code */ jQuery.noConflict() function expstickybar(usersetting){ var setting=jQuery.extend({position:'bottom', peekamount:30, revealtype:'mouseover', speed:200}, usersetting) var thisbar=this var cssfixedsupport=!document.all || document.all && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //check for CSS fixed support if (!cssfixedsupport || window.opera) return jQuery(function($){ //on document.ready if (setting.externalcontent){ thisbar.$ajaxstickydiv=$('<div id="ajaxstickydiv_'+setting.id+'"></div>').appendTo(document.body) //create blank div to house sticky bar DIV thisbar.loadcontent($, setting) } else thisbar.init($, setting) }) } expstickybar.prototype={ loadcontent:function($, setting){ var thisbar=this var ajaxfriendlyurl=setting.externalcontent.replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/") $.ajax({ url: ajaxfriendlyurl, //path to external content async: true, error:function(ajaxrequest){ alert('Error fetching Ajax content.<br />Server Response: '+ajaxrequest.responseText) }, success:function(content){ thisbar.$ajaxstickydiv.html(content) thisbar.init($, setting) } }) }, showhide:function(keyword, anim){ var thisbar=this, $=jQuery var finalpx=(keyword=="show")? 0 : -(this.height-this.setting.peekamount) var positioncss=(this.setting.position=="bottom")? {bottom:finalpx} : {top:finalpx} this.$stickybar.stop().animate(positioncss, (anim)? this.setting.speed : 0, function(){ thisbar.$indicators.each(function(){ var $indicator=$(this) $indicator.attr('src', (thisbar.currentstate=="show")? $indicator.attr('data-closeimage') : $indicator.attr('data-openimage')) }) }) thisbar.currentstate=keyword }, toggle:function(){ var state=(this.currentstate=="show")? "hide" : "show" this.showhide(state, true) }, init:function($, setting){ var thisbar=this this.$stickybar=$('#'+setting.id).css('visibility', 'visible') this.height=this.$stickybar.outerHeight() this.currentstate="hide" setting.peekamount=Math.min(this.height, setting.peekamount) this.setting=setting if (setting.revealtype=="mouseover") this.$stickybar.bind("mouseenter mouseleave", function(e){ thisbar.showhide((e.type=="mouseenter")? "show" : "hide", true) }) this.$indicators=this.$stickybar.find('img[data-openimage]') //find images within bar with data-openimage attribute this.$stickybar.find('a[href=#togglebar]').click(function(){ //find links within bar with href=#togglebar and assign toggle behavior to them thisbar.toggle() return false }) setTimeout(function(){ thisbar.height=thisbar.$stickybar.outerHeight() //refetch height of bar after 1 second (last change to properly get height of sticky bar) }, 1000) this.showhide("hide") } } /////////////Initialization code:///////////////////////////// //Usage: var unqiuevar=new expstickybar(setting) var mystickybar=new expstickybar({ id: "stickybar", //id of sticky bar DIV position:'bottom', //'top' or 'bottom' revealtype:'mouseover', //'mouseover' or 'manual' peekamount:30, //number of pixels to reveal when sticky bar is closed externalcontent:'stickybarcontent.php', //path to sticky bar content file on your server, or "" if content is defined inline on the page speed:200 //duration of animation (in millisecs) }) next make a file called expstickybar.css and paste this in .expstickybar{ position:fixed; color: black; background:grey; /* Fallback for web browsers that don't support RGBa */ background-color: rgb(0, 0, 0); /* RGBa with 0.6 opacity */ background-color: rgba(0, 0, 0, 0.6); /* For IE 5.5 - 7*/ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000); /* For IE 8*/ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"; padding: 5px; right:0; /*horizontally center bar in window*/ left:0; /*horizontally center bar in window*/ visibility:hidden; z-index: 10000; width:300px; /*set width of bar to width of entire window*/ font-weight:bold; Border: 2px solid white; border-radius:15px; text-align:center; box-shadow: 1px 2px 1px grey; } .expstickybar a{ color: black; font-weight:bold; } .mail { border:1px solid black; width:90%; margin-left:15px; margin-bottom:10px; box-shadow: 1px 2px 1px grey; background:white; } .dev { border:1px solid black; width:90%; margin-left:15px; margin-bottom:10px; box-shadow: 1px 2px 1px grey; background:white; } .announcements { border:1px solid black; width:90%; margin-left:15px; margin-bottom:10px; box-shadow: 1px 2px 1px grey; background:white; } .lottery { border:1px solid black; width:90%; margin-left:15px; margin-bottom:10px; box-shadow: 1px 2px 1px grey; background:white; } .events { border:1px solid black; width:90%; margin-left:15px; margin-bottom:10px; box-shadow: 1px 2px 1px grey; background:white; } and finally make a page called stickybarcontent.php, add in the code to connect to your database, but DON'T include globals. then add the following code. $a=$db->query("SELECT `a_TOPIC`,`a_TIME`,`a_URGENCY`,`a_TITLE` FROM announcements ORDER BY a_TIME DESC LIMIT 3"); $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE u.userid=$userid"); $l=$db->query("SELECT `jackpot` FROM lottery ORDER BY jackpot DESC LIMIT 1"); $lottowinner=$db->query("SELECT `winner` FROM moneylottowinners ORDER BY id ASC LIMIT 1"); $prevwinner=$db->fetch_row($lottowinner); $prevwinneruser=$db->query("SELECT `username` FROM users WHERE userid='{$prevwinner['winner']}'"); $prevwinnerusername=$db->fetch_row($prevwinneruser); $r=$db->fetch_row($q); $an=$db->fetch_row($a); $lo=$db->fetch_row($l); $fo=$db->fetch_row($f); $a=$db->query("SELECT `a_TEXT` FROM announcements ORDER BY a_TIME DESC LIMIT 1"); $ann=$db->fetch_row($m); $m=$db->query("SELECT `mail_text`,`mail_time`,`mail_from`,`mail_to` FROM mail WHERE mail_to=$userid ORDER BY mail_time DESC "); $ma=$db->fetch_row($m); $mf=$db->query("SELECT `username`,`userid` FROM users WHERE userid='{$ma['mail_from']}'"); $maf=$db->fetch_row($mf); $e=$db->query("SELECT `evTEXT`,`evTIME`,`evUSER` FROM events WHERE evUSER='{$ir['userid']}' ORDER BY evTIME DESC"); $ev=$db->fetch_row($e); $d=$db->query("SELECT `Devtitle`,`Userid`,`Devtext`,`Username`,`dateadded` FROM Development ORDER BY dateadded DESC"); $dev=$db->fetch_row($n); $eventtime=date('F j, Y, g:i:s a',$ev['evTIME']); print" <style type='text/css'> d1 { text-shadow:1px 1px 2px grey; } </style> <d1><div id='stickybar' class='expstickybar'> <a href='#togglebar'><img src='open.gif' data-closeimage='close.gif' data-openimage='open.gif' style='border-width:0; float:right;' /></a> <div style='text-align:center;padding-top:3px'><font color='white'>.:Notification Center:.</font>"; if ($ir['new_mail'] >=1){ print"<font color='red'><small><b>  <u>-New Notification-</u></b></small></font>";} elseif ($ir['new_events']>=1){ print"<font color='red'><small><b>  <u>-New Notification-</u></b></small></font>";} elseif ($ir['new_announcements'] >=1){ print"<font color='red'><small><b>  <u>-New Notification-</u></b></small></font>";} else { print"<b> <br /></b>";} print"<br />"; if($ir['rr']=="3") { print "<br /><small><center><b><a href='russianroulette.php'><font color='red'>You have a Russian Roulette invite.</font></center></a></small></b><br />"; } if($ir['rr']=="2" || $ir['rr']=="4" || $ir['rr']=="5" || $ir['rr']=="6") { print "<br /><small><center><b><a href='russianroulette.php?action=play'><font color='red'>You are in a game of Russian Roulette</font></center></b></a></small><br />"; } print" </div> <div class='resources' style='margin-top:10px'> <div class='mail'> <b><font color='blue'>.:Mail:.</font></b><br />"; if ($ir['new_mail'] >=1){ print"<small><a href='mailbox.php'><font color='red'><b><u>You Have Mail!</u></b>  [{$ir['new_mail']}]</font><br /><br /><br /><center><a href='mailbox.php'><font color='red'><b>{$ma['mail_text']}</b></font></a><br /></center>From:  <a href='viewuser.php?u={$maf['userid']}'><font color='green'>{$maf['username']}</font></a></small><Center><br />";} else { print"<small><a href='mailbox.php'>No new Mail<br /><br /><br /><center><b>\"{$ma['mail_text']}\"</b></a><br /><br /></center>From:  <a href='viewuser.php?u={$maf['userid']}'><font color='green'>[{$maf['username']}]</font></a></small><Center><br />";} print"</div> <div class='events'> <b><font color='blue'>.:Events:.</font><br />"; if ($ir['new_events']>=1){ print"<small><a href='events.php'><font color='red'><b><u>New Event</u></b>  [{$ir['new_events']}]</font></a><br /><br /><center><a href='events.php'><font color='red'><b>{$ev['evTEXT']}</b></font></a><br /><font color='green'>[$eventtime]</font></small>";} else { print"<small><a href='events.php'>No New Events</a><br /><br /><center><a href='events.php'><b>{$ev['evTEXT']}</b></a><br /><font color='green'>[$eventtime]</font></small>";} print"<br /><br /> </center> </div> <div class='announcements'> <b><font color='blue'>.:Announcements:.</font></b><br />"; if ($ir['new_announcements']>=1){ print"<small><a href='ann.php'><b><u><font color='red'>You Have A New Announcement!</font></u></b>  [{$ir['new_announcements']}]<br /><br /><br /><center><a href='ann.php'><b><font color='red'>{$ann['a_TEXT']}</font></b></a><br /><br />";} else { print"<small><a href='ann.php'>No New Announcements<br /><br /><br /><center><b>\"{$ann['a_TEXT']}\"</b></a><br /><br />";} print"</div> <div class='lottery'> <b><font color='blue'>.:Lottery:.</font></b><br /><center>"; if($lo['jackpot']<=0){ print"<br />There is currently no lottery Jackpot!";} else { print"<br />Current Lottery Jackpot: \${$lo['jackpot']}";} print"<br /><a href='lottery.php'><u><small>Buy a Ticket<br /><br />Last Weeks Winner:</small><br /></u></a>{$prevwinnerusername['username']}</center> <br /><br /> </div> <div class='dev'> <center> <br /><small>.:Latest Site Dev:.</small><br /> <marquee behavior='scroll' direction='left' scrollamount='3'><u>{$dev['Devtitle']}</u>---<b><font color='green'> {$dev['Devtext']}</font></b>---<a href='viewuser.php?u={$dev['Userid']}'>{$dev['Username']}</a></u></marquee> <p><small><center><a href='development.php'>Visit Dev Page</a></center></small></p> </center> </div> </div></d1>"; ?> The settings of the notification center can be changed within the CSS page as well as at the end of the JS file. Here's a screenshot! [ATTACH=CONFIG]254[/ATTACH] Now please go easy as this was one of my first mods so the code may not be tidy or entirely correct, but it works well! let me know what you think! Now upload all the files and you should have a working notification center. (ps. the development section is one i've added myself so you may want to take that out or add a developments table to your db)
-
cheers mixmaster!
-
Hey everyone! Myself and my mate Bennyh have been working on putting this game together and we're finally starting to get somewhere with it. I've been working mainly on the CSS and we've both been doing some work on the site features. We've still got a load of ideas to implement but wanted to see what you guys thought. So any constructive criticism is welcome! *Under construction [fixing some bugs! will update soon!]*
-
thanks Nickson worked like a charm!