Posterous theme by Cory Watilo

E-mailing players as well as fixes in new build this week.

Hi,

Found a bug this week around cancelling matches, which given it’s the Christmas period and I reckon there’s a fair few being cancelled, thought I best fix this one as soon as.

Fixes

  1. The cancelling works fine, however toepoke.co.uk decides to create them again, so this is fixed in this build. Apologies for any confusion this issue has caused.
  2. The site would also still send a booking reminder out, even though the match had been cancelled, so this is fixed in this build too.
  3. Profile widget on the set sides screen now appears if you click on a player who’s on standby.
  4. Games wouldn’t save if the postcode of the pitch couldn’t be found.
  5. The dialog for adding a player into a match had a scrollbar, this should no longer be the case (though it is in Firefox there’s always one that doesn’t want to play!)

Features

  1. Changed how the e-main notifications work when cancelling a match. We were telling everyone in the squad, which doesn’t always make sense. Now if the invitations have gone out, only those players who’ve put their name down will be notified. If the match isn’t yet active (i.e. it’s in the future) everyone will be told as they’d be expecting a game to be played.
  2. You can now e-mail everyone who’s down to play in a match, in case you need to provide an update to them. This is sent from the manager who is logged in (rational being you may need to collate and act on any replies).

As always, if we’ve mucked anything up, please tweet me off :)

Until next time,

Team TP.

Capitalise text inputs with css

When I was build the sign-up screen for toepoke.co.uk I wanted to tidy up the data entry for the player’s name so you get capitalised names.

 

Image001

 

My first thought was to tie into the jQuery focus event and do a little JavaScript once the user left the input field.

 

Thankfully I thought a little bit more and remembered the text-transform property in CSS, and wondered if this would work against text input fields as well as heading and p tags, etc.

 

.tcase {

    text-transform: capitalize;

}             

 

Turns out it works quite well, and the above works under most of the modern browsers.  Tested and works in Chrome 7,IE 8, FF 3.6, Safari 5, but sadly not Opera 10.  Of course the text-transform property is an aesthetic effect, so I can live with it not working in Opera. 

 

Also bear in mind if the user enters their name in lowercase, their name will be in lowercase when the form is posted to the server, so you’ll still need to capitalise on the server-side.  Something like the following C# string extension should do the trick. (or see http://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitle... as kindly pointed at by Maarten van der Lee below)

 

     /// <summary>

    /// Converts the input string into an initial version, so "fred" or "FRED" becomes "Fred"

    /// </summary>

    /// <param name="input"></param>

    /// <returns></returns>

    public static string ToInitial(this string input)

    {

        if (string.IsNullOrEmpty(input))

            return "";

 

        return 

            input.FirstOrDefault().ToString().ToUpper() +

            input.Substring(1).ToLower();

    }

 

You can see the above in action on our sign-up page (http://toepoke.co.uk/user.aspx/create). Naturally this can be extended to use the uppercase and lowercase text-transform rules (uppercase is quite useful for postcodes too).

Hope this proves useful for someone.

 

Kind regards,

Team TP.

 

 

Find this useful?

kick it on DotNetKicks.com Shout it

Share  

 

toepoke now has avatars, plus other changes in this week build.

New build: 1.0.12.0

Hi,

Uncovered a problem with the reminders today.  As a result some of your reminders may have appeared in your inbox late, or you have received duplicates.

Our sincere apologies for this, and we’ve put out a new build this evening to fix the problem.

On the upside this means http://toepoke.co.uk/about.aspx/glossary/#Avatar are being released early J.

Image003

We've used the e-mail address you signed up with as your avatar (doesn't matter if you'd have one yet, we'll work that out).  

To setup with your own avatar picture, simply sign-up at http://en.gravatar.com/ and add your photo.  If you use a different e-mail address on http://en.gravatar.com/, remember to tell toepoke.co.uk what it is in your profile so we can pick it up (see http://toepoke.co.uk/user.aspx/edit).

Apologies once more.  Until next time.

Kind regards,
Team TP.

 

Venue searching, public games and more in this weeks build ...

New Build: 1.0.11.0

Hi,

 

Phew, it’s been a while, so there’s a fair bit in this build, so let’s get cracking.

 

Features

 

Design Changes

  • Bit of tweak with the design here and there, mainly changed the colours of the links to something a little less green!
  • The team’s email now shows your name in bold to make it easier to see what side you’re on.

Functionality Changes

  • If you try and send the sides out without making the changes, you’ll now be prompted to confirm.  This is to avoid sending e-mails to your teams unnecessarily.
    Image001
  • You’ll also now get a loading/saving dialog appear when erm loading or saving a screen :o).  Just to confirm, yes you did actually click that button, something is happening :o).

Game Edit Screen Changes

 

  • One of the major changes is on the game edit screen where we’ve separated things out a little more (and yes, that little Search button lets you search for a venue for your game J).
    Image002

Public and Private Games

 

Some more options have been added onto the game edit screen:

 

Image003

 

The new options being:

  • Game profile, which has options of Private or Public

Private (which is the default for any game you create) means you game is closed and you can only get new players by inviting them explicitly. 

 

Public is the new option, and if you’ve not already guessed, setting this option opens your game up onto the wider internet.  So anyone can browse Public games and apply to join.  Naturally they don’t automatically get added, the final decision is down to the game manager.

 

  • Sex; defines whether your game is open to only men, women or both.  Whilst I suspect most games will be run by men, I suspect this option may interest the ladies more than anything, for many reasons.  The default is for either.
  • Age; defines if you want to express a preference for a particular age group.  This is more to acknowledge that your games is targeted more to the older audience.

Note that the Sex and Age options merely indicates the demographic (for want of a better word) of your game, the website doesn’t enforce these rules.

 

Game Browser

 

Following on from the Public game changes above, anyone can look for open games to join in with, hence a new option at the bottom of the page, find a game.

 

Image004

If you choose to have your game public (and you’ll have to change this for your game, as private is the default option), your game will be part of the toepoke.co.uk directory off this link.  If they browse to your game, they’ll see something like this:

Image005

New Game Screen

 

When creating a new game, you can now search for venue for your game (with google kindly providing the results).

Image006

 

Also on the new game screen, we’ve removed the reminders tab as it made the screen a little confusing, so now it just generates some default reminders based on the frequency of your game (e.g. every monday at 7pm).  Once the game has been saved, you can still change when the reminders go out from the game edit screen.

 

Fixes

 

1. Name on the edit screen should now be saving a capitals.

2. Compressed some of the images a bit more so they should download quicker.

3. Upgraded to latest versions of jQuery and jQuery UI libraries.

4. Match reminders screen has finally been finished, so they should now save when you change them !

5. E-mail address must be re-confirmed after change of e-mail address (ta for the tip Tom!).

6. Removed tooltips for the CAPTCHA controls as they were getting in the way (and as it happens, unnecessary).

 

As always, if we’ve mucked anything up, please tweet me off :)

 

Until next time,

Team TP.