Tutorial: Generating scripted-signatures (Version 2)
MyAnimeList.net Forum »» Creative Corner »» Tutorial: Generating scripted-signatures (Version 2)
#421
03-05-10, 10:52 AM
|
|
|
Offline Joined: Sep 2008 Posts: 223 |
Thanks, ehrgeiz! That helped me make my 1st php sig (I used saka's script though). I have some questions for upcoming signatures: -It was a real pain adjusting the text position, is there an easier way to figure its exact coordinates without trying multiple times, sometimes with a 5-8 min waiting interval in-between for the changes to appear? I tried Paint, but it only helped me with x-pos. -How can I use more than one font? Say, one for the series name and one for the status? -In general, is it possible to warp text, apply different blending options and character palette options? Sorry, if any of those were asked before… Modified by Sesame-chan, 03-05-10, 11:08 AM |
#422
03-22-10, 7:26 PM
|
|
|
Offline Joined: Aug 2009 Posts: 1282 |
I'm having trouble getting the image to display. Every time I try to navigate to the site, it doesnt work. I configured the Chmod the way it was supposed to be for each of the files, including my own sig picture, and I just left the font alone b/c this is just a test sig Also, will my sig update at all without a cronjob? any help would be awesome |
#423
03-23-10, 1:38 PM
|
|
|
Forum Moderator
Offline Joined: May 2008 Posts: 4361 |
Yes it will update without a cronjob and return the image directly from the php. You can use a cronjob to make it slightly more efficient, but it's completely optional and really unnecessary unless you have a very very complicated sig that takes a while to generate. btw, in response to your pm, I'm making a couple minor fixes and writing up a tutorial for configuring my minimal script that I'll post soon. It should be easier with detailed instructions. ;) |
#424
03-24-10, 3:05 PM
|
|
|
Offline Joined: Sep 2008 Posts: 223 |
That wasn't nice! :/ |
#425
03-24-10, 4:18 PM
|
|
|
Forum Moderator
Offline Joined: May 2008 Posts: 4361 |
lol sorry i somehow overlooked you.... didn't mean to ignore. ;) Sesame-chan said: -It was a real pain adjusting the text position, is there an easier way to figure its exact coordinates without trying multiple times, sometimes with a 5-8 min waiting interval in-between for the changes to appear? For positioning, I find it helpful to mock up everything in photoshop first (including the text) so that I can use photoshop to measure the coordinates beforehand. If you want to do this, go to Edit>Preferences>Units & Rulers to make sure your measurements for Rulers and Type are in pixels; Now use the F8 key on your keyboard to toggle the Info Panel, which gives you pixel measurements of the width, height, and position of the element you're working with. It's odd that your script isn't updating after you change it... the check_cache() function should check to see if your script has been modified and cause it to make a new one, but if it's being stubborn you can comment out the check_cache(...); line near the top. Just put '//' in front like this: //check_cache(10); and take the /'s back out when you've gotten it to your liking. Sesame-chan said: -How can I use more than one font? Say, one for the series name and one for the status? All of the text functions take just the path to the font... so it's just a string and you can use as many as you want. $font = 'font.ttf'; and change to $font2 or whichever in the imagettftextalign() functions below that.$font2 = 'font2.ttf'; $font3 = 'font3.ttf'; ... Sesame-chan said: -In general, is it possible to warp text, apply different blending options and character palette options? I'm not sure what you mean by character palette, but you can use additional libraries (extra php files with functions in them) to add effects to your text and other dynamic content. I've already written functions to do 3d perspective rotation, skew, 2d rotation(with alpha support), and am working on perfecting a library that does all the photoshop blending modes (just a few minor quirks to work out with the alpha blending). Many people also use Niroko's glow library to add glow effects to my sig script. If you have specific questions, just ask... preferably in the thread for my minimal sig though. |
#426
03-24-10, 5:33 PM
|
|
|
Offline Joined: Sep 2008 Posts: 223 |
Wow! That was well explained, thank you so much! I'll post my comment in your thread then :) |
#427
03-26-10, 9:35 PM
|
|
|
Offline Joined: Aug 2009 Posts: 1282 |
saka said: Yes it will update without a cronjob and return the image directly from the php. You can use a cronjob to make it slightly more efficient, but it's completely optional and really unnecessary unless you have a very very complicated sig that takes a while to generate. btw, in response to your pm, I'm making a couple minor fixes and writing up a tutorial for configuring my minimal script that I'll post soon. It should be easier with detailed instructions. ;) wow, awesome, thanks a lot! I'll be looking forward to it =) |
#428
05-02-10, 10:33 PM
|
|
|
Offline Joined: Apr 2008 Posts: 304 |
It works perfectly =D The only thing I don't get is how to get a PNG image at the end (i registered at cronjobs.org but -damn!- I got confused in two seconds). Could someone tell me how? |
#429
07-18-10, 2:34 PM
|
|
|
Offline Joined: May 2009 Posts: 10 |
can i make from this just a text output? i tried with $cutter vars to include in my script but it does't work properly. it displays rss last news (must show first) I'm a Mog, half man half dog. I'm my own best friend (c) Spaceballs |
#430
07-18-10, 7:15 PM
|
|
|
Forum Moderator
Offline Joined: May 2008 Posts: 4361 |
I highly recommend not using this script. There are better ones available that are more modular. mine: http://myanimelist.net/forum/?topicid=84446 talon/niroko's: http://myanimelist.net/forum/?topicid=32704 scripter's club with more: http://myanimelist.net/clubs.php?cid=5076 If you're just looking for ways to parse rss, there are simple general ways to do it. Ask me privately what you need and maybe I can help. |
#431
08-18-10, 9:27 AM
|
|
|
Offline Joined: Aug 2009 Posts: 566 |
Very good tutorial, even I managed it now!^^ |
#432
07-16-12, 6:13 AM
|
|
|
Offline Joined: Apr 2011 Posts: 26 |
helpoemer07 said: okay... I'm in a pinch... I'm done with almost everything... I have an image, I have edited the codes for image_output.php and settings.php (not sig.php), I have set the chmod for the folder containing them to 777, and I have set the chmod for all the files to 755... Whenever I use http://helpoemer07.0fees.net/signature/sig.php inside a bbcode or even at the address bar, an image error occurs (a small broken image picture)... when I try to use http://helpoemer07.0fees.net/signature/image_output.php , my original image displays but without the list that I wanted to display... What could I have done wrong?? (I have not edited the sig.php in any way aside the chmod)... Is it because of my host (0fees) ?? I'm in dire need of your help... thanks... ^_^ ~ and oh... just in case... I'll place the codes... image_output.php settings.php sig.php Hello..ive been working on my sginature for 7 hours and i have reached the same place he is..i am useing Freewebhosting.com and i saw it does allow allow_url_fopen...anyone know what i am doing wrong..if you want i can post my Codes.. |






