
Table of Contents
- What It Is
- Screenshots
- Requirements
- Installation
- CycloPress API
- Notes and To Do List
- Changelog
- Comments
What It Is
CycloPress is a WordPress Plugin for cyclists designed by Andrew M. Whalen. It allows you to track your statistics from each ride you take. After each ride you can copy down the data from your cyclocomputer and enter it into CycloPress. Graphs and a summary of your statistics will be generated. See my cycling page for an example of what this plugin can do.
Screenshots
Graph of average speed.
Graph of distance.
The CycloPress Options page.
Statistics output of CycloPress.
The “Add a Ride” page.
Requirements
- PHP version 4.3.1 or higher.
- GD library version 1 or 2.
- WordPress version 2.5 or higher. Older versions may work, but don’t count on it.
Installation
- Unzip and upload the cyclopress folder to the /wp-content/plugins/ directory.
- Activate the plugin through the Plugins menu in WordPress.
- Make the /wp-content/plugins/cyclopress/graphs/ directory writable by your web server by setting the correct permissions, e.g.
chmod 775 graphs. Some server setups may not require this step. Check the CycloPress options page first to see if the graphs directory is writable. - Add your cycling stats through the Write -> Ride interface.
- Add the CycloPress widget to your sidebar, and create a cycling stats page through the CycloPress admin.
- Manage/edit your cycling stats through the Manage -> Rides interface.
CycloPress API
If you know what you’re doing, these are the function calls that you can insert into your WordPress templates. If you also use a plugin for WordPress that allows PHP in posts and pages, you can paste these there as well.
cy_get_brief_stats($before='<p>', $separator=', ', $after='</p>')- Returns your total miles traveled and average speed wrapped in a paragraph tag. Returns `false` if no data is available. This is how the widget data is generated. This works best in a sidebar, since it’s just a teaser of all the information available.
cy_get_summary( [ bool $compare=false, string $year=false ] )- Returns a summary of your lifetime stats as an XHTML definition list (
<dl>). Returnsfalseif no data is available. The parameter$comparetakes a boolean (true or false) and will add text that compares your lifetime statistics to how you’ve done so far this year. The parameter$yeartakes a 4-digit year and will give you statistics on that year instead of your lifetime statistics. cy_get_first_ride_date($format='F jS, Y')- Returns the date of the least recent ride (e.g. the first ride) in the database. If the earliest date you entered stats for was June 16, 1999, then this would return
June 16, 1999. You can use this to do something like ‘These stats have been tracked since June 16, 1999.’ To change the format, see PHP’s date format codes. cy_get_last_ride_date($format='F jS, Y')- Returns the date of the most recent ride in the database. If the most recent date you entered stats for was August 12, 2008, then this would return
August 12, 2008. You can use this to do something like ‘The last ride was on August 12, 1999.’ To change the format, see PHP’s date format codes. cy_get_graph_img_tag( $type='distance' )- The parameter
$typecan bedistanceoraverage_speed. This returns a complete XHTML image tag for either a distance graph or an average speed graph. Set the width, height, and other parameters for these graphs in the CycloPress Options page found under the Plugins tab.
Notes and To Do List
- As of version 1.3.9 CycloPress is getting very bulky (around 3000 lines). It’s in desperate need of a good rewrite before I add some features (like i18n).
- Although CycloPress tracks many stats, most of them can’t yet be graphed.
- A ‘type’ of ride would be nice. Personally, I only track rides for ‘training’, but I don’t track ‘fun’ rides at all. I’ll add a way (maybe just tags?) to differentiate between these types so they can be graphed separately.
- User-controllable graphs. The graphs that are produced now are simple and only track distance and average speed over time. I want to add an interface to produce graphs ‘on the fly’ with parameters the user chooses.
- I may add a Flash or JavaScript graphing library in the future for more dynamic graphs, but I’ll keep the static images as a fallback. The Google API looks promising for this use.
- Translations into other languages will probably not happen for quite some time. I’ll need to rewrite a lot of the code for internationalization (i18n).
The WordPress upgrade.php file throws a few errors now when CycloPress is installed or upgraded. It looks like the WP SQL dbDelta function may be to blame again.– Fixed in version 1.4.3More statistics data. I only have a simple cyclocomputer, so I need to find out first what kinds of data the more complex computers actually track.– Added in version 1.3.9Ride more than one bike? I’ll find a nice way to track what bike(s) you ride.– Added in version 1.3.9If you want a Cycling page, there is no way to do this without modifying your templates and/or adding a plugin to parse PHP in your pages. I want to find a nice way of making this automatic.– Added in version 1.3.6Currently there is no way to edit previously entered statistics. This will be in a future version.– Added in version 1.2.8An option to enter statistics in other units (such as kilometers) will be added in a future version.– Added in version 1.2.8
Changelog
1.5.1 – January 4, 2010
- Fixed some display errors resulting from having no data in the new year.
1.5.0 – December 2, 2009
- Updated the highest compatible version to WordPress 2.9.
1.4.9 – August 18, 2009
- Updated the readme file.
1.4.8 – August 18, 2009
- Updated to use get_option(‘siteurl’) instead of get_bloginfo(‘url’). This should make it so that graphs show up even if WP’s home page is outside of the wordpress code directory.
1.4.7 – August 18, 2009
- A couple places were missing the code to convert miles to kilometers if the user had that option set.
1.4.6 – July 23, 2009
- Fixes a few places where times were showing incorrectly.
1.4.5 – July 20, 2009
- Updates the compatible version to 2.8.2.
1.4.4 – July 20, 2009
- Fixes the error “Only variables can be passed by reference” on like 1948.
1.4.3 – June 7, 2009
- Fixes a problem with calling the WordPress upgrade.php file, specifically the dbDelta() function. This was giving warnings to users when they upgraded or installed CycloPress.
- This update also makes CycloPress ready for WP 2.8 which will be released June 10th.
1.4.2 – May 17, 2009
- There was something going wrong with the cy_bikes SQL so the table wasn’t being created when CycloPress was installed/upgraded. I removed the ‘default’ field as I wasn’t using it, and it all works now.
1.4.1 – May 16, 2009
- Added additional stats to the calendar view
- Added title tags to the calendar view links so you can hover and get a quick glimpse of a ride (I may add more robust hover information in the future)
- Made the time formats more consistent (i.e. “1 hour, 36 minutes” instead of “1.6 hours”)
1.4.0 – May 8, 2009
- Nothing new. I just messed up the wordpress svn stuff again.
1.3.9 – May 7, 2009
- Added a way to track which bike you used on a given ride.
- Added a calendar view so you can see your stats by month.
- Added a bunch of new fields to the database like heart rate, elevation, calories, and weight.
- Organized the admin navigation.
1.3.8 – January 31, 2009
- Fixed a problem with the WordPress function dbDelta that resulted from the way I wrote SQL. Specifically I had back-ticks around the table names, and dbDelta wouldn’t recognize those table names so it could apply any schema changes I made.
1.3.7 – January 31, 2009
- Fixed a bug that wouldn’t allow rides to be saved.
1.3.6 – January 26, 2009
- You can now create a cycling stats page without a third-party PHP plugin.
- Export your stats in XML and CSV format.
1.3.5 – December 12, 2008
- WordPress 2.7 changed the admin navigation up a little, so the Add a Ride and Manage Rides pages were showing up at the same time. They were separated once again.
- The table column header links in Manage Rides were showing up too light in the 2.7 admin theme. They were made darker.
1.3.4 – December 8, 2008
- Graphs were being created any time a CycloPress function was called. That’s a bad thing. It’s been fixed. Thanks, Dave.
1.3.3 – September 14, 2008
- Changed the way the stats display in the admin stats page.
1.3.2 – September 12, 2008
- Added a stats page to the admin interface.
1.3.1 – September 10, 2008
- Added an admin nav bar to easily switch between CycloPress pages.
- Made the debug page nicer.
- ‘Editors’ were given permissions to add and edit rides.
- Sort-by-column for the management page.
- Various bugs were fixed.
1.3.0 – September 8, 2008
- Fixed a bug with the new CYRide PHP object where it wasn’t being instantiated before use in certain cases.
1.2.9 – September 3, 2008
- No changes. The 1.2.9 tag was added to make the WordPress Plugin repository host the most current version.
1.2.8 – August 26, 2008
- Added ability to manage/edit previous rides.
- Added option to change units between miles/kilometers.
1.2.7 – August 14, 2008
- Now checks the PHP version (4 or 5) to see what version of JPGraph to use.
- A simple sidebar widget is now also included.
1.2.6 – August 13, 2008
- Added code for a sidebar widget, but didn’t make it functional.
1.2.5 – August 10, 2008
- Fixed tiny bug in displaying CycloPress version.
1.2.4 – August 10, 2008
- Fix the problem where ‘upgrade automatically’ doesn’t call cy_install, so the graphs get deleted but never rewritten.
1.2.3 – August 8, 2008
- Removed the final remnants of php short tags (<?= ?>).
- Added conversion functions for miles to kilometers and back and an option to set what distance unit to use, although these new functions and option are not in use yet.
1.2.2 – August 6, 2008
- Readme cleanup.
1.2.1 – July 9, 2008
- Added a file to the graphs directory so that directory is present in the CycloPress ZIP download.
- The readme file was cleaned a little as well.
1.2 – July 1, 2008
- Readme cleanup.
1.1 – July 1, 2008
- Readme cleanup.
1.0.1 – July 1, 2008
- Readme cleanup.
1.0 – July 1, 2008
- First version of CycloPress.
flickr.com/photos/andrewmwhalen
linkedin.com/in/andrewmwhalen
twitter.com/awhalen
youtube.com/user/whalena
07/29/2008 at 11:24 am
I am wondering if anyone has gotten your CycloPress plugin to work with WordPress running on IIS. I have IIS running but I am having a hard time figuring out how to get the GD Library installed. They have a Win32 version but I am not sure what to do with all the files in the Zip Folder they have in the download.
07/31/2008 at 2:29 pm
Sorry, I don’t have any experience with running PHP on IIS. I’m working on getting rid of the GD requirement in version 2 of this plugin by replacing it with either JavaScript or Flash graphs.
08/06/2008 at 12:13 pm
Well I activated the plugin anways and it says everything is installed. When I installed PHP it also installs GD.
OK GD version installed.
OK Graphs directory is writable.
But I can’t seem to set a date or time for a ride. The dropdown boxes just show me a greater than symbol. I can see AM or PM though but they both show a leading greater than symbol.
The other input boxes just show me html tags and I am not sure where to enter the value in that box. I thought I would just be able to input values into a boxes and not have to worry about the web coding.
08/06/2008 at 12:20 pm
Here is a screen shot of what I am talking about
http://gbsps.freeshell.org/cyclopress.JPG
08/06/2008 at 4:02 pm
I’m using PHP “short tags” (< ?= ?>) to insert the values into the form fields. Unfortunately, after a quick google search, it seems that short tags aren’t recognized on all systems. Weird. I’ll make an update to CycloPress that removes the use of the short tags and update the WordPress SVN repository. You should see the new version available in the plugins portion of your WordPress admin section today.
08/07/2008 at 12:23 pm
thanks man, a nice plugin!! only i will make some change for italian alkso i will change from miles to kilometers, but this is not my problem for now. can you publish how to add a new page in wp without making any changes at my theme. I don’t understand how I have to insert your codes… otherwise if you can be so kindly to make an option that make the page and the widget, also I wish to have the possibilty to change from the american miles to the eurpoean km, timstamp (24hours), translations to german and italian (I can help to translate)…
thanks man! keep up this work!!
08/07/2008 at 11:17 pm
Awesome. Everything looks good now. I will test it out when I get home. Don’t have any data here at work to put in there. I only ride to work every other day. Looks like it will work on IIS now.
It also shows me what GD version is installed. It didn’t do that before.
On the CycloPress Options it still shows me a greater than symbol on the Graph Fill setting.
Thanks Andrew!
08/09/2008 at 4:24 pm
Well I guess I misunderstood what this plugin does. I guess I thought after I installed it and started entering in stats I would just be able to access my stats by going to /blog/cycling but I guess it doesn’t do that.
I have no idea how to go about using the stats I have entered. I know next to nothing about PHP, so I don’t think I could code it into any page.
Would help if you could write up better documentation on how to use the stats in your blog.
08/10/2008 at 12:09 pm
Josh, see the top of this page for instructions on how to add a basic Cycling Stats page.
08/14/2008 at 5:42 am
Not sure what the issue is here, I’ve installed and entered my first ride details to test this plugin, on clicking the Save button I get the folloing error. I have checket the class and it is colsed in line 301. any ideas.
“Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in plugins/cyclopress/jpgraph-2.2/jpgraph.php on line 275″
Looks like a sweet plugin if I can get it working.
-Primal.
08/14/2008 at 9:04 am
Primal, what version of PHP are you using? The whole jpgraph portion of the code is not my own. I’m using version 2.2 of jpgraph, which requires PHP 5.
08/14/2008 at 2:02 pm
I’ve updated CycloPress to check what version of PHP your server is running, and it uses the corresponding version of jpgraph. PHP 4 and PHP 5 are now both supported. This adds about 1MB to the total size of the program, and although PHP 4 is no longer (or soon to be) supported, it’s good to have this compatibility.
Also, there is now a simple widget which shows your total miles traveled and overall average speed.
08/14/2008 at 7:03 pm
Hi Andrew, That got it nailed. Thanks mate.
Requirements Status on the hosting company are:
PHP version 4.4.8 installed.
GD version 2.0.28 installed.
Graphs directory is writable.
All entries now appear in the graphs under the \graphs folder. I’ve installed Exec-PHP 4.8 and there is no more error on saving.
I’m working on getting the graphs to show in the page at this stage, I’ll keep you posted. Thanks for the speedy response. No other plugin developer has ever applied a fix or appears to answer questions. Keep up the great work.
08/22/2008 at 1:14 pm
Hi Andrew, I think I got everything setup correctly but when the page renders I get this.
Cycling Stats
These statistics have been tracked since JpGraph Error Empty input data array specified for plot. Must have at least one data point.
I have put in a couple of days worth of stats, so I am not sure what the problem is.
09/06/2008 at 1:09 am
Hi Andrew.
Just updated to 1.29 and getting the following error when submitting a ride. Was working great until the upgrade. attempted to roll back to 1.27 and have the same issue.
Fatal error: Call to a member function on a non-object in plugins/cyclopress/cyclopress.php on line 535.
Which is Line 535: “$ride->load_post();”
09/08/2008 at 7:05 pm
The “call to a member function on a non-object” should be fixed in version 1.3.0. The CYRide object wasn’t being instantiated before being used in certain cases.
09/08/2008 at 10:29 pm
Sure did sort it, thanks AW
09/09/2008 at 11:03 am
Very nice plugin. I’ve not used it yet, having invested a lot of time in external tracking sites, but it would be nice to bring it local.
Are you planning on adding to the available stats? Some of the things I’d like to see are Avg HR, Max HR, Avg Watts, Max Watts, Est. Calories, Elevation Gan, Elevation Loss, Max Elevation, Min Elevation, Weight and Bike Used.
Just a couple things, in other words…
09/10/2008 at 12:13 pm
hi. Thanks for plugin
perfect.
Regards
09/11/2008 at 5:11 pm
Hi! I can translate CycloPress to spanish if you want
09/12/2008 at 2:54 pm
Hello!
You’ve made a great plugin.
Do you think it is possible to transform it for running activities?
I’m going to translate cyclopress in french.
Regards
09/22/2008 at 6:00 pm
Hi!!
I meet all the requirements for this plugin but when I try to administer the plugin through the wordpress admin area the only tab I can select is options. I get a 404 not found error for any of the other tabs. Please help!!!
-ST
09/22/2008 at 6:02 pm
I’m sorry I incorrectly reported my issue. Below is the text of my error:
Not Found
The requested URL /wp-admin/edit.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
09/22/2008 at 6:39 pm
Please disregard. I had to modify the php file because my base URL was not my wordpress root dir.
10/22/2008 at 2:20 pm
Hello!
I’ve done the job for You.
I’ve include the gettext code into the file “cyclopress.php” so averyone can translate into his own language using the cyclopress.pot or the empty file cyclopress.po.
I’m going to publish a post this evening with all the files created into a single zip file. You’ll be able to read it by clicking the link below:
Download I18N files for cyclopress
Regards and hope it will help you…
10/22/2008 at 2:53 pm
Sorry…
The good adress is :
Traduction Française de Cyclopress
10/23/2008 at 6:48 pm
Hello. I’ve made the internationalisation for U based on the v1.3.3.
You can download it at :
http://wp.fabonweb.net/download/4/
Regards…
10/26/2008 at 6:11 pm
Hi Andrew,
you might want to edit the script. the graphs are being deleted and recreated every page visit, in the case of my site that is.
cyclopress every page visited function flow
=> cy_check_version()
=> cy_install()
=> cy_is_cache_writable()
which then always calls….
=> cy_empty_cache()
=> cy_create_all_graphs()
this occurs at ~line numbers in version 1.3.3
cyclopress.php (127): cy_check_version();
cyclopress.php (144): cy_check_version();
cyclopress.php (171): cy_check_version();
cyclopress.php (197): cy_check_version();
cyclopress.php (217): cy_check_version();
cyclopress.php (237): cy_check_version();
I placed a check binary variable into the cy_install() function
ie add — $check = FALSE; (at line 1644),
and if upgrade or install is run make $check = TRUE;
add $check = TRUE; (at lines 1675 and 1689)
also changing line 1693 from…
if (cy_is_cache_writable()) {…
to…
if ((cy_is_cache_writable() )&& ($check==TRUE)) {…
(this was discovered because my wordpress wont allow any includes/requires such as jpgraph within plugins and I had to create a script to run via fsockopen to unlink and recreate the graphs and this showed up the calls to it in the apache access.log especially the crawlers)
10/26/2008 at 6:36 pm
you might also create a basic templete file to be added to uses theme folder to avoid installation of Exec-PHP plugin….
>>>>>type your inserts here<<<<<
note you will need to add a section into your themes css for the cyclopress-div, if you want too
12/08/2008 at 8:08 am
Hi,
Great plugin, just what I have been looking for! I have adapted for running (changed the displayed names from bike or ride to run only) but will do some more and send to you.
Can I ask if you are going to proceed with more than one bike or more than one ride type? I ask as this again would make useful fields for both multi-sports training or running.
12/08/2008 at 4:58 pm
I updated CycloPress to version 1.3.4. I fixed the problem where graphs were being created on every page load.
12/12/2008 at 12:11 pm
I’m getting a wierd effect in WordPress 2.7 with the 1.3.4 plugin. I now get the edit form twice on the same screen and when I post a ride, it posts twice. I’m pretty sure this is a 2.7 issue and I’ll try to debug it tonight, but I wanted to see if anyone else was having a similar issue.
12/12/2008 at 12:19 pm
I’m aware of the problem. It has to do with the new WordPress 2.7 admin navigation. If you notice, the “Posts” category on the left contains two items (Ride and Rides) that highlight when using CycloPress. Since there’s no longer a distinction between ‘Write’ and ‘Manage’, those two things got stuck in the same category. I hope to have a fix up soon.
12/12/2008 at 12:43 pm
Version 1.3.5 fixes some problems that arose from WordPress 2.7:
– The ‘Add a Ride’ form and the ‘Manage Rides’ form were showing up together on one page since ‘write’ and ‘manage’ are no longer separate sections.
– Column header colors for the Manage Rides page were showing up too light to see in the new admin theme. These were changed to a darker color, but are still visible in versions older than 2.7.
12/12/2008 at 1:33 pm
Wow, that was fast. Thanks for the help and for the great plugin.
01/16/2009 at 2:03 pm
It appears only one user per site can enter their stats. Is there a way to have separate stats for each user that is logged in. If this can already be done, could you point the way to how I can accomplish this?
Thanks for filling a big need with this plugin!
01/31/2009 at 6:01 pm
I’m having a little problem with the plugin today. I go to add a ride but when I click on save all I get is the yellow bar at the top with no text in it. Additionally, the ride is not being saved. I’m not sure how to debug this one, do you have any ideas off the top of your head? Thanks.
01/31/2009 at 6:43 pm
By adding some infrastructure in 1.3.6 for later additions to CycloPress (bikes and ride types) I introduced a bug into the SQL. 1.3.7 should fix it, and it should be in the WordPress repository in a few minutes.
01/31/2009 at 7:06 pm
Wow, your response time never ceases to amaze. Thanks for the fix, it works like a dream. And thanks again for making this great plug-in!
02/01/2009 at 1:27 am
I got the same issue with adding rides, running 1.3.6 still no ride saved. The Debig looks good, everything is installed.
02/01/2009 at 11:33 am
1.3.6 is the version with the bug. Upgrade to 1.3.8 and it should be fine. I had a typo on the change log last night that showed 1.3.6 as the most current version when it really wasn’t.
05/02/2009 at 11:04 pm
Andrew,
Will you be adding: Avg HR, Max HR, Avg Watts, Max Watts, Est. Calories, Elevation Gan, Elevation Loss, Max Elevation, Min Elevation, Weight and Bike Used?
If not I may take a stab at it. I am also thinking about adding a hrm file parser.
What are the plans going forward?
05/08/2009 at 12:12 pm
Works great, thank you
05/08/2009 at 12:24 pm
@rob All those fields are in the latest version (1.4.0). Calories aren’t auto calculated, but the field is there so you can track by hand for now, and it will eventually be auto based on your weight. The new fields aren’t graphable (still only distance and average speed), but that’s something that’s being worked on too. There’s also a bike manager so you can specify which bike you took a ride with. But wait, there’s more: a calendar view (with monthly stats) for all rides instead of just the list view.
05/26/2009 at 6:49 pm
Hi Rob. I find that when I upgrade the versions I need to go intothe php and change over the mile to kilometers. Are you looking making this part dynamic?
05/29/2009 at 12:00 pm
@PrimalOdyssey There’s a setting in the CycloPress options to choose US or SI units. If you set that to SI you shouldn’t have to change anything in the code to keep kilometers.
06/02/2009 at 2:12 pm
Hi, looks like an excellent app, any chance of getting this converted to run on joomla 1.5?
06/06/2009 at 12:37 pm
@Jason I haven’t had any experience writing plugins for Joomla. Maybe I’ll get bored one day and port it, but it’s not on my list. If you’re up for it, or know someone who is, the code is freely available on the WordPress Plugin Directory: http://wordpress.org/extend/plugins/cyclopress/download/
06/11/2009 at 5:15 pm
What a kick ass plugin! Just what I was looking for!
07/20/2009 at 3:16 pm
I’m getting an error creating a Cycling page –
Your page was created, but it is not yet published.
Fatal error: Only variables can be passed by reference in /home/sites/mysite.co.uk/public_html/blog/wp-content/plugins/cyclopress/cyclopress.php on line 1948
But otherwise a great and useful plugin!
07/20/2009 at 8:01 pm
@Richard, try out version 1.4.5 and your problem should be fixed.
07/21/2009 at 6:43 pm
Wow, speedy response!!! Found that the PHP exec plugin made the page functional, so not able to replicate the issue, just updated, and I’ll test it out and let you know. Thanks for the update!
07/27/2009 at 10:36 am
Hi! After the installation, I got the following error:
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_cy_rides ADD PRIMARY KEY (id)
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_cy_bikes ADD PRIMARY KEY (id)
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_cy_types ADD PRIMARY KEY (id)
07/27/2009 at 10:37 am
Nevermind. It was solved.
08/18/2009 at 7:20 am
Andrew, Thanks for the recent updates.
you might like to add the use of your provided functions
cy_speed_text($stats['avg_avg_speed'])
cy_speed_text($stats['max_max_speed'])
cy_distance_text($stats['total_miles'])
into the ‘cy_get_summary’ and ‘cy_get_summary_compare’ functions so they get used when displaying stats rather than the currently hard-coded miles and mph version
dave
08/19/2009 at 12:03 am
Andrew, thanks for updates, again.
Have you had a look at the “Open Flash Chart Core WordPress Plugin” as a means to creating dynamic graphs rather than using jpgraph.
The only trouble I see is it produces SVG images. Which are cool for FF, Chrome, Opera but are not displayed without plugins in IE6,7,8,n.
Just a thought.
Also if you like I have hacked some code for displaying Graphs per bike (jpgraph) in Cyclopress but am pretty sure I cant post it here…
I’ll post an archive at my website link for a few days if you are interested
cheers dave
08/19/2009 at 12:55 am
Andrew, Don’t mind me I just spent 2 days looking at SVG image creation with php and JSON and stumbled upon the “Open Flash Chart Core WordPress Plugin” and kept thinking output=svg when der! its a flash/swf display with data input!
sorry for my stupidity
09/02/2009 at 5:02 pm
Andrew, great plugin. I too needed to install Exec-php to get the stats page to work.
If I could ask for a feature, it would be to be able to add in other sports like running & swimming as this certainly beats my crappy spreadsheet…
cheers
10/13/2009 at 4:27 am
Great work, Andrew. I had the same problem as the others without Exec-php. Works great now, though.
If I had one wish, it would be a way to Delete a ride.
11/28/2009 at 7:55 pm
Hello — After I setup and go to the “Cycle Page” in options.. it gives me this.
Fatal error: Only variables can be passed by reference in /home/content/a/r/l/arleighjenkins/html/wp-content/plugins/cyclopress/cyclopress.php on line 1963
12/04/2009 at 4:38 am
I’m using WordPress 2.8.6 and CycloPress 1.5.0.
Inputting rides work, widget work, graphs on cycling page (admin) work. Page on website stays in default state (http://d-eye.be/fietsstatistieken). Any ideas what could cause this?
12/04/2009 at 11:44 am
Rudy, you’ll need to install another WordPress plugin called Exec-PHP which allows PHP code in your posts to be executed. It’s not stated in the requirements any more, but it’s still required. Sorry about that.
For anyone else reading this, I’m actively working on version 2, which I hope to have out before the end of the year. It will eliminate the requirement of having the additional PHP-exec plugin installed.
12/07/2009 at 5:31 am
Thank you very much, it works! Already a very nice plugin!
12/15/2009 at 5:05 am
Andrew,
Thanks a lot for your wonderfull plug in.
It works very well and is a pleasant addition to any cycling wordpress install.
Luc
12/31/2009 at 10:23 pm
Great plugin – but I get wierd page error –
########################
No stats! Get out there and ride!
“; } ?>
#######################
Any Ideas? Debug doesn’t show any issues.
Cheers!
01/01/2010 at 6:35 am
Warning: Division by zero in /home/andy/amwhalen.com/blog/wp-content/plugins/cyclopress/cyclopress.php on line 268
Warning: Division by zero in /home/andy/amwhalen.com/blog/wp-content/plugins/cyclopress/cyclopress.php on line 279
Thanks a lot for your great plug in, So far there has been no problem , but now is not.
Would you check this problem … ? i can not so …
01/01/2010 at 7:37 pm
Tim, that looks like you need to install an additional plugin which allows you to have PHP in your posts. I suggest Exec-PHP for this purpose.
Atoran, I’ll get on fixing that soon. I can tell right away what the problem is.
01/02/2010 at 3:19 am
That fixed [sic] it! Thanks!
01/04/2010 at 11:11 am
CycloPress 1.5.1 fixes the division by zero issue.
01/05/2010 at 3:59 am
Andrew,
Thanks a lot.
It works very well ^^
01/17/2010 at 7:14 am
Andrew
Is it possible to have the widget dipsplay the amount of km/miles per year instead of the whole total ?
I.e :
Instead of : 1865.35 kilometers, 18.2 km/h average speed
having
2009 : 1865.35 kilometers, 18.2 km/h average speed
2010 : xxxx kms xxx average speed
Thanks
Luc
03/13/2010 at 8:21 am
Hi,
Thanks for a good script!:)
You can add different bikes, can I get this information in the graphics?
Example, perhaps mountain biking one day and the next road.
Where do I change the background color of the image statistics?
thx
//Martin
04/25/2010 at 9:26 am
Hi Andrew,
I’ve been waiting for this plugin for years! I finally found it! Its awesome! But I can’t see my graphs? The control panel seems to work fine. It stores my ride data and I’ve read that Bluehost has the GD Library. I can’t seem to figure out how to make sure the directory is writeable, but you say to look at the Cyclopress Options page. It looks fine, but doesn’t say whether or not its writeable.
Any suggestions? I love this plugin–not sure why there aren’t tons for wordpress by now!
04/29/2010 at 1:35 pm
Luc, I can certainly add that as a feature in the next release.
Martin, I probably won’t be adding exactly what you’re asking for, since the graphs would get crowded fairly quickly. However, I’m working on a custom graph creator so you can chart stats for separate bikes or stats, instead of using the default graphs.
Farrin, you might try installing an additional plugin called PHP-Exec. If that doesn’t work let me know and I’ll give more info on what you need.
I’m a little behind on getting out the next release of CycloPress, but I’m making sure that additional plugins won’t be required, and a lot of the feature requests will be handled.
05/04/2010 at 7:27 pm
Hi Andrew,
Thanks again. I tried installing the PHP-Exec and it didn’t change the cycling stats page. Any other hints or suggestions? Here’s the page:
http://www.copycatfilms.com/bloggin/?page_id=1957
06/06/2010 at 2:10 am
Andrew,
Thanks a lot!:)
06/15/2010 at 9:11 pm
I am having the same issue as Farrin – I did try installing PHP-exec, but no go. i see his page is working now?
Any advice? Thanks!
08/04/2010 at 3:22 pm
Im gettign the same display as Tim did above. Ive installed PHP-Exec and nothing changed. Im sure its a simple case of something Im not doing.
08/05/2010 at 11:28 am
Try going into the Cycling Page Options under CycloPress Options and change something like the name of the page, then save it. This should trigger an update of the page. If it works you can change the name back to the original.
09/25/2010 at 5:16 am
Will there be an update soon? Things aren’t working for me.
10/24/2010 at 7:28 pm
Andrew,
Wonderful plugin. Thanks so much for sharing it with the world. I’ve rediscovered biking and this plugin is perfect for tracking my workouts. The only improvement I could possibly think of is to be able to setup a default bike rather than re-entering it for each new ride. Thanks again for this first-class plugin. JR.
12/10/2010 at 1:41 pm
Did the stats page display problem get fixed ? I just installed this and appear to have the same problem (tried all the above without success) – I note that Farrin’s page now works though
12/15/2010 at 1:20 pm
Works like a charm!! Only thing missing is the function to delete a ride!
01/11/2011 at 4:52 pm
Hi,
Are there any updates to CycloPress planned? I really like the plugin, but being able to delete a ride, or reset your statistics would be great. As would Luc’s suggestion from last year (suspect he came here for the same reason I did! I want to seperate this years stats from last years..)
Thanks
01/16/2011 at 2:43 pm
Very nice plugin! Nice to have statistic on your own site.
Two Questions: How do i display the way it`s shown at your page(2007, 08,09 etc.)?
And as it is a nice and usefull plugin, how do i make a link.
DeeMaac
04/26/2011 at 3:39 am
Hi,
Nice plugin! Thanks for all the good work!
If I may suggest:
I think the Write interface plugin should have a way of importing a ride – from any or all of the following formats:
.gpx – almost a standard way of mapping gps routes
.kml – google’s way of gps map routes
.tcx – garmin seems to export data to these file formats
This would be wonderful – I come back from a ride, plugin my device, download the file, fire up my website and upload the file, and my ride is recorded!
Please let me know if I could help in any manner to get this done – least, I could test it out for you!
Thanks again for all the good work!
Radha.
06/03/2011 at 12:17 am
Thank you so much for a great plug in. I was having a problem with the rides page but once I read these comments and found out about exec-php it worked just fine. You might want to add that into the install instructions as an aside as it seems to be a problem for many. Otherwise I think its a great plug in and cant want to play around with the widget.
06/03/2011 at 12:37 am
One more small question, is there a way to add or show just the latest rides states? (Distance, time, pace, etc). I would like to be able to add some info to a post either with PHP or some other way. I can execute the stuff from your API list but it only shows the latest ride date, but no other info.
Thanks!
07/30/2011 at 4:27 am
Greate plugin!
But is it possible to add some “tags” to the exercise, so I can log eg. spinning training, “fun rides”, competitions etc. and not just “a ride”?
When I exerciese in the winters, I do not ride the bike – i’m on the gym and spinning and then I can’t log any distance…
08/04/2011 at 1:07 am
We would like to add it to the following site http://www.grandigare.it , it is perhaps better to wait for an upgrade of puglin?
08/25/2011 at 12:13 pm
Hi
This plugin really is something I could use, I just need some additional data to put in. I want to combine my cycling log and my diabetes log to keep track of diabetes related issues during my rides. Can/will somebody help??
Kind regards
G
04/05/2012 at 8:22 am
Hi. firstly THANK for an excellent plugin! Really love it, and doing 2012 miles in 2012 challenge, it really hits the spot.
I am however struggling to get the Page functionality to work. In the back end I can see all the graphs and data etc, and the sidebar widget is updating perfectly as well, but if i add the Cycling page I just get the page saying that there is no data and “get out and ride”. So I am not sure why it’s not picking the data up. I haven;t amended the page in any way – simply just published it.
Do you have any pointers as to what or why this might be happening?
Thanks again for your excellent work!
TheMAMIL
08/18/2012 at 8:00 am
I can´t make my stats to display separate years, like you have done in your cycling page. You can teach me how to do?