Jump to content
MakeWebGames

Paddy

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by Paddy

  1. Re: random.php could you please explain what it does thanks
  2. Re: Login [Free] Nice Work Mate i think your skill in coding and designing is brilliant so well done :wink:
  3. Re: [V2] Credit Card Mod [V2] i have a couple of questions! do you remove the bank and add this? or you can keep both? if you keep both would there be any conflicts if you add the addons too? Thanks :)
  4. Re: Lucky Bags [V2][Free]   EDIT OT hope so mate you know i need it ASAP but if you say so ill wait :-)
  5. Re: Lucky Bags [V2][Free] nice ill try it out :-P
  6. Re: Simple Marriage [V2]   yeah thats cool Thanks alot well done
  7. Re: Simple Marriage [V2] one thing as i haven't tested or seen it yet! is this a forever marriage can you dump the person/devours and if you do so can it be that you will loose all your will or pay a certain amont of cash (just like reall life court lawyers payments) what do you think? just an idea :-D
  8. Re: [Mccode][Free] House Pictures welcome :) i used the same methode for the Item Pics insted of hPIC i used iPIC
  9. Re: [Mccode][Free] House Pictures   correct me if im wrong! but this is how i did it and it worked for me upload pics! RUN SQL   ALTER TABLE `houses` ADD `hPIC` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '[img][/img]'   then go to houses tables browse/hpic and for each house put in picture [img=images/Defaulthouse.jpg]   change Defaulthouse to the name of the pic/house now if you want your pics in estate.php find {$mp['hNAME']} and next to it or create a new <table> add {$mp['hPIC']} hope this helps maybe not the perfect idea but it worked for me
  10. Re: Updated Display Pic System [V2]   yeah good idea! all though i have this now ( Incorrect column name 'display_count' ) fixed Thanks
  11. Re: Updated Display Pic System [V2] how do you set the limit of images a person can have? Iv`e tested it and im sure it went up to 8 pics is it suppose to have 3 max? or you must edit it? if so can you point out the line to edit Thanks Richard always with unique mods well done
  12. Re: [v2]Html text converter[v2] y not add the bbcode one too :roll:
  13. Re: 3 in 1 Bank System [$20] well done really good work mate
  14. Re: [Free] TownView for which version is this ?? :?
  15. Re: Please help anyone got a clue i got the same problem but it takes 25% each hit i make unless i kill with the first hit it tells me i need 25 energy to attack someone :s anyone can help Thanks
  16. Re: QUERY ERROR Yes Thats What I did :-) And it worked thanks too nyna
  17. Re: QUERY ERROR Duplicate column name 'attacks_won' still the same ahh no not the same QUERY ERROR: Unknown column 'attacks_total' in 'field list' Query was UPDATE users SET attacks_total=attacks_total+1 WHERE userid=1
  18. Don't know if this is the right place to put it but i was wondering if any one could help me out with this query since i don't quite understand these things but i learn very quickly! QUERY ERROR: Unknown column 'attacks_won' in 'field list' Query was UPDATE users SET attacks_won=attacks_won+1 WHERE userid=1 i guess you know where this has shown up ''just after wining a fight'' Thanks In advanced
  19. Re: New improved mailbox. only problem i found with this is that it doesnt show you that you recived a msg (1)
  20. Re: New improved mailbox.   ahh oppss well if someone can delete then, i didnt do on purpose :-) but at the same time it works so :-P
  21. Re: New improved mailbox. dont know if this will work but i tried since in killah`s mod you cant preview the smileys i tried adding them my self :| please comment anything wrong PS I never did any PHP so better back up any files just in case :lol: thanks       <?php include("globals.php"); if($ir['mailban']) { echo '<font color="red">You have been mail baned for '.$ir['mailban'].' days. [b]Reason:[/b] '.$ir['mbreason']; $h->endpage(); exit; } if($_GET['ID']) { $ID = abs(@intval($_GET['ID'])); } if($_GET['act']) { $_GET['act'] = htmlentities(mysql_real_escape_string($_GET['act'])); } echo '<h2>Mailbox</h2> <table border="1" width="100%" cellspacing="0" class="table"> <tr> <th>[url="'.$_SERVER['PHP_SELF'].'"]Inbox[/url]</th> <th>[url="?act=outbox"]Outbox[/url]</th> <th>[url="?act=compose"]Compose[/url]</th> <th>[url="?act=del"]Delete Message\'s[/url]</th> <th>[url="?act=archive"]Archive Message\'s[/url]</th> </tr> </table>'; switch($_GET['act']) { case 'outbox': outbox(); break; case 'compose': compose(); break; case 'del': del(); break; case 'delb': delb(); break; case 'archive': archive(); break; case 'read': read(); break; default: inbox(); break; } function inbox() { global $ir,$h; echo ' <table border="1" width="100%" cellspacing="0" class="table"> <tr> <th>From</th> <th>Subject</th> <th>Time Sent</th> <th>Actions</th> </tr> <tr>'; $v = mysql_query("SELECT * FROM mail WHERE mail_to='{$ir['userid']}' ORDER BY mail_time DESC LIMIT 10") or die(mysql_error()); while($in = mysql_fetch_assoc($v)) { $whos = mysql_query("SELECT * FROM users WHERE userid='{$in['mail_from']}'") or die(mysql_error()); $who = mysql_fetch_assoc($whos); if($in['mail_read'] == 0) { $read = '<font color="red">New!</font>'; } else { $read = ''; } echo '<td>[url="viewuser.php?u='.$who['userid'].'"]'.$who['username'].'[/url] '.$read.'</td> <td>'.$in['mail_subject'].'</td> <td>'.date("F j, Y, g:i:s a", $in['mail_time']).'</td> <td>[[url="?act=delb&ID='.$in['mail_id'].'"]<font color="red">Delete</font>[/url]] [[url="?act=read&ID='.$in['mail_id'].'"]<font color="green">Read</font>[/url]]</td><tr>'; } echo '</tr></table>'; } function read() { global $ir,$h,$ID; if($_POST['subject']) { $msg = htmlentities(mysql_real_escape_string($_POST['msg'])); $subject = htmlentities(mysql_real_escape_string($_POST['subject'])); $who = abs(@intval($_POST['towho'])); $msg = str_replace(array("\n"),array(" "),strip_tags($msg)); $subject = str_replace(array("\n"),array(" "),strip_tags($subject)); $emos_code = array( ':]', ':D', ':oo:', 'O.o', ':/', ':angry:', ':?:', ':lol:', ':-:', ':O', ':(', 'O.O', ':roll:', ':zzz:', ':)', ':P', ':S', ':nut:', ';)', ':heart:', 'XD', ); $emos_images = array( '[img=images/smileys/happy.gif]', '[img=images/smileys/biggrin.gif]', '[img=images/smileys/cool.gif]', '[img=images/smileys/blink.gif]', '[img=images/smileys/dry.gif]', '[img=images/smileys/angry.gif]', '[img=images/smileys/huh.gif]', '[img=images/smileys/laugh.gif]', '[img=images/smileys/mellow.gif]', '[img=images/smileys/ohmy.gif]', '[img=images/smileys/sad.gif]', '[img=images/smileys/ph34r.gif]', '[img=images/smileys/rolleyes.gif]', '[img=images/smileys/sleep.gif]', '[img=images/smileys/smile.gif]', '[img=images/smileys/tongue.gif]', '[img=images/smileys/unsure.gif]', '[img=images/smileys/wacko.gif]', '[img=images/smileys/wink.gif]', '[img=images/smileys/wub.gif]', '[img=images/smileys/XD.gif]', ); $completed_msg = str_replace($emos_code,$emos_images,$msg); mysql_query("INSERT INTO mail (mail_time,mail_from,mail_to,mail_read,mail_subject,mail_text) VALUES(unix_timestamp(),'{$ir['userid']}','{$who}','0','{$subject}','{$completed_msg}')") or die(mysql_error()); mysql_query("UPDATE users SET new_mail=new_mail+1 WHERE userid='{$who}'") or die(mysql_error()); echo 'Mail sent successfuly.'; $h->endpage(); exit; } $y = mysql_query("SELECT * FROM mail WHERE mail_id='{$ID}'") or die(mysql_error()); $f = mysql_fetch_assoc($y); mysql_query("UPDATE users SET new_mail=new_mail-1 WHERE userid='{$ir['userid']}'") or die(mysql_error()); mysql_query("UPDATE mail SET mail_read=1 WHERE mail_id='{$ID}'") or die(mysql_error()); $sl_users = mysql_query("SELECT * FROM users WHERE userid='{$f['mail_from']}'") or die(mysql_error()); $sl = mysql_fetch_assoc($sl_users); $to_users = mysql_query("SELECT * FROM users WHERE userid='{$f['mail_to']}'") or die(mysql_error()); $tl = mysql_fetch_assoc($to_users); if($f['mail_from'] == $ir['userid']) { $pass = 1; } else { $pass = 0; } if($f['mail_to'] != $ir['userid']) { if($pass != 1) { echo 'This mail is not yours!'; $h->endpage(); exit; } } if($f['mail_from'] == $ir['userid']) { $ton = $f['mail_to']; } else { $ton = $f['mail_from']; } echo ' <h2>From: '.$sl['username'].' To: '.$tl['username'].'</h2> <table border="1" cellspacing="1" class="table" width="75%"> <tr> <th>Mail</th> <th>Subject</th> </tr> <tr> <td>'.$f['mail_text'].'</td> <td>'.$f['mail_subject'].'</td> </tr> </table> <h2>Quick Response</h2> <form action="?act=read" method="post"> To: <input type="text" value="'.$ton.'" name="towho" readonly> Subject: <input type="text" name="subject" value="No Subject"> Mail: <textarea name="msg" cols="50" rows="10"></textarea> [img=images/smileys/happy.gif] :] [img=images/smileys/biggrin.gif] :D [img=images/smileys/cool.gif] :oo: [img=images/smileys/blink.gif] O.o [img=images/smileys/dry.gif] :/ [img=images/smileys/angry.gif] :angry: [img=images/smileys/huh.gif] :?: [img=images/smileys/laugh.gif] :lol: [img=images/smileys/mellow.gif] :-: [img=images/smileys/ohmy.gif] :O [img=images/smileys/sad.gif] :( [img=images/smileys/ph34r.gif] O.O [img=images/smileys/rolleyes.gif] :roll: [img=images/smileys/sleep.gif] :zzz: [img=images/smileys/smile.gif] :) [img=images/smileys/tongue.gif] :P [img=images/smileys/unsure.gif] :S [img=images/smileys/wacko.gif] :nut: [img=images/smileys/wink.gif] ;) [img=images/smileys/wub.gif] :heart: [img=images/smileys/XD.gif] XD <input type="submit" value="Send"> </form>'; } function compose() { global $ir,$h; if($_POST['towho']) { $msg = htmlentities(mysql_real_escape_string($_POST['msg'])); $subject = htmlentities(mysql_real_escape_string($_POST['subject'])); $who = abs(@intval($_POST['towho'])); $msg = str_replace(array("\n"),array(" "),strip_tags($msg)); $subject = str_replace(array("\n"),array(" "),strip_tags($subject)); $emos_code = array( ':]', ':D', ':oo:', 'O.o', ':/', ':angry:', ':?:', ':lol:', ':-:', ':O', ':(', 'O.O', ':roll:', ':zzz:', ':)', ':P', ':S', ':nut:', ';)', ':heart:', 'XD', ); $emos_images = array( '[img=images/smileys/happy.gif]', '[img=images/smileys/biggrin.gif]', '[img=images/smileys/cool.gif]', '[img=images/smileys/blink.gif]', '[img=images/smileys/dry.gif]', '[img=images/smileys/angry.gif]', '[img=images/smileys/huh.gif]', '[img=images/smileys/laugh.gif]', '[img=images/smileys/mellow.gif]', '[img=images/smileys/ohmy.gif]', '[img=images/smileys/sad.gif]', '[img=images/smileys/ph34r.gif]', '[img=images/smileys/rolleyes.gif]', '[img=images/smileys/sleep.gif]', '[img=images/smileys/smile.gif]', '[img=images/smileys/tongue.gif]', '[img=images/smileys/unsure.gif]', '[img=images/smileys/wacko.gif]', '[img=images/smileys/wink.gif]', '[img=images/smileys/wub.gif]', '[img=images/smileys/XD.gif]', ); $completed_msg = str_replace($emos_code,$emos_images,$msg); mysql_query("INSERT INTO mail (mail_time,mail_from,mail_to,mail_read,mail_subject,mail_text) VALUES(unix_timestamp(),'{$ir['userid']}','{$who}','0','{$subject}','{$completed_msg}')") or die(mysql_error()); mysql_query("UPDATE users SET new_mail=new_mail+1 WHERE userid='{$who}'") or die(mysql_error()); echo 'Mail sent successfuly.'; $h->endpage(); exit; } if($_GET['ID']) { $value = $_GET['ID']; } else { $value = ""; } echo '<form action="?act=compose" method="post"> Who To: <input type="text" name="towho" value="'.$value.'"> Subject: <input type="text" name="subject" value="No Subject"> Message: <textarea name="msg" cols="50" rows="10"></textarea> [img=images/smileys/happy.gif] :] [img=images/smileys/biggrin.gif] :D [img=images/smileys/cool.gif] :oo: [img=images/smileys/blink.gif] O.o [img=images/smileys/dry.gif] :/ [img=images/smileys/angry.gif] :angry: [img=images/smileys/huh.gif] :?: [img=images/smileys/laugh.gif] :lol: [img=images/smileys/mellow.gif] :-: [img=images/smileys/ohmy.gif] :O [img=images/smileys/sad.gif] :( [img=images/smileys/ph34r.gif] O.O [img=images/smileys/rolleyes.gif] :roll: [img=images/smileys/sleep.gif] :zzz: [img=images/smileys/smile.gif] :) [img=images/smileys/tongue.gif] :P [img=images/smileys/unsure.gif] :S [img=images/smileys/wacko.gif] :nut: [img=images/smileys/wink.gif] ;) [img=images/smileys/wub.gif] :heart: [img=images/smileys/XD.gif] XD <input type="submit" value="Send"> </form>'; } function outbox() { global $ir,$h; echo ' <table border="1" width="100%" cellspacing="0" class="table"> <tr> <th>To</th> <th>Subject</th> <th>Time Sent</th> <th>Actions</th> </tr> <tr>'; $v = mysql_query("SELECT * FROM mail WHERE mail_from='{$ir['userid']}' ORDER BY mail_time DESC LIMIT 10") or die(mysql_error()); while($in = mysql_fetch_assoc($v)) { $whos = mysql_query("SELECT * FROM users WHERE userid='{$in['mail_to']}'") or die(mysql_error()); $who = mysql_fetch_assoc($whos); if($in['mail_read'] == 0) { $read = '<font color="red">New!</font>'; } else { $read = ''; } echo '<td>[url="viewuser.php?u='.$who['userid'].'"]'.$who['username'].'[/url] '.$read.'</td> <td>'.$in['mail_subject'].'</td> <td>'.date("F j, Y, g:i:s a", $in['mail_time']).'</td> <td>[[url="?act=read&ID='.$in['mail_id'].'"]<font color="green">Read</font>[/url]]</td><tr>'; } echo '</tr></table>'; } function delb() { global $ir,$h,$ID; $t = mysql_query("SELECT * FROM mail WHERE mail_id='{$ID}'") or die(mysql_error()); $r = mysql_fetch_assoc($t); if($r['mail_to'] != $ir['userid']) { echo 'This mail is not yours!'; $h->endpage(); exit; } mysql_query("DELETE FROM mail WHERE mail_id='{$ID}'") or die(mysql_error()); echo 'Mail deleted successfuly.'; } function del() { global $ir,$h; if($_POST['gohome']) { header("location: index.php"); exit; } if($_POST['yes']) { $q = mysql_query("SELECT * FROM mail WHERE mail_to='{$ir['userid']}'") or die(mysql_error()); $f = mysql_num_rows($q); mysql_query("DELETE FROM mail WHERE mail_to='{$ir['userid']}'") or die(mysql_error()); echo $f.' mails deleted.'; $h->endpage(); exit; } echo 'Are you sure you want to delete all your mails? <form action="?act=del" method="post"> <input type="submit" value="Yes" name="yes"> | <input type="submit" value="No" name="gohome"> </form>'; } function archive() { echo 'This tool allows you to download your mails to your computer. [url="dlarchive.php?a=inbox"]Download Inbox Messages[/url] [url="dlarchive.php?a=outbox"]Download Outbox Messages[/url] Select a link above.'; } $h->endpage(); ?>
  22. Re: New improved mailbox.   theres more than that needed http://www.killah-city.com/images/
×
×
  • Create New...