phpDivingLog

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
Inferno
Posts: 252
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno » Tue Jul 17, 2012 06:35

ebnerjoh wrote:
Inferno wrote: - Tried to look for an off the shelf gallery application, however I didn't find an package which would fit in nicely and without lots of coding. One thing which worked, was setting a user defineable field in divelog which points to a gallery album. However I liked this more.

- The browser is downloading the thumbs, however to make viewing the images more fluid, highslide is perloading the first five images. So it is not dowloading all images
=> http://highslide.com/ref/hs.numberOfImagesToPreload
If you want an option to disable this, I could make this configurable
No, I think this is ok. I resized my images and I have the originals on my main gallery.
Inferno wrote: => for the moment no donate button, since I like to do this kinds of things when I have time. When people are sending me gifts/money they expect things from me and when my normal day job is too demanding or I fancy doing some other things. I don't give support.
I fully understand. Maybe better then a "donate money" is a "donate beer" button :-)


I have now just two topics/questions:
1) I saw, that the language can be changed, is german available?
2) I have only at the "Dive City" the possibility to show a dive map, not at the "Dive Location" although there is a DB-Entry for that.
1) Yes there is a german language file available, however not all terms are translated
See here: http://diving.lensen.nu/phpDivinglog_ro ... p?f=german
So if you fancy update it:
Update this file https://github.com/Infern1/phpDivinglog ... an.inc.php
And add for example: $_lang['first_shop_linktitle'] . You can find the english text here:
https://github.com/Infern1/phpDivinglog ... sh.inc.php

2) mm can be, have to look for it

Yes donate beer sounds better ;)

ebnerjoh
Posts: 27
Joined: Fri Jul 06, 2012 17:59

Re: phpDivingLog

Post by ebnerjoh » Tue Jul 17, 2012 06:59

Inferno wrote:
1) Yes there is a german language file available, however not all terms are translated
See here: http://diving.lensen.nu/phpDivinglog_ro ... p?f=german
So if you fancy update it:
Update this file https://github.com/Infern1/phpDivinglog ... an.inc.php
And add for example: $_lang['first_shop_linktitle'] . You can find the english text here:
https://github.com/Infern1/phpDivinglog ... sh.inc.php
Yes, I will try. How can I activate the german language pack? If I change the config.inc.php from english to german, nothing is working anymore.

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

Re: phpDivingLog

Post by Inferno » Tue Jul 17, 2012 07:15

ebnerjoh wrote:
Inferno wrote:
1) Yes there is a german language file available, however not all terms are translated
See here: http://diving.lensen.nu/phpDivinglog_ro ... p?f=german
So if you fancy update it:
Update this file https://github.com/Infern1/phpDivinglog ... an.inc.php
And add for example: $_lang['first_shop_linktitle'] . You can find the english text here:
https://github.com/Infern1/phpDivinglog ... sh.inc.php
Yes, I will try. How can I activate the german language pack? If I change the config.inc.php from english to german, nothing is working anymore.
The only thing you should do is indeed change config english to german, however things might be not working, since the missing language terms

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

Re: phpDivingLog

Post by Inferno » Tue Jul 17, 2012 07:42

Language german should now work, when you update from github

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

Re: phpDivingLog

Post by Inferno » Tue Aug 07, 2012 14:23

Rather big commit to github, so if you want to have the latest version check it out.

- New profile display based on jqplot, looks nice :)
- Round numbers fixed
- Starting to remove mutliuser code

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Wed Aug 08, 2012 20:10

Hey Inferno,

Downloaded new install, and when I click on a particular dive, i.e. #41. I get an error that reads:

Code: Select all

Fatal error: Call to undefined function toFeet() in /home/content/78/7630278/html/divelog/includes/misc.inc.php on line 419
I also cannot get into the "Breathing" and "Comments" tab of the one dive I do have access to #44.
Everything else works/looks great! The new graph is pretty slick looking, too.

-Stew

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Wed Aug 08, 2012 20:14

Also, if I only have one certification listed on my statistics page, I get this weird error that adds a bunch of empty certification spots. I'll leave it up for you to check out. If I put a 2nd certification down, as I had before a "Test"one, the turn out is successful, shows two certifications. My open water and my "test" one.
http://scuba-stew.com/divelog/divestats.php?view=list

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

Re: phpDivingLog

Post by Inferno » Wed Aug 08, 2012 20:28

Stew wrote:Hey Inferno,

Downloaded new install, and when I click on a particular dive, i.e. #41. I get an error that reads:

Code: Select all

Fatal error: Call to undefined function toFeet() in /home/content/78/7630278/html/divelog/includes/misc.inc.php on line 419
I also cannot get into the "Breathing" and "Comments" tab of the one dive I do have access to #44.
Everything else works/looks great! The new graph is pretty slick looking, too.

-Stew
Check out latest version, should fix these problems

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Thu Aug 09, 2012 00:03

Hey Inferno,

Thanks for the update, that fixed those issues just like you said.

Reason for Edit: Nevermind. :)

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Thu Aug 09, 2012 00:16

Spoke a little too soon. Everything is loaded and the images work, except now when I click on them I only get an image that's a little bit bigger then the thumbnail.

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

Re: phpDivingLog

Post by Inferno » Thu Aug 09, 2012 07:09

Stew wrote:Spoke a little too soon. Everything is loaded and the images work, except now when I click on them I only get an image that's a little bit bigger then the thumbnail.
Your original photo's are that size... Don't know if they are resized by phpDivinglog?

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Thu Aug 09, 2012 15:11

Yah it looks like it resized my original images from 2592 x 1944 down to 200 x 150. Is there a max image size (pixel wise) for this? I figured it was just size in bytes that I had to worry about.

Stew
Posts: 32
Joined: Fri Jun 22, 2012 15:50

Re: phpDivingLog

Post by Stew » Thu Aug 09, 2012 17:13

I noticed when I deleted all of the resized images (not the thumb_ ones) and re uploaded my originals, it looks fine when I view them through the log, but if I try to open the "Gallery" it goes into resize mode, and saves over my originals. I've tried disabling resizing in the config but it hasn't worked for that yet.

ebnerjoh
Posts: 27
Joined: Fri Jul 06, 2012 17:59

Re: phpDivingLog

Post by ebnerjoh » Thu Aug 23, 2012 09:26

I upgraded now to the latest version, but I have some issues:

1) On the Main Page I am getting the following error:

Code: Select all

Notice: Undefined index: decsep in /var/www/localhost/htdocs/phpdivinglog/includes/misc.inc.php on line 715
2) In the loogbook:

Code: Select all

Notice: Undefined index: decsep in /var/www/localhost/htdocs/phpdivinglog/includes/smarty/plugins/modifier.commify.php on line 40
3) In Breathing:

Code: Select all

Notice: Undefined index: decsep in /var/www/localhost/htdocs/phpdivinglog/includes/smarty/plugins/modifier.commify.php on line 40
rest is working fine. Maybe this is caused due to a neccessary PHP upgrade to 5.4?

Br,
Johannes

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

Re: phpDivingLog

Post by Inferno » Thu Aug 23, 2012 09:38

Add this to your config.inc.php

Code: Select all

/**
 * Decimal separator 
 */
$_config['decsep'] = ",";

Post Reply