Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, i love this module! When a 6.x version?
thanx a lot for your work
Comment | File | Size | Author |
---|---|---|---|
#26 | track.swf_.patch | 1.64 KB | chrissearle |
#15 | track.html_.txt | 8.2 KB | chrissearle |
#14 | track6xb.tar_.gz | 52.59 KB | gadzuk |
#7 | track-6x-chris-tip-vs-gadzuk2.patch | 12.61 KB | gadzuk |
#7 | track6x.tar_.gz | 52.58 KB | gadzuk |
Comments
Comment #1
chrissearle CreditAttribution: chrissearle commentedThought I'd have a look at this (would like to use it myself). I've got the install using the schema module, got file upload working (although I've temporarily lost the check that the filename is gpx right now - need to check the validators functionality for file_save_upload).
But - I am having a JS issue:
On node display - the javascript added to the footer is added OK - but - its not triggering an add of the drupal.js and jquery.js links to the head - so you get the error that $ is not defined
I've stepped thru the drupal_add_js function - they are being added to the js variables - so I suspect that its happening too late.
I've never run track on drupal 4 or 5 so I've not got a working copy to test against.
The code I'm hacking on is on http://dev.chrissearle.net/git/track.git
I'll keep digging on this - but be warned - its going to be a low priority - too much other stuff is going on both at work and at home right now.
Comment #2
gadzuk CreditAttribution: gadzuk commentedAwesome! I'm working 6.x also, you're ahead of me so I'll jump in.
I posted a 5.x version last year that is still working fine for me
http://drupal.org/node/123909#comment-707510
5.x sample:
http://www.quadsquad.ca/?q=track
Comment #3
chrissearle CreditAttribution: chrissearle commentedExcellent - I'll grab that later today ;)
I'll have to check your 5.x against HEAD (the last head comment from Gaby was "Drupal 5.x support"). But that will have to wait until this evening ;)
Comment #4
chrissearle CreditAttribution: chrissearle commentedWell - while waiting for a meeting to start I just discovered something new. In the file_validate_extensions function there is this code here:
Now that will teach me to test on a vanilla install with only one user.
I suspect at a later date we should also have a validator that tests for GPX complience.
However - meeting is about to start so I'll have to shelve this until this evening.
Comment #5
gadzuk CreditAttribution: gadzuk commentedThere's still a few NULL reference bugs in the 5.x HEAD that gaby didn't commit from my Jan 2008 5.x patch.
I've posted diff patch files between my 5.x and the HEAD
http://drupal.org/node/123909#comment-1260790
I'll do a compare of your tip revision to my working copy and post the diff.
Comment #6
gadzuk CreditAttribution: gadzuk commentedGetting very close now on Drupal 6.x.
Not thoroughly tested, not even alpha or dev quality but starting to converge and all seems to work except the GMAP.
Work-in-progress attached with two relative diff patches (wrt this project's head, and wrt Chris' tip revision)
Comment #7
gadzuk CreditAttribution: gadzuk commentedGot it! GMAPs working, menus fixed, divide by zeros and null references fixed, missing pushpin added.
Ready for review and testing.
To do:
- still too much settings overlap with GMAP
- review for security and robustness with 6.x
- optimization (lots of callbacks)
- externalize theme and language
- add in the waypoint / markers enhancement #135725: Track vs. this patch
Comment #8
chrissearle CreditAttribution: chrissearle commentedExcellent - will check that last patch today ;)
Comment #10
Gaby CreditAttribution: Gaby commentedFirst, sorry to not be active on this module...
Please administrators, create a cvs account for gadzuk. I will then give him cvs access to track module.
Thanks a lot.
Comment #11
chrissearle CreditAttribution: chrissearle commentedI grabbed track6x.tar_.gz
I'm still getting the error in firebug:
This is the javascript in the footer. There is no include of drupal.js or jquery.js in the head section. This is drupal 6.9 with two custom modules only - gmap and track.
I may just scratch the whole install and start again ;)
Comment #12
AjK CreditAttribution: AjK commented@Gaby, CVS account created.
Comment #13
gadzuk CreditAttribution: gadzuk commentedHold up on the reinstall, I'm having no trouble reproducing today.
Wonder what was different last night? I tried the obligatory cache->clear.
Oh. If I uncheck the track module, submit, re-check and submit it starts working.... strange.
Now I can't make the problem happen again. Can you please confirm that install / uninstall makes it work?
Comment #14
gadzuk CreditAttribution: gadzuk commentedFixed one problem with a missing leading slash for the flash graphs callbacks, but am back to not being able to reproduce the GMAP failure. Did a fresh install, still not failing. I'm suspecting a cache problem despite doing a clear cache but if you're willing could you please check this minor revision?
If the GMAP doesn't work can you please do a view / source and let me know if you're seeing this in the header?
If the flash graphs aren't working please post back with the lines invoking the SWF
I now have CVS access, thanks gaby! The HEAD version is now 6.x development (I hope)
Comment #15
chrissearle CreditAttribution: chrissearle commentedHmm.
Reinstalled - and edited an existing node. It had lost its gpx file connection - so I re-uploaded the file (this could well be due to using devel reinstall module or similar - so I'm not too bothered).
Still not seeing a map - but I am seeing much much more in the head.
I have to run to work right now - but attached - the HTML source (just in case its interesting). Could well be that I'm missing something obvious (not having run this at 4.x or with the 5.x trunk I've never seen it actually work so I could have missed a step somewhere).
Congrats on CVS access btw ;)
Comment #16
gadzuk CreditAttribution: gadzuk commentedThe HTML looks good. Are you seeing the flash graphs?
Please try this URL and let me know what you see (should be XML formatted coords for the GMAP)
/~chris/drupal/drupal-6/track/ajax/detail/38/
Comment #17
chrissearle CreditAttribution: chrissearle commentedGetting
I really do think I want to scratch this install ;) Its had so much strange stuff on it I'd rather not slow this issue with non-related issues.
I'll install a scratch clean 6.9 and then gmap and track from CVS head - then we'll see.
BTW - no - i see nothing other than title and body - no map - no flash - no nothing.
Comment #18
gadzuk CreditAttribution: gadzuk commentedI did a fresh install yesterday a couple of directories down from my sites's wwwroot. The map worked fine with the latest release above. From what you're getting it looks like the callback menu / URL is well constructed but the system isn't finding the GPX.
But the flash charts said loading and then froze. The "dataURL" argument to the track/profile and track/repartition was valid. But to get the charts to work I had to put 1/2 dozen "../../../.." in front of the url to make it work. Have to think more about the context and how to use relative URLs for arguments.
Comment #19
chrissearle CreditAttribution: chrissearle commentedWell - d.o is back up now - so I can grab a new 6.9 and stick the CVS head on.
My first wish is to get the same behaviour as you so that we can at least get consistency in debugging ;)
Comment #20
chrissearle CreditAttribution: chrissearle commentedGetting somewhere ;)
http://demo.chrissearle.net/track_test/node/1
Comment #21
gadzuk CreditAttribution: gadzuk commentedPerfect, I'm having the same (reproducable) problem with the charts ;-`)
Note that I'm having a bit of trouble getting my head around Drupal / CVS / releases. I'm checking into head but the automatic builds aren't working yet.
The link generated by the latest module for charts (from view / source)
http://demo.chrissearle.net/track_test/sites/all/modules/custom/track/mi...
Only works if t's changed to:
http://demo.chrissearle.net/track_test/sites/all/modules/custom/track/mi...
So the relative url handling of the dataURL argument by the chart component itself is a bit of a mystery when a site is installed under a directory folder below wwwroot. Works fine for a site installed at wwwroot. I suppose that sort of makes sense because the base URL for FC2Line.swf is deep.
Thought this might be a bug so looked for an update. But the latest free version of these flash charts no longer includes the 3D area chart that's used for the profile.
Comment #22
chrissearle CreditAttribution: chrissearle commentedRegards builds - http://drupal.org/handbook/cvs/quickstart - especially the bit about branches/tags - goes into generating builds/dev builds etc.
Those charts - hmm - the following also works:
http://demo.chrissearle.net/track_test/sites/all/modules/custom/track/mi...
Isn't that just dataUrl=$base_path/track/profile/id
?
Comment #23
chrissearle CreditAttribution: chrissearle commentedOh - watch out for base_path = / - we don't want a double //
Comment #24
chrissearle CreditAttribution: chrissearle commentedHmm.
Well - http://demo.chrissearle.net/track_test/sites/all/modules/custom/track/mi... works
But - when I apply the attached patch file the embedded view on the node display still fails.
Patch inline since the attach button is not working and it says to use Preview to attach files (which is failing too).
Comment #25
gadzuk CreditAttribution: gadzuk commentedAfter re-reading the W3 spec on relative URLs and parameters I think that code should work.
FusionCharts help file is here: http://www.fusioncharts.com/free/docs/
Couple of tips to follow up on under "Debugging Charts"
The Javascript approach might be something to try, do a view/source on this sample:
http://www.fusioncharts.com/free/docs/Gallery/Column3D.html.
Note the relative URLs.
Comment #26
chrissearle CreditAttribution: chrissearle commentedI may just have spotted it - hang on
Yay!
Check http://demo.chrissearle.net/track_test/node/1
Tips:
1) Remember that both OBJECT and EMBED need changes - not just one
2) Remember that the $base_path is needed both in the dataaUrl AND the path to the SWF file.
Patch attached I hope (they're still having issues it seems)
Comment #27
gadzuk CreditAttribution: gadzuk commentedThat's awesome, working great for me too!
Committed to HEAD.
Comment #28
chrissearle CreditAttribution: chrissearle commentedHave we reached the stage of wanting a 6.x-1.x-dev build to help others test?
If so - we'll need a 6.x branch in CVS and a project release node for the dev build to trigger the build of nightlies.
Comment #29
gadzuk CreditAttribution: gadzuk commentedDefinitely ready for a dev release, we should probably close this issue and start new ones for defects as found.
The 6.x branch is there in CVS but dev releases are automated and happen only every 12 hrs so should kick out in the next couple if the recent site upgrade didn't break anything.