Archive for May, 2007

A plea to CSS experts

Sunday, May 27th, 2007

I’ve been having some fun today. Apart from not getting out of bed to earn my keep (aren’t laptops great) I’ve been playing with techniques from the book “CSS Mastery” by Budd, Moll and Collison. This playtime will form the Genesys Consulting website, which will go online when I’m done with it.

However, I’ve run into a big problem. The Fuzzy CSS Shadow technique in the book (also found on A List Apart) has the annoying problem that it floats the image to the left. This causes me whole swathes of problems because this image needs to be centered. I’ve uploaded a test version to my beta site (beta.steel-software.com) so you can have a look.

Genesys Consulting, with problems!

The following ideas do not work:

  • If I apply a <div align=”center”> to it, nothing happens
  • If i remove the float:lefts from the CSS, the shadows break
  • The page is liquid layout and having margin-left: 40% produces different results in FF compared to Opera/Safari
  • I would also want to be using different images for that section, loaded in from a db, not all of them will be the same width, so a margin-left: 300px won’t do either.

This is all explained in a plea I made on CodingForums.com. So, I’m now asking you lot, the people who read my blog (yes, all 2 of you). If you know what I can do to fix this problem, please leave the answer in a comment, send me an email (steve dot workman at gmail dot com) or write on my facebook wall.

Steve

Currently Listening to: Zero 7
Currently Watching: BBC2
Currently Reading: CSS help sites!
Currently Eating: Sunday roast, mmmmmmm

Facebook Platform – a thought

Saturday, May 26th, 2007

Right, in the post below this one I said Uni-Sport will never be a facebook app in its current form. I’ll clarify that.

The USE (University Sports Engine) will never be a facebook app. Uni-Sport.org can be!

In January, I beta tested a simple RSS reader system that gathered statistics from the Uni-sport network and presented them in one big page. This type of functionality can be put into a facebook app. Basically, it’ll display news stories from the network and provide links for you to log in and talk on the forums, post news, read match reports etc. Not only does that involve facebook in Uni-Sport, (with USE changes) logging into facebook will allow you to see news stories in your facebook news feed, which then will take you to your Uni-sport site where you’ll already be logged in (by virtue of facebook’s active sessions)

You can expect to see this feature sooner rather than later

Steve

The Facebook Platform

Saturday, May 26th, 2007

Facebook Developers

Well, facebook have certainly shaken things up a bit haven’t they. Almost totally opening up the API so developers can write applications that fit inside facebook itself! Utterly unheard of before, but potentially brilliant. Lets have a quick look at what you can do with all this new technology.

From the developer’s pages, developer.facebook.com they’ve created their own markup language, FBML. This allows for quick access to certain functions and their layout styles. Great stuff. You can also add in flash and mp3 files so people can listen to music. You can also add in an <iframe> element to display an off-site page. You can upload pictures from external applications and you can query the database using FQL (Facebook Query Language). This all sounds really great, but lets look at the limitations.

  • No Javascript – though not a surprise, some applications and advanced forms rely on it
  • No external stylesheets – boo and hiss to this one, all your styles must be in <style> tags
  • No AJAX – well, they provide automatic form submission, but that’s it. You can’t perform your own queries though the usual AJAX way
  • You can’t edit user details or post stuff to groups – still a bit disappointment as this limits the level of interaction with the user profile.

The big thing really is the ability to put iframes inside the canvas. From there you can do whatever you like inside the frame.

So, it all sounds good. Now it’s whether I can use it. Today I sent out an e-mail to all uni-sport.org members with a link to a survey on it (http://www.tigersurvey.com/survey.php?survey=2815) so I can get some feedback. One of the questions is about facebook and if people would want an extra feature, would it be better pictures, commenting, facebook integrates with profiles or uni-sport integrates with facebook in the way of an app. At the moment, I’m hoping a lot of people don’t go for the last option.

After some thought, I’m not sure if it would be possible to use facebook apps for such a complicated application as uni-sport. For it to work as it does at the moment, if a club asks for a web site, they will have to have their own unique facebook application. This is because of the team selection idea. If a group wanted to do team selection from within an application, only people in that group would be on the list. However, there is no way to make an application private between a group of people and AFAIK, no way to moderate who uses the application. There can’t be a global application as team selection wouldn’t work very well (it’d have to be select from people in network X who are members of group X, but that forces people to be in a group, which isn’t how it should work).

At the moment, Uni-sport is a glorified group page with team selection, match reports and a calendar. With team selection being at the heart of uni-sport, until private applications can be written, Uni-Sport will not be appearing as a facebook application.

Well, I’m glad that that decision has been made, now I can get back to my revision (lol)

Steve

Currently Listening to: David Ford
Currently Eating: Birthday Cake
Currently Reading: CSS Mastery and facebook documentation
Currently Watching: Lost season 3 finale. Amazing
Days left at University: 13