photos on profile page.

Racking my brains here, tried all sorts of modules, modifications etc and so far no joy...

 

I need to have a single photo album for a profile.

the photos from that album, need to display ON THE PROFILE PAGE... 

I don't want to display a block showing 'the albums thumbnails' on the profile page, then when a viewer clicks on it, they are moved away from the profile page and into a completely different module in order to view the photos!

Chances are, they will then click on another 'module' link, and remain in the module instead of on the profile where they were...

 

On top of that, I would like when you click on a 'profile photo' (within the profile photos block) that it is displayed on a pop up (lightbox) rather than again - having to view in a different page.

 

Seems to be a simple request, but a mind boggling task to accomplish with Dolphins module layout...

Quote · 4 Dec 2014

 

Seems to be a simple request

 All requests are simple.  It's the solutions that are a bewildering nightmare.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 5 Dec 2014

Very simple change to add pagination to the Profile Photos Block on the Profile Page.  Then one can just click through the images in the album right on the Profile Page.  Somewhere in the forums I detailed the change, just a couple of lines in the Photos Search file in the photo module.  Does away with that clunky change profile photo block that Boonex added.  Dolphin 6 had the best solution but I have not looked at adding it back to Dolphin 7 yet, maybe I will code a module for that and add it in the market.  Dolphin 6 had a javascript slide show and filmstrip for the Profile Photo Block that worked extremely well but you know how Boonex is.

Geeks, making the world a better place
Quote · 5 Dec 2014

The Profile Photos in a light box; Dolphin already ships with fancybox but you have to code the images with a group tag; not sure if that can be done easily with the Profile Photo block.  Something to play with when I have the free time.

Geeks, making the world a better place
Quote · 5 Dec 2014

Can you post the link to that forum for this change ? Saves us a lot of time to search through the forums. I could use this one as well.

Very simple change to add pagination to the Profile Photos Block on the Profile Page.  Then one can just click through the images in the album right on the Profile Page.  Somewhere in the forums I detailed the change, just a couple of lines in the Photos Search file in the photo module.  Does away with that clunky change profile photo block that Boonex added.  Dolphin 6 had the best solution but I have not looked at adding it back to Dolphin 7 yet, maybe I will code a module for that and add it in the market.  Dolphin 6 had a javascript slide show and filmstrip for the Profile Photo Block that worked extremely well but you know how Boonex is.

 

Quote · 5 Dec 2014

 This would give half the result though, it would allow you to 'browse' the photos on the profile block, but not view them.

As soon as you went to view them you would be re-directed to the photos module which is not good for site flow.

 

Im looking at having a module converted to allow viewing of photos directly on profile page without leaving it.

Should be this way be default for 'profile photos'!

Very simple change to add pagination to the Profile Photos Block on the Profile Page.  Then one can just click through the images in the album right on the Profile Page.  Somewhere in the forums I detailed the change, just a couple of lines in the Photos Search file in the photo module.  Does away with that clunky change profile photo block that Boonex added.  Dolphin 6 had the best solution but I have not looked at adding it back to Dolphin 7 yet, maybe I will code a module for that and add it in the market.  Dolphin 6 had a javascript slide show and filmstrip for the Profile Photo Block that worked extremely well but you know how Boonex is.

 

Quote · 5 Dec 2014

You can also change the size of the photo block; you could place it in a wider column; so that would help.  Currently the block size is set in the code.

A light box solution like you suggested would be the best way, you could see the large size images and page through them and easily close the light box.

Geeks, making the world a better place
Quote · 5 Dec 2014

 

Can you post the link to that forum for this change ? Saves us a lot of time to search through the forums. I could use this one as well.

I don't know where it is, I would have to search just the same as you; search for photo block pagination geek_girl.  However, to show how sweet I am, I will see if I can find it for you by searching the forums.

Geeks, making the world a better place
Quote · 5 Dec 2014

This is the code where the size of the profile photo block is set:

in the getPhotoBlock function:

if (defined('BX_PROFILE_PAGE') || defined('BX_MEMBER_PAGE')) {
                $iPhotoWidth = 259;
                $sImgWidth = 'style="width:' . $iPhotoWidth . 'px;"';

 

This is for the profile photo block; the block on the profile page that normally just shows one photo and the block that the profile switcher block changes.   As you can see, they set the width of the photo to a fix size, 259 px; so no matter how wide you make the column that holds that block, the profile photo will always be 259 px wide.

Now, you can change that to width:100%, min-width, max width; what every css you want to use.

In the case above, it will make the style declaration style="width:259px;"

Change $iPhotoWidth = 259; to $iPhotoWidth = '100%' and the new style declaration becomes

style="width:100%;"

Or if you like, you can do away with the inline style and change that to load in an external class.

Geeks, making the world a better place
Quote · 5 Dec 2014

Make the following changes in the BxPhotoSearch.php around lines 284 (7.1.x) to turn on pagination.  This does away with having to use the clunky Profile Photo Switcher block.

    function serviceProfilePhotoBlock ($aParams)
    {
        if(!isset($aParams['PID']) || empty($aParams['PID']))
            return '';

        $sOwner = getUsername($aParams['PID']);
        $sCaption = str_replace('{nickname}', $sOwner, $this->oModule->_oConfig->getGlParam('profile_album_name'));
        $sLink = $this->getCurrentUrl('album', 0, uriFilter($sCaption)) . '/owner/' . $sOwner;

        $aParams['LinkUnitTo'] = $sLink;
        $aParams['DisplayRate'] = 0;
        $aParams['DisplayPagination'] = 1;
        $aParams['DisplayLink'] = 0;
        $aParams['Limit'] = '';

        return $this->getProfilePhotoBlock($aParams);
    }

Geeks, making the world a better place
Quote · 5 Dec 2014

Thanks GG. 

Not sure this option is for me but appreciate the option being there!

Don't suppose you have a solution for the 'light box' style or pop out style viewing of these images...!

Quote · 5 Dec 2014

you can do that with a lytebox. I have done it for photos and videos on some of my modules and the outline.


Quote · 6 Dec 2014

daihlo here is a sample of what you are looking for i think.

Check the attachment.

2014-Profile-photos-lytebox.mp4 · 1.7M · 186 downloads
Quote · 9 Dec 2014

Solusoft, I can open your attachment, but there's nothing to see or hear :-)

Quote · 11 Dec 2014

Solusoft, this Lytebox is very interesting, but how to implement it in the photo module ?

Quote · 11 Dec 2014

geek_girl, I found the link, but that's not what I'm searching for. It's definitely something like the Lytebox so I can leave the photo module as it is now out of my site. It is useless for me.

 

Quote · 11 Dec 2014

 

Solusoft, this Lytebox is very interesting, but how to implement it in the photo module ?

Hello Annabel, it depends how you want to use it. Send me PM and i'll give you access to my test site.

Quote · 11 Dec 2014
 
 
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.