| 
	
		Page 1 of 1 
		 
					 | 
 
 
	
		  Mighty Gorgon   
		Luca Libralato 				
		
						 
				
									
			Joined: August 2006 
			Posts: 7192 
									Location:    Borgo San Michele
																		   
					 
		  
	 | 
	
	
		
		  Dynamic Signature   
		 
		
			I have created a small script for a friend which generates a dynamic signature you can fill with the content you like. 
The script is very very basic.
 
All you have to do is edit the code and insert what you need to be printed:
 
<?php /** * * @package Icy Phoenix * @version $Id$ * @copyright (c) 2008 Icy Phoenix * @license http://opensource.org/licenses/GPL-license.php GNU Public License * */
  $randomquote = array(     'My first quote!',     'My second quote!',     'My third quote!',     'My fourth quote!',     'My last quote!' );
  $image = 'signature_bar.png'; $im = imagecreatefrompng($image);
  $main_color = imagecolorallocate($im, 51, 102, 153); $black = imagecolorallocate($im, 0, 0, 0); $orange = imagecolorallocate($im, 255, 85, 0); $blue = imagecolorallocate($im, 68, 102, 136); $red = imagecolorallocate($im, 255, 0, 0); $green = imagecolorallocate($im, 0, 160, 0);
  $left_margin = 10;
  imagestring($im, 3, $left_margin, 2, 'My wonderful name!', $orange); imagestring($im, 2, $left_margin, 18, 'Another text example...', $main_color); imagestring($im, 2, $left_margin, 30, 'Ok, another one!', $blue); imagestring($im, 1, $left_margin, 48, $randomquote[rand(0, sizeof($randomquote) - 1)], $green);
  header('Content-Disposition: filename=signature_bar.png'); header('Content-Type: image/png'); imagepng($im); imagedestroy($im);
  ?>
  
When you have edited the PHP file, just upload it to your server, and then write the address in your browser!
 
Result will be something like this:
  
I hope you will like this!
			 
 
	| Description: | 
	Dynamic Signature  | 
	  Download | 
 
	| Filename: | 
	dynamic_signature.zip | 
 
	| Filesize: | 
	7.7 KB | 
 
	| Downloaded: | 
	910 Time(s) | 
 
 
 
		 
		  
				
			
									____________ Luca
SEARCH is the quickest way to get support.
 
Icy Phoenix ColorizeIt - CustomIcy - HON								 
				  
											 | 
 
	#1  Tue 25 May, 2010 19:57   | 
	
		
	 | 
 
  
	
		Sponsors 
		  
		 
	 | 
	
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
 
  | 
 
|   |  
  
	
		  Joshua203   
		Joshua 203 				
			
			
			Dutch A Go Go
   															
			 
		 
		
						 
				
									
			Joined: August 2008 
			Posts: 1754 
									Location:    Earth, Europe, the Netherlands, Rotterdam
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			hhmmm looks intresting to someone having a hard time making his mind up ..nice idea  MG
nicest thing would be one sig change would update all of them anywhere ?
					  
		  
				
			
									____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)     								 
				  
											 | 
 
	#2  Tue 25 May, 2010 20:17   | 
	
		
	 | 
 
  
	
		  Mighty Gorgon   
		Luca Libralato 				
		
						 
				
									
			Joined: August 2006 
			Posts: 7192 
									Location:    Borgo San Michele
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			Yes, that is the case... when you have generated the image how you like, you should then point all your signatures to that image.
 
When you are tired with that signature, all you have to do is changing the image or the text in it... and all signature will be updated at once!   
					 
		  
				
			
									____________ Luca
SEARCH is the quickest way to get support.
 
Icy Phoenix ColorizeIt - CustomIcy - HON								 
				  
											 | 
 
	#3  Tue 25 May, 2010 20:23   | 
	
		
	 | 
 
  
	
		  Joshua203   
		Joshua 203 				
			
			
			Dutch A Go Go
   															
			 
		 
		
						 
				
									
			Joined: August 2008 
			Posts: 1754 
									Location:    Earth, Europe, the Netherlands, Rotterdam
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			wow talk about saving time and human memory..THANK YOU 
					 
		  
				
			
									____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)     								 
				  
											 | 
 
	#4  Tue 25 May, 2010 20:39   | 
	
		
	 | 
 
  
	
		  Mighty Gorgon   
		Luca Libralato 				
		
						 
				
									
			Joined: August 2006 
			Posts: 7192 
									Location:    Borgo San Michele
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			Unfortunately there are some sites which do not accept images in signatures...    
You want an example?
 
By chance do you know a site called icyphoenix.com?   
					 
		  
				
			
									____________ Luca
SEARCH is the quickest way to get support.
 
Icy Phoenix ColorizeIt - CustomIcy - HON								 
				  
											 | 
 
	#5  Tue 25 May, 2010 20:50   | 
	
		
	 | 
 
  
	
		  Joshua203   
		Joshua 203 				
			
			
			Dutch A Go Go
   															
			 
		 
		
						 
				
									
			Joined: August 2008 
			Posts: 1754 
									Location:    Earth, Europe, the Netherlands, Rotterdam
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			whahahahahaa... time to reconsider??    
Edit : there s also sites that removed my text link to my home page so you re not the worst   
after removal my siggy said: (under constuction/development ..forever)
 
so i removed that myself     (i won t mention the site that did that hahaha)
					  
		  
				
			
									____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)     								 
				  
											 | 
 
	#6  Tue 25 May, 2010 21:39   | 
	
		
	 | 
 
  
	
		  TheSteffen   
						
		
						 
				
									
			Joined: August 2006 
			Posts: 1625 
									Location:    Magdeburg
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			Thanks  MG, I think this is very usefull    
  
					 
		  
				
			
									____________ TheSteffen
Often SEARCH is the quickest way to get support.
 
IcyPhoenix German Support								 
				  
											 | 
 
	#7  Thu 03 Jun, 2010 09:40   | 
	
		
	 | 
 
  
	
		  jameswatt  
						
		
						 
				
									
			Joined: March 2012 
			Posts: 1
									
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			How dynamically it will generate? 
					 
		  
				
			
 
  
																	 
				  
											 | 
 
	#8  Sat 03 Mar, 2012 08:11   | 
	
		
	 | 
 
  
	
		  Joshua203   
		Joshua 203 				
			
			
			Dutch A Go Go
   															
			 
		 
		
						 
				
									
			Joined: August 2008 
			Posts: 1754 
									Location:    Earth, Europe, the Netherlands, Rotterdam
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			you should be able to test that in 5 to 10 minutes (without editing your forum), but there should not exist any degrees in "random", but if there are limitations I expect the limit is php's limit ...not the script's. 
					 
		  
				
			
									____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)     								 
				  
											 | 
 
	#9  Sat 03 Mar, 2012 11:17   | 
	
		
	 | 
 
  
	
		  leroymcqy   
						
		
						 
				
									
			Joined: October 2013 
			Posts: 3
									
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			can someone help me out 
i am trying to get this to show up without line breaks or any extra characters. but when users input data like
 
it just shows up in one line with weird chars. i want it to show up on one line but without chars
 imagestring($im, 3, $left_margin, 38,  str_replace('/[^A-Za-z0-9\. -\!\?\(\)\<\>\@]/', '', $_POST['games']), $green); 
  
and also how can i use method="get" to show the data. 
 
i tried using: 
h**p://***.crimson.pcriot.com/sign.....free-forum.net 
 
but it didnt work
got this figured out
					  
		  
				
			
 
  
																	 
				  
											 | 
 
	#10  Thu 06 Feb, 2014 16:30   | 
	
		
	 | 
 
  
	
		  Mighty Gorgon   
		Luca Libralato 				
		
						 
				
									
			Joined: August 2006 
			Posts: 7192 
									Location:    Borgo San Michele
																		   
					 
		  
	 | 
	
	
		
		  Re: Dynamic Signature   
		 
		
			Hi, can you please explain how did you manage to solve this? 
					 
		  
				
			
									____________ Luca
SEARCH is the quickest way to get support.
 
Icy Phoenix ColorizeIt - CustomIcy - HON								 
				  
											 | 
 
	#11  Tue 11 Feb, 2014 17:08   | 
	
		
	 | 
 
  
	
				  
		  
					 | 
	
		Page 1 of 1 
		
	 | 
 
 
 
 
 
 Was this topic useful?
 
 Was this topic useful?
| Link this topic |  
	| URL | 
	 | 
 
	| BBCode | 
	 | 
 
	| HTML | 
	 | 
 
  
	
		
		
			
			
				
			 
			You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
  |  
			 
		 		
	 | 
	
				
  
			 | 
 
 
			 |