Support Forums
PHP Signature Rotator with Links - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: PHP Signature Rotator with Links (/showthread.php?tid=8120)



PHP Signature Rotator with Links - Dutchcoffee - 07-01-2010

Hello,

I am in need of a PHP signature rotator, with links.

So, for example, if I have two signatures in the script, each time I reload the script, it displays a signature (image) with a link attached to the image.

I need it so it'll work on a MyBB forum with the image tag. [img][/img]

I was thinking of using the PHP dynamic image, but not sure how I would incorporate an array with different image links with URLs attached to them.

Please let me know if I need to explain more.

Thanks in advance.


RE: PHP Signature Rotator with Links - Omniscient - 07-03-2010

You can't do this where the link changes without a plugin on the site itself. Is that what you want?


RE: PHP Signature Rotator with Links - Minus-Zero - 07-03-2010

I am a bit confused on what he is talking about.

Is he asking for a plugin?


RE: PHP Signature Rotator with Links - PurpleHaze - 07-07-2010

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.


RE: PHP Signature Rotator with Links - [ Process.xSs ] - 07-07-2010

http://www.clintonio.com/home/

http://freeforumsigs.com/ffs6/index.php?option=com_wrapper&view=wrapper&Itemid=107

;)


RE: PHP Signature Rotator with Links - Яichie - 07-09-2010

(07-07-2010, 01:05 PM)[ Process.xSs ] Wrote: http://www.clintonio.com/home/

http://freeforumsigs.com/ffs6/index.php?option=com_wrapper&view=wrapper&Itemid=107

;)

Thats what he means?

I couldn't figure what he meant on OP


RE: PHP Signature Rotator with Links - `P R O D I G Y™ - 07-14-2010

If you use that script, you still address the image as the PHP link.


RE: PHP Signature Rotator with Links - Chimi - 12-06-2010

I think you are after a site called grumpybumpers.


RE: PHP Signature Rotator with Links - Orgy - 12-09-2010

(12-06-2010, 01:33 AM).Shannon Wrote: I think you are after a site called grumpybumpers.

Yeah or he could program it himself.


RE: PHP Signature Rotator with Links - NathanE - 12-12-2010

(07-07-2010, 01:05 PM)[ Process.xSs ] Wrote: http://www.clintonio.com/home/

http://freeforumsigs.com/ffs6/index.php?option=com_wrapper&view=wrapper&Itemid=107

;)

very nice mate thanks for sharing.