On 2012-07-18 11:48:31 (-0500), Bryen M Yunashko <suserocks@bryen.com> wrote:
oh I see. Well I am not sure, if i can update/create any graphics. I will update if I can one soon :) In my opinion, the artwork itself can be used the same for both badges and countdown banners. The only difference is that the countdown banner has a number superimposed on it that changes daily. Shayon, perhaps you can look at the code that Pascal (yaloki) developed for our past countdowns and see if it can be enhanced to support
On Mon, 2012-07-16 at 11:23 -0500, Shayon Mukherjee wrote: three banners in sliding door effect? This would be a much more permanent and long-lasting contribution as we'll undoubtedly have many more events to countdown as we continue to grow as a community.
Code is hosted here: https://github.com/openSUSE/countdown.o.o/ Well, the coutdown code doesn't do that much magic, it's just a bit horrible because 1) translating something as simple as "available in n days" in so many languages is really, really tricky 2) python sucks at UTF-8 3) it needs some font adjustments too to fit on the image depending on the language But apart from that, it just takes SVG files that have placeholders (text) in them such as "@@" for the amount of remaining days, computes the number of remaining days, and replaces that "@@" with that value -- and does that in several variants for many languages. That produces a lot of PNG files that can then be used anywhere. [...]
> But I don't think our current countdown software supports > sliding banners.
It has nothing to do with "sliding banners", it just produces PNGs and serves those PNGs as static files, that's it. The problem with "sliding banners" is that for every person that wants to add that banner on their site/blog/whatever, it requires more than just adding an <img/> tag with the URL of the countdown PNG. You also need to add a link to a JavaScript file that we need to write in order to perform those "sliding banners" and put a bit more around that <img/> tag. Please look up how such sliding banners are actually made first :) Not much of an issue when you own the site and have full control over the HTML that's on it, but when it's just a blog hosted elsewhere, the instructions get quite a bit more complicated, along the lines of: instead of this, as of now: ---8<------------------------------------------------------- Just add this: <img src="http://countdown.opensuse.org/"/> ---8<------------------------------------------------------- it would become something like this: ---8<------------------------------------------------------- Add this: <img id="opensuse_banner_uuid_1" src="http://countdown.opensuse.org/"/> and also this, ideally in the <head/> section (which you usually don't control in blog templates): <script src="http://countdown.opensuse.org/banner.js" type="text/javascript"> openSUSE_Banner_load(); </script> or the same but in the <body/> at the end of the page. ---8<------------------------------------------------------- (quite more error-prone, especially since most people cannot modify the <head/> section of their blog) (and that banner.js is something we still need to write ourselves by reusing and compressing existing Javascript libraries that do it (something at jquery) and add a little routine that injects the behaviour on the <img/> with the id="opensuse_banner_uuid_1", i.e. that openSUSE_Banner_load() function) The idea with the current countdown image/banner is precisely to use static PNG files that are rendered every day/hour on the server in order to make it as simple as possible for anyone to include that image/banner on their site, by just adding an <img/> tag with that one URL. (The translation in your preferred language is done automatically by the countdown.o.o server (Apache) based on the preferred language that you have configured in your browser.) cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf