Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Signature Rotator with Links
#4
Actually you can do that. Not with MyBB because of its limitations, but yes with PHP.

<?php
header("Content-type: image/png");

$my_img = imagecreate( 100, 100);
$background = imagecolorallocate( $my_img, 33, 33, 33);
imagesetthickness ( $my_img, 5 );
imagepng( $my_img );
imagecolordeallocate( $background );
imagedestroy( $my_img );
?>

This image is just a gray square, 100x100.
Since MyBB only allows image files, you need to save it as .PNG now go to your .htaccess file and add the following line.

AddType application/x-httpd-php png

Now it will treat all .PNG files as if they were .PHP.
So that is just the basic of dynamic images, you can definately find many more tutorials on the internet.
Reply


Messages In This Thread
PHP Signature Rotator with Links - by Dutchcoffee - 07-01-2010, 06:59 PM
RE: PHP Signature Rotator with Links - by PurpleHaze - 07-07-2010, 09:35 AM
RE: PHP Signature Rotator with Links - by Яichie - 07-09-2010, 10:46 PM
RE: PHP Signature Rotator with Links - by Chimi - 12-06-2010, 01:33 AM
RE: PHP Signature Rotator with Links - by Orgy - 12-09-2010, 06:19 AM
RE: PHP Signature Rotator with Links - by NathanE - 12-12-2010, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 936 07-27-2020, 11:26 PM
Last Post: tk-hassan
  My site links to directories, not files? GmaN™ 11 4,951 01-05-2012, 11:37 PM
Last Post: AceInfinity
  PHP Image: How To Show A User Their IP In Your Signature. BreShiE 9 3,639 11-08-2011, 06:26 AM
Last Post: Contribution
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,659 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 8 Guest(s)