Forum Settings
Forums
New
Reply Disabled for Non-Club Members
Pages (3) « 1 2 [3]
Feb 13, 2009 5:53 PM

Offline
Feb 2008
4295
Sylpheed said:
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.
That's the result of the recent changes and the error you've been having for the past day or so. Your script is fine now, refresh the page :)

Edit: Or at least I think it is, look in mal.anime.ep.php. If the id value is a number then it's fixed.
Feb 16, 2009 12:06 AM

Offline
Jul 2008
1156
Hmm, I just applied the fix (Thanks ;D) but I seem to be having the problem Sylpheed did.

I get this error -
Parse error: syntax error, unexpected '!', expecting ')' in /home/malfact/public_html/BSSv0.31/cache/Factor/mal.anime.ep.php on line 20

My id values in mal.anime.ep.php are just the names of the anime with a few letters from the beginning of the name cut off. I think it's giving me that "!" error because Toradora has an "!" in the name or something, but that's just my random guess since it's probably some PHP thing. How would I go about getting them back to numbers?
Feb 16, 2009 6:32 AM

Offline
Feb 2008
4295
Did you try deleting the mal.anime.ep.php? The fix was supposed to correct the id values and make them numbers again. You might have to delete mal.anime.ep.php and refresh a couple of times for it to register though.
kuroshiroiFeb 16, 2009 6:35 AM
Feb 16, 2009 10:19 AM

Offline
Jul 2008
1156
Whoa, I believe it just fixed itself when I sent another update through. Or it just needed a little bit of time. ^^'
Feb 16, 2009 11:20 AM

Offline
Feb 2008
4295
Probably just needed a refresh ^^
Feb 17, 2009 8:58 PM

Offline
Apr 2008
4286
Factor said:
Whoa, I believe it just fixed itself when I sent another update through. Or it just needed a little bit of time. ^^'


Lol that also happened to my sig. I thought it was a new problem since I've already applied the update.

Mar 22, 2009 3:35 PM

Offline
Jul 2008
1156
'Sup again.

Where in the script would I be able to change the 'W' and the 'C' in 'Watching' and 'Completed' to be lower case?

Thanks. ;)
Mar 22, 2009 4:39 PM

Offline
Feb 2008
4295
Well, the easiest way would probably be to use string = strtolower(string) in the script.php file.

More info: http://www.php.net/strtolower
Apr 4, 2009 8:16 AM

Offline
Feb 2008
4295
My updated script

There are a few new features, the main ones are probably full transparency support and awesome rewatching capability! Other updates are my poor man's cron job, necessary for the rotating part in my sig, and multiple instances of the same anime removal. Nothing much but at least my version works. *cough* Bard's is broken *cough*

You can also add the date instead of only the time since you watched it. The timezone is set to GMT with European style dates, i.e. 4 April 2009 instead of the US style: April 4, 2009. If you need to change it, it's in parse.class.php.
My personal feeling is that having any sort of time or date in the sig is useless anyway...

Oh yeah, I also removed the xfire and last.fm stuff, since I don't use it.

Download

This version includes a 4-way rotation featuring Mio and Kallen.
Apr 4, 2009 12:19 PM

Offline
Jul 2008
1156
Awesome, hopefully I'll get to play around with it when I get back home later next week.

What is this cron job thing though? I had an x10hosting site that just ran cron jobs, but something went a little screwy and I've been too lazy to fix it, so I've been doing it manually for a while.
Apr 4, 2009 1:17 PM

Offline
Feb 2008
4295
I meant to ask you about that, since you're running 000webhost and you don't appear to be using a .php link like me. It's not really a true cron but it's close enough. It's kind of hard to explain but basically it's just:

1. Somebody tries to download signature
2. Check if a certain time has passed since mal.cache.ep.php has been modified.
3. If time has passed run script, cache mal and generate sig. If time has not passed, just retrieve sig through php, no generating.
4. ???
5. Profit.

The only real problem is that php retrieval of the sig which might cause some extra cpu usage. That certain time is at 1 second for me but it only caches every 15 minutes. So everytime you hit refresh you get a new version but MAL should only be cached every 15 minutes. I hope I confused you some more.
Apr 5, 2009 5:48 PM

Offline
May 2008
4052
fwiw, my solution to this is to not use cron or cache checking at all (I used to, but I've commented out the time checks). The way I do it now is just to use mal updater to signal my script to update by accessing the sig's php url.

...so basically:
  • I watch an episode
  • malu accesses my script url
  • the php generates my sig image and saves/returns

Simple right? ....It's great since you only use mal's resources (and those of your host) when you are actually making an update, and there's no need for cron jobs or caching at all.

With caching or cron alone, you are basically making one update every XX minutes even if you're sleeping or on vacation, and the update might not even appear for as long as that time period when you finally do update. With malu handling the update instead, you're sure to have it updated right when you finish the episode, and only then. I found this very desirable, since my sigs tend to require processing power.... heh

The only downside of this approach is if you don't use malu exclusively, or the malu service is down for an extended period. You'd have to setup cron instead, or visit the url manually.

Also, kind of a minor note if you want to try it this way.... malu sends double the necessary update requests, since it sends an update both at the beginning and end of an episode (so you can do 'now playing'). On that first update request, MAL's rss hasn't even had time to update so you can ignore it if you want (or use it for 'now playing' until the second request comes in). I didn't want to bother with the extra logic, so I just let it update both times.

I am a banana.
Apr 6, 2009 10:56 AM

Offline
Feb 2008
4295
If I actually used malu this suggestion would be wonderful. I wonder though if xinil could add some kind of similar functionality to MAL; that's probably not going to happen, think of the all the malicious possibilities.

Your post made me re-evaluate my sig generating though, I should really just generate the two versions of my signature every 15 minutes and then retrieve one or the other through php. That might save some cpu cycles, since I seem to be getting more than 2 hits every 15 minutes.
kuroshiroiApr 6, 2009 11:07 AM
Apr 6, 2009 9:27 PM

Offline
Jul 2008
1156
@kuroshiroi - Don't worry, you didn't confuse me that much. :P
Sounds interesting enough to try out though.

The PHP Updater in Mal Updater was something I saw though, in the new version when I was doing my configurations but never got around to playing with it. I just wasn't sure what .php file I should have told it to link to, and forgot to come and ask.

How would it work in my scenario, when I'm linking to an image file, as opposed to a .php file to display my signature?
Apr 7, 2009 9:27 AM

Offline
May 2008
4052
Factor said:
How would it work in my scenario, when I'm linking to an image file, as opposed to a .php file to display my signature?


You would point malu at the php that does the update, and not the output image. When malu accesses that php url, your script should then do its thing and update your image (mine also works this way, and it's good for browser caching).

It looks like in this script, you want to point malu to refresh.php

I am a banana.
Apr 7, 2009 9:50 AM

Offline
Apr 2008
4286
@saka
Uhmm excuse me. It's a bit off-topic but how did you make your sig?

Apr 7, 2009 10:06 AM

Offline
May 2008
4052
Sylpheed said:
@saka
Uhmm excuse me. It's a bit off-topic but how did you make your sig?


I wrote my sig code from scratch, although originally I used Niroko/Talon's code as a structural reference. I've since rewritten it, but it's still a bit too messy to publish and has a lot of specific stuff that doesn't make sense for most people (half-broken gif animation methods, image montage helpers).

I keep telling myself I'll fix it up and publish it, but I'm lazy. If you want to know how I did something specific, I can share the function I used and/or explain it.

I am a banana.
Apr 8, 2009 10:31 AM

Offline
Apr 2008
4286
I'm bad with php or should I say I haven't encountered playing with it yet.

Can it be sync'd with bard's?

Apr 8, 2009 11:26 AM

Offline
Feb 2008
4295
Sylpheed said:
Can it be sync'd with bard's?
What do you mean sync'd? In any case, that's probably a very difficult question to answer. The answer is of course yes but the amount of time/effort required to accomplish that would most likely be substantial. Only saka can give you a better answer but I don't know if he knows Bard's script that well.

saka: thanks for pointing that refresh.php out, it slipped my mind. It's very handy :)
Apr 8, 2009 8:21 PM

Offline
May 2008
4052
Sylpheed said:
Can it be sync'd with bard's?


Erm.... well my sig script can do most of the things all the other scripts do, like put text on at various fonts and angles, do image overlays, etc. I don't use xml configuration files or anything so you would just make a main php file and then include the the signature class and start coding. So it can do the same things, but you'd have to recreate the signature.

I am a banana.
Apr 11, 2009 9:06 AM

Offline
Feb 2008
4295
Bugged thread fix, last page link doesn't work.
Apr 23, 2009 8:44 PM

Offline
Apr 2008
4
Thanks for the fixed script, CronJobs work flawlessly, :3 Props!

oh and here's what my new sig looks like: (see sig part)
Apr 29, 2009 5:15 PM

Offline
Feb 2009
150
I don't understand what files i'm supposed to edit :/
or what folder the images go in
Apr 29, 2009 5:26 PM

Offline
Feb 2008
4295
-DraGonZ- said:
I don't understand what files i'm supposed to edit :/
or what folder the images go in
Read the readme.pdf found here. That should hopefully explain everything.
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