Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Signature script
#1
So I didn't know Nyx- made one, but anyways I made one too... Tongue

Now you just need to set everything in the $config array and you're good to go!

The script looks for the folder that is defined as "SIG_DIR" (signatures) and gets images from that folder.
To avoid errors, plese place only images into the folder, jpg, gif and png are supported....

You can also use custom strings and custom fonts, fonts are readed from the "fonts" directory and you can define a default one or just randomize it too.
Fonts must be .ttf ones.
If you want to resize the images so that they all have the same size, just set the width and height in the $config array and set resize to TRUE.

A directory structer would look like this.

rand_sig.php
signatures/
your signatures
fonts/
your fonts




If you use the script, and you encounter any bugs please tell me about them in this thread!
Thank you!
Reply
#2
Cool stuff!
Reply
#3
nice, way better then mine xD
[Image: sig.php]
Reply
#4
(12-19-2009, 11:49 AM)FarOut Wrote: Cool stuff!

Thank you very much!
I have few more ideas, but later.....
Reply
#5
weird........ STOP FOLLOWING ME!!!
[Image: sig.php]
Reply
#6
(12-19-2009, 02:42 PM)Nyx- Wrote: nice, way better then mine xD

Thanks Nyx... lol not better it just has a function more Tongue

edit: lol wasn't following you, it was faith...
jk... it was making my way from top to bottom in new posts...
Reply
#7
UPDATED....

Since Xenocide posted a Changing Avatar Script....
I thought to update this one with few lines so it can do the same.

You can now set the script with the GET method, to genearte an avatar.
All values inside of $config array are defined with the GET method.

The example url would look like:
Code:
rand_sig.php?generate=avatar&resize=1&width=120&height=120&generate_text=1&avatar_dir=ava&text=MOTU&text_size=14&text_pos_x=5&text_pos_y=110

generate=avatar is the key to redeclare the $config array with GET given values...
In the above string this script is set to generate an image from ava directory with the w120 and h120 size.
generate_text=0 will disable cusom strings.

EDIT:
The script is based on what I've shown with my Tutorials, so I hope this gives you an idea for the use of them!
Reply
#8
you should post this in english on HF ^__^ I was trying to look for it but couldnt find it other than in the Balkan section
[Image: sig.php]
Reply
#9
(01-24-2010, 03:49 PM)Nyx- Wrote: you should post this in english on HF ^__^ I was trying to look for it but couldnt find it other than in the Balkan section

Sure, why shouldn't I...
I'll post it soon... Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Image PHP Matt G 13 3,849 11-24-2010, 01:21 PM
Last Post: Sam
  php form script with upload script help andrewjs18 4 3,366 10-07-2010, 11:46 AM
Last Post: JMK940
  [tut] Random Page Titles Extasey 11 3,569 11-08-2009, 07:01 PM
Last Post: Extasey
  Advanced Random Password Generator zone 2 1,248 11-06-2009, 09:16 PM
Last Post: zone

Forum Jump:


Users browsing this thread: 1 Guest(s)