Closed (fixed)
Project:
Track
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Mar 2007 at 19:44 UTC
Updated:
17 May 2009 at 12:27 UTC
Jump to comment: Most recent file
If possible, I'd like to see this module up to date with Drupal 5.x.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | track-47-vs_head.patch | 19.42 KB | gadzuk |
| #14 | track-head-vs-gadzuk.patch | 14.51 KB | gadzuk |
| #11 | track_5x.module.txt | 22.09 KB | lenkkivihko |
| #5 | track-5.6.x.patch | 16.48 KB | gadzuk |
| #4 | track_drupal5.tar_.gz | 232.13 KB | gadzuk |
Comments
Comment #1
ray007 commentedI'd help with the task if
- there were not french in use for naming functions and variables
- there were some comments to help around the code
as it is I fear I have to start yet another module :-(
or maybe an addon to gmap ...
Comment #2
JohnG-1 commentedtracking ;)
Comment #3
ray007 commentedIf you check the issues for the gmap module you'll find a patch from me there to parse and display gpx-files.
But no track-management ... *hint, hint*
Comment #4
gadzuk commentedI managed to beat the 4.7 code into working with Drupal 5.x. This needs a thorough review and more testing, but it's working fine for me so I'll post in case anyone else finds it useful.
I've made a few changes that make this update depending on the GMAP module, but certainly not what I would call reuse.
I have not tested yet on a fresh Drupal 5.x install, I had upgraded from 4.7 to 5.x and already had some tracks installed.
Comment #5
gadzuk commentedThis needs a review and more testing, but it's working fine for me so I'll post in case anyone else finds it useful. Not tested on a fresh 5.x install, I had recently upgraded from 4.7.
The attachment was created using
diff -urpN
To use this patch, download track-4.7.x-1.x-dev, then manually apply this patch or use the instructions at http://drupal.org/patch
Comment #6
lenkkivihko commentedsettings_hook used. That needs to be updated in order to have Admin UI.
and this needs to be added function track_menu($may_cache) {
Comment #7
sti commentedI'm trying to get Track to work with a clean install of drupal 5.7.. Anyone managed to do that? If so please tell me how!
btw the 4.7 track module with drupal 4.7 used to work, but not anymore:(
My site is all about this module so I really need it to work! All help much appreciated.
Comment #8
Gaby commentedI'm really sorry about that, I've comitted a patch without really reviewing it, not even applying the correct branch :(
Drupal module development is a bit complicated and I forgot almost everything about it, I'll try to fix that asap.
Anyway, for a working 4.7, try to get the version before my last commit.
Comment #9
lenkkivihko commentedI did following:
* Find + replace paths of the files to right places. Paths are hardcoded t
* Fixed settings_hook as described above - alternative solution is to manually update the variables table with for googleapi key
And it worked on my localhost. Unfortunately it complanied someting about APIkey on my production server. Didn't manage to get it working...
But if someone gets this working, surely give a try...
Comment #10
sti commentedlenkkivihko please share your track module files! If you made it work on your localhost you must be close.. I also see that your site is offline now, Upgrading to drupal 5?? ;)
Comment #11
lenkkivihko commentedRight Sti!
Unfortunately it seems to be gone with rm * in my 5.x upgrade. (so right guess, I am in middle of upgrading my site! :-))
Did the same work, but did not test it.
See the track.module attached.
Additionally you need to make sure that hardcoded e.g.,
Atleast in my installation the track module is placed in modules/contrib/track vs. the base directory. --> in 4.7 it used to be in modules/track -folder.
track.tile.inc
maps.inc.js
track.module
Replace atleast these strings with right strings in your site.
Sorry not to provide full and working solution, but I am in middle of upgrading my site to 5.x....
Comment #12
sti commentedThanks lenkkivihko. But I still have problems with all the provided solutions.. (lenkkivihko's tips, files from the cvs and the track_drupal5.tar_.gz). I know it is only some minor changes before this wil work, but my php/drupal skills are'nt good enough to solve this:( C'mon gaby, lenkkivihko and gadzuk! this track module is to cool to not work! (And the biking season is starting soon!)
Comment #13
centralbyrakraten commentedHas anyone made any progress in this subject lately?
I´ve tried all tips and tricks in the thread but it feels like I´m far from a working version.
Comment #14
gadzuk commentedSome of the patch I submitted above didn't make it into the HEAD.
Differences
- INSTALL.txt note indicating module doesn't work correctly with caching turned on
- checks added for NULL reference in the .js files
- remove dependencies on path $ROOT/module/track vs $ROOT/sites/all/modules/track
- adjusted the default scaling (ATVs cover more ground than bicycles)
- Some of the user-facing strings changed to English
- added an overlay bitmap to the KML download (oops, can't edit / delete this attachment)
(edit to suit your application in function htmlentities2unicodeentities)
Demo under Drupal 5.14
- http://www.quadsquad.ca/?q=track
Attachments:
1. distro 4.7 version vs HEAD in patch format
2. HEAD vs my changes in patch format
Comment #15
gadzuk commentedUpdated and branched in CVS
Comment #16
gadzuk commentedComment #17
gadzuk commented