Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,686
  • Joined

  • Last visited

  • Days Won

    81

Everything posted by Uridium

  1. Re: [mccodes v2]New and improved inventory code sources for free! adding {$_POST['itmname']} to the event will also tell the user what the name of the item is aswell as the items ID..
  2. Re: Battle ladder [Mccodes V2] Nice script but can i make a suggestion where by the Cron would reset all players at the end of the week. So other players can have a chance at being top slot on the next available join date. The way it is now it would just keep looping Also that a player who is high enough to join any level can join a ladder where all players are way under their level which wouldnt make this such a fair ladder system. Just a thought.
  3. Re: [MCCODES V2] Search Forums by Name will add more as i go along [WORKING] Update to Haunted_Dawgs script   <?php // Haunted_Dawg 2009 include_once(DIRNAME(__FILE__).'/globals.php'); echo '<h2>Searching Forum</h2>'; $two_strings_force = 1; if( isset($_POST['search']) ) { $search = htmlentities(mysql_real_escape_string($_POST['search'])); if($two_strings_force == 0) { if(!preg_match('~(.*?)([ ])(.*?)~is',$search)) { echo 'Two words are needed for this to work. Please go back and put in two words.'; $h->endpage(); exit; } } if(strlen($_POST['search']) < 4) { die("<h1>Sorry, Your search Request is too short.</h1> >[url='whateveryoulike.php']Return to search page[/url]"); } $double = mysql_query("SELECT fp_topic_id,fp_text,fp_poster_name,fp_poster_id FROM `forum_posts` WHERE `fp_text` LIKE('%".$search."%')") or die(mysql_error().' File: '.$_SERVER['PHP_SELF'].' Line: '.__LINE__); echo mysql_num_rows($double).' rows found. The word you searched for has been put in bold. <table cellspacing="0" style="border: 1px black solid;"> <tr> <th>Post</th> <th>Poster</th> </tr>'; while($soc = mysql_fetch_assoc($double)) { $str_rep = str_replace($search,'[b]'.$search.'[/b]',$soc['fp_text']); echo ' <tr> <td>[url="forums.php?viewtopic='.$soc['fp_topic_id'].'"]'.$str_rep.'[/url]</td> <td>[url="viewuser.php?u='.$soc['fp_poster_id'].'"]'.$soc['fp_poster_name'].'[/url] ('.$soc['fp_poster_id'].')</td> </tr>'; } echo ' </table>'; } else if( !isset($_POST['search']) ) { $text = ($two_strings_force == 0) ? 'You also need to add two words for the search to run.' : ''; echo ' <span style="color: red;">*</span> Here you can search through out the forum for the words you desire. '.$text.' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> Words: <input type="text" name="search" /> <input type="submit" value="Search Forum" /> </form>'; } $h->endpage(); ?>   Now allows for single word finding and also restricted to 4 letters or more...
  4. Re: [MCCODES V2] Search Forums by Name will add more as i go along [WORKING] Tried and tested and works fine search for lwords with less than 4 letters gives the error words of 4 or more letters will allow user to view found results :)
  5. Re: [MCCODES V2] Search Forums by Name will add more as i go along [WORKING] UPDATE this will stop users from entering one letter words open searchforumname.php and after the include "globals.php"; add   if(strlen($_GET['name']) < 4) { die("<h1>Sorry, Your search Request is too short.</h1> >[url='searchforums.php']Return to search page[/url]"); }   Ive set it to 4 which is about adequate but if you want to change it then go ahead :)
  6. Re: [MCCODES V2] Search Forums by Name will add more as i go along [WORKING]   yes that can be done aswell wasnt sure where people wanted to add this so it kinda made sense just to do it as a whole..
  7. This will allow USers to search the forums for particular words from posts Its basic but i'll add to it as i go along. call this file searchforums.php   <?php include "globals.php"; print "<h3>Forum Search</h3> [b]Search Forums by Word[/b]<form action='searchforumname.php' method='get'> <input type='text' name='name' /> <input type='submit' value='Search' />"; $h->endpage(); ?>   and call this one searchforumname.php   <?php include "globals.php"; //search name if(!$_GET['name']) { print "Invalid use of file"; } else { $q=$db->query("SELECT * FROM forum_posts WHERE fp_text LIKE ('%{$_GET['name']}%')"); print $db->num_rows($q)." Forum Posts Found. <table><tr style='background-color:gray;'><th>Word</th><th>Poster</th><th>Poster ID</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>[url='forums.php?viewtopic={$r[']{$r['fp_text']}[/url]</td><td>{$r['fp_poster_name']}</td><td>[url='viewuser.php?u={$r['][{$r['fp_poster_id']}][/url] </td></tr>"; } print "</table>"; } $h->endpage(); ?>   Add a link in your forums.php file pointing to searchforums.php and your done.......... EDIT Redid posts so you can go straight to the Forum topic from which it was posted.....
  8. Re: New explore city (HTML) Im going to give you +1 just for the sake its your first post and its a mod :) Ive never really liked tables due to the fact that if you have an odd number you either end up with blank boxes with TBA written in them to fill the gaps or if your feeling lazy a completely blank section with 1 or more boxes. However i know how hard tables can be at times and frustrating when they dont go to plan. So it's nice to have one pre-made.. Good work :) Reson for EDIT damn Typos ( Why is it when you post even after reading you always find stupid Typos after you click save )
  9. Re: New explore city (HTML) This would allow you to use it as a php   <?php include "globals.php": echo <<<EOF <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="in.css" type="text/css"> <link href="in.css" rel="stylesheet" type="text/css"> <title>explore city new page</title> </head> <body style="background-image: url(../images/bg.jpg);"> <div style="text-align: center; color: rgb(204, 204, 204); font-weight: bold;"><input name="PHPSESSID" value="4e63876525db037cce2678d502054ca2" type="hidden"></div> <div style="text-align: center;"><span style="color: rgb(204, 204, 204); font-weight: bold;">Welcome To [Youre Game Name] City.</span><br style="color: rgb(204, 204, 204); font-weight: bold;"> <span style="color: rgb(204, 204, 204); font-weight: bold;"> While Exploring You Notice Some Usefull Stores</span><br style="color: rgb(204, 204, 204); font-weight: bold;"> <table style="text-align: left; width: 1190px; height: 431px;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="text-align: center;">Search And Kill</td> <td style="text-align: center;">Users Online</td> <td style="text-align: center;">Find Users</td> <td style="text-align: center;">Commit Crime</td> <td style="text-align: center;">Commit GTA</td> <td style="text-align: center;">Credit's</td> </tr> <tr> <td style="text-align: center;">Domination</td> <td style="text-align: center;">Bullet Factory</td> <td style="text-align: center;">Underground</td> <td style="text-align: center;">Inbox</td> <td style="text-align: center;">Send Message</td> <td style="text-align: center;">Forum</td> </tr> <tr> <td style="text-align: center;">Player Status</td> <td style="text-align: center;">Chase</td> <td style="text-align: center;">Drugs</td> <td style="text-align: center;">Crew Forum</td> <td style="text-align: center;">Crews</td> <td style="text-align: center;">Youre Crew</td> </tr> <tr> <td style="text-align: center;">Sell</td> <td style="text-align: center;">OC</td> <td style="text-align: center;">Getaway</td> <td style="text-align: center;">Extortion</td> <td style="text-align: center;">Missions</td> <td style="text-align: center;">Hospital</td> </tr> <tr> <td style="text-align: center;">Travel</td> <td style="text-align: center;">Gym</td> <td style="text-align: center;">Jail</td> <td style="text-align: center;">Bank</td> <td style="text-align: center;">News</td> <td style="text-align: center;">Newspaper</td> </tr> <tr> <td style="text-align: center;">Help Desk</td> <td style="text-align: center;">Hitlist</td> <td style="text-align: center;">Attempts</td> <td style="text-align: center;">Safehouse</td> <td style="text-align: center;">Garage</td> <td style="text-align: center;">Casino</td> </tr> </tbody> </table> . </div> </p> </body> </html> EOF; $h->endpage(); ?>
  10. Re: [MCCODES V2] User Holidays script heres a view of what to expect from the holiday script Just to note this layout is subject to change and may not be that of the final script
  11. Re: [MCCODES V2] User Holidays script Sorry this isnt ready yet its quite a complex script.. Ive done the admin section for it and the installer just a case now of going through files in order to pick the best locations for it to work
  12. Re: [MCCODES V2] User Holidays script Ive been inundated with emails for addons to this script. people feel that Holidays should be earned from the game. so my structuring would be 1 = 25 attacks would result in one holiday token 2 = 7 day successful voting would result in 2 holiday tokens 3 = Holiday Tokens cannot be baught for cash in the game 4 = 5 referrals to the game will also give you 5 holiday tokens and i'll think of more as i go along
  13. Re: [REVIEW] Deadly Ghetto. A few of the above were fixed whlst i was chatting with eternal. Regards the screen shot its the one from the login screen. ( this maybe just an IE bug ) But as a whole it ran smoothly with no dead links :)
  14. Re: [REVIEW] Deadly Ghetto. i found a few annoyances to the game.. 1 = screenshot = when clicked on kept returning even when X was clicked i had to close down screen and reload.. 2 = Center screen some parts are unreadable when trying to read emails or explore page 3 = When trying to Equip a weapon it sends me back to home page without the weapon being equipped.. 4 = whilst in hospital i was able to try rescue someone from jail and get thrown in... ????
  15. Re: [Review] - Killah-City.net - Please Review I havent even had chance to register on the game to view it :) i just keep getting this message.. Really now does it work?
  16. Re: [MCCODES V2] User Holidays script   Thats feasable but i also want the User to be able to return to the game. but i was also thinking that the user may want to continue the game maybe via a internet cafe so this script would be rather worthless...
  17. Re: [MCCODES V2] User Holidays script As with all my scripts from now on I will include an Installer if SQLS to be inserted are large if anyone has had a problem with any previous versions of the installer if you post here now i can sort out any bugs befoer i make this mod public.....
  18. Re: [MCCODES V2] User Holidays script   last bit removed ;) The more ideas that arrive now the easier it is for me to try install...
  19. Re: [MCCODES V2] User Holidays script   Good point i could always just do it so admins can set a percentage for their game
  20. Re: [MCCODES V2] User Holidays script   Fir question if it was set to all then no-body would be in the game to attack so i thought 10 was better than having nobody to attack
  21. This script when completed will allow a member/s to be on holiday for 30 or 3 x 10 day sessions so how does it work 1 = Only 10 Users can be on holiday at any one time 2 = Users can set their holiday to max of 30 days or 3 x 10 day sessions 3 = Whilst on holiday Users cannot be attacked or have cash, crystals, items sent to them. 4 = Users may come back off holidays but remaining days will be lost for that duration. 5 = If a user fails to come back at the end of the expiration date. Their status will become active and can then be attacked. 6 = Cost for a holiday will be set at $10.000 per day and in the event the user fails to return on the set day their account balance will be deducted by $15.000 for every day they go over and any current days they had left will be deducted for that period.. I'm about 25% into this but i thought id post now for feedback on what you think would be an advantage addition to the script....
  22. Re: [MCCODES V2] Fully Customise your game layout Thanks Haunted i must have overlooked that missing line :)
  23. Re: [MCCODES V2] Fully Customise your game layout   HITM4N are you still getting that error ?
  24. Re: [MCCODES V2] Fully Customise your game layout You right about the menu It didnt quite go as planned on my version but i will update it and repost The rest of the script though seems to be working well... Cheers POG :)
  25. Re: [MCCODES V2] Fully Customise your game layout oops nearly forgot this file.. call this colours.html   <body bgcolor="#000000"> <center> <font color="white"><h1>Ilusions Installer Colour Picker <center> <SCRIPT LANGUAGE="JavaScript"> clr=new Array('00','20','40','60','80','a0','c0','ff'); for (i=0;i<8;i++) { document.write("<table border=1 cellpadding=8>"); for (j=0;j<8;j++) { document.write("<tr>"); for (k=0;k<8;k++) { document.write('<td bgcolor="#'+clr[i]+clr[j]+clr[k]+'">'); document.write('<tt><font color="#'+clr[7-i]+clr[7-j]+clr[7-k]+'"> '); document.write(clr[i]+clr[j]+clr[k]+' </font></tt></td>'); } document.write("</tr>"); } document.write("</table> "); } // end --> </script> </center>
×
×
  • Create New...