Forum Settings
Forums

Tutorial: Generating scripted-signatures (Version 2)

New
Jan 14, 2009 7:12 AM
#1

Offline
Apr 2008
78
IMPORTANT NOTE: before posting in this thread seeking for help, or writing me a IM with pleadings for help, read this tutorial carefully!!! About 80% of the questions i get via IM have already been answered in one of the first three posts of this tutorial. I am not saying that you have to read through all the sites to get a working solution for your problems but a minimum of effort should be put into searching answers by yourself.
As of now, i won't answer any messages containg phrases like:

  • plzzz help the script is not working. thx
  • how do i open and alter one of the php-files?
  • how can i change the appearance of my status-text?
  • i don't understand a thing, pls help me

If this sounds rude to you, i honeslty apologize. But i'm getting so many pointless questions or questionts that i have answered at least a dozen times that i don't want to answer them anymore.
If you have any other questions (except those few i mentioned above) go ahead and ask.


Tutorial: Generating scripted-signatures (Version 2)d
(( the first version can still be found here: http://myanimelist.net/forum/?action=message&msgid=2272294 or here: http://myanimelist.net/blog.php?eid=21699 ))

Before the show starts:
Thats the second try.I think it became a lot better. This was possibledue to some really good feedback and suggestions i got. So keep this up!. If you have any questions about this tut or you have any ideas how to improve it let me know. Improvements can never be a bad thing.


  • Contents of the 1st Post:

    • 1.Starting notes
    • 2.Requirements
    • 3.Changes in this version

  • Contents of the 2ndt Post:

    • 4.Setting up the script
    • 5.Vital source-code parts in detail
    • 6.Creating your own customized signature
    • 7.Additional information
    • 8.Possible errors and how to handle them

  • Contents of the 3rdt Post:

    • 9.Frequently Asked Questions (under construction)
    • 10.Avanced text and image handling (under construction)

-----------------------------------

Full source files of this tutorial you will need: download (contains the tutorial as pdf file)
(be sure to keep the given structure intact when you upload the files to your webspace)
[when you unzipped the source, uploaded it, and made everything correct you should get an output according to the one you see below)

This tutorial is for those of you, who want a scripted signature that uses a non-MAL custom font.
An example how it can look like:


1. Starting notes
The script we will make during this tutorial is neither the best, nor the last answer on how to create a scripted signature. There are more advanced scripts out there, which do more than just the basic things provided by this tutorial. Nevertheless you will be able to make a working, customizable scripted signature that can easily be upgraded with more functions.
For more advanced script try taking a look at the „Signature Scripters“ Club (http://myanimelist.net/clubs.php?cid=5076).

If something is unclear, or you just don't know how to do a certain step feel free to post below. Suggestions and criticisms are also welcome.

2. What you will need to successfully pass this tutorial:

  • a good, working webspace that meets the following requirements: (i can recommend 000webhost.com – it meets all requirements)

    • supports php 4 and above
    • phpconfig() should look like this:

      • allow_url_fopen: On
      • file_uploads: On
      • safe_mode: Off
      • GD support: enabled
      • FreeType Version 2.x
      • GIF/JPG/PNG Read Support enabled
      • Note: you can check if your wehost allows this by generating a simple php file. Name the file as you wish e.g. info.php. Content of the file: <?php phpinfo(); ?>Upload the file to your webhost, and acces it through a browser. Your done.

  • a workable ftp-client ( e.g. filezilla or any other ftp-client you like)
  • some enthusiasm to start with (thats the most important thing ^^)

Plusses to have on your side: basic knowledge of webdesign and or php-programming (this is not a 'need to have'); basic knowledge of ftp-clients or how to upload files on a webserver and how to alter chmod of files

So, if your still here, then you are seriously interested in how to script your own flashy signature. Thats good! Lets start then.

First of all, you will need a signature graphic that you like.
So go on and choose one. Come back to this tutorial if you have done so.

3. Changes in this version
Your reading the second version of this tutorial and as a matter of fact there have been some minor and also some major changes. First of all, there is no longer only one big file holding the script but three slightly smaller files. But don't worry if anything, the script has become easier to handle, the aim still is to keep it clear, simple and easy to handle. All changes will be marked red.
The scripts know exists of the following files

  • sig.php: this is the core file - you should not touch it unless you know what you are doing. For the script to work you won't have to change anything in here.
  • settings.php: we're setting up the script in here. Your MAL-Username and some other settings regarding what should be parsed (manga or anime list or both of them) ought to be set here.
  • image_output.php: the final signature-image will be defined in here. All changes regarding appearances of the image and/or text are done in this file.

Attention: For easier and faster access for those who already read the first version of this tutorial all changes i made are marked red. So if you see a red part be aware that this has changed of wasn't even supported in the last version.

One last point to mention. Because this post is kinda big, and will (if everything goes as planned) become even bigger, i will split it up in more parts. So..this post holds all information you need to start with. The second post holds the actual tutorial and the thirds posts will be dealing with FAQ's and Bonuses such as advanced image and text handling using php.

Now head on to post 2 to start with the actual tutorial. Have Fun!!!

ehrgeizMar 11, 2009 5:22 AM
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Pages (9) [1] 2 3 » ... Last »
Jan 14, 2009 7:12 AM
#2

Offline
Apr 2008
78
4. Setting up the script

I will take you step by step through the setup process.
To start with, download the zip file from the link above and extract it. Here's the link once more: download
Fire up your ftp-client and upload all the files to your webspace. It is very important that you keep the given file-structures intact.

This done, set the following chmods:

  • 777: signature folder
  • 755: sig.php; settings.php; image_output.php and sig.png(if you generate it)


(Note:with a standard ftp-client you can change a files/folders chmod like that: right click on a file or folder, choose 'chmod' in the appearing contextmenu.The rest should be self-explanatory)
Open a browser of your choice and open the url: 'yoursite.com/signature/sig_creator.php'
If your host matches all requirements, and you have done everything right, you should see something like this:


Congratulations!! You have taken the first steps in creating a custom signature...

Before we start with creating your own personalized sig, we have to do some more homework. Let's get started....

5. Vital source-code parts in detail

The following part is located in the file „image_output.php“.
Be aware that the file „sig.php“ should never ever be changed unless you really know what you do. Otherwise the whole script is likely to break.


If you open the spoiler-tag you will see some source-code of the sig-script we're using right now. Cause it is vital for you to understand this part of the script to generate your own custom sigs, i will explain it in detail.



  • $image = imagecreatefrompng("your_pic.png");

    • replace „your_pic.png“ with the picture you want to pimp (must be in the same directory as your the final php file)

  • $font = 'Capture_it.ttf'; (ATTENTION: fonts have to be specified CASE-SENSITIVE)

      [*define the font you want to use. The font file must be in the same directory as the final php file. You can use any font you want (even .otf fonts), as long as you have the corresponding file, that defines the font. E.b. For 'Capture_it' you need to have the file „Capture_it.ttf“ uploaded and in the same directory as your final-php file)
      find free fonts here: http://www.dafont.com/

  • $colour = imagecolorexact($image,0,0,0);

  • imagefttext($image,14,0,118,48,$colour,$font,$titles[0][0]);

    • $titles[0][0] outputs the very first anime title of your rss-feed
    • $titles[0][1] outputs the second anime title of your rss-feed and so on
    • new: you can now choose between manga and anime output (manga is, of course only avaible if you specified the script to parse your recent manga updates in the settings.php file; read point 5 how to do this)
    • $titles[1][0] outputs the very first manga title
    • $titles[1][1] outputs the second manga title and so on
    • find more information here: http://www.php.net/imagefttext

  • imagefttext($image,12,0,170,60,$colour,$font,$status[0][0]);

    • $status[0][0] outputs the very first episodes info of your rss-feed
    • $status[0][1] outputs the second episodes info of your rss-feed and s
    • new: along with the titles, also the status information can now output manga information; see above how to achieve this its the same as with titles
    • be sure to set the same numbers of $titles and $status, otherwise you will get a messed up output

  • imagefttext($image,12,0,170,60,$colour,$font,[color=#ff0000]$dates[0][0]);

    • this version supports the output of dates by default
    • settings are exactly the same as for $titles and $status be aware that you have to activate the parsing of dates in the 'settings.php' file

  • imagepng ($image);

    • simply creates the final image; this will just output the picture, but doesn't save it. You can however, use the output for your signature (but i wouldn't recommend it, cause this has some disadvantages; however if you use it like this, with the bbcode below you won't have to use a cronjob for auto updates); bbcode would look something like [img.]http://yoursite.com/sig_creator.php[/img.].
    • If you want the pic to be saved you will have to replace 'imagepng($blub)'(if you change it like this, you will need a cronjob[information on this comes later] for auto updates of your sig)

      • replace 'imagepng($image)' with:
          imagepng($image, „sig.png“)
          imagedestroy($image)


6. Creating your own customized signature

I guess right now, you have chosen, the gfx you want to use as a signature. If not, do so now and come back when your done with that.

As before, i will take you step by step through the whole process.
Due to the fact, that we have to change the source code, you will have to open the file 'image_output.php' in any texteditor you like.
Next you have to find the part that looks like this:

  • //generate the image
    $image = imagecreatefrompng("your_pic.png");


Now: replace ("your_pic.png") with the name of the sig-gfx you'd like to use e.g. if the png you want to use is called „flashy.png“ you would have to change ("your_pic.png") to ("flashy.png"). [easy isn't it ^^]
For now, leave the rest as it is. Save the file and upload the changed 'settings.php' and your sig-gfx to your webspace.

For information on how to change the font or how to make more than one anime title appear on your sig read point 4.

If you're satisfied with the outcome there is merely one thing left. Open the file 'settings.php' in any texteditor you like. Find the following line:


  • //variables
    $user = "shiteiru"; //Mal-Username

    • replace shiteiru with your own mal nickname...thats all


Save the file.
You may notice, that there are some other settings that can be changed by you and will influence the appearance of your signature. All you need to know to make successfull working changes is explained in detail behind every line. If you still have problems understanding what some things mean or how to adjust them ask.
Once again. Upload the file 'settings.php' to your webspace. Browse to 'yoursite.com/signature/sig.php'.
If you get an error like „The Image „your-image“ cannot be displayed because it contains errors“ don't start to panic. Instead open the following url: 'yoursite.com/signature/sig.png'
If you get an output everything worked fine.

If you have chosen to save the png-output of the sig-creation process, and you want to use this saved png-file instead of the raw 'php-site' as your sig you have to do one more thin. (read under point 4 how to save the png-output)
That is to automate the update of your signature. Read under point 6: cronjob, how to achieve this.


7. More Information on how to setup the serverside direcotories and how to automate the sig-generating process


  • for further information on chmod look here: http://www.freebsd.org/cgi/man.cgi?query=chmod&sektion=1
  • cronjob: if you want the script to automatically update your signature, you will need a cronjob. A cronjob is a long running process that executes commands at specific dates and times. You can setup your own cronjob but that isn't easy and isn't really needed, cause there are some free cronjob provider out there who already did the scripting for you and offer you easily configurable cronjobs. Find such a provider here (cronjobs.org) or here (cronjob.de[recommended for german users]).
    If you want to setup a cronjob all by yourself from scratch look here for further information:
    http://www.aota.net/Script_Installation_Tips/cronhelp.php3
    (but be warned that this is absolutely not suited for scripting beginners)


8. Possible errors and how to handle them
ehrgeizJan 18, 2009 10:44 AM
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 14, 2009 7:12 AM
#3

Offline
Apr 2008
78
9. Frequently Asked Questions

  • Question: How do you make the episodes-text part say "12/24" or "Watching @ 15/25" (like windy's, for example) etc, instead of it saying "Watching 12 of 24 Episodes"?
  • Answer:With the last update, it should actually be very simple. Just look inside the file 'image_output.php' there should be explained everything you need to know. Should for some reason, your version refuse to do as you please, you can find a fix for the existing version here: http://myanimelist.net/forum/?topicid=62511&show=20#msg2506546; sometime soon there will be an update of the script which will allow you to customize the look of the episodes watched text output (manga chapters will also be supporterd)

10. Advanced image and text handling
under construction

11. Sigs created using this tutorial
Some impressions for the interested one how possible outcomes can look like. Thanks to all of you, who gave their sigs away as samples.

dEVJE:


Queeg:

ehrgeizJan 28, 2009 6:32 AM
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 14, 2009 7:34 AM
#4

Offline
Oct 2008
390
Great!! Updates!!! I going to try it. If I have questions I'm gona post it here.
Jan 14, 2009 7:46 AM
#5

Offline
Apr 2008
4287
Very informative. Nice guide ^^

Jan 14, 2009 7:51 AM
#6
Offline
Nov 2008
272
I'll try to get some free time tonight and try to make something with this tut <3
dvjJan 14, 2009 7:56 AM
Jan 14, 2009 7:53 AM
#7

Offline
Oct 2008
390
I liked first one. Except this one has dates. Maybe you should add option for adding one more picture over the first two. Like cyruz uses on his signature. And options to chose to show date in "plan to wathc", "complete",... texts and normal option (using that imagefttext)
Jan 14, 2009 9:13 AM
#8

Offline
Feb 2008
4295
The only thing I can think that needs to be added, and it seems you will in the near future, is the png alpha transparency option. Anyway, this is the relevant code for that:

$image = imagecreatefrompng('image.png');
imagealphablending($image, true);
imagesavealpha($image, true);

If you already have the first line or some variant, just add the last two lines right after it and edit so the variables match.

This tutorial just keeps getting better and better and more people are getting php sigs by the day it seems :)
Jan 16, 2009 2:50 AM
#9
Offline
Jul 2008
3032
thanks a lot shiteiru. i was looking forward to this and now it's here thanks to you.
it's time for a new sig with a new script. i will try to make one over the weekend :D
Jan 16, 2009 4:13 AM

Offline
Aug 2008
444
Smashing! Finally managed to pimp my signature thanks to this. I eagerly await step 10 for some tweaking to get it exactly how I would like.
Jan 17, 2009 8:01 AM

Offline
Mar 2008
141
Hi there, I'm trying to make this, but I still can't, I'm doing everything has it says in the tutorial, but it still doesn't work :s
I've been tryoing for 2 days now, so I decided to ask for help.. I'm hosting the site
at 000webhost.com, has you sugested, and it's indiferent if it's with cronjob or not (it still doesn't work)
This is how I put the code (without changing some things)


and this is the site
http://manami-chin.comoj.com/
you can see that the sig doesn't apear, in the sig.php
Can you tell me what I'm doing wrong, from this?
thanks




Jan 17, 2009 2:24 PM

Offline
Sep 2008
630
manami-chin said:
Hi there, I'm trying to make this, but I still can't, I'm doing everything has it says in the tutorial, but it still doesn't work :s
I've been tryoing for 2 days now, so I decided to ask for help.. I'm hosting the site
at 000webhost.com, has you sugested, and it's indiferent if it's with cronjob or not (it still doesn't work)
This is how I put the code (without changing some things)


and this is the site
[url=http://manami-chin.comoj.com/]http://manami-chin.comoj.com/
you can see that the sig doesn't apear, in the sig.php
Can you tell me what I'm doing wrong, from this?
thanks


as i read on the tutorial above, you are not supposed to even touch sig.php.
the editing work is supposed to be in image output (leaving the settings aside).

ok, that aside, make sure that the chmods (step4) for the folder to hold all the signature related things to be 777, and all php files to be 755.

if you made some changes in the sig.php that might have caused problems, just dl the zip again and put in the original sig.php

try these first to be sure that what you input isnt wrong?
Jan 17, 2009 7:14 PM

Offline
Aug 2008
444
Not that I'm an expert manami-chin but your all.png file would seem to be a gif image. Not sure if that would throw it off or not but it's worth trying converting it to an actual png then re-uploading it.
Jan 18, 2009 7:23 AM

Offline
Mar 2008
141
okay, thanks I'will try do that changes^-^




Jan 18, 2009 9:23 AM
Offline
Aug 2008
210
oh this guide is perfect!
I wanna to read something like that, thx!
Jan 18, 2009 5:43 PM

Offline
Sep 2008
630
windy said:
while tinkering with a new sig, i found a problem.

i want to have the "..." appear after a certain number of letters, and went back and found the code that allows that in the older thread. however, it negates the code i have that strips - TV, - OVA, etc if the anime title has less letters than the code sets a limit for. it's also happening to dEVJE. is there any way around that?

if i need to post my code, i certainly can.


the problem was stated on the first thread already.
did you try this?


edit: read your post over again. lemme check again. you need to have the code that removes - TV and such before the code for ...
its so that it removes the tags first before considering the ...
atruong18Jan 18, 2009 5:48 PM
Jan 18, 2009 6:33 PM

Offline
Sep 2008
630
windy said:
atruong18 said:
you need to have the code that removes - TV and such before the code for ...
its so that it removes the tags first before considering the ...
i tried that, and it just made my update text go away completely.

my brother did the part that removes the - TV for me so i don't know if the fact that it may be a little different matters...i'll post the relevant bit of code here.



sorry if the fix is in the spoiler you posted; i read that and didn't really understand what to put where and what to leave alone and what to replace based on what i have.


replace the $title to $cutter, like so:
quote said:

$cutter = str_replace($end,"",$ncnt);
$cutter = preg_replace('/ - (TV|Movie|ONA|OVA|OAD|Special)$/', '', $cutter);
If (strlen($cutter) > 12)

the part after will be the same.
im pretty sure that the order matters, so take off the one you have at the top and replace it with this one.
Jan 19, 2009 7:13 AM
Offline
Nov 2008
272
windy said:
[...] it's also happening to dEVJE [...]

These words motivated me to fix that :P
Jan 19, 2009 2:00 PM

Offline
Sep 2007
2171
Php n00b here... can someone teach me, how to change the "x of y episodes" part? :) I want it to look like this: x/y... and instead of "completed" I would like to have y/y

I kinda feel like asking something utterly obvious, but well who cares :D
Jan 19, 2009 3:17 PM

Offline
Apr 2008
78
find this part in the file 'sig.php'

and replace it witch:

haven't tested it...but should never the less work
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 19, 2009 3:31 PM

Offline
Sep 2007
2171
shiteiru said:
find this part in the file 'sig.php'

and replace it witch:

haven't tested it...but should never the less work

Thanks ^^ I will test it tomorrow :)

Worked ^^b big thanks :)
SunyiNyufiJan 19, 2009 5:00 PM
Jan 20, 2009 6:36 AM
Offline
Jul 2008
3032
thx shiteiru :D
i've made a new one with this tut. just thinking of changing colors of the font..
Jan 20, 2009 8:45 AM

Offline
Apr 2008
78
this version has the premade ability to "dot" the ends of the Anime/Manga titles.

Just open the file 'settings.php' and search for
$cut_titles = "0"; // 1=yes or 0=no
$cut_title_after = "15"; // if you specified $cut_titles = "yes" enter the max char length of the anime title output

now you have to set $cut_titles to 1 like so: $cut_titles = "1";
and the value for $cut_title_after as large/small as you like. e.g. if you want it to be 10 chars long set
$cut_title_after = "10";

thats all...hope that helped
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 20, 2009 2:13 PM

Offline
Dec 2007
218
At last I finally got to check this :D Nice update. I prefer using the first one though, but this one gave me some more tips :D
Jan 20, 2009 3:03 PM
Offline
Feb 2008
428
Good script, but I see only one anime. How I insert more anime?

This is my code, but I see always the first anime O_o, help me please!

PS: Sorry for my very very bad english.

Anime 1

imagefttext($image,14,0,118,48,$colour,$font,$titles[0][0]);
imagefttext($image,12,0,170,60,$colour,$font,$status[0][0]);
imagefttext($image,14,0,222,72,$colour,$font,$dates[0][0]);

Anime 2

imagefttext($image,14,0,118,48,$colour,$font,$titles[0][1]);
imagefttext($image,12,0,170,60,$colour,$font,$status[0][1]);
imagefttext($image,14,0,222,72,$colour,$font,$dates[0][1]);

etc...
shagalollaJan 20, 2009 3:07 PM
Jan 20, 2009 3:34 PM

Offline
Nov 2007
85
Hm. Working on a new sig thing and what not and I'm wondering, is it possible to align the text to the right?
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Jan 20, 2009 6:21 PM

Offline
Feb 2008
4295
NyaChan said:
Hm. Working on a new sig thing and what not and I'm wondering, is it possible to align the text to the right?
It's possible but it's a pita. Basically you'll need to measure the pixels in the text and place the text accordingly. Unfortunately there doesn't appear to be a built in function that does this, since font size and type can be altered.
This should help.

Emihiro: Your code is correct. You just have to update your history so that the same series isn't listed twice in a row, i.e. watch a different show.
kuroshiroiJan 20, 2009 6:30 PM
Jan 20, 2009 6:34 PM

Offline
Jan 2008
809
There should be a signature scripting contest.
Jan 20, 2009 6:57 PM

Offline
Sep 2008
630
kuroshiroi said:
Basically you'll need to measure the pixels in the text and place the text accordingly

wouldnt that only allow the titles to be that precise length for that to work? like a title thats 8 characters long, the pixel position will be different compared to a title thats 20 characters long.
i say that, but i dont know how to do it either xD.

sniW said:
There should be a signature scripting contest.

why should there be that kind of contest, when there is already an overall signature contest that has good non-script signatures participating as well? lol
Jan 20, 2009 7:04 PM

Offline
Feb 2008
4295
atruong18 said:
kuroshiroi said:
Basically you'll need to measure the pixels in the text and place the text accordingly

wouldnt that only allow the titles to be that precise length for that to work? like a title thats 8 characters long, the pixel position will be different compared to a title thats 20 characters long.
i say that, but i dont know how to do it either xD.
I'm not saying you should break out your ruler and measure it by hand. The measuring can be done on the fly by a php function for any text size, length and font and then applied correctly using some very simple math. It's still a pita since it should be automatic.
If you want to measure it using a ruler you're welcome to :)
Jan 20, 2009 7:08 PM

Offline
Sep 2008
630
ah, i thought you meant something else, my bad.
lol.
Jan 20, 2009 7:14 PM

Offline
Jan 2008
809
atruong18 said:
sniW said:
There should be a signature scripting contest.

why should there be that kind of contest, when there is already an overall signature contest that has good non-script signatures participating as well? lol

I dunno, to encourage creativity? People don't have to stick to tutorials, or even PHP GD to script a sig. I would participate in a signature scripting contest, but not a signature designing contest because I suck at designing :P
Jan 20, 2009 7:18 PM

Offline
Sep 2008
630
sniW said:

I dunno, to encourage creativity? People don't have to stick to tutorials, or even PHP GD to script a sig. I would participate in a signature scripting contest, but not a signature designing contest because I suck at designing :P


im mediocore at both :D. horray for my incompetence!
Jan 20, 2009 7:25 PM

Offline
Jan 2008
809
atruong18 said:
sniW said:

I dunno, to encourage creativity? People don't have to stick to tutorials, or even PHP GD to script a sig. I would participate in a signature scripting contest, but not a signature designing contest because I suck at designing :P

im mediocore at both :D. horray for my incompetence!

hehe. see, I wish I knew how to design sigs like yours (and pretty much everyone else's), but I've never really made the time to sit down and learn how...
Jan 20, 2009 7:26 PM

Offline
Dec 2007
4516
atruong18 said:
sniW said:

I dunno, to encourage creativity? People don't have to stick to tutorials, or even PHP GD to script a sig. I would participate in a signature scripting contest, but not a signature designing contest because I suck at designing :P


im mediocore at both :D. horray for my incompetence!

Psh, what are you talking about, you're really good at sigs =_=
Jan 20, 2009 7:33 PM

Offline
Sep 2008
630
FreedomWings said:

Psh, what are you talking about, you're really good at sigs =_=


id still say no, because i havent 'made' something yet.
its my own belief that mine isnt as good as others yet.

i mean, i think yours put in more effort than mine. so its better.
Jan 20, 2009 7:38 PM

Offline
Dec 2007
4516
atruong18 said:
FreedomWings said:

Psh, what are you talking about, you're really good at sigs =_=


id still say no, because i havent 'made' something yet.
its my own belief that mine isnt as good as others yet.

i mean, i think yours put in more effort than mine. so its better.

But I remember you anime your previous sig, which is a lot better than what I can do x.X
I phail at PHP
Jan 20, 2009 8:26 PM

Offline
Apr 2007
1609
NyaChan said:
Hm. Working on a new sig thing and what not and I'm wondering, is it possible to align the text to the right?

Right alignment is actually pretty simple. The way it's done is generally like this:

Center justification requires a few more lines.
Jan 20, 2009 8:36 PM

Offline
Sep 2008
630
FreedomWings said:
But I remember you anime your previous sig, which is a lot better than what I can do x.X
I phail at PHP


it wasnt true animated php, it was a regular gif. im not that good with php, lol.
it was like a 'test' before i really did make an animated php, but i dont have the time nor the knowledge.

@Iri: ooooo. doubt i use it though, lol.
Jan 21, 2009 2:14 AM

Offline
Feb 2008
5089
Man, you are absolutely fucking amazing. Thanks for this version 2, it is definitely worthful.

Was reading a lot of tuts and trying everything, but apparently Im either slow or stupid because I couldn't figure this out for shit:

How do you make it say "12/24" or "Watching @ 15/25" (like windy's, for example) etc, instead of it saying "Watching 12 of 24 Episodes"?
Jan 21, 2009 3:14 AM

Offline
Apr 2008
78
find the code to make it look like"12/24" here: http://myanimelist.net/forum/?topicid=62511&show=20#msg2506546

due to the fact that there seems to be some uprising interest in customizinig the episode output i will release a plugin where you will be able to define how you want to look the episodes output.

But cause i'm atm kinda stuck with studying and exams i don't know when the release will be out.
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 21, 2009 3:36 AM

Offline
Feb 2008
5089
Ah, so sorry, it was right on this thread. I feel dumb. ;___;

Thanks so much for all you are doing and MUCHOS FUCKING GRACIAS for the new update you are gonna be working on after exams. <3

Good luck on your exams.
Jan 21, 2009 8:18 AM

Offline
Aug 2008
444
Good luck indeed.
The episode output is what I'm playing around with, picking it up as I go along getting closer to exactly how I'd like. You never know I might just figure it out myself. Stranger things have happened. =p
Jan 21, 2009 9:23 AM

Offline
Feb 2008
4295
Queeg: I thought of this some time ago when I first saw your sig but since it wasn't php at the time I didn't want to mention it.
Anyway, have you thought of randomizing the pictures? With php it's fairly simple and it should give your sig a little something extra.
Jan 21, 2009 9:35 AM

Offline
Dec 2007
218
I would agree with Kuroshiroi, randomizing the pictures would be really nice :) It needs more kittens......more kittens biting Sakaki :P
Jan 21, 2009 10:06 AM

Offline
Aug 2008
444
It has crossed my mind to fiddle with the pictures (and would give me a nice excuse to rewatch AzuDai looking for screencaps), but it's about time for a new one once I get the text right. Speaking of which I think I've got it. First time and all. Something must be wrong, it never works first time...
Jan 21, 2009 11:13 AM

Offline
Apr 2008
78
well then......i did the update / wasn't really much to do, so it didn't take me long to make it.
All new options you have right now are explained in detail in the file 'settings.php'.

Got some questions? Ask.......

Would be really great, if some of you who used this tutorial and made yourr sigs with it could send me links to your sigs. I'd make a new section where interested people could see what you are really able to do with this tutorial and how possible outcomes can look like.
So if anyone is interested in supporting this idea send me your siglink...thx
Luck is the last dying wish of those who wanna believe that winning can happen by accident, sweat on the other hand is for those who know it's a choice, so decide now because destiny waits for no man.
Jan 21, 2009 2:34 PM

Offline
Nov 2007
85
Argh this is making me really frustrated. I took the template and got ALMOST everything working. I tested the sig included in the tut and it works perfectly.



So I went in and fiddled with the settings to make them what I want, as well as add in the right alignment code. I hadn't yet fiddled with the right alignment code yet, I wanted to test it to make sure it all loaded and then edit it accordingly.

However, I get greeted with a lovely page telling me my PHP cannot be run because it contains errors. click. I go and look at the image_output.php file and it's got a lovely slew of Font errors. Click.

Warning: imagefttext() [function.imagefttext]: Could not find/open font in /home/a6529025/public_html/chie-x-hideki/image_output.php on line 16


For some reason, it seems to be trying to find the font for lines 16-18 (Anime Title, Status, and Date) as well as lines 21, 24, 25, 28, and 29 (Manga Title, Status, and Date + Right Alignment stuff) WITHIN the PHP file. lolwut? This error is NOT on the test sig, and yes my font name is correct. Here's the script, and go to here to see that the font name is correct.



Argh. Stupid Book Antiqua.
NyaChanJan 21, 2009 2:41 PM
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Jan 21, 2009 2:42 PM

Offline
Feb 2008
4295
The server is case sensitive, I'm pretty sure that includes the extension as well. Try renaming the font to bkant.ttf (all lower case) and using this line for the font:
$font = 'bkant.ttf';

If that doesn't work there might be something wrong with the actual font file.
Jan 21, 2009 2:47 PM

Offline
Nov 2007
85
kuroshiroi said:
The server is case sensitive, I'm pretty sure that includes the extension as well. Try renaming the font to bkant.ttf (all lower case) and using this line for the font:
$font = 'bkant.ttf';

If that doesn't work there might be something wrong with the actual font file.


Thanks, now it works. Now I just gotta fix all the text alignments and size. Phew. No more frustration.

edit: Here it is...



Though I have two more I wanna do cause I'm indecisive and couldn't choose between three sigs. xD
NyaChanJan 21, 2009 3:11 PM
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Pages (9) [1] 2 3 » ... Last »

More topics from this board

» Share Your YouTube Channel/Videos! ( 1 2 3 4 5 ... Last Page )

nin-tendo - Dec 16, 2022

362 by nin-tendo »»
Yesterday, 11:56 AM

» Protect or punish?

DollzchanAi - Apr 18

4 by DollzchanAi »»
Yesterday, 6:15 AM

» BL reference in Tomodachi Life

Kinspie13 - Apr 24

4 by Kinspie13 »»
Apr 24, 9:41 PM

» How to Export/Backup Your Anime List Automatically! (TamperMonkey Script)

hacker09 - May 18, 2020

3 by Vapor_AU »»
Apr 24, 8:41 PM

» advice for someone returning to art

Crystepsi - Apr 4

5 by haaku-san »»
Apr 24, 4:21 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login