1st of all I'd like to thank for the great possibility of displaying my dives online via phpdivinglog2.0...
but what im trying to do is implementing phpdivinglog2.0 into my joomla-installation as a contentpage (see here or here)
its no problem to display the phpdivinglog index page, but all other links arent obviously displayed correct...
any suggestions /solutions? maybe is there a mambot / component?
thx for the fast answer, i'll look over it... but now i got another problem at the moment: ver 1.9 did ´create a "correct output" (ok, the .css has to be adjusted http://www.medicdiver.de/external/logbook-wrapped.html), i removed it and installed 2.0... now im getting the following output when opening the index.php:
DocProc wrote:thx for the fast answer, i'll look over it... but now i got another problem at the moment: ver 1.9 did ´create a "correct output", i removed it and installed 2.0... now im getting the following output when opening the index.php:
the output of the german language file displays the html code instead of the special characters (i.e. "ü" instead of "ü", even "°" instead of "°"). if I adjust the german language file and replace them to the special characters there will be a "?" displayed or the whole word will be cut after the "?".
I see a possible bug in the calculation of the SAC, however I think the formula used is the right one.
You first calculate the divetime using $divetime = $profileint * $length;
And this I think is wrong in some cases (i'll describe it below).
You'd better use the divetime stored in mysql (table Logbook, field Divetime).
When does it go wrong?
When for example one stops the dive (ascent to surface) and has to swim some minutes back to shore or wait in the water to be able to re-enter the boat. During this time the computer keeps on measuring because the water contacts still stay wet. In the profile drawn you can see this because the last few minutes are a kind of a flat line at almost no depth.
The divetime stored in de database is the divetime up to the ascent, but the divetime used in calculating the SAC is the divetime up to leaving the water. You'll especially get wrong numbers if you don't breath through the regulator while at the surface.
I think you are right and I will change this in the next release.
For @rno I'm currently fixing the problem which people have on hosting environments where mod_rewrite isn't working. Like godaddy and mijndomein.nl. This version is ready for testing probably thursday. Then you have the option to choose between index.php/<user_id>/<dive_nr> and index.php?user_id=<user_id>&id=<dive_nr> styled links
CHANGELOG:
* Added the option the use query strings for hosts that don't support mod_rewrite (like Godaddy and mijndomein.nl)
* Changed SAC calculation to read the divetime from the Divelog table
* Several UTF-8 fixes
* Jpgraph upgrade to 1.22
* Pear pager upgrade