| Guest - Mar-10-2006 server time |
| I must confuses your site is really cool!!! Great site, great idea, just all round great work, everyone. |
| Guest - Feb-26-2006 server time |
| Hi Good site. It would be desirable to return again and again! |
| PCheese - Jul-31-2005 server time |
| Nice tutorial! For those of you looking for a more complete solution, ampsig is a great free dynamic PHP signature script. |
| unacceptable - May-10-2005 server time |
| nice tut dude just got something to add AddType application/x-httpd-php .png in your .htaccess is a good idea instead of the forcing the php and add this inot you apachy conf file... <Directory "c:\pat\to\sig\root"> AllowOverride FileInfo </Directory> using this method is better because correct information is shown when the user right clicks and saves or checks teh properties in IE, and is generally more compatable. Cheers dude, iv got a kick butt sig thanks to this, pulling data from 4 different source (php, html and xml x2) and a set of random quotes. Its so easy to expand this code to make something pretty cool. Once again thanks |
| ZenithalRavage - May-09-2005 server time |
| phew, Imagettftext works now! I got a reply from my webhost and all I had to do was put ./ infront of the fontname, so instead of: $font = "arial.ttf"; this: $font = "./arial.ttf"; sheesh So if someone has similar problems and the host does not allow the GDFONTPATH command, this could be your solution |
| ZenithalRavage - May-07-2005 server time | ||
thanx, well I lightend the background a bit more, this is pretty much how I want it sig's here don't allow hyperlinking an image that sucks but this is possible on almost every other site I'm on so there the image links to my site, pretty cool stuff |
| Streety - May-07-2005 server time |
| Hey, that is getting better! The text starts to fade out a bit as it goes across into the darker background. You could try creating a shadow as in the script from the php.net site. Might make it a bit more clear. |
| ZenithalRavage - May-07-2005 server time |
| Sorry for posting again, but this imagestring isn't half bad, see what I baked in the oven: http://www.a-base.dds.nl/sig_rss/zr_sig_rss.php |
| ZenithalRavage - May-07-2005 server time |
| Hey I'm getting closer! I had to rearrange the code a bit behind imagestring but at least it's taking info from the feed now! http://www.a-base.dds.nl/sig_rss/rss_image_d.php http://www.a-base.dds.nl/sig_rss/rss_image_d.txt <-code woei! |
| ZenithalRavage - May-07-2005 server time | ||
that's pretty cewl, but I'm trying to make a dynamic sig with RSS feed. I've tried altering the code I have to use imagestring instead of imagettftext, this made it to produce an image at least, but with only four zero's. Changing the feed does not help. I wonder if I can achieve this at all using imagestring. Any idea's? http://www.a-base.dds.nl/sig_rss/rss_image_d.php http://www.a-base.dds.nl/sig_rss/rss_image_d.txt <-code Still haven't heard from my host.... |
| Guest - May-07-2005 server time |
| dynasig.net |
| Streety - May-07-2005 server time |
| Good old imagestring! That imagettftext doesn't work even with the ttf file in the same folder for you is odd. That code worked perfectly for me. Hopefully your host will know what the problem is. |
| ZenithalRavage - May-07-2005 server time | ||
Imagestring works for me too I have uploaded arial.ttf to the same folder, even put that putenv GDFONTPATH in there but alas still nogo, I'm waiting what my host has to say about this.... |
| Streety - May-06-2005 server time | ||
The code on the php site does work.
If you're on a windows xp machine just go to C:\WINDOWS\Fonts select your font (I just stuck with arial) and copy that into the directory of your web server. I couldn't copy the file from inside windows explorer but my ftp client had no trouble. |
| Streety - May-06-2005 server time | ||
| I've just run it on my server and it also gives an error. Using the following code though appears to work
Instead of using imagettftext I just used imagestring. It must be imagettftext that is causing the problem. Presumably you need to get the tff file from somewhere and enclose it in the folder. |
| ZenithalRavage - May-06-2005 server time |
| oops sorry doublepost (page hung after reply so I pressed add reply again) |
| ZenithalRavage - May-06-2005 server time | ||
hmm. I think the problem is with my host because I tested the standard example code the PHP manual gives for the imagettftext function and that gives me the same error! http://www.a-base.dds.nl/sig_rss/test.php http://www.a-base.dds.nl/sig_rss/test.txt <-code I emailed my host about this, I'll keep you all informed |
| Streety - May-06-2005 server time |
| Yeah I'm getting the same thing, you have to click it fairly fast though (you must have been desperate!). You could try saving the file to your own server, that should make it faster but it would seem unlikely that that's the error. I'm playing around with creating images myself now and I'm reminded just what a pain it is. I don't know if it will work for you as your code is more complex but i'm going through my code and editing it out between note tags (i.e. /* */). I started off hiding everything and have finally got it down to just one line. I've still no idea what the problem is but at least I know where the problem is. It's back to http://www.php.net for me. |
| ZenithalRavage - May-06-2005 server time | ||
Yea I noticed, but I tried it with different RSS feeds (2.0) and that doesn't make a difference thanx for noticing though this is pretty weird though, I changed the feed to another again now and when I refresh my sig quicky sometimes it does show the image but never with any text. Could this be because this feed might be slower or something? http://www.a-base.dds.nl/sig_rss/rss_image_b.php http://www.a-base.dds.nl/sig_rss/rss_image_b.txt <-code |
| Streety - May-06-2005 server time | ||
I have a trial copy of Zend Development Environment 3.5.0. You know those trials you get from certain places on the internet. It's 30 Mb if you want me to send it to you. ZenithalRavage, are you aware you're using a different version of rss? I don't know if that would make any difference though. |
| ZenithalRavage - May-06-2005 server time | ||
Check post #9 on that page I gave to see the original code. As you can see I barely changed it except for the image and rss link. The only important thing I changed to prevent php from giving error's was change this: function charData($parser, $data) { global $store, $array; into this: function charData($parser, $data) { global $store, $array, $count, $maxent; |
| Red Squirrel - May-06-2005 server time |
| Scan? Do you have a tool to scan php for issues? or do you mean you did it by looking? Would be a neat tool to have, especially for large scripts. |
| Streety - May-06-2005 server time |
| Is that the code they give or the code you are currently working with? If it is the original code they give have you changed the source image and if so what to? A scan revealed the following errors Unused function argument: $parser (line 38) Unused function argument: $attrs (line 38) Unused function argument: $parser (line 48) Unused function argument: $name (line 48) Unused function argument: $parser (line 52) Assignment in condition (line 84) I don't have time to look at it in much more detail just for the moment but I'll take a second look later. |
| ZenithalRavage - May-06-2005 server time |
| hmm. Indeed I don't think the .htaccess is causing my troubles as I can get a different dynamic signature to work: http://www.a-base.dds.nl/sigtest/random_images_signature.php I have found code for a dynamic signature to display text feeded by RSS here. This is an example. I've been fiddling around with the code they give but I just can't get it to work: http://www.a-base.dds.nl/sig_rss/rss_image_b.php http://www.a-base.dds.nl/sig_rss/rss_image_b.txt <-code Do any of you have an idea as to what might cause the problem? |
| Streety - May-05-2005 server time |
| Sticking with a php extension and seeing if everything works like that will probably help to confirm that the problem is the .htaccess file but as Red Squirrel says you'll have problems using the image on forums. |
| Red Squirrel - May-05-2005 server time |
| Unfortunatly the re's not, at least I'm not aware of a way. Only way is to set .jpg's in the folder to parse as php, using .htaccess. You could keep it to .php and use that as an image, but if you want to post it to a forum or something it probably won't let you, since most forums only allow specific extensions. |
| ZenithalRavage - May-05-2005 server time | ||
I'm trying to make a dynamic signature aswell but I think I'm running into the same problem with my server not parsing the php file correctly as an image. I can't use a htaccess file to solve this because my provider does not support this. Is there any other way to get this to work or can I screw it? |
| Red Squirrel - Feb-21-2005 server time |
| Lot of forums don't allow images that don't have a .gif,.jpg .png (and some others) extension. So make sure your "fake" image has a .jpg extension,t his is why the .htaccess part is important. It makes .jpg files parse as php, in the folder specified. |
| Nnyan - Feb-21-2005 server time |
| Hello, Using that code in a CPGNuke website I had to modify the line: header ("Location: <yourserver.com/>sigfolder.jpg//$slika" ) to (/sigs being our folder for the files): header ("Location: http://www.website.com/sigs//$slika" ) If I open this up in a browser it works fine and will cycle the 3 test images that I created. But I can not get this to "view" inside any phpNuke forum i've tried (and I've tried all sorts of variations. Any help will be greatly appreciated. Thank you |
| Eine - Oct-31-2004 server time | ||
Thats the code I use. stick that in a .php file (open notepad, copy/paste that, save it as a .php) and upload that into a folder named "sigfolder.jpg". Now change the bolded text to your sever info. Stick any images you want in the rotation inside of the sig folder along with the php file named "index.php" in your sig, put "<yourserver>.com/sigfolder.jpg" (NO "/" after the .jpg) |
| Red Squirrel - Oct-30-2004 server time |
| Just modify that code, instead of using the file handling stuff use rand(). I'd also recomend you read the php for starters tutorial to better understand the code. |
| Chronofreak - Oct-30-2004 server time |
| Can anyone of you E-mail me a simplified version on how to make a dynamic signature? I really need one cause the one i'm currently using looks bad. My e-mail is takuya_kouji24@hotmail.com Thnx Chronofreak |
| Red Squirrel - Oct-20-2004 server time |
| Actually I should rewrite that article since I did not know about the rand() function then, basically it returns a random number between a specified range. So if you go $var = rand(0,5); it will return a number between 0 and 5. So instead of the text file stuff rand would be much better to use. Not sure what I was thinking by making it use a text file. |
| Guest - Oct-20-2004 server time |
| How about sendin a more simple version of these instructions to markwalz@gmail.com? Lol...sry i just dont understand some of these things...they are missing some things and i dont know wut its talkin about...Lol. Thanks. |
| Red Squirrel - Jul-26-2004 server time |
| Strange, I'm really not sure then. Put <?php echo("hello world"); ?> in a .jpg file and run it. If it works properly you should get "hello world" and if there's a problem you'll get the code. |
| Guest - Jul-26-2004 server time |
| well i already set this in httpd.conf AllowOverride All and then i open a new notepad window then put ForceType application/x-httpd-php and save it as '.htaccess' but it just wont work.. when i rename the siggy.php to siggy.jpg and use [ img ] tag to attach the pic, it will just display x but when i try to run it as siggy.php no prob there (altho this stil wont work on some forums).. the files are also in thier correct places (well you can tell that since siggy.php works perfectly..).. so i think its because of my main apache setting.. im using apache 2.0.49.. do u have any idea? thankies! p/s: neway, i used this and it works on some of the forums: http://server.url/path/siggy.php?snoopy=siggy.jpg p/s2: this is another method that only works on apache 1.3.31 rename siggy.php as siggy.jpg.php and use [ img ] http://server.url/path/siggpy.jpg [ /img ] *this wont work on my server tho* |
| Red Squirrel - Jul-25-2004 server time |
| What exactly is the problem? Does it just not work? If that's the case make sure you have allow override yes in the main configuration. That's a common issue since it can be easly forgotten or not known of. |
| Guest - Jul-25-2004 server time |
| hi i have prob setting up a .htaccess file and configure it correctly tru apache (my pc is the webserver) could u kindly help me? fizyboy |
| Red Squirrel - May-19-2004 server time |
| What do you mean? Like make it go to a site? Just use the link tags of the forum you're in. Here it would be [ url= ] [ img ] sig [/ img ] [ /url ] without the spaces. |
| Guest - May-19-2004 server time |
| how do you add a web page to ur signature? |
| Red Squirrel - May-07-2004 server time |
| Whoops wrong thread, this is for the sig that changes and not the text sig. You can use a combination of both too though, have the image change AND the text. |
| Red Squirrel - May-07-2004 server time |
| Check these lines in the code: 20:$color = imagecolorallocate($im, 255, 255, 255); //rgb color 27:imagestring($im, 2, $px, $py+12, $string2, $color); If I remember correctly, the 2 is the font size. Not sure how to change the font itself. I know with GD you don't have a large selection and I'm not sure if it's possible to add some or not. |
| Guest - May-03-2004 server time |
| Heh, yeah only took 5 hours, but got there in the end. One thing I will ask is... How do I make my font bigger/smaller and also make it so that when a certain quote appears it's colour x and another quote is colour y etc.? Oh and how do I change the font itself? Cheers |
| Red Squirrel - May-02-2004 server time |
| Cool, glad to see you got it working. |
| MindblowN - May-02-2004 server time |
Just for shits 'n' giggles...![]() |
| Red Squirrel - May-02-2004 server time |
| Yeah if you have a .htaccess file with allow override turned off it can cause problems. |
| Guest - May-02-2004 server time |
| AHhhhhhhhhhhhhhhhhhhhhhhh OMFG! There must've been a .htaccess file in my parent dir, but using LeapFTP for some reason I couldn't see it, so I used the good old windows ftp.exe and got on my server, couldn't see it through there either, but did delete .htaccess and BADABING! Tiz gone! w00t! Now it works! |
| Guest - May-02-2004 server time |
| Giving me parse error now when I go to view the .png file. What's up with that?! |
| MindblowN - May-02-2004 server time |
| I'm getting same problems as everyone else here! Followed your whole tut from start to finish and still I get.. http://www.ouyhscript.com/dynsig/siggy.jpg But as you can see by looking at this: http://www.ouyhscript.com/phpinfo.php I have HD Library, it's enabled and I have PHP Apache and all that malarky, all those folders I added I CHModded to 777 and the .htaccess file looks exactly the same as yours, it's ONLY in the /dynsig/ folder, with the fake JPG pointing at: http://www.ouyhscript.com/dynosig.png which as you can see, is clearly a valid png file. I'm not going for the random picture thing BTW, I'm going for the IP showing dynamic siggy. Anyone got any ideas?! Cheers. |
| Red Squirrel - Apr-06-2004 server time |
| It could either be the global setting, or maybe another .htaccess in a parant folder that is not allowing you to override settings in any subdirectory. |