Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Signature Rotator with Links
#1
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.
Reply
#2
You can't do this where the link changes without a plugin on the site itself. Is that what you want?
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#3
I am a bit confused on what he is talking about.

Is he asking for a plugin?
[Image: iAHg.png]
I sound like Morgan Freeman
Reply
#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
#5
http://www.clintonio.com/home/

http://freeforumsigs.com/ffs6/index.php?...Itemid=107

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

http://freeforumsigs.com/ffs6/index.php?...Itemid=107

;)

Thats what he means?

I couldn't figure what he meant on OP
Reply
#7
If you use that script, you still address the image as the PHP link.
Reply
#8
I think you are after a site called grumpybumpers.
Reply
#9
(12-06-2010, 01:33 AM).Shannon Wrote: I think you are after a site called grumpybumpers.

Yeah or he could program it himself.
[Image: TYzKF.png]
Reply
#10
(07-07-2010, 01:05 PM)[ Process.xSs ] Wrote: http://www.clintonio.com/home/

http://freeforumsigs.com/ffs6/index.php?...Itemid=107

;)

very nice mate thanks for sharing.
Reply


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 776 07-27-2020, 11:26 PM
Last Post: tk-hassan
  My site links to directories, not files? GmaN™ 11 4,048 01-05-2012, 11:37 PM
Last Post: AceInfinity
  PHP Image: How To Show A User Their IP In Your Signature. BreShiE 9 3,212 11-08-2011, 06:26 AM
Last Post: Contribution
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,268 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 1 Guest(s)