Jump to content

How to create a message board signature generator


mthompson

Recommended Posts

Not too sure where to start...but this is what I am looking to create for my site:

 

http://www.internationalvapersclub.com/sig/

 

You basically enter in the date you quit smoking

How many cigs you used to smoke

price per pack of smokes

 

I then was to use my own design for the background image and have the above results pass into the .png and provide a url so that users can use the link on message boards.

 

I hope this is the proper place to post this.  Much thanks in advance!!

You'd use the GD Library to do the image stuff. The script would basically go something like this:

 

1) Create GD resource from your background image (see imagecreatefrom* functions)

2) Generate the text you want to put on the image using the $_GET variables for the different fields (string var)

3) Write the text onto the GD resource (see imagettftext)

4) Output the image in the desired format (see imagepng, imagejpeg, etc functions)

Played around a bit more but now am stuck and need alittle help please...

 

URL: sunny vaping . com/sig.html

 

Not sure why the data is not passing and creating the showimage.php results on the showresults.php page.  Any help would be great.

You aren't passing you variables correctly.

 

/sig2/showimage.php?day=&month=&year=&smokedperday=&costperday=&icon=/sig2/bsv.jpg

 

You should be able to edit this into your current /sig2/showresults.php and fix the image display.

<?php
echp '<img src="http://example.com/sig2/showimage.php?day=".$day."&month=".$month."&year=".$year."&smokedperday=".$smokedperday."&costperday=".$costperday."&icon=/sig2/bsv.jpg" />';
?>

All the help I can give with the info I have. Also please read my signature.

  On 6/5/2013 at 8:23 AM, unlishema.wolf said:

You aren't passing you variables correctly.

 

/sig2/showimage.php?day=&month=&year=&smokedperday=&costperday=&icon=/sig2/bsv.jpg

 

You should be able to edit this into your current /sig2/showresults.php and fix the image display.

<?php
echp '<img src="http://example.com/sig2/showimage.php?day=".$day."&month=".$month."&year=".$year."&smokedperday=".$smokedperday."&costperday=".$costperday."&icon=/sig2/bsv.jpg" />';
?>

All the help I can give with the info I have. Also please read my signature.

 

 

Thank you sir!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.