Forum Settings
Forums
New
Reply Disabled for Non-Club Members
Pages (3) « 1 [2] 3 »
Sep 13, 2008 3:56 PM

Offline
Aug 2007
329
snoopygirl said:
Here is my new sig, but I will probably do some light changes. I would like to thank everyone in this club, because you made it possible. First, thanks to Bard for the script. Thanks to kuroishiroi for helping me fix it. (I had troubles with the original one). And thanks to Sylpheed and everyone who helped him, since I ran through exactly the same troubles, so I just had to follow the answers.

Thanks and yeah, tanks to kuroishiroi for helping them since I'm really short on time in those days (preparing exams while looking for a room to rent in Milan and all is killing all my free time :( ).
I hope I'll be able to start adding and fixing stuff somewhere next month.
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 4, 2008 6:20 PM

Offline
Apr 2008
4286
This script doesn't work on some hosts. Especially those whose php_curl module is turned off. It also doesn't work on wamp (with the default settings)

Also, I got a new error:
Warning: copy(resources/shared/MAL/anime/4181.jpg) [function.copy]: failed to open stream: No such file or directory in C:\wamp\www\bardscript\sig\scripts\parse.class.php on line 96

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\bardscript\sig\scripts\parse.class.php on line 91


But the script works perfectly in x10hosting but unfortunately they suspended my account. I can't continue with their rules, much of a hassle.

Oct 6, 2008 1:28 AM

Offline
Aug 2007
329
it doesn't work on hosts without cURL because it uses lots of it, I never encountered before a server without it, so I didn't even thought they'd exists :P I'll see if I can fix it to use also fopen() when cURL isn't on as soon as I get my internets back (in the university lab now :P) but don't count on it since the whole script as far as I remember works with multi-treaded cUrls.

Also, never used WAMP, also took some time to realize that it wasn't Winamp lol :D I **might** look into that too, but even that will need that those ISP guys fix mah internets first.

PS: one thing that should be clear, but I will say it anyway:
I'm in no way a good php programmer, the signature script here is actually a project I set to learn php (I found that for me the easiest way to learn a programming language is programming something more or less complex without any previous knowledge, googling for info while I script :P). That means: I'll do my best but don't expect too much :D
BardOct 6, 2008 1:40 AM
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 10, 2008 3:56 PM

Offline
Apr 2008
4286
Well, I'll just have to wait for that. The script's fine as long as I find myself a new compatible host.

Oct 15, 2008 9:41 AM

Offline
Feb 2008
4295
Bard said:
PS: one thing that should be clear, but I will say it anyway:
I'm in no way a good php programmer, the signature script here is actually a project I set to learn php (I found that for me the easiest way to learn a programming language is programming something more or less complex without any previous knowledge, googling for info while I script :P). That means: I'll do my best but don't expect too much :D
I think the main problem with your script it that it has too many features :)
The code is certainly not the prettiest I've seen but it works and it's mostly readable. Since I don't know php that was helpful.

Thanks for releasing it into the wild, I certainly appreciated it and I'm sure the others do too.

P.S. I'm a little... uneducated on the whole license issue, do I need to publish my (very slight) changes to your script or not?
Oct 15, 2008 10:44 AM

Offline
Aug 2007
329
I just put on a random one :D it should just limit you from trying to use it for commercial means or removing the original author of the work.
If you made some improvements please share them :P I want to see them too.

Anyway yes, the code is rough, my php is at a really basic level :D
But I tried to make it as clear as possibile to make it easier to fix and modify it later even if I do realize there are some more resource efficient ways to do a lot of stuff in there.
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 15, 2008 10:51 AM

Offline
Jul 2008
1156
Hmm, I'm trying to change my PHP host, but I keep running into this error(I'm trying a direct copy over, except for the "sig" folder that gets auto created):

(Here's the site - http://factor98.net46.net/BSSv0.3/ )

Warning: imagepng() [function.imagepng]: Unable to open 'sign/Factor/Factor.Kagami.png' for writing: No such file or directory in /home/a5388046/public_html/BSSv0.3/scripts/sign.class.php on line 218

I also just started to get -
Warning: mkdir() [function.mkdir]: Permission denied in /home/a5388046/public_html/BSSv0.3/cron.php on line 98

Any ideas? I've tried all I could think of, so I'm fresh out of clues.
FactorOct 15, 2008 11:10 AM
Oct 15, 2008 12:00 PM

Offline
Feb 2008
4295
Factor said:
Any ideas? I've tried all I could think of, so I'm fresh out of clues.
It's most likely a permissions problem. Try setting every folder's and every file's permissions to 777, which stands for everybody can read, write and execute.

Bard said:
If you made some improvements please share them :P I want to see them too.
My main contribution was rewriting your time function(indents fucked up):
All that code just to get rid of 1days ago :)

The other thing I did was remove the need for cronjobs by adding to the bottom of cron.php
Then I simply link directly to cron.php. The first one results in the image being called cron.php or whatever and the second one simply redirects to the created image.
I'm having difficulties with the redirect though at the moment while hosting my own and Sylpheed's sig. My own sig doesn't appear to work properly but Sylpheed's does. Don't really know the reason though.

Edit:
This is from my script.php file. This is what I did to get rid of multiple appearances of the same anime, if one is marathoning. Also, I included my solution to anime with letters that don't display properly, only entry so far is Chaos;Head:
Thank Haruhi-sama you made your script parse ids, string comparing didn't work for me. If anybody uses this solution, don't forget to change [1] to [$anime2] in $animeText later.

I also have a randomization in my sig, in case you didn't already notice:
Then the same code is repeated inside both ifs, just a different placement of Kallen and "kuroshiroi" text and color. In this case, you get to see her tattooed boobs 40% of the time I think.
kuroshiroiOct 15, 2008 12:23 PM
Oct 15, 2008 7:44 PM

Offline
Aug 2007
329
uhm the cron jobs are in place to avoid having to execute all that stuff each time someone loads an image, instead enabling direct linking of the image :P
Also so that even if a user uses different signs on different forums the database gets updated for every user and sign all at the same time.

It does pose some other issue (like server load while updating may delay the sign loading) but it does 1 cron every 15 minutes at worst against uhm... a couple of hundred a day cuz of sign views (also that way causes a 2-3 seconds delay on the loading of the sign since he has to parse everything).
I could have it execute a check before the updates when the sign get loaded but I felt it would be cleaner and faster with crons. (As a matter of fact, older version didn't use them)
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 16, 2008 1:30 AM

Offline
Feb 2008
4295
Oh, crons are a better choice but not all free hosting sites support them or support them in a meaningful way. That's the main reason I decided to go this route.
Also, if I understand your code correctly, you only parse every 15 minutes anyway, since there's a last changed check on the mal.anime.ep.php file. This means that the only thing people do most of the time when they execute is update the image, making the times correct and yours and mine sig randomize.
It's just a matter of how hard you want to rape your server.
Oct 16, 2008 9:04 AM

Offline
Apr 2008
4286
This is a bit confusing.. I can't understand all of it but I'll try.

@kuroshiroi
Nice edit you have there. I suggest you provide everyone with an edited Bardscript pack. I can only understand the lines that should be added in cron.php *dizzy*

Oct 16, 2008 9:19 AM

Offline
Aug 2007
329
yup exactly, but I wanted to avoid even the "once in a while" 3 seconds pre-loading. It's not a big deal but it bothered me. I know, by talking about it with people from this group, that there's a way to have apache doing that, but I don't know how :P
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 16, 2008 10:54 AM

Offline
Jul 2008
1156
kuroshiroi said:
Factor said:
Any ideas? I've tried all I could think of, so I'm fresh out of clues.
It's most likely a permissions problem. Try setting every folder's and every file's permissions to 777, which stands for everybody can read, write and execute.


Thanks, that did the trick. :)
Oct 16, 2008 11:27 AM

Offline
Feb 2008
4295
After looking at my own crappy code to avoid repeating anime titles I decided to redo it and I ended up redoing all of my script.php:

New features: Support for people with 3 entries or more. Since the history log only has 14 entries and sometimes people marathon more than 10-11 episodes in a row I also included a small check that makes sure your list won't end up half-empty.

Bard: Do you know how hard the performance hit is if I make the history have 30 entries instead of 14?
Oct 16, 2008 2:10 PM

Offline
Aug 2007
329
uhm... afaik the feed only has like 15-20 entries for the "last whatever", but you might want to check. It won't change a thing anyway, the list gets downloaded anyway (the major time sink is there actually) and parsing and saving the entries uses like 0.001 seconds :P
But if I'm right about the lenght of the list in the RSS feeds you'll have to script something to store the old ones and confront them with the new ones to make a longer list. That may be a bit more complicated :P
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 16, 2008 6:39 PM

Offline
Feb 2008
4295
It seems to me the feed has 50 entries now. The feed actually goes farther than the history. Xinil probably made some modificatons whenever.

There are 3 numbers that have to be edited to change the number of entries but they're in 2 different files. I'll try it and see how it goes later.
Oct 16, 2008 8:20 PM

Offline
Aug 2007
329
well well, if the feed is that long there should be no problems, just a couple of loops to fix.
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 17, 2008 3:08 AM

Offline
Feb 2008
4295
Well, I already made the modification and so far I haven't seen any change in performance. I think the only possible problem is people who haven't watched 50 episodes in the last... 2 months, but those people don't need a php sig anyway :)

I know this because I tried 60 first :) and got a parse error, meaning people with fewer than 50 would also get this error. So I had to fix it...

Anyway, changes to parse.class.php:

and changes to cache.class.php

Basically there was a parse error for the episode and id values so I had to fake a value there.

So if there is a v0.4 or something, maybe you can incorporate something similar. There's no reason to let the feed go to waste :)
Oct 17, 2008 4:50 AM

Offline
Aug 2007
329
while I'd love to make more versions of this at the moment I barely have time to watch anime to put in that sign anyway (notice also that my signature is broken since dunnowhen and still haven't had even enough time to fix that :P)
But yeah sounds like a good idea.
Needs to fix this sometime but I'm lazy - since 11/05/2009
Oct 24, 2008 1:41 PM

Offline
Feb 2008
4295
Rewatching fix (since the feed doesn't specify rewatching as the status):
The first 5 lines are the same as used before for more entries in the cached history.

Bard: It's probably good that your script isn't 1.0, since I'm always adding some OCD stuff to it :P
Oct 25, 2008 8:52 PM

Offline
Jul 2008
1156
I got a quick question about fonts.

So, if I type out a font in Photoshop, it'll come out something like so:



but when I upload it, and put it into the code it comes out like:



Is there any way to get the font to look like the first image, or is that just how it's going to come out regardless?
FactorOct 25, 2008 10:18 PM
Oct 26, 2008 4:33 AM

Offline
Feb 2008
4295
Have you tried using it twice in exactly the same location? It seems kind of vague, blurry, transparent.
If that doesn't work, you could try making the font a little bit larger.
Oct 26, 2008 12:47 PM

Offline
Jul 2008
1156
Hmm, it definitely looks better now even though it's just a little bit off. I suppose I can live with it. =)
Oct 27, 2008 7:09 AM

Offline
Feb 2008
4295
So what did you do anyway? It does look much better :)
Oct 27, 2008 12:38 PM

Offline
Jul 2008
1156
I just have two entries in the same exact spot. =P


Nov 9, 2008 7:55 PM

Offline
Apr 2008
4
Working GREAT for me, except CRONJOB wont work, it gives me a load of errors, such as:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/rylea512/public_html/2dum2kno/SignatureStream/2Dum2Kno/scripts/user.class.php on line 11

so im slightly confuzed
Nov 9, 2008 10:37 PM

Offline
Apr 2008
4
My Result of working with the script for 2 hours.

Nov 10, 2008 10:14 AM

Offline
Feb 2008
4295
Just a friendly reminder before a mod deletes your sig, the maximum allowable height is 140px, not 200px like you have.

If you want to fix that missing * in Lucky*Star you might benefit from one of my earlier posts on troublesome characters in anime titles. Post #64.

Other than that, it's looking good. Just illegal and buggy :)
Dec 15, 2008 5:08 PM

Offline
Jul 2008
1156
Hmm, would anyone have any idea of how to get the updates to look like:

Darker than BLACK(12/25)

into one single line?

Right now, I'm doing it a little ghetto and I just have two different lines of text next to each other, so it looks fine with a title of that size or bigger but kinda lame for something short.

Whenever I manage to not get an error, the text cut's itself off(At Bl of Black in this case) then puts an ellipsis.

Here's what my code looks like


The closest I have gotten to actually have it work was to put -

$animeText->addText(-1,138,$epi[0],$info[0]);

but, again, it trims itself so I don't really know if it worked or not.
Dec 15, 2008 5:20 PM

Offline
Feb 2008
4295
Fast response is fast.

$epi[0].$info[0] in $animeText should do the trick. Note the dot and not comma.
Dec 15, 2008 5:46 PM

Offline
Jul 2008
1156
kuroshiroi said:
Fast response is fast.

$epi[0].$info[0] in $animeText should do the trick. Note the dot and not comma.


Wow, that was fast.

Looks like it's working, thanks. ;D
Dec 16, 2008 1:59 AM

Offline
Feb 2008
4295
Well, you are beating me in FAL so I gotta do something to look less pathetic. orz

How is that qupis host treating you?
Dec 16, 2008 1:08 PM

Offline
Jul 2008
1156
Haha, nice to see that I'm not alone at the bottom. Only one person stands between us. =p

Qupis is actually doing really well, it's been almost a month and I've only seen it go down once for about 10 minutes or so.
Dec 19, 2008 2:24 PM

Offline
Feb 2008
4295
Just a heads up, it seems Xinil is doing something to the way manga stats are displayed on the profile so the script seems to be failing because of it. If it happens to anybody until I (or hopefully Bard) can find out more about it, just manually edit the mal.profile.php so that the manga stats have actual numbers and not just a comma. That should fix it for now.

More later.
Maybe a fix, don't do anything yet: in parse.class.php change one line in:
public function parseMalProfile($content)

$statsreg = '/>Anime Stats</div>(.*)Random Anime/'; -->
$statsreg = '/>Anime Stats</div>(.*)Random Manga/';

That should take care of it.

Edit: Yup, works fine. Sylpheed seems to have encountered this error already so I guess Factor is next :)
kuroshiroiDec 20, 2008 5:29 AM
Dec 20, 2008 7:01 AM

Offline
Jul 2008
1156
kuroshiroi said:

Yup, works fine. Sylpheed seems to have encountered this error already so I guess Factor is next :)


And here I was wondering why I suddenly started to get an error.

Nice foresight and fix. ^^b

Dec 20, 2008 2:27 PM

Offline
Oct 2007
163
Started to try out a PHP sig and I hit trouble lol
Anways, whats this bit for?
/usr/bin/lynx -source http://www.yourwebsite.com/path/to/cron.php
It says that it is a command for Cron Job...

::EDIT::
I think I got it now

Now to try and get the info working >.>;

I need a good place to do the Cron Job thing :s
This is hard indeed. lol
TEH_GEASSDec 20, 2008 7:31 PM
Dec 24, 2008 5:59 AM

Offline
Feb 2008
4295
Another headphone lover? :)

http://cronjobs.org/ apparently offers good free cron jobs. I haven't tried them though.
Dec 24, 2008 2:32 PM

Offline
Oct 2007
163
kuroshiroi said:
Another headphone lover? :)

http://cronjobs.org/ apparently offers good free cron jobs. I haven't tried them though.


XD Headphones!

Cronjobs.org I tried, I don't know 100% how to use it ._. (I think I just have to activate it now).

It only lasts 4 days without pay, any longer would require payment. Its not a problem. still looking for a better one ^^

Thanks for the help :D
Jan 6, 2009 7:05 PM

Offline
Feb 2008
480
thanks to Bard for the script and Kuroshiroi for helping me out a ton, finally got my sig working :D
Jan 6, 2009 7:21 PM

Offline
Feb 2008
4295
I better post this here...
Poor man's cron job for use with hosts such as 000webhost that don't support cron jobs with this script:
Then just link to this php file and use the img tags, like so:
[ img ]http://kuroshiroi.net78.net/yomisig/yomi.php[ / img ]

This reduces the amount of crap the webserver has to run before it displays the sig, doesn't generate a new sig every time and as far as I can tell it takes the same time as just downloading the sig itself. There's still that caching that has to be done every 10 minutes or so but who cares... just make sure the refresh time in cron.php is the same as this one.

Bard: Do you mind if I release a fixed and condensed version of your code? Basically I removed the LFM and XFire stuff and added some other stuff such as rewatching, alpha transparency, fixed the time function, added a date option (i.e. 07 Janury 2009) etc.
Jan 6, 2009 7:23 PM

Offline
Jul 2008
1156
kuroshiroi said:

Bard: Do you mind if I release a fixed and condensed version of your code? Basically I removed the LFM and XFire stuff and added some other stuff such as rewatching, alpha transparency, fixed the time function, added a date option (i.e. 07 Janury 2009) etc.


/supports

:D
Jan 8, 2009 10:54 AM

Offline
Apr 2008
4286
kuroshiroi said:

Bard: Do you mind if I release a fixed and condensed version of your code? Basically I removed the LFM and XFire stuff and added some other stuff such as rewatching, alpha transparency, fixed the time function, added a date option (i.e. 07 Janury 2009) etc.


Also supporting ^^

Jan 17, 2009 6:30 PM

Offline
Aug 2007
329
god ask me on MSN or message :D
of course I don't mind, I'm not working on that anymore, you can takeover all oll.
Needs to fix this sometime but I'm lazy - since 11/05/2009
Jan 18, 2009 10:23 AM

Offline
Feb 2008
4295
Nah, I don't believe in PMs or msn ;) I also thought you had this thread on ''My Watched Topics', like I do, oops. No matter, no urgency.

I'm kind of thinking that releasing it is unnecessary, for most people this script is way too complex and it seems shiteiru's script is doing the job for most people. Yours has the multiple signatures/users thing so maybe I should, at least for the couple of bug fixes.
Jan 23, 2009 5:31 PM

Offline
Jul 2008
302
Had to say, Thanks SO much Bard for your php script ... it works really well :) <3
Website http://akariREMOVED.co.cc/sig/sig.php is reporting as Malware.
Jan 25, 2009 5:23 PM

Offline
Jul 2008
1156
Yay, I'm back with another question.

Recently, my cronjob doesn't seem to be working properly. I haven't touched the settings since I set it up a few months back, and I set another one up at cronjobs.org just to make sure. In order for the updates to work, I have to go in and hit the cron.php manually.

What I think makes this interesting, is the set of errors I retrieve when I go to do it. If there were no new updates, I would just get shown a blank screen and that's it. However, when I do have a new update it goes shows me this:



The signature still goes through with the update, and if I refresh the page all the errors will disappear until another update is ready to go through. I think it's just probably something stupid that I'm missing, but after fiddling around I can't seem to find the source of the problem.


Edit: Problem is fixed, got help from kuroshiroi.
FactorJan 30, 2009 10:22 AM
Feb 12, 2009 4:10 PM

Offline
Feb 2008
4295
Yet another bug fix due to some changes to the RSS feed. Maybe Xinil will revert them, I don't know. I know Sylpheed and Factor have already been affected :)
-------------------------------------------------------------------------------------------
Go to parse.class.php and find the function parseMAL.

Find this line:
preg_match('/(.*) - /', $this->content['description'][ $i+1 ], $status);
and add this line below it:
preg_match('/([0-9]{1,5})/', $this->content['link'][$i+1], $id);

Then change this line:
'id' => substr($this->content['link'][ $i+1 ],36),
to this:
'id' => $id[1],

That should take care of it
Feb 12, 2009 5:05 PM

Offline
Apr 2008
4286
@kuroshiroi
Thanks for the updates again ^^

I think we should compile all your edits in one post or in a blog. I keep on referring those asking how to make a php sig to this thread.

Feb 12, 2009 5:17 PM

Offline
Feb 2008
4295
Sylpheed said:
I think we should compile all your edits in one post or in a blog. I keep on referring those asking how to make a php sig to this thread.
I should probably just release my edited version, less hassle.

I may do it this weekend, we'll see.
Feb 13, 2009 5:32 PM

Offline
Apr 2008
4286
Another weird problem. My webhost seems fine, though


Parse error: syntax error, unexpected '~', expecting ')' in /home/a2310517/public_html/sylpheed/cache/sylpheed/mal.anime.ep.php on line 50


I did not edit anything and just came up with this error. I also have just applied the recent fix.

Reply Disabled for Non-Club Members
Pages (3) « 1 [2] 3 »

More topics from this board

» saka's minimal signature script (with merged anime/manga feeds) ( 1 2 3 4 5 ... Last Page )

saka - May 10, 2009

430 by Mathes »»
Oct 5, 2017 2:43 PM

» Scripted Signature Showcase

KHobbits - Jul 9, 2008

23 by KHobbits »»
Oct 21, 2014 6:42 PM

» MAL Signature Designer

Apocist - Mar 11, 2014

10 by Apocist »»
Aug 6, 2014 3:01 PM

» iSignature

i906 - Dec 11, 2009

9 by USKurosaki »»
Apr 10, 2013 8:40 PM

» Animated Signatures

koleare - Jan 3, 2013

1 by Rezurrekt »»
Jan 10, 2013 4:13 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login