Where to find file for the Profile Photo Switcher?

Where can i find the file for the Profile Photo Switcher?
I want to remove some things just as the thumbnails... 

Quote · 2 May 2014

Look in BxPhotoSearch.php

Geeks, making the world a better place
Quote · 2 May 2014

I searched in that file but don't find the div's that i look for ( switchUnitRow )

Quote · 2 May 2014

Oh, you want the template file.

Geeks, making the world a better place
Quote · 2 May 2014

That was easy, look in the /modules/boonex/photos/templates

profile_switcher.html

Geeks, making the world a better place
Quote · 2 May 2014

Thanks. Found him :)

Only 1 problem. I have set the profile photo switcher in the profile info page.
I want to have the pictures "screen filling" ( height 100%;width:100%; ), but that isn't possible with the image as background ( background-size:cover;background-position:center ) because than the pagination isn't working and you only see the latest picture.

Anyone a solution?

http://www.hea.vn/profile_info.php
Username: sophie@hea.vn
Password: 80got1 

Quote · 2 May 2014

I would not post user login info in the forums as they are crawled by the search engines.

The width of the profile photo is hard coded in the photo search file.

See my post here: http://www.boonex.com/forums/forum/Tips-Tricks-Sharing-40.htm#topic/Profile-Photo-Block.htm

What I did was to remove the profile photo switcher and just added the pagination to the profile photo block.

Geeks, making the world a better place
Quote · 3 May 2014

That's no problem. The password changes everyday.

I looked at your post, but is it that simple to change?


Does this also work when i remove the image and set the profile photo as background so i can set the height and width on 100% and the background-size on cover?

Quote · 3 May 2014

 

That's no problem. The password changes everyday.

I looked at your post, but is it that simple to change?


Does this also work when i remove the image and set the profile photo as background so i can set the height and width on 100% and the background-size on cover?

 

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 · 3 May 2014

And the navigation works also if i set the images as background? Otherwise i can't get them on a height of 100%?

Quote · 3 May 2014

 

And the navigation works also if i set the images as background? Otherwise i can't get them on a height of 100%?

Why background?  To put the transparent gif thingy over top of them and prevent right clicking on the images; I can do a page save and grab any image from a website.

Anyway, you change them to background and use CSS3's background size to set the width of the background.  Of course if someone is on an old browser they can not use CSS3 but most people are not; or I would think they are not.  Not sure how many are still using IE6 these days as I have not checked any stats.

background-szie; http://www.w3schools.com/cssref/css3_pr_background-size.asp

Geeks, making the world a better place
Quote · 3 May 2014

Is there a php or other code that can link to the profile info page of the profile your visiting?

So for example if i look on a members profile page and i click on a button ( that i want to make ) you get redirected to a profile info page of that member.

Quote · 3 May 2014

 

Is there a php or other code that can link to the profile info page of the profile your visiting?

So for example if i look on a members profile page and i click on a button ( that i want to make ) you get redirected to a profile info page of that member.

There is a link on a member's profile page that links to the profile info; look on the submenu bar.  You can view the code for that link by going to the navigation menu builder.

Geeks, making the world a better place
Quote · 4 May 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.