Jump to content

gamehead200

Patron
  • Posts

    6,876
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by gamehead200

  1. Mine's the same as last month... So boring... Check last month's thread for mine!
  2. Sweet! Now we can make our own IP sigs! Now to find out how to rotate backgrounds...
  3. Thanks Flynn! Very useful! And welcome to MSFN!
  4. A friend of mine told me about this site: http://www.ncix.com/ They have the cheapest computer prices in Canada and no tax... They are located in British Columbia and can ship in about three (3) to five (5) business days! Go check it out!
  5. Looks fine to me!
  6. The quote shouldn't wrap on itself... It should automatically go to the next line... No, I haven't found out yet...
  7. Change the 8 to an even number... Can we see the final result?
  8. OK, so for the random quotes, you would need a TXT file called "quotes.txt" with all the quotes on each line... Then you would create a JPG file with the following: <?php Header ('Content-type: image/jpeg'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); // create the image $image = imagecreatefromjpeg("background.jpg"); // set the colours $cool = imagecolorallocate($image, 81, 86, 96); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // set quote file $quotes = file('quotes.txt'); $quote = array_rand($quotes); // set the font and print text $font = '/path/to/your/ttf/font'; $joke = wordwrap($quotes[$quote], 60, "\n", 1); $joke = explode("\n", $joke); for($i=0; $i<count($joke); $i++) { ImageTTFText ($image, 8, 0, 14, (23+($i*15)), $white, $font, $joke[$i]); } // output and destroy imagepng($image); imagedestroy($image); ?> You would also need a background picture called "background.jpg" and the htaccess file mentioned in this topic... This code should be pretty simple to understand... I've tried including the OS and browser but it has never come out properly for me... I'll post it in here as soon as I find out...
  9. BTW, (while looking through all the old topics), if you're still interested, there is also something called IP Monster...Sends the IP by e-mail every time it changes...
  10. Click on my sig...
  11. I was wondering what was going on!
  12. Very nice! I like it!
  13. I have a 1 megabit ADSL connection running on my network of 3-5 computers...
  14. Oh, right, forgot it was in December! Good luck!
  15. So, FthrJACK, when was she born?
  16. New BETA!
  17. ****...you beat me to it! DivX is the way to go!
  18. Don't worry, the sig rule changed back AGAIN...You can keep that sig...
  19. gosh, any possibility of you putting any of your guides in a giant PDF file?
  20. tawxic, its impossible that your host disabled .htaccess files, or else the image would not have been parsed...In this case, it was, so .htaccess was enabled... And BTW, you should have been there to see what I had to go through to figure out how to do this on other forums...I even showed XPerties how to do one for eMax Hosting which he got rid of (I think...) !
  21. Copy cat!
  22. I know exactly what the problem is...Make sure there is a file called "view.txt" in the same folder and make you CHMOD it to 666 or esle it won't work... And also make sure your image is 128 colors...GD will not work properly if you have an image with over 128 colors...Yours had over that many, so I edited it in Photoshop for you...It looks extremely similar... Here is the code I used for YOUR about.png: <?php Header ('Content-type: image/png'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); // create the image $image = imagecreatefromgif("about-bg.gif"); // set the colours $cool = imagecolorallocate($image, 87, 87, 87); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // counter $viewss = file("views.txt"); $views = $viewss[0]; $views++; $fp = fopen("views.txt", "w"); fwrite($fp, $views); fclose($fp); $counter = "Phazm Graphics - $views people served since 11/5/03!"; // define geek code $nerd = "-----BEGIN NERD CODE BLOCK----- Version: 1.2a 010011010111100100100000011100110110100101100111 011001110111100100100000011101110110100101101100 011011000010000001110011011011110110111101101110 001000000111001001101111011000110110101100100001 00100000 ------END NERD CODE BLOCK------"; // line style line $line = "________________________________________________________"; // set the font and print text $font = 'verdana.ttf'; ImageTTFText ($image, 8, 0, 45, 35, $white, $font, $nerd); ImageTTFText ($image, 8, 0, 45, 138, $white, $font, $line); ImageTTFText ($image, 8, 0, 45, 170, $white, $font, $counter); // output and destroy imagepng($image); imagedestroy($image); ?> And here is the edited background:
  23. Mine's simpler: <?php Header ('Content-type: image/png'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); // create the image $image = imagecreatefromgif("about-bg.gif"); // set the colours $cool = imagecolorallocate($image, 87, 87, 87); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // counter $viewss = file("views.txt"); $views = $viewss[0]; $views++; $fp = fopen("views.txt", "w"); fwrite($fp, $views); fclose($fp); $counter = "GAMEHEAD200 || This sig has been viewed $views times!"; // define geek code $geek = "-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d+ s+:+ a---- C++ !U !P L+ E-- W+++$ N+ !o K- w++$ O--- M$ V? PS PE++ Y+ !PGP !t !5 !X !R tv+++ b++ DI !D G e- h! r-- !y ------END GEEK CODE BLOCK------"; // line style line $line = "________________________________________________________"; // set the font and print text $font = 'font.ttf'; ImageTTFText ($image, 8, 0, 12, 45, $black, $font, $geek); ImageTTFText ($image, 8, 0, 12, 148, $black, $font, $line); ImageTTFText ($image, 8, 0, 12, 180, $black, $font, $counter); // output and destroy imagepng($image); imagedestroy($image); ?> Try to find out how it works! I'll try using yours tonight because right now I don't have the time...
  24. If both siggy.jpg and siggy.php are in the same folder using the same .htaccess file, you must change the .htaccess file and input the following: <Files siggy.jpg> ForceType application/x-httpd-php </Files> <Files siggy.php> ForceType application/x-httpd-php </Files> This way, it will parse both files!
  25. Glad it worked out...Please post your codes here so I can take a look at them...Is it the client time you want or the server time? I know its written CLIENT, just want to make sure!
×
×
  • Create New...