Forum


Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Ride calendar
PostPosted: Sun Sep 02, 2012 12:07 pm 
User avatar
Posts: 3602
There was some feedback that a ride calendar showing all the rides going on would be useful. Sometimes scanning the forums to pick out a ride can result is some serious eye and brain strain!

Its always looked like getting it to work would be a bit of a nightmare, but I think I have a cracked it using a multi line regex :geek: for those who are interested.

There is now a ride calendar icon on the top right of the forum... click that and it will launch an overlay with all the rides going on. It works by looking at the ride post title and making a good stab as to the date its thinks has been posted.

Key features are

- automatically picks up posts and turns them into calender entries
- shows last couple of weeks (its nice to see what's happened) and future 4 weeks
- today is highlighted in red
- split to show weekend
- xc , away days / events and DH rides are split out and colour coded
- The calendar gets updated from the forum every 15 mins so it may not appear there as soon as you post.
- its work in progress so bugs are expected
- its custom for this site so tapatalk etc wont know about it but you can bookmark it on a mobile http://www.essexhertsmtb.co.uk/calendar.php

As mentioned in the sticky on the forum...

Ride tomorrow
Ride Saturday
Rice On Sunday

...will be hard to pick up as they are relative

Danbury 24th Sunday September - jumps n stuff
Danbury 24 Sun September - jumps n stuff
Danbury 24 September - jumps n stuff
Danbury 24.09.2012 - jumps n stuff
Danbury 24/09/12 - jumps n stuff
Danbury 24/09- jumps n stuff
Danbury 9/9- jumps n stuff

... and variations like that will get picked up. It will even have a good stab if you don't mention the month but it helps if you do.

Feedback welcome especially if it starts to misbehave. :high5:


Top
 Profile  
 
 Post subject: Re: Rice calendar
PostPosted: Sun Sep 02, 2012 12:10 pm 
User avatar
Posts: 1166
Well done for mastering the regex! Might want to edit your post title though as not many will be interested in a 'Rice Calendar'! :D


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 12:16 pm 
User avatar
Posts: 3602
Cheers - Good call - I also had everything named calender earlier which resulted in a hand to forehead moment.


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 1:24 pm 
User avatar
Posts: 3548
Location: essex
Nice

--------------------------------------
Bike pics
www.pinkbike.com/u/nwmlarge/


Top
 Profile  
 
 Post subject: Ride calendar
PostPosted: Sun Sep 02, 2012 1:51 pm 
Posts: 161
That's brilliant


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 3:27 pm 
Posts: 167
Location: Central London
Cheers mate - handy!


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 4:42 pm 
User avatar
Posts: 401
Location: harlow, Essex
Like it!


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 6:26 pm 
User avatar
Posts: 1542
Location: South Ockendon
Nice work Karve. what the feck's a multi line regex lol.....

--------------------------------------
I'd rather ride me bike than the Wife..


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 6:35 pm 
User avatar
Posts: 1166
Regular expressions. Magic stuff to spot patterns and stuff. Have to he a geek to understand it!


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 6:45 pm 
User avatar
Posts: 2755
Location: Riding my bike somewhere
Now that is a BRILLIANT peice of wizardry their Karve TOP MARKS.... :high5: :high5: :high5:

--------------------------------------
Whyte G-160RS
YETI SB95A


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 6:46 pm 
User avatar
Posts: 1542
Location: South Ockendon
Eccles wrote:
Regular expressions. Magic stuff to spot patterns and stuff. Have to he a geek to understand it!


is it like a flux capacitor :crazy:

--------------------------------------
I'd rather ride me bike than the Wife..


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 7:34 pm 
User avatar
Posts: 1166
Not quite as awesome but they're up there with lasers and stuff.


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 7:49 pm 
User avatar
Posts: 2166
Location: The land were time forgot
Very nice work :thumbup:


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 8:26 pm 
User avatar
Posts: 1166
Just a thought. Could you paginate it so that rides posted up in future months or previously can be viewed? For example, if someone posted an away day for October.


Top
 Profile  
 
 Post subject: Re: Ride calendar
PostPosted: Sun Sep 02, 2012 9:37 pm 
User avatar
Posts: 729
Stellar piece of wizadry :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 216 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron