Forum - Essex Herts MTB http://www.essexhertsmtb.co.uk/php/forum/ |
|
Ride calendar http://www.essexhertsmtb.co.uk/any-other-chat/rice-calendar-t3107.html |
Page 1 of 2 |
Author: | Jon [ Sun Sep 02, 2012 12:07 pm ] |
Post subject: | Ride calendar |
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 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. |
Author: | Eccles [ Sun Sep 02, 2012 12:10 pm ] |
Post subject: | Re: Rice calendar |
Well done for mastering the regex! Might want to edit your post title though as not many will be interested in a 'Rice Calendar'! |
Author: | Jon [ Sun Sep 02, 2012 12:16 pm ] |
Post subject: | Re: Ride calendar |
Cheers - Good call - I also had everything named calender earlier which resulted in a hand to forehead moment. |
Author: | nwmlarge [ Sun Sep 02, 2012 1:24 pm ] |
Post subject: | Re: Ride calendar |
Nice |
Author: | J3w3ll3r [ Sun Sep 02, 2012 1:51 pm ] |
Post subject: | Ride calendar |
That's brilliant |
Author: | coney [ Sun Sep 02, 2012 3:27 pm ] |
Post subject: | Re: Ride calendar |
Cheers mate - handy! |
Author: | bigbrad [ Sun Sep 02, 2012 4:42 pm ] |
Post subject: | Re: Ride calendar |
Like it! |
Author: | Festa [ Sun Sep 02, 2012 6:26 pm ] |
Post subject: | Re: Ride calendar |
Nice work Karve. what the feck's a multi line regex lol..... |
Author: | Eccles [ Sun Sep 02, 2012 6:35 pm ] |
Post subject: | Re: Ride calendar |
Regular expressions. Magic stuff to spot patterns and stuff. Have to he a geek to understand it! |
Author: | chatman [ Sun Sep 02, 2012 6:45 pm ] |
Post subject: | Re: Ride calendar |
Now that is a BRILLIANT peice of wizardry their Karve TOP MARKS.... |
Author: | Festa [ Sun Sep 02, 2012 6:46 pm ] |
Post subject: | Re: Ride calendar |
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 |
Author: | Eccles [ Sun Sep 02, 2012 7:34 pm ] |
Post subject: | Re: Ride calendar |
Not quite as awesome but they're up there with lasers and stuff. |
Author: | Laser [ Sun Sep 02, 2012 7:49 pm ] |
Post subject: | Re: Ride calendar |
Very nice work |
Author: | Eccles [ Sun Sep 02, 2012 8:26 pm ] |
Post subject: | Re: Ride calendar |
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. |
Author: | Grin [ Sun Sep 02, 2012 9:37 pm ] |
Post subject: | Re: Ride calendar |
Stellar piece of wizadry |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |