
kevj2
Members-
Posts
63 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by kevj2
-
i am looking for a graphix designer to help me in desing my template i will be willing to pay 15GBP for the images as this is a low price i am not looking for something 2 fancy i just need a layout for a login,register and the header. i have someone ligned up to integrate the template to mccodes so it just the desing and images i need. if you're intrested in makeing some extra cash mail me @[email protected] thanks
-
Re: Wanted email verification mod v1 add me on msn [email protected]
-
Re: Adding an item to the game i had the same error but when i hit go back it took me to admin.php but i did not have amdin.php does that mean i have a file missing or is the code incorect?. i hope i dont have a file missing
-
Re: looking for template (pay up 2 ?30) i ahev added him and e-mailed him.i have not got a reply yet so it is just a waiting game.
-
Re: [MCCODES V2] MailBox Update i did not code this i found it for free on another site so i thiught i would share it
-
Re: [MCCODES V2] MailBox Update i do not have this mod currently installed as i am moving servers atm i will have screenshots up as soon as :)
-
i found this mod and thought i would share it with you guys i did not make this mod. Replace mailbox with this: <?php include "globals.php"; if($ir['mailban']) { die("<font color=red><h3>! ERROR</h3> You have been mail banned for {$ir['mailban']} days. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_GET['ID'] = abs((int) $_GET['ID']); print "<table width=100% class='table' cellspacing='1'> <tr> <td align=center>[url='mailbox.php?action=inbox']Inbox[/url]</td> <td align=center>[url='mailbox.php?action=outbox']Sent Messages[/url]</td> <td align=center>[url='mailbox.php?action=compose']Compose Message[/url]</td> <td align=center>[url='mailbox.php?action=delall']Delete All Messages[/url]</td> <td align=center>[url='mailbox.php?action=archive']Archive Messages[/url]</td> <td align=center>[url='contactlist.php']My Contacts[/url]</td> </tr> </table> "; switch($_GET['action']) { case 'inbox': mail_inbox(); break; case 'outbox': mail_outbox(); break; case 'compose': mail_compose(); break; case 'delete': mail_delete(); break; case 'send': mail_send(); break; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'del': mail_massdel(); break; default: mail_inbox(); break; } function mail_inbox() { global $db,$ir,$c,$userid,$h; print<<<END <SCRIPT><!-- HIDE function setCheckboxes(the_form, do_check) { var elts = (typeof(document.forms[the_form].elements['ID[]']) != 'undefined') ? document.forms[the_form].elements['ID[]'] : (typeof(document.forms[the_form].elements['ID[]']) != 'undefined') ? document.forms[the_form].elements['ID[]'] : document.forms[the_form].elements['ID[]']; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { elts[i].checked = do_check; } // end for } else { elts.checked = do_check; } // end if... else return true; } // STOP HIDING --></SCRIPT> END; print <<<OUT Only the last 25 messages sent to you are visible. <table width=100% class=table cellspacing="1"> <tr> <td class="h" align=center>From</td> <td class="h" align=center>Subject</td> <td class="h" align=center>Status</td> <td class="h" align=center>Read</td> <td class="h" align=center>Delete</td> </tr> <form name='masssell' method=post action=mailbox2.php?action=del> OUT; $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 25"); $i=0; while($r=$db->fetch_row($q)) { print "<tr class=\"d".($i & 1)."\"><td align=center>"; $i++; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=$r['mail_subject']; if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } print " </td> <td align=center> $fm </td> <td align=center> $status </td> <td align=center> [url='mailbox.php?action=read&ID={$r[']Open[/url] </td> <td align=center> <a href='mailbox.php?action=delete&ID={$r['mail_id']}'> <img src=images/trash.gif height=20 width=20 > </a> <input type='checkbox' name='del$i' value='yes'> <input type='hidden' name='id$i' value='{$r['mail_id']}'> </td></tr>"; } print<<<END <tr> <td colspan=5 align=center> <input name=sellmass type=submit id=sellmass value='Delete selected'><a href=# onClick="setCheckboxes('masssell',true); return false;'> Check All</A> | [url="#"]Uncheck All[/url] </form> </td> </tr> </table> END; } /* These are off function mail_inbox() { global $db,$ir,$c,$userid,$h; print <<<OUT Only the last 25 messages sent to you are visible. <table width=100% class="table" border="0" cellspacing="1"> <tr> <td class="h" width="30%">From</td> <td class="h" width="70%">Subject/Message</td> </tr> OUT; $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 25"); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print <<<EOF </td> <td>{$r['mail_subject']}</td> </tr> <tr> <td>Sent at: {$sent} [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url] </td> <td>{$r['mail_text']}</td> </tr> EOF; } if($ir['new_mail'] > 0) { $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid"); $db->query("UPDATE users SET new_mail=0 WHERE userid=$userid"); } echo '</table>'; } OFF */ function mail_outbox() { global $db,$ir,$c,$userid,$h; print "Only the last 25 messages you have sent are visible. <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>To</th><th>Subject/Message</th></tr>"; $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_to=u.userid WHERE m.mail_from=$userid ORDER BY mail_time DESC LIMIT 25"); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['mail_subject']}</td></tr><tr><td>Sent at: $sent </td><td>{$r['mail_text']}</td></tr>"; } print "</table>"; } function mail_compose() { global $db,$ir,$c,$userid,$h; print "<form action='mailbox.php?action=send' method='post'> <table width=100% cellspacing=1 class='table'> <tr> <td>Contact to send to:</td> <td>"; $q=$db->query("SELECT c.*, u.username FROM contactlist c LEFT JOIN users u ON c.cl_ADDED=u.userid WHERE c.cl_ADDER={$userid} ORDER BY u.username ASC"); if($db->num_rows($q) == 0) { print "You have no contacts!"; } else { print "<select class='textbox' name='user1' type='dropdown'><option value=''><select a contact...></option>"; while($r=$db->fetch_row($q)) { print "<option value='{$r['username']}'>{$r['username']}</option>"; } print "</select>"; } if($_GET['ID']) { $user=$db->fetch_single($db->query("SELECT username FROM users WHERE userid={$_GET['ID']}")); } print "</td></tr><tr> <td>[b]OR[/b] Enter a username to send to:</td><td><input class='textbox' type='text' name='user2' value='{$user}' /></td></tr><tr> <td>Subject:</td> <td><input class='textbox' type='text' name='subject' /></td></tr><tr> <td>Message:</td> <td> <textarea class='textbox' rows=5 cols=40 name='message'></textarea> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :] [/b] <td>[img=smilies/happy.gif] <td>[b] :D [/b] <td>[img=smilies/biggrin.gif] <td>[b] :oo: [/b] <td>[img=smilies/cool.gif] <td>[b] O.o [/b] <td>[img=smilies/blink.gif] <td>[b] :/ [/b] <td>[img=smilies/dry.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] ;) [/b] <td>[img=smilies/wink.gif] <td>[b] :?: [/b] <td>[img=smilies/huh.gif] <td>[b] :lol: [/b] <td>[img=smilies/laugh.gif] <td>[b] :-: [/b] <td>[img=smilies/mellow.gif] <td>[b] :angry: [/b] <td>[img=smilies/angry.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :( [/b] <td>[img=smilies/sad.gif] <td>[b] O.O [/b] <td>[img=smilies/ph34r.gif] <td>[b] :roll: [/b] <td>[img=smilies/rolleyes.gif] <td>[b] :zzz: [/b] <td>[img=smilies/sleep.gif] <td>[b] :) [/b] <td>[img=smilies/smile.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :P [/b] <td>[img=smilies/tongue.gif] <td>[b] :S [/b] <td>[img=smilies/unsure.gif] <td>[b] :nut: [/b] <td>[img=smilies/wacko.gif] <td>[b] :O [/b] <td>[img=smilies/ohmy.gif] <td>[b] :heart: [/b] <td>[img=smilies/wub.gif] </table> </td></tr><tr> <td colspan=2><input type='submit' class='textbox' value='Send' /></td></tr></table></form>"; if($_GET['ID']) { print " <table width=75% border=2><tr><td colspan=2>[b]Your last 5 mails to/from this person:[/b]</td></tr>"; $q=$db->query("SELECT m.*,u1.username as sender from mail m left join users u1 on m.mail_from=u1.userid WHERE (m.mail_from=$userid AND m.mail_to={$_GET['ID']}) OR (m.mail_to=$userid AND m.mail_from={$_GET['ID']}) ORDER BY m.mail_time DESC LIMIT 5",$c); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; } print "</table>"; } } function mail_send() { global $db,$ir,$c,$userid,$h; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); if($_POST['user1'] && $_POST['user2']) { die("Please do not select a contact AND enter a username, only do one. [url='mailbox.php']> Back[/url]"); } if(!$_POST['user1'] && !$_POST['user2']) { die("You must select a contact or enter a username. [url='mailbox.php']> Back[/url]"); } $codes = array( ':]', ':D', ':oo:', 'O.o', ':/', ':angry:', ':?:', ':lol:', ':-:', ':O', ':(', 'O.O', ':roll:', ':zzz:', ':)', ':P', ':S', ':nut:', ';)', ':heart:', 'XD', ); $images = array( '[img=smilies/happy.gif]', '[img=smilies/biggrin.gif]', '[img=smilies/cool.gif]', '[img=smilies/blink.gif]', '[img=smilies/dry.gif]', '[img=smilies/angry.gif]', '[img=smilies/huh.gif]', '[img=smilies/laugh.gif]', '[img=smilies/mellow.gif]', '[img=smilies/ohmy.gif]', '[img=smilies/sad.gif]', '[img=smilies/ph34r.gif]', '[img=smilies/rolleyes.gif]', '[img=smilies/sleep.gif]', '[img=smilies/smile.gif]', '[img=smilies/tongue.gif]', '[img=smilies/unsure.gif]', '[img=smilies/wacko.gif]', '[img=smilies/wink.gif]', '[img=smilies/wub.gif]', '[img=smilies/XD.gif]', ); $newmsg = str_replace($codes, $images, $msg); $to=($_POST['user1']) ? $_POST['user1'] : $_POST['user2']; $q=$db->query("SELECT userid FROM users WHERE username='{$to}'"); if($db->num_rows($q)==0) { die("You cannot send mail to nonexistant users. [url='mailbox.php']> Back[/url]"); } $to=$db->fetch_single($q); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')"); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$to}"); print "Message sent. [url='mailbox.php']> Back[/url]"; } function mail_delete() { global $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to=$userid"); print "Message deleted. [url='mailbox.php']> Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h; print "This will delete all the messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delall2']> Yes, delete all messages[/url] [url='mailbox.php']> No, go back[/url]"; } function mail_delall2() { global $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_to=$userid"); print "All ".$db->affected_rows()." mails in your inbox were deleted. [url='mailbox.php']> Back[/url]"; } function mail_archive() { global $ir,$c,$userid,$h; print "This tool will download an archive of all your messages. [url='dlarchive.php?a=inbox']> Download Inbox[/url] [url='dlarchive.php?a=outbox']> Download Outbox[/url]"; } function mail_view() { global $db,$ir,$c,$userid,$h; print <<<OUT <table width=100% class="table" border="0" cellspacing="1"> <tr> <td class="h" width=25%>From</td> <td class="h" width=75%>Subject/Message</td> </tr> OUT; $id= abs((int) $_GET['ID']); $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_id=$id LIMIT 1"); $r=$db->fetch_row($q); $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "</td>\n<td>{$r['mail_subject']}</td></tr><tr><td>Sent at: $sent "; if($ir['mailban'] == 0) { print "[url='mailbox.php?action=compose&ID={$r[']Reply[/url] "; } print "[url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr>"; if($r['mail_read'] == 0) { $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid AND mail_id=$id LIMIT 1"); $db->query("UPDATE users SET new_mail=new_mail-1 WHERE userid=$userid"); } print "</table>"; } function mail_massdel() { global $db,$ir,$c,$userid,$h; $counter = 1; $deleted=0; while ($counter < 25) { $dodel = "del" . $counter; if ($_POST[$dodel] == "yes") { $delid = "id" . $counter; $db->query("DELETE FROM mail WHERE mail_to=$userid AND mail_id={$_POST[$delid]}") or die(mysql_error()); $deleted++; } $counter++; } print "<center> $deleted messages deleted. <a href=mailbox.php>> Back</a>"; } print " Mail count mixed up? Click [url='fix.php?fix=1']Here[/url] to fix"; $h->endpage(); ?> they replace fix with this: <?php include "globals.php"; $fix= abs((int) $_GET['fix']); switch($fix) { case '1': mail_fix(); break; case '2': mail_2(); break; case '3': mail_3(); break; default: error(); break; } function mail_fix() { print " <center> What can we do for you today? > <a href=fix.php?fix=3>Set New Mail To 0</a> > <a href=fix.php?fix=2>Set New Mail To Actual New Mail</a>"; } function mail_2() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT mail_read FROM mail WHERE mail_to=$userid AND mail_read=0 ORDER BY mail_id DESC"); $real=$db->num_rows($q); if($ir['new_mail'] == $real) { print "<center>Your mail doesnt need to be fixed. <a href=mailbox.php>> Back</a>"; } else { $db->query("UPDATE users SET new_mail=$real WHERE userid=$userid") or die(mysql_error()); print "<center>All fixed for you! <a href=mailbox.php>> Back</a>"; } } function mail_3() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET new_mail=0 WHERE userid=$userid") or die(mysql_error()); $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid AND mail_read=0") or die(mysql_error()); print "<center>All fixed for you! <a href=mailbox.php>> Back</a>"; } function error() { print "<center>What are we fixing?"; } $h->endpage(); ?> Download the smile pack here http://rapidshare.com/files/262438345/smilies.zip.html
-
hey i am in need of some to design the graphics for my login,register and ingame template i alreay have a coder lined up all i need is some to design the template in the images stage i am not look form something to fancy just a like basic unique template for my game. if you're interested in making some money some extra money e-mail me @ [email protected] thanks Kevj2
-
Re: looking for template (pay up 2 ?30) ok how would i contact ac ?
-
Re: looking for template (pay up 2 ?30) i have been i just spet ?50 on 1 year ofhosting for my game the ?30 is all i have left :(
-
Re: looking for template (pay up 2 ?30) i do not have enought money atm to do that :-(
-
Re: looking for template (pay up 2 ?30) i am just looking for grapic that reflect the fact that the game is based in a college :) and make the game look professional
-
Re: looking for template (pay up 2 ?30) i will try and get some grafix but not to great at them i will keep you posted on them what kind grapix are you looking for
-
Hey guys i am looking for a template fore my new upcoming game the template must include.login,register and a header for the ingame content.my game will be based in a college. if you are intrested in making some money and are good at making mccodes v2 templates then e-mail me @ [email protected]. Thanks and i hope some can help me.
-
Hey guys i am looking for a template fore my new upcoming game the template must include.login,register and a header for the ingame content.my game will be based in a college. if you are intrested in making some money and are good at making mccodes v2 templates then e-mail me @ [email protected]. Thanks and i hope some can help me.
-
Re: [Mccodes v2] DatatBase quiestion Yea that is what i am looking for you where right the first time HD but i dont have enought money at mometn to use cluster servs i will maybe get that eventually:) so what the easy way so that it connects to the server if there is like 100 on each as show above ?
-
Re: [Mccodes v2] DatatBase quiestion would you need a clusterd server to run 2 db on 1 game,and is there any way to like have both of them working on the registration bage and login page but when you login ip pick one randmly and connects then to that server then displays connect to db1 or db2 or would that need a clusterd server.
-
Re: [Mccodes v2] DatatBase quiestion what is clustering and i might be getting a server soon :) not hur yet
-
Is there any way to run like 2 databases on the one script but set it up so that if one database goes down or times out it will connect to the other one automaticly and it will then display at the bottom saying like"Connect to backup database,Main database will be back online shortly". I was just wondering this as it would be cool to have the back up like that. plus i feel lots of game wound benifit from this mod. Thanks Kevj2
-
Re: mccodes v2 help Does thast mean on the page you could put echo "There are $row Register "; and that woukd say how many have regiasterd already ?
-
I am goin to be releasing an opern beta of my game and i was just wondering is there like any sort of code i could add to the registration that like counts the sign ups and dsiplays it and f it reach like 20 says like sorry max betta tester sign up? Thanks in advance Kevj2 :) :) :): :mrgreen:
-
[Mccodes v2] i am new to php and am looking for some helpf for a header
kevj2 replied to kevj2's topic in General Discussion
Re: [Mccodes v2] i am new to php and am looking for some helpf for a header theres not a file i have a proble with it just i hame new to php and mccodes and have no idea how to strat a headering and make it look like the baove template :-( -
I am new to php and looking for help with making a header for mccodes v2
kevj2 replied to kevj2's topic in Free Modifications
Re: I am new to php and looking for help with making a header for mccodes v2 yes i have payed for it