Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 15328 ideas, 75068 comments, 1387413 votes

Idea #6115: Make the Ubuntu countdown in PHP (Gd for instance) instead of Javascript



up
61
down
Written by neotenshi the 30 Mar 08 at 19:32. Category: Marketing.
Related to: Nothing/Others. Status: New
Description
Make the countdown to Ubuntu releases be considered as an image (e.g. using PHP and GD or some other library) instead of Javascript. The advantages of doing so are :

1) no need of Javascript : because the countdown is treated as an image, people whose Javascript is disabled (or unavaible) are still able to see it
2) easier to include : at the moment it is impossible to add the countdown in phpBB forums for instance, because phpBB doesn't allow Javascript scripts from users. Using a graphical library instead makes it easier to include in every type of page

Plus, this doesn't seem very difficult to make, nor does it seem ressources-greedy
Tags: (none)

Attachments
No attachments.


Duplicates


Comments
Eldmannen wrote on the 30 Mar 08 at 20:57
Yes, or some cron script that daily do;
cp ubuntu_days_left_$date.png ubuntu_current.png

DJ_Peng wrote on the 30 Mar 08 at 21:18
It could still be as useless as the JS version for those of us with WordPress.com. We need something for those of us who are unable to pay for our own hosting and have to use partially closed solutions. (Closed for their own protection as well as ours, and I don't blame them one bit.)

maix wrote on the 30 Mar 08 at 21:54
I share your opinion, but the problem seems to be that the file might be cached if it has the same name all the time, so users will never see the file.

But the other way around would work: The image url is dynamically set by a script. But that'd only work if you already use php or something else for your site, not with static html pages or in blogs. And it's more difficult to do.

legato.di wrote on the 9 Apr 08 at 08:48
It doesn't work for LiveJournal also.
Hey, why not upgrade the coundown image itself? I mean, give it static adress like http://www.ubuntu.com/files/countdown/804/partner/804countdown.jpg
and just update it. It works fine everywhere.

neotenshi wrote on the 12 Apr 08 at 17:17
Yes but this doesn't work if the image is cached : the user has to delete the cached files in order to see the right countdown (otherwise, it's always the cached image which is displayed). It's the problem if you use a static url (by using a cron task for example)

By using PHP and GD, I think the image generated isn't cached, because the goal of GD *is* to be able to make dynamic images. This needs a little more server ressources (because the image has to be created on each load), but we don't have the problem of the cache

DJ_Peng wrote on the 2 Oct 08 at 20:35
I seem to remember having a widget I could use for Gutsy. Is there some reason why the methodology was changed for Hardy to something so many of us simply can't use?

kprateek88 wrote on the 5 Oct 08 at 12:19
Webpages with static URLs do change. Some of them, like front pages of news sites, may change several times a day (or hour). How does this work... isn't caching a problem?

dino wrote on the 5 Oct 08 at 12:24
caching should not be a problem. period.

Auzy wrote on the 5 Oct 08 at 23:52
Caching wont be a problem because HTTP should allow for that (especially over 24hrs).

However, the current javascript implementation is buggy, because on the last day, timezones come into effect, and so some of us will see Ubuntu as 1 day left, possibly 12 hours before we should.


Post your comment