
wrx
Members-
Posts
212 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by wrx
-
yes the profile image for the demo account pic.gif was not an image yet was uploaded <---- pay no attention to my avatar i had a rough week wrx
-
try php.net i hear that site has some good info
-
Validate any file your allowing to be uploaded to your site. Don't rely on file extension as validation. wrx
-
Thanks for posting your experience with this.. good info I've been looking at Rockyou thier focus is geared towards "social web" but might be worth a look you . wrx
-
I think its good. i like the darker colors but you need to lighten up all the text if your going to use darker colors like that IMO. here's a few suggestions with the color code as the text
-
$smilies = array(":)" => "[img=smilies/smile.gif]", ":(" => "[img=smilies/sad.gif]", ":p" => "[img=smilies/tongue.gif]", ":d" => "[img=smilies/biggrin.gif]", ":@" => "[img=smilies/mad.gif]", ":o" => "[img=smilies/eek.gif]", ":s" => "[img=smilies/confused.gif]", ";)" => "[img=smilies/wink.gif]", "=blush" => "[img=smilies/blush.gif]", "=boggle" => "[img=smilies/boggle.gif]", "=cool" => "[img=smilies/cool.gif]", "=huh" => "[img=smilies/huh.gif]", "=notsure" => "[img=smilies/notsure.gif]", "=ooh" => "[img=smilies/ooh.gif]", "=rolleyes" => "[img=smilies/rolleyes.gif]", "=sleep" => "[img=smilies/sleep.gif]", "=stress" => "[img=smilies/stress.gif]", "=tired" => "[img=smilies/tired.gif]", "=urgh" => "[img=smilies/urgh.gif]", "=worry" => "[img=smilies/worry.gif]");
-
remove "{" from that {$h->endpage(); ?>
-
edited functions from origional post "function delete_post() " & "function delete_topic()" reason : post and topic count did not update when topics or posts were deleted updated functions now update the post and topic count function delete_post() { global $ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); $sql = sprintf("SELECT * FROM `forums_posts` WHERE (fpID = %u)", $_GET['ID']); $sql = mysql_query($sql); $r = mysql_fetch_array($sql); if ($ir['user_level'] != 2) { print " You are not authorised to remove this message. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } else if($r['fpID'] ) { //////update Topic Post Count//// mysql_query($sql); $upd = sprintf("UPDATE `forums_topics` SET ftPOSTS = ftPOSTS - 1 WHERE (`ftID` = {$r['fpTOPIC']})"); mysql_query($upd); ////////////////////////////// $edit = sprintf("DELETE FROM `forums_posts` WHERE (`fpID` = %u)",$_GET['ID']); mysql_query($edit); print " The post was successfully removed. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } else { print " This post has already been deleted. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } } function delete_topic() { global $ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); $sql = sprintf("SELECT * FROM `forums_topics` WHERE (ftID = %u)", $_GET['ID']); $sql = mysql_query($sql); $r = mysql_fetch_array($sql); if ($ir['user_level'] != 2) { print " You are not authorised to remove this topic. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } else if($r['ftID']) { ///update Section Topic Count///// $upd = sprintf("UPDATE `forums_sections` SET fsPOSTS = fsPOSTS - 1 WHERE (`fsID` = {$r['ftFORUM']})"); mysql_query($upd); ////////////////////////////// $posts = sprintf("DELETE FROM `forums_posts` WHERE (`fpTOPIC` = %u)", $_GET['ID']); mysql_query($posts); $edit = sprintf("DELETE FROM `forums_topics` WHERE (`ftID` = %u)", $_GET['ID']); mysql_query($edit); print " The topic was successfully removed. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } else { print " This topic has already been deleted. <hr width='90%'>[url='forums.php']Back[/url]<hr width='90%'>"; } }
-
yea i used a default one myself on a few things but I liked the way you can set the background/foreground color and animation with this tool. wrx
-
Although i dont need this +1 for wanting something different and writing it yourself. wrx
-
cool site that lets you build a custom ajaxloader animated .gif for your scripts Create ajaxloader animation
-
I agree with CrimGame agreeing with MTG and Rasheed wrx
-
whats your point im missing it i guess wrx
-
check how you linked it in your file maybe incorrect syntax/mispelling of file etc... can you manually open the file ie ..... http://www.yourdomain.com/crons_file.php wrx
-
it cant open/find crons_file.php check path of file for include wrx
-
thats what i thought as well but in the marketplace some one posts "my mc game i dont want anymore so im reselling" assuming it was purschased legally to begin with of course wrx
-
After seeing a few games being sold in the marketplace i am curious to the fact that once you pruchase the code are you granted reseller rights ? wrx
-
Just for a visual here is 750 char count: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam nibh. Nunc varius facilisis eros. Sed erat. In in velit quis arcu ornare laoreet. Curabitur adipiscing luctus massa. Integer ut purus ac augue commodo commodo. Nunc nec mi eu justo tempor consectetuer. Etiam vitae nisl. In dignissim lacus ut ante. Cras elit lectus, bibendum a, adipiscing vitae, commodo et, dui. Ut tincidunt tortor. Donec nonummy, enim in lacinia pulvinar, velit tellus scelerisque augue, ac posuere libero urna eget neque. Cras ipsum. Vestibulum pretium, lectus nec venenatis volutpat, purus lectus ultrices risus, a condimentum risus mi et quam. Pellentesque auctor fringilla neque. Duis eu massa ut lorem iaculis vestibulum. Maecenas facilisis elit sed justo. Quisque Although 250 works fine for me i see where you could easily exceed this using tabs and such like Crimgame mentioned and 750 sounds alot more than it actually is. wrx
-
[mccodes V2] Add any type of video media to your game
wrx replied to Uridium's topic in Free Modifications
Looking forward to it , im sure you will update this nicely. GJ wrx -
Use the GD Library to build a dynamic chart graphic
wrx replied to wrx's topic in Free Modifications
Just got around to actually putting this in my news page.This page is completly dynamic and updates from 3 sources (news blog,wiki,db) to give current info to users. in game stock graph ( uses same code as origionally posted above) -
5 or 6 i guess maybe more im fairly new to php as my last job was mainly VBscript,ASP creating sharepoint services and managing a intranet using SharePoint Portal Server. not missing the SPS enviroment at all either 8) Thanks jordan wrx
-
This will create a simple and easy to use captcha system for lite users. the example is shown using it as a security check during login process but is easily adapted to any file/form in game. ########################## Create file captcha.php ########################## <?php /*----------------------------------------------------- -- # Created by wrx 2/28/2010 -- # This file is Creative Commons Attributions 2.5 license -- # Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). # Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. -- # Filename : captcha.php -----------------------------------------------------*/ session_start(); 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"); function _generateRandom($length=6) { $_rand_src = array( array(48,57) //digits , array(97,122) //lowercase chars // , array(65,90) //uppercase chars ); srand ((double) microtime() * 1000000); $random_string = ""; for($i=0;$i<$length;$i++){ $i1=rand(0,sizeof($_rand_src)-1); $random_string .= chr(rand($_rand_src[$i1][0],$_rand_src[$i1][1])); } return $random_string; } $im = imagecreatefromjpeg("./captcha.jpg"); $rand = _generateRandom(3); $_SESSION['captcha'] = $rand; ImageString($im, 5, 2, 2, $rand[0]." ".$rand[1]." ".$rand[2]." ", ImageColorAllocate ($im, 0, 0, 0)); $rand = _generateRandom(3); ImageString($im, 5, 2, 2, " ".$rand[0]." ".$rand[1]." ".$rand[2], ImageColorAllocate ($im, 255, 0, 0)); Header ('Content-type: image/jpeg'); imagejpeg($im,NULL,100); ImageDestroy($im); ?> ########################## Open login.php and find ########################## <form action=authenticate.php method=post name=login> ########################## replace existing ########################## Username: <input type=text name=username> Password: <input type=password name=password> ########################## with ########################## <table border='1'> <tr><td>Username:</td><td> <input type=text name=username></td></tr> <tr><td>Password:</td><td> <input type=password name=password></td></tr> <tr><td colspan='2'>Captcha: enter 3 black symbols</td></tr> <tr><td>[img=./captcha.php]</td><td><input type=text name=captcha maxlength='3'></td></tr> </table> This adds the captcha image and text field to your form in a simple formatted table. ########################## Open authenticate.php and find ########################## if ($_POST['username'] == "" || $_POST['password'] == "") ########################## Above that add ########################## /////Start Captcha//////// if(isset($_POST["captcha"])) if($_SESSION["captcha"]==$_POST["captcha"]){echo"Captcha Passed";} else { die("Captcha Failed (Only input the 3 black symbols) <a href=login.php>Try Again</a></div>"); } /////End Captcha//////// Save image as captcha.jpg and upload to root dir with captcha.php Sample Output
-
I am curious , Why are you hosting all the images that build your site from remote image hosting ? <img src=http://i45.tinypic.com/iwt5ec.gif /> [img=http://img246.imageshack.us/img246/9031/headerpd.gif] .dgradl { background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]); <body background=http://i46.tinypic.com/2d11b4h.png> wrx
-
looks good. i use #333333 color alot i think its a great contrast color for the web looks like quite a few people use something like this ..if you got one post it. wrx
-
who did you by it from ? what mod is it?