Page 1 of 1

Displaying Aux:lens and flash info

Posted: 05 Jun 2013, 22:52
by seguinot
Hi

I have been working with Pascal ( a friend who also posted in this forum) on correcting some typo remaining in the rendering of image information. Pascal was also interestd in displaying Aux:Lens (lens info) as flash info.

We propose a simple solution which :
  • maintain the normal behaviour of Phoca Gallery even when the proposed hook (phocagallery_hook_exif_info.php) is not present or damaged
  • almost resist to future Phoca upgrade excepted if the Phoca Gallery code is completely changed. (*)
  • correct some typo errors due to rational fields
  • add Aux:Lens and flash info.
To implement this solution, you may use the provided code and:
  • Add Translation in appropriate file : language/en-GB/en-GB.com_phocagallery.ini for english (language/fr-FR/fr-FR.com_phocagallery.ini for french )
  • add php file phocagallery_hook_exif_info.php in components/com_phocagallery/views/info folder
  • Modify php file com_phocagallery/views/info/view.html.php according too diif (patch) file (2 lines to suppress ( - sign at line beginning) and 8 new lines ... line number may differ according to Phoca Gallery version (we used 3.2.3) )
After the next release, Phoca will return to its normal behaviour. You will have to once again:
  • apply patch
  • add translations string
We hope that this code can help or can be added to a next Phoca Gallery version.

code to be added to en-GB.com_phocagallery.ini

Code: Select all

;[Adaptations Christophe SEGUINOT]
COM_PHOCAGALLERY_EXIF_FLASH_FIRED="Flash did not fire"
COM_PHOCAGALLERY_EXIF_FLASH_NOT_FIRED="Flash fired"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_UNKNOWN="flash mode unknown"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_COMPULSARY="compulsory flash mode"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_OFF="flash unactivated"
COM_PHOCAGALLERY_EXIF_FLASH_MODE_AUTO="auto mode"
COM_PHOCAGALLERY_EXIF_FLASH_RED_EYE_ON="red-eye reduction mode"
COM_PHOCAGALLERY_EXIF_FLASH_RED_EYE_OFF="no red-eye reduction"
COM_PHOCAGALLERY_AUX_LENS="Lens"
Sorry but this message was containig more than 3000 characters so see other codes are available on (french website, english commented code)
http://forum.valroc.net/viewtopic.php?f ... 1854#p1854
  • phocagallery_hook_exif_info.php
  • code to be added to fr-FR.com_phocagallery.ini
  • patch allowing to modify components/com_phocagallery/views/info/view.html

Re: Displaying Aux:lens and flash info

Posted: 07 Jun 2013, 19:20
by Jan
Hi, thank you for the guide.