View original image when you click on the image?

Hi everyone,

 

I'm trying to mimic the "view original" action button by adding the URL to the actual image.  So, instead of clicking the "view original" button to view the image, you view the original image when you click on the image.  I've found this code so far:

 

'{moduleUrl}get_image/original/{fileKey}.{fileExt}'

 

However, I don't know what type of block I should put it into so that Dolphin understands it correctly.  Anyone have any ideas?

Quote · 27 Jan 2011

I figured it out.  I added the following to BxPhotosPageView.php:

 

In the "function getBlockCode_ViewFile", below "'root' => BX_DOL_URL_ROOT", add this:

'picBB' => BX_DOL_URL_ROOT . 'm/photos/get_image/original/' . $this->aFileInfo['Hash'] . '.jpg',

 

In view_unit.html, look for this:

<div class="fileUnitPic" style="width:__width_ext__px;">

<img id="tern" src="__pic__" class="fileUnitSpacer"/>

</div>

 

And replace it with this:

<div class="fileUnitPic" style="width:__width_ext__px;">

<a href="__picBB__"><img id="tern" src="__pic__" class="fileUnitSpacer"/></a>

</div>

Quote · 30 Jan 2011

Move your code suggestion to code sharing section here : http://www.boonex.com/unity/forums/group/Dolphin.htm#forum/Code-Sharing-0.htm

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 30 Jan 2011

Modify the code a bit to get the extension from the database

Change from:

'picBB' => BX_DOL_URL_ROOT . 'm/photos/get_image/original/' . $this->aFileInfo['Hash'] . '.jpg',

To:

'picBB' => BX_DOL_URL_ROOT . 'm/photos/get_image/original/' . $this->aFileInfo['Hash'] .'.' . $this->aFileInfo['medExt']

Geeks, making the world a better place
Quote · 27 Aug 2012

I'm trying to get video thumbnails to show on the video page, kind of using ideas from this thread. Please see the thread here:

http://www.boonex.com/forums/#topic/How-to-include-Youtube-thumbnail-on-video-page-.htm

Quote · 6 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.