phpDivinglog 2.2 development

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
zeroGsa
Posts: 12
Joined: Fri Apr 23, 2010 13:25
Location: FL, USA
Contact:

Re: phpDivinglog 2.2 development

Post by zeroGsa »

Thanks Terry! This helps a lot! One question though, the link on this page takes me to a site to download phpDivinglog 2.1.2. This thread is talking about phpDivinglog 2.2. Is that available for download somewhere?
terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Re: phpDivinglog 2.2 development

Post by terrylowe »

zeroGsa
Posts: 12
Joined: Fri Apr 23, 2010 13:25
Location: FL, USA
Contact:

Re: phpDivinglog 2.2 development

Post by zeroGsa »

Perfect! Got it up and running. Thanks again Terry!
terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Re: phpDivinglog 2.2 development

Post by terrylowe »

Up and running?? It took me a LOT longer than that. Congrats.

Would love to see the final product if it isn't private....

Terry
zeroGsa
Posts: 12
Joined: Fri Apr 23, 2010 13:25
Location: FL, USA
Contact:

Re: phpDivinglog 2.2 development

Post by zeroGsa »

My original dive logs (in HTML) are exported to:
http://www.mugga.net/scuba
The new phpDivinglog2.2 output is accessible here:
http://www.mugga.net/divelog

Using the Diving Log 5.0 / MySQL / phpDivinglog2.2 combination is WAY easier to maintain! Just need to get a little more functionality and I think I can replace it for good.

Still trying to figure out the following:
1. How to get my images to show up.
2. How to get comments broken up into paragraphs.
3. How to get my water temperature graphs.
4. How to get this to work with a remote MySQL server so I can run it on my GeekDiver.com site.

I am having fun getting this all figured out and set up though! Plus, I am inspiring my dive buddies and students to maintain good logs with awesome software!!
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivinglog 2.2 development

Post by Inferno »

zeroGsa wrote: Still trying to figure out the following:
1. How to get my images to show up.
2. How to get comments broken up into paragraphs.
3. How to get my water temperature graphs.
4. How to get this to work with a remote MySQL server so I can run it on my GeekDiver.com site.

I am having fun getting this all figured out and set up though! Plus, I am inspiring my dive buddies and students to maintain good logs with awesome software!!
1. Looks you already fixed this? Since I can see your pictures
2. Have to look into this, don't know how the data is in the mysql database
3. You want to have the water temp graph next to the dive depth? I don't know if this data is stored in the mysql database, if so I can make a graph of it
4. Should be no problem, just adjust your config.inc.php and make sure mysql can be reached from remote, say port 3306 is opened
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: phpDivinglog 2.2 development

Post by divinglog »

Hi Rob

All profile data is exported to MySQL. The temperature graph is in the Profile2 data stored. The description is here: viewtopic.php?f=10&t=652

Please note that not all computers store this data, so the Profile2 field could be empty, NULL or contains just zeros.

Sven
zeroGsa
Posts: 12
Joined: Fri Apr 23, 2010 13:25
Location: FL, USA
Contact:

Re: phpDivinglog 2.2 development

Post by zeroGsa »

Thanks guys!!

1. You are correct! I found, if I select the option to remove the path to the image while doing the export from Diving Log and place the photos in the images/pictures directory, they show up. Sorry for being slow. :-P

2. If you look at "Diving Log Online" by vasco_nl, he is importing it with paragraph formatting. Looking at the HTML, I see two <BR> entries between each paragraph. Not sure if he's adding them. You can see it here: http://www.mugga.net/divinglog/index.ph ... ail&id=276

3. Diving Log shows the temp graph below the profile graph. My Citizen program shows it overlaying the profile. I would be happy with either one. It's just fun to look back and see the thermoclines I went through. You can see in this graph, the temp dots are all over the place: http://www.mugga.net/scuba/20100417-2-HudsonGrotto.html

4. Any luck getting the program to run with a remote MySQL server? :-D I still have been unable to figure this one out. I have been able to make many modifications to the format, just can't get it to run remotely.

Thanks again to everyone!! It is so nice to own products that are so well supported (by both the manufacturer and the community)!
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivinglog 2.2 development

Post by Inferno »

zeroGsa wrote:Thanks guys!!

1. You are correct! I found, if I select the option to remove the path to the image while doing the export from Diving Log and place the photos in the images/pictures directory, they show up. Sorry for being slow. :-P

2. If you look at "Diving Log Online" by vasco_nl, he is importing it with paragraph formatting. Looking at the HTML, I see two <BR> entries between each paragraph. Not sure if he's adding them. You can see it here: http://www.mugga.net/divinglog/index.ph ... ail&id=276

3. Diving Log shows the temp graph below the profile graph. My Citizen program shows it overlaying the profile. I would be happy with either one. It's just fun to look back and see the thermoclines I went through. You can see in this graph, the temp dots are all over the place: http://www.mugga.net/scuba/20100417-2-HudsonGrotto.html

4. Any luck getting the program to run with a remote MySQL server? :-D I still have been unable to figure this one out. I have been able to make many modifications to the format, just can't get it to run remotely.

Thanks again to everyone!! It is so nice to own products that are so well supported (by both the manufacturer and the community)!
Can you test:
http://rob.lensen.nu/devdoc/phpDivinglo ... ta8.tar.gz
http://rob.lensen.nu/devdoc/phpDivinglog-2.2-beta8.zip

Fixed the formating
Last edited by Inferno on Fri May 07, 2010 07:19, edited 1 time in total.
terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Re: phpDivinglog 2.2 development

Post by terrylowe »

I uploaded the new beta phpDivinglog and get the following error...

Fatal error: Only variables can be passed by reference in D:\Hosting\6090303\html\dive\classes.inc.php on line 1491

I installed the older beta and it works again

Terry
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivinglog 2.2 development

Post by Inferno »

terrylowe wrote:I uploaded the new beta phpDivinglog and get the following error...

Fatal error: Only variables can be passed by reference in D:\Hosting\6090303\html\dive\classes.inc.php on line 1491

I installed the older beta and it works again

Terry
A typo

http://rob.lensen.nu/devdoc/phpDivinglo ... ta8.tar.gz
http://rob.lensen.nu/devdoc/phpDivinglog-2.2-beta8.zip
zeroGsa
Posts: 12
Joined: Fri Apr 23, 2010 13:25
Location: FL, USA
Contact:

Re: phpDivinglog 2.2 development

Post by zeroGsa »

This looks great!
terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Re: phpDivinglog 2.2 development

Post by terrylowe »

Yes....works now! Thanks inferno!
ianr
Posts: 47
Joined: Thu Sep 17, 2009 11:44

Re: phpDivinglog 2.2 development

Post by ianr »

Inferno wrote:
ianr wrote:The first option seems easiest as it limits it to the basic list in the divelog software.

My preference would be to show all of the dive types if possible but I'm not sure what you mean by looping thorugh them.
Sorry for the programmers talk ;). But with looping through them I mean, that I will display available dive types which are in Diving log, since you can define your own as well. So this means you can have 30 different types, but the question is then do I want them displayed all or only the first six.
Hi,

Did you manage to get any further with this? This is the only real downside to an excellent tool and it would finish things off nicely if we could iron out this wrinkle in the code.

Thanks
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivinglog 2.2 development

Post by Inferno »

Didn't had time to do this. But I will make a start with this asap. My goal is the end of the week.
Post Reply