-
Posts
1,731 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Spudinski
-
Re: Form Width :/ The input element has a width property, this would also work. size is different from the width element, size implies(+/-) the amount of letters the width must be.
-
Re: Debug POST and GET submissions It's always useful to know what variables holds. I normally just use var_dump, gives slightly more information about the variables(type, length) than print_r, but with a little playing with your function Floydian, I see how this is going to be very useful. Nice function...
-
Re: Do you like CE? If so why? Or why not? CE is a very good community. It's got it downsides like immature people who "insult" others etc., but it's almost impossible to have a community that's freedom of speech, and not having arguments/debates from time to time. If CE had to remove freedom of speech on the forums, it would be a dead and downright boring community. Expressing opinions is what makes a community grow, stay active, and improve it.
-
Re: login.php help! You need to save it as a PHP script, not HTML. I think PHP might be inserting spaces where it is not needed, so look trough the PHP code to find where it makes new lines etc. Also keep in mind that any layout needs allot of editing to make it cross-browser compatible. Try using CSS to remove spaces, padding etc. in the tables, should solve it.
-
Re: Clocking the speed of a page load. You don't have to make an addition to the first, or last variables, only the end should the variables be split into arrays, and subtracted from each other; it gives the same result. $page_load = array(); $page_load['start'] = microtime(); { ... } $page_load['start'] = explode(' ', $page_load['start']); $page_load['end'] = explode(' ', microtime()); $page_load = $page_load['end'][1] - $page_load['start'][1]; echo 'Page has been generated in ' . round($page_load, 3) . ' seconds.'; As to how to use it in a class, here's an example: http://www.webdigity.com/index.php?acti ... al;code=59
-
Re: Need a Tip Using one query is much simplier, try it this way... $sql_txt = 'SELECT `from`, `to` FROM `replace` WHERE `id` = \'' . $id . '\''; $sql = mysql_query($sql_txt); while($results = mysql_fetch_assoc($sql)) { $message = str_replace($results['from'], $results['to'], $message); // .. do whatever .. } But is your end goal to change a text from only one message, or how do you want this script to work?
-
Re: Users Online <td>$cn=0;</td> <td>$q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); That's never going to work, learn a bit about PHP before attempting to create scripts. http://www.w3schools.com/PHP/php_string.asp
-
Re: Stoping cache on a page? Try header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); http://php.net/header#75507
-
Here is a hard one for you
Spudinski replied to AlabamaHit's topic in MySQL, Oracle, Postgress or other DB
Re: Here is a hard one for you You should then use timestamps if validation doesn't work. Here is an example: if ($last_time > (time()-120)) { echo 'Please wait two minutes before you post again.'; exit; } That is also a solution, but depending on what is posted first with firefox, the message would be displayed rather than the post. -
Here is a hard one for you
Spudinski replied to AlabamaHit's topic in MySQL, Oracle, Postgress or other DB
Re: Here is a hard one for you Validate for empty fields, especially the subject. That should fix it. -
Here is a hard one for you
Spudinski replied to AlabamaHit's topic in MySQL, Oracle, Postgress or other DB
Re: Here is a hard one for you Don't use Firefox, it sucks... On a more serious note, I've noticed that on your POST variables, you use ft_ as a prefix. I also see that your variable newforumpost holds the value of the POST variable, but uses a prefix fp_, might be this? But as IE works with it, and Ff doesn't it's most properly Ff, search their mountain of bugs, I think this is a bug in Ff. -
Stop Auto Refreshers and multi IP logins
Spudinski replied to misterme's topic in Free Modifications
Re: Stop Auto Refreshers and multi IP logins The best method I have come across so var: Replacing echo and print functions, with something that keeps all the data in a array/variable, and displaying it later. Also having a function, that makes additions to navigation links, and inserting it into sessions as well as the output later on. Example: <?php session_start(); $content = ''; function output($text) { global $content; $content .= $text; } function check() { $url = basename($_SERVER['PHP_SELF']); if ($_SESSION['navs'][$url] <= (time()-30)) { echo 'Invalid URL'; addnav('back', 'index.php'); output_all(); exit; } } function nav($text, $url) { global $navs; $_SESSION['navs'][$url] = empty($_SESSION['navs'][$url]) ? time() : $_SESSION['navs'][$url]; output('[url="' . $url . '"]' . $text . '[/url]'); } function output_all() { global $content; echo $content; } check(); output('header'); nav('home', 'home.php'); output_all(); ?> A bit lengthy for simple usage, but on games it should be very usefully. Stops refreshing of pages for one. -
[mccode] BLIP Tables (Blocked IPv4 Addresses by CIDR)
Spudinski replied to a topic in Free Modifications
Re: Free 2 - BLIP Tables (Blocked IPv4 Addresses by CIDR) Using brackets(although now mandatory) could solve the problem. ... include_once("blip.php"); if (blip_is_blocked()) { die("<tt>Your IP address has been blocked</tt>"); } $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; ... -
Re: Cheapest Domain Names http://www.namecheap.com Although they have increased their prices in the last couple of months, they are very reliable.
-
[mccode] BLIP Tables (Blocked IPv4 Addresses by CIDR)
Spudinski replied to a topic in Free Modifications
Re: Free 2 - BLIP Tables (Blocked IPv4 Addresses by CIDR) Not really, Nyna's app makes use of a database to check whether the IP should be granted access or not. cPanels IP Deny Manger uses apache access files, many people block IP ranges via apache's access files. It is also a bit easier to use than this, if you ask me. To block an IP range of 50.12.0.0 - 50.12.255.255: deny from 50.12. Blocking IP range of 50.12.36.0 - 50.12.36.255: deny from 20.12.36. -
Re: One Big Code! $default = 'home'; $request = empty($_SERVER['QUERY_STRING']) ? $default : (chdir('html') && !file_exists($_SERVER['QUERY_STRING']) ? $default : $_SERVER['QUERY_STRING']);
-
Re: Money Cap * Topic Moved *
-
Re: [REVIEW] Oridik - Please review!! Silverwolf might have created a website that operates on this engine, but according to the Attribution-Noncommercial-Share Alike 2.0 Generic licence, we have to credit the authors. "MightyE tells you, "Legend of the Green Dragon is a remake of and homage to the classic BBS Door game, Legend of the Red Dragon (aka LoRD) by Seth Able Robinson." "LoRD is now owned by Gameport (http://www.gameport.com/bbs/lord.html), and they retain exclusive rights to the LoRD name and game. That's why all content in Legend of the Green Dragon is new, with only a very few nods to the original game, such as the buxom barmaid, Violet, and the handsome bard, Seth." http://creativecommons.org/licenses/by-nc-sa/2.0/
-
Re: Count Users Clicks Ragnar has a good idea. Also a 100 hits, *sigh* a visitor gives more hits than that. You only want to reward dedicated players, so I'd suggest maybe setting the value up to 10, 000.
-
Re: Flash intro's Flash intros has it's up - and down - sides, if it was created professionally it could have a very good usage. And I have seen allot of websites getting this right, it explains what the website is about, and most parts of their website makes use of flash. For games, unless the game was created in flash and is played trough a flash application, it has no real purpose, just a waste of bandwidth.
-
Title: Oridik Site URL: http://www.oridik.co.cc Site Description: Read below As you walk by a crooked shaped tree in the forest you hear a whisper, you turn around and look at the direction from whence the petite voice came from. As you look trough the top branches of the tree you see a mystic creature known as an elf, you startle in amazement, and think to yourself "Can it really be, an elf, a real life elf!", the mystical creature only told about it the most wildest of fairy tales. In an instant the elf nervously speaks "Hide, quickly it's coming!", you ask the elf "Why? whats coming? and why are you so afraid?". The elf jumps down from the tree and begins to run away, and amazed and startled as you are, decides to set chase after the elf. The elf jumps into a little cave not far away, you stop at the entrance of the cave as you wonder if this is not a trap of some sort. While thinking, you see the elf popping out his small head and saying "Come, quickly, I know a safe place where we can talk!", immediately after you say "No! why should I go anywhere with you", the elf sighs and responds "Well, if you don't want to, you will be confronted with your worst fears, and even...", the elf lays his head down and you ask "even what?", the elf replies in a sorrow voice "even death...". You take a few steps back in astonishment, just then you decide to climb in the cave after the elf. The elf leads you a few steps into the cave, and then goes and sits around a small fire, you follow the elf. You make yourself comfortable, then the elf begins to babble... "You look like a noble young warrior, so I'll tell you why I was in the top of the tree back there". "You see, from ancient times the breed of dragons have infested our village torment, and we are forever in fear of them". "But every now and then there comes a brave warrior, and attempts to defeat the dragon, but many times I have seen how the dragon demolishes then, ripping them apart, bit by bit". "But sometimes, there comes a warrior, godly in all aspects, preparing day and night for the sole purpose, to destroy the dragon!". The elf stands up, examines you carefully, and asks "Will you be the one to slay the dragon?". The fate of Oridik lies in your hands, will you fulfill your destiny and slay the dragon? Or will you be a coward and walk off like the rest? There really is allot to do on this game, and will keep anyone willing enough busy for days or even weeks. The game has a rather good storyline to it, that is if can find out what the storyline is, but the above description should help. To really get into this game you must read the texts that is displayed on/after events, so you will understand what to do, and how to play. It will be a big change for gamers used to the current category of games, but just bare with it, you will begin to like it after a few minutes of play. Also look for the "Choose a different display skin", to change the template if you don't like the current one. Be sure to make use of a shortcut keys, in every link there is an underlined letter, if you press it on your keyboard, it will active the link. Note to everyone: Oridik is still in a beta version, changes might occur from time to time. Have fun, looking forward to seeing you there!
-
Re: PAYPAL ALERT There is really no point in this thread. Paypal, as well as any other company will send an email to their clients alerting them on potential issues and/or maintenance, it's part of a website, any good website will do this regularly.
-
Re: Hi, I'm a new game owner. Welcome to the forums... Allot of gaming resources can be found on the forums, so I hope you will enjoy it here.
-
Re: Weird Error........ chmod the file called register.php, In cPanel it should be easy and you just need to enable read and access, write is not necessary.