This is how I modifi
Posted: 06 Apr 2008, 12:07
This is how I modified the image size of the content and link for the piclens RSS creation.
in administrator\components\com_phocagallery\models\phocagalleryc.php I modified function piclens() . In the foreach ($rows as $krow => $vrow) loop I added this line under $file:
$origfile = str_replace("//", "/", str_replace( "../", "/", $file['path_with_name_relative'] ) );
I then modified $item->appendChild( $this->_buildXMLElement( 'link', $thumb_image_path) ); to be:
$item->appendChild( $this->_buildXMLElement( 'link', $origfile ) );
And lastly I modified $content->setAttribute( 'url', $thumb_image_path); to be:
$content->setAttribute( 'url', $origfile );
This now lets piclens use the original sized file for the image when the image is targeted in piclens. Also, when the link button is pressed at the top of the piclens page it will now open up the original sized image. I really believe that since piclens will already resize the image based on your monitor's resolution, you might as well provide it with the full sized image.
I would recommend that these 3 changes be made to the next release of phoca.
Rick
in administrator\components\com_phocagallery\models\phocagalleryc.php I modified function piclens() . In the foreach ($rows as $krow => $vrow) loop I added this line under $file:
$origfile = str_replace("//", "/", str_replace( "../", "/", $file['path_with_name_relative'] ) );
I then modified $item->appendChild( $this->_buildXMLElement( 'link', $thumb_image_path) ); to be:
$item->appendChild( $this->_buildXMLElement( 'link', $origfile ) );
And lastly I modified $content->setAttribute( 'url', $thumb_image_path); to be:
$content->setAttribute( 'url', $origfile );
This now lets piclens use the original sized file for the image when the image is targeted in piclens. Also, when the link button is pressed at the top of the piclens page it will now open up the original sized image. I really believe that since piclens will already resize the image based on your monitor's resolution, you might as well provide it with the full sized image.
I would recommend that these 3 changes be made to the next release of phoca.
Rick