
Diesel
Members-
Posts
13 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Diesel
-
Wouldn't this be hard on your server if you have a large user base? Especially if users want to be notified for multiple things. My understanding of how this works is that your server sends an email but it arrives to the recipient as a text message. So your server could potentially send out thousands and thousands of emails daily if you have a large user base. Which is not good in any way for your server.
-
You just contradicted yourself. First you said you didn't get it and then you said it wouldn't work for your game? This mod will work on any MC Codes game and only takes 2 minutes to install. All you're trying to do is mess up my sales.
-
RE: Re: [MCCODES v2] Trivia Quiz Creator I noticed you haven't replied since the beginning of August so I was wondering if you were still planning on completing this mod?
-
I was just wondering what the purpose of having decimals for stats (strength, agility, labour, etc)? Wouldn't it be just as good to make them whole integers? I'm asking because I want to change my stats to ints but don't want screw them up if they have a good reason to be decimals.
-
Thanks Bertrand for the advice. I know this isn't the best coded mod, but it's free. I've tried, and tried, and tried on this mod and can't seem to fix it. Maybe someone can help me find a fix?
-
Sorry about that. Updated with screenshots. :thumbup:
-
Actually that's just an array. That's not the problem but at least you tried. :thumbup:
-
Heres a little admin tool I've put together. This tool will parse out your search engine ranking on Google, Yahoo and MSN for a particular keyword or key phrase. You can even add multiple keywords to check several at a time. I'm having a small issue with it though. For some reason, it always says 0 for the page rank. I'm hoping someone will look through my code and post a fix. Screenshot of main page: Screenshot after searching: Intructions: Make a new file called staff_pagerank.php <?php include "sglobals.php"; if ($_GET['url'] != '') { if ($_GET['keyword'] != '') { $keywords[0] = $_GET['keyword']; $url = $_GET['url']; $keyword_input = $_GET['keyword']; } } elseif ($_POST['url'] != '') { if (strpos($_POST['keyword'],"\n")) { $keywords = str_replace("\n",",",$_POST['keyword']); $keywords = explode(",",$keywords); } else { $keywords[0] = $_POST['keyword']; } $keyword_input = $_POST['keyword']; $url = $_POST['url']; } $i = 0; if ($keywords[$i] != '') { while ($keywords[$i] != '') { $keyword_implode = str_replace(' ','+',$keywords[$i]); $fetch_url = "http://www.google.com/search?num=50&q=" . $keyword_implode . "&btnG=Search"; ob_start(); include_once($fetch_url); $page = ob_get_contents(); ob_end_clean(); $page = str_replace('[b]','',$page); $page = str_replace('[/b]','',$page); //preg_match('/008000\">(.+)<\/font><nobr>/i', $page, $match); preg_match_all('/<font color=#008000>(.*)<\/font>/', $page, $match); $r = 0; $position = '0'; while ($match[0][$r] != '') { if ($position == '0') { if (strpos($match[0][$r],$url)) { $position = $r+1; } } $r++; } $google_position = $position; // Yahoo check $position = '0'; $pages_to_check = 4; $serp = 1; $total_yahoo = 0; while ($serp <= $pages_to_check && $position < '1') { if ($serp != 1) { $num = ($serp-1)*10+1; $append = "&b=" . $num; } else { $append = ''; } $fetch_url = "http://search.yahoo.com/search?p=" . $keyword_implode . "&prssweb=Search&ei=UTF-8&fl=0&pstart=1&fr=moz2" . $append; ob_start(); include_once($fetch_url); $page = ob_get_contents(); ob_end_clean(); $page = str_replace('[b]','',$page); $page = str_replace('[/b]','',$page); preg_match_all('/<em class=yschurl>(.*)<\/em>/', $page, $match); $r = 0; $position = '0'; while ($match[0][$r] != '') { $total_yahoo++; if ($position == '0') { if (strpos($match[0][$r],$url)) { $position = $total_yahoo; } } $r++; } $serp++; } $yahoo_position = $position; // MS Search check $position = '0'; $pages_to_check = 4; $serp = 1; $total = 0; while ($serp <= $pages_to_check && $position < '1') { if ($serp != 1) { $num = ($serp-1)*10+1; $append = "&first=" . $num; } else { $append = ''; } $fetch_url = "http://search.msn.com/results.aspx?q=" . $keyword_implode . $append; ob_start(); include_once($fetch_url); $page = ob_get_contents(); ob_end_clean(); $page = str_replace('[b]','',$page); $page = str_replace('[/b]','',$page); //preg_match_all('/ <\/p><ul><li class="first">(.*)<\/li>/', $page, $match); preg_match('/<\/p><ul><li class="first">(.*)<\/li> [*]/', $page, $match); $array = explode('<h2>SPONSORED SITES</h2>',$match[0]); $array2 = explode('<h3>', $array[0]); $r = 0; $position = '0'; while ($array2[$r] != '') { //echo strip_tags($array[$r]) . ' '; $total++; if ($position == '0') { if (strpos($array2[$r],$url)) { $position = $total; } } $r++; } $serp++; } $msn_position = $position; $keyword_table .= ' <tr align="center"> <td>' . $keywords[$i] . '</td> <td>' . $google_position . '</td> <td>' . $yahoo_position . '</td> <td>' . $msn_position . '</td> </tr>'; $i++; } $keyword_table = ' <table class="table" cellspacing="1" width="50%"> <tr align="center"> <th> - Keyword - </th> <th> - Google - </th> <th> - Yahoo - </th> <th> - MSN - </th> </tr> <tr align="center"> <th colspan="4">' . $url . '</th> </tr>' . $keyword_table . ' </table>'; } ?> <html> <body> <h2>Search Engine Page Rank</h2> <hr> This tool will parse out your search engine ranking on Google, Yahoo and MSN for a particular keyword or key phrase. You can even add multiple keywords to check several at a time. <?php echo $keyword_table; ?> <hr> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table width="90%" class="table"> <tr align="center"> <td> - Game URL - <input type="text" name="url" value="<?php echo $url; ?>" size="40" /> [i]ex. mysite.com[/i] </td> </tr> <tr align="center"> <td> - Keywords - [i]*Enter each keyword on a new line*[/i] <textarea name="keyword" cols="30" rows="10"><?php echo $keyword_input; ?></textarea></td> </tr> <tr align="center"> <td class="align-center"><input class="normal-input" type="submit" value=" - Check Rank - " /></td> </tr> </table> [url="staff.php"]> Staff Home[/url] </form> </body> </html> <?php $h->endpage(); ?>
-
I had a few people request this mod, so here is my Advanced House Tax mod. I'm sure other people have created this mod before, and some may have even created a free version similar to this but I guarantee it isn't the exact same thing. This mod allows you to set a tax price on each of your games houses so players will have to pay that amount each day. This is a good way to help your games economy. If the player doesn't have enough money to pay the tax, then they are sent to jail for failure to pay property taxes (includes admin panel options). This mod also included staff functions and edits so you can setup and edit the tax price and jail time for each house. Very easy to install and will also provide 100% customer support. If interested in this mod, please PM me and I will send you my msn addy. Thanks. *Screenshots*
-
I think you need to take another math class because that does not equal 8.8.
-
Stat Inserting and withdrawing mod
Diesel replied to corruptcity || skalman's topic in Free Modifications
What exactly is the function of this mod? -
mccode-v2 Reset password + Secret question before password is sent.
Diesel replied to Uridium's topic in Free Modifications
I just wanted first say thanks for this free contribution as it saved me a lot of time. However, this mod isn't exactly what it says it is...let me explain. When registering, it asks you to enter a security question, and then re-enter it for confirmation. There's no place to enter an answer for the security question. So basically what you have is a second password just so people can request a password change. I have edited yours so the user has to choose one of the supplied security questions, and then enter an answer for the security question. Thanks though :thumbsup: +1 -
I'm in need of a template for a new game site I am developing. I can install the template myself, I just need the images. If you can do good templates, pm me. I don't have anything specific in mind but I'll talk it over with my chosen template guy (or girl). :thumbup: