Forum Settings
Forums

Tutorial: Generating scripted-signatures (Version 2)

New
Pages (9) « 1 2 [3] 4 5 » ... Last »
Feb 14, 2009 3:01 PM

Offline
Feb 2008
64
Thanks :3 This was helpful!!


When life gives you a hundred reasons to cry, give it a thousand reasons to smile. =]
Feb 14, 2009 3:19 PM

Offline
Apr 2008
78
hm don't know whats up you sigs. i tried version 2 just a few secs ago and it all worked fine...
actually the xml of the rss feed seems unaltered, so it should work fine........
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.
Feb 14, 2009 3:45 PM

Offline
Sep 2008
630
ehrgeiz said:
hm don't know whats up you sigs. i tried version 2 just a few secs ago and it all worked fine...
actually the xml of the rss feed seems unaltered, so it should work fine........


heres the answer to things
http://myanimelist.net/forum/?topicid=7256&show=700
Feb 19, 2009 2:17 PM

Offline
Apr 2007
220
Question? Is it possible to make a border arround the text/font or isn't it posible on this script ?
.......
Mar 9, 2009 12:36 PM

Offline
Feb 2009
547
OKay sorry for asking this but i am total noob at this >.<

So i followed everythig what you said and i got exactly this >.>



SO i thought okay , what now >.<
I have insert the cronjob now ,, I think 0.o
At 000webhost.com it has a cornjob and i choose that one and redirected to
dhpd.comli.com/signature/sig.php >.<

Okay so i dont see any text if i go to dhpd.comli.com/signature/elfen-lied.png
And i get th error if i go to dhpd.comli.com/signature/sig.php

So what now ?!

This is the sig that i want to use and i also want the titel of the anime above the recutangler and i want the episode text in the recutangler


Hope you understand me =P
Mar 10, 2009 2:38 AM

Offline
Nov 2008
103
I found the code for a random background image in the other topic, but where does that code go in the V2 script?

Also, how do I set it up to display Re-watching (instead of completed like now)?

Also also, if the service is down (which MAL is having quite a lot lately) how can I make it display a general error message?
Joe4evrMar 10, 2009 9:25 AM
Mar 10, 2009 8:05 AM

Offline
Feb 2008
2028
Is there a way to set it to use the time based off the RSS feed for updates, rather then using the ones from here?. Ive tried those but it sets it to PST i think.
Mar 10, 2009 12:56 PM

Offline
Nov 2007
85
Joe4evr said:
I found the code for a random background image in the other topic, but where does that code go in the V2 script?

Also, how do I set it up to display Re-watching (instead of completed like now)?

Also also, if the service is down (which MAL is having quite a lot lately) how can I make it display a general error message?


Since I've done it before, here's the answer:

Take Kuroshiroi's Code. The second portion of code ($num=...) needs to go before the Copy code as a note. I think in mine it's before the text code as well.

Anyways, in the function, the "case #:" is what your randomization options are. They start from 0 and go up as high as you want. In each "case" you need to specify what it is that's being randomized. Since you're doing the background, you'd do something like this:

case 0:
$image = imagecreatefrompng ('image.png')
break;

After that, you would copy-paste and change the case number as well as the image file for each case. Also make sure to set a default at the end (Can just be one of the cases).

When you're all done making the cases, you've got to change "$num = rand(0,2);" to the appropriate numbers. The first number (0) is where it will start picking random options from. The second is where it will end. In the example code, it will randomize from case 0 to case 2. If you've got 10 cases (0-9) you would have "$num = rand(0,9);".

Also, both my iDOLM@STER and Persona 4 Make that all my sigs on V2 (Earlier Version) have broken (My single V1 sig still works). :/ They work except they aren't reading the RSS or something. Anything I can do for it? [edit] Should I update to a newer version of the code?
NyaChanMar 10, 2009 1:07 PM
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Mar 10, 2009 5:54 PM

Offline
Mar 2008
19
Ok! Im a nub at this but i want to have text crossing over each other like in cyruz sig


so i got 2images the main image called ttd12.png and the second which is ttd12bar.png which will have the top layer of text for example. what code to i need to change

my head is fried trying to work it out so if anyone could help that be great
Mar 11, 2009 12:33 AM
Offline
Jul 2008
3032
when i try to parse recent manga..i get watching 2 of ? chapters, even if i set reading in my settings. Why?
MeriMar 11, 2009 1:11 AM
Mar 11, 2009 2:30 AM

Offline
Nov 2006
5545
NyaChan said:
Also, both my iDOLM@STER and Persona 4 Make that all my sigs on V2 (Earlier Version) have broken (My single V1 sig still works). :/ They work except they aren't reading the RSS or something. Anything I can do for it? [edit] Should I update to a newer version of the code?
Watch an episode of anime and it should be fixed. All sigs were affected by the crash because our anime histories were deleted; thus, the sigs have nothing to show. It's strange that your earlier sig still works, though . . .

I can't remember if your sig listed anime or manga, though. If it listed manga, nothing should be wrong on MAL's end.
Mar 11, 2009 4:09 AM

Offline
Apr 2008
78
@Meri:
the watching thing is caused by the rss-manga-feed.......its watching not reading there.
Should work if you set: $episodes_custom_look="1",

If not it may be a code issue.
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.
Mar 11, 2009 4:17 AM

Offline
May 2008
902
thank you for this nice tutorial. I'm going to try this out when I have the time :)
Mar 11, 2009 4:53 AM
Offline
Jul 2008
3032
ehrgeiz said:
@Meri:
the watching thing is caused by the rss-manga-feed.......its watching not reading there.
Should work if you set: $episodes_custom_look="1",

If not it may be a code issue.


i've set this $episodes_custom_look="1", and it doesn't work. the problem is that it stopped working even for the recent anime. and it worked fine this morning. this happened after i re-uploaded sig.php and settings.php from the 1st page of this thread.
Mar 11, 2009 5:16 AM

Offline
Nov 2008
103
NyaChan said:
case 0:
$image = imagecreatefrompng ('image.png')
break;
So, just for confirmation, this goes in place of the $image statement?
Mar 11, 2009 5:25 AM

Offline
Apr 2008
78
it seems that due to the recent breaks of mal this thread has been set back to an older version.
So the version you downloaded is an older one.
I updated the links now. You will have to redownload and install again. Everything should work then.

@joe: that's it
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.
Mar 11, 2009 5:35 AM
Offline
Jul 2008
3032
it works for anime now..thanks....this custom look, but it doesn't work for manga.
i've put this:
$custom_episode_look = "1"; in manga settings but it doesn't work :(
Mar 11, 2009 8:03 AM

Offline
Apr 2008
78
well well

this has been a tough cookie.......
it seems that i overestimated the rss-feed and blindly trusted in my thought patterns without looking thoroughly through the source code of the feed.

Due to this i had to rewrite some parts of the parsing process, using more complex logic to sort things out.
As far as i have tested the script, it should work right now as intende.

Try it and let me know.

Download: http://malacant.ma.funpic.de/sigv2.zip

Have fun.
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.
Mar 11, 2009 8:36 AM

Offline
Nov 2007
85
windy said:
I can't remember if your sig listed anime or manga, though. If it listed manga, nothing should be wrong on MAL's end.


Current on here had one update of each (Recent Manga By Chap, Recent Anime by Ep), and my iM@S one had two Anim by ep and 1 manga by chap. :/ My old sig actually read ONLY anime, which makes it even weirder.

@Joe4evr: For mine I left in the $image statement, and had the random code following it. It still ran fine. :P

@ehrgeiz: Once I get home I'll rework my sig (can't code from school >_>) and hope it works again. xD
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Mar 11, 2009 8:40 AM

Offline
Feb 2009
547
Nice Now i know why the text wouldn't show up
cause if i replaced the



then the text doesnt show up 0.o
But if i then insert a cronjob will the text appear ?

Mar 11, 2009 10:21 AM
Offline
Jul 2008
3032
ehrgeiz said:
well well

this has been a tough cookie.......
it seems that i overestimated the rss-feed and blindly trusted in my thought patterns without looking thoroughly through the source code of the feed.

Due to this i had to rewrite some parts of the parsing process, using more complex logic to sort things out.
As far as i have tested the script, it should work right now as intende.

Try it and let me know.

Download: http://malacant.ma.funpic.de/sigv2.zip

Have fun.


sorry to put you through all this work but it's 'Huston we have a problem' situation again :)
when i try to parse this:
2=recent manga
or this
3=recent manga by chapter
i get a blank sig
Mar 11, 2009 10:27 AM

Offline
Nov 2008
103
Random background image, check. Now for my other two questions:

How do I set it up to display Re-watching when I'm re-watching a show?

And if the service is down, how can I make it display an error message?
Mar 11, 2009 10:53 AM

Offline
Mar 2008
19
any idea's of what I'm doing wrong ?


Would i have to do it this way
# 1st layer: background image
# 2nd layer: Animetext (on background image)
# 3rd layer: foreground image
# 4th layer:animetext
then use imagecopy (or imagecopymerge) ?
EternalChaosMar 11, 2009 10:58 AM
Mar 11, 2009 11:13 AM

Offline
Aug 2007
9
Hey,
Before the forum was down, somebody posted a script with which you could create something like an 'outer glow' in photoshop around your text.
Unfortunately the forum went down and the post got deleted before I had the time to copy the code. I don't know who posted it, but if you read this, would you be so kind to post that code again?

Thanx in advance
Mar 11, 2009 3:19 PM

Offline
Apr 2008
78
hopefully the issue with reading and watching is fully fixed now.
Download from the link i posted above or from one of the download links from my initial post.


How do I set it up to display Re-watching when I'm re-watching a show?

Download the newest version. The newest version automatically checks is you rewatch a series and gives you the ability to display this. However you have to set: $custom_episode_look = "1"; for this to work.


And if the service is down, how can I make it display an error message?

You would have to setup a new if clause e.g. in 'image_output.php'
said with pseudo code:

<pre>
if( x == NULL){announce that mal is down}
else{output everything as usual}


@chaos:
imagealphablending($dest,$src,true);
imagesavealpha($dest,$src,true);
////////////////////////////////////////

this wont work; you'll have to do it like this:
imagealphablending($dest,true);
imagesavealpha($dest,true);
imagealphablending($src,true);
imagesavealpha($src,true);
////////////////////////////////////////

also: you should choose imagecopymerge over imagecopy like so:
imagecopy($dest,$src,0,0,0,0,600,140,100) ;//the last number (here 100) sets the alpha of the image beeing merged with the background
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.
Mar 11, 2009 4:32 PM

Offline
Mar 2008
19
Thanks ehrgeiz work great now

I found out that if ur using 24bit png with transparency imagecopymerge made parts of $scr that were transparent go black, so in the end i had to use imagecopy

I forgot to ask how do i attach the date to the end of the status?
EternalChaosMar 11, 2009 6:49 PM
Mar 12, 2009 1:16 AM
Offline
Jul 2008
3032
i wish i could say everything is fine now but it's not :(
when you try to parse recent manga by chapter you get completed status, even if your only reading 3rd chapter...

Mar 12, 2009 2:47 AM

Offline
Nov 2008
103
ehrgeiz said:
Download the newest version. The newest version automatically checks is you rewatch a series and gives you the ability to display this. However you have to set: $custom_episode_look = "1"; for this to work.
I have custom look on, and settings has a line for re-watching, but it doesn't work. Does sig.php need an extra line or something?

I do have the error message put in now, still need to test that, though.
Mar 12, 2009 10:00 AM

Offline
Mar 2008
19
Is this right ? I'm trying to align $date next to $status
Mar 12, 2009 12:56 PM

Offline
Apr 2008
78
newest version to download: http://malacant.ma.funpic.de/sigv2.zip
----------------------
This will be the last version for some time, cause i have to attend other thins. So even if it doesn't work correctly you'll have to get along with it for a while ^^
Anyway you could just grade down to version 1 and gradually implement the things you'd like to have built in.
---------------------
Issue with reading and watching and other false outputs should now be gone. If not i'm gonna kick that stupid rss-feed.

@joe: rewatching should work. At least i tried it myself and it just worked fine. There are no further lines of code needed.
........................

and to that box thing......i honestly don't have any idea if its right or wrong, cause i never tried this thing out by myself. Would have to test it to see if it works.
--------------------------
btw...where has that dygnatus thing gone? come back here ^^
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.
Mar 12, 2009 1:28 PM

Offline
Nov 2008
103
Still refuses to work. I've tried parsing the other feeds, to no avail. I have no idea what could be the problem here.
Mar 13, 2009 12:32 AM
Offline
Jul 2008
3032
ehrgeiz said:
newest version to download: http://malacant.ma.funpic.de/sigv2.zip
----------------------
This will be the last version for some time, cause i have to attend other thins. So even if it doesn't work correctly you'll have to get along with it for a while ^^
Anyway you could just grade down to version 1 and gradually implement the things you'd like to have built in.
---------------------
Issue with reading and watching and other false outputs should now be gone. If not i'm gonna kick that stupid rss-feed.


thanx ehrgeiz you've done more then enough, it's really nice of you. parsing recent manga by chapter works fine now...custom look is apparently not available for manga in this version..i cant get it to work no matter what i try. But then again it's not that really needed anyway. Thank you for all your hard work :D

@Joe
Re-watching really doesn't work, and it used to. i really don't have any idea why.
I just tried it and it says completed ...
Mar 13, 2009 8:32 AM

Offline
Feb 2009
547
Wohoo my first php sig =D

Mar 14, 2009 1:44 PM

Offline
May 2008
24
Okay. So I haven't worked with php before, so if I'm just being stupid, I apologize now.

I read the tutorial, edited the text (not the sig.php, but just where the tutorial said), uploaded my files onto 000webhost, did the chmods and everything, and tried the myurl/sig.php. I got the error "The Image cannot be displayed because it contains errors." Well, as the tutorial said, I instead tried myurl/sig.png. The image came up, no problem. So I went to my mal profile page to link the sig and whatnot, hit preview sig, and nothing came up.

Not quite sure what went wrong but I'm don't really know where to go from here. Any help would be great. Thanks.
Mar 14, 2009 1:54 PM

Offline
Feb 2009
547
was the same from me
you did this >>



if you dont do that then the "The Image cannot be displayed because it contains errors."
shouldn't appear...
Mar 14, 2009 2:10 PM

Offline
Aug 2008
2262
or you just didnt use the {img}the url to the sig {/img} form ( where { } is [ ] )
Mar 14, 2009 6:24 PM

Offline
May 2008
24
Thanks a lot. I'll go try that right away. ^_^

And Yeah, I did the {img} bit. Actually, I copied the original mal sig line and simply replace the mal url with my url.

Okay, turns out, I typed the font name as it appeared in the windows file, but when I uploaded it, the name changed to all caps. >.< I get the dunce cap for the day.
FeythMar 14, 2009 6:42 PM
Mar 15, 2009 11:27 AM
Offline
Jul 2008
3032
Why does this rewatching business doesn't work?
is there a problem here:


or somewhere else in sig.php??
Mar 16, 2009 5:17 AM

Offline
Apr 2008
78
fixed it

download: http://malacant.ma.funpic.de/sigv2.zip
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.
Mar 16, 2009 5:30 AM
Offline
Jul 2008
3032
ehrgeiz said:
fixed it

download: http://malacant.ma.funpic.de/sigv2.zip


works now :D thanks you deserve a free glomp :D
Mar 17, 2009 3:59 PM

Offline
Nov 2007
85
Argh. got around to trying to fix mine. Using 5 = Recent anime and manga by episode does not work. Whenever you get the chance to fix it, please do.

However... 4 seems to work that way?



Weird.

edit: Seems that's the fix. Changing 5 --> 4 on my settings for what it's parsing fixes them all. xD
NyaChanMar 17, 2009 4:04 PM
I am mongeesubs. If you can time/typeset and want to help sub Youkai Watch, let me know~
Mar 21, 2009 11:51 PM

Offline
Mar 2009
205
Hey Can anyone help me.I'm trying to add outline to my text and some guy gave me the script, but I don't know where to put it.He is using version 1 and I'm using version 2...Can anyone tell me where must I put this code and what I must change?

Apparantly Kimi to Boku will always be my last-anime-watched, until you check my profile :3~


Mar 22, 2009 2:45 AM

Offline
Jun 2008
58
Okay, I haven't seen this problem addressed anywhere, but I'm hoping someone can help me out. I just finished my first php sig using this tutorial - I loaded it up, went to check it out in Mozilla and it looked fine. Yay! Then, I was doing some stuff in IE and discovered that the sig can't be seen there - I'm just getting a "missing image" box (that little red X).

Curious, I took a look on Netscape, too - no sig showing there either. *sigh*

So, I know I've probably just missed a step somewhere and I admittedly have absolutely no knowledge of php, but can anyone tell me why this is happening and/or how to fix it?

Thank you so much! :)

EDIT: Here's where it's located: http://purpledragon42.netau.net/signature/sig.php

Hmm...although now I'm thinking it might be some strange sort of host issue...when I enter the address into Netscape or IE I get redirected to a page saying that my site is being check for "malicious content". What's odd is that I don't get a message like then when using Mozilla...which doesn't really make any sense to me.

EDIT 2: Yeah, okay, it looks like it really was just a host issue. *sighs* Sorry for panicking before checking everything out thoroughly first. And thanks to LordKail for jumping in so quickly to try and help. :)
purpledragon42Mar 22, 2009 5:02 AM
Mar 22, 2009 3:38 AM

Offline
Mar 2009
205
purpledragon42 said:
Okay, I haven't seen this problem addressed anywhere, but I'm hoping someone can help me out. I just finished my first php sig using this tutorial - I loaded it up, went to check it out in Mozilla and it looked fine. Yay! Then, I was doing some stuff in IE and discovered that the sig can't be seen there - I'm just getting a "missing image" box (that little red X).

Curious, I took a look on Netscape, too - no sig showing there either. *sigh*

So, I know I've probably just missed a step somewhere and I admittedly have absolutely no knowledge of php, but can anyone tell me why this is happening and/or how to fix it?

Thank you so much! :)


It would be good If you gave a link to your sig so we can see If it works in our IE or Netscape :)

EDIT:
Since you edited your post I am gonna edit mine too.Anyway for me the picture is perfectly seen in any browser IE/Mozilla/Opera.I guess it's something strange with your IE or Netscape settings since IE and Netscape use almost same settings.
LordKailMar 22, 2009 3:53 AM
Apparantly Kimi to Boku will always be my last-anime-watched, until you check my profile :3~


Mar 22, 2009 4:22 AM

Offline
Jan 2008
419
Wah~ T~T sry for such a stupid question but I'm a Noob and didn't get the ''Setting up the script'' part ><
I use 000webhost.com like said in the first post. Set the chmods:
http://i41.tinypic.com/2nu4vmt.png
Don't know what exactly I should write in the url: 'yoursite.com/signature/sig_creator.php'
''signature''? And where does the sig_creator come from >< don't have the php file.
Aaaand... don't know what I should do with the ftp-client. Here: ''Fire up your ftp-client and upload all the files to your webspace.''
Sigh ._.
Mar 22, 2009 5:18 AM

Offline
Mar 2009
205
Nim.I didn't understand the part yoursite.com/signature/sig_creator.php also, but all I did was.(Since your using same webhost as mine,)
1)Go into public html folder because in your pic,it shows that you uploaded all files in the folder where it says DO NOT UPLOAD HERE.
2)In public html folder create another folder (like ''signature'')
3)Upload all the files you need in the ''signature'' folder.
4)If you made a folder called Signature then your link to your sig will look like that: http://mageofpower.comze.com/Signature/sig.php
5) Fire your ftp-client means you gotta open it,Connect to your webserver and upload all files into direction like public html/Signature(or any other name,depends on how you named it) and then go to the link i gave you (http://mageofpower.comze.com/Signature/sig.php)

Lets hope that was some help xD
Apparantly Kimi to Boku will always be my last-anime-watched, until you check my profile :3~


Mar 22, 2009 5:22 AM

Offline
Jan 2008
419
LordKail said:
Nim.I didn't understand the part yoursite.com/signature/sig_creator.php also, but all I did was.(Since your using same webhost as mine,)
1)Go into public html folder because in your pic,it shows that you uploaded all files in the folder where it says DO NOT UPLOAD HERE.
2)In public html folder create another folder (like ''signature'')
3)Upload all the files you need in the ''signature'' folder.
4)If you made a folder called Signature then your link to your sig will look like that: http://mageofpower.comze.com/Signature/sig.php
5) Fire your ftp-client means you gotta open it,Connect to your webserver and upload all files into direction like public html/Signature(or any other name,depends on how you named it) and then go to the link i gave you (http://mageofpower.comze.com/Signature/sig.php)

Lets hope that was some help xD


Thank you <3
Will try it later. Need a break xD

Edit: It's working now~
Thank you x3
NimMar 22, 2009 6:21 AM
Mar 22, 2009 9:01 AM

Offline
Jan 2008
419
I tried to make my own signature and at first I just changed the picture of the Tutorial.
Looks like this now: http://nim.netau.net/LuckyStar/sig.php
How can I change the position of the text?

Edit:
Never mind xD found it.
NimMar 22, 2009 9:49 AM
Mar 22, 2009 10:06 AM

Offline
Mar 2009
205
Gratz,Will be looking forward to see your sig :P
Apparantly Kimi to Boku will always be my last-anime-watched, until you check my profile :3~


Mar 22, 2009 10:13 AM

Offline
Jan 2008
419
LordKail said:
Gratz,Will be looking forward to see your sig :P


Ok :3

One last question. There is a ''@'' in front of the ''watching'' and ''reading'' part. Dunno how to remove it.
And the # behind the episodes I watched.
Pages (9) « 1 2 [3] 4 5 » ... Last »

More topics from this board

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

nin-tendo - Dec 16, 2022

594 by nin-tendo »»
5 minutes ago

» MY ANIMATED SHORT FILM

DiscloSalilokui - 34 minutes ago

0 by DiscloSalilokui »»
34 minutes ago

» Made a wordless comic

nanisukoshi - Oct 6

6 by nanisukoshi »»
1 hour ago

» Sort List by Popularity

Ktran - Jun 21, 2021

15 by Retro8bit »»
Yesterday, 7:18 PM

» [UserScript] MAL Date Fixer ( 1 2 3 )

NurarihyonMaou - Jan 4, 2021

110 by Retro8bit »»
Oct 7, 8:51 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login