If featured member...

We want to show an badge inside the Profile Photo Switcher Block if a member is featured. If a member isn't featured we don't want to show a thing.
Is there a code to show the badge only when a member is featured.

PS. The badge needs to appear when you are visiting a other members profile en he / she's a featured member. Not if you're one...

Quote · 11 Jun 2014

This is not exactly as you have said but its a thought.

 

You could get Premium Badges http://www.boonex.com/m/premium-membership-badges

 

My thoughts are to install that, then create your own membership level called "featured" or what ever it is your prefer.  Then create your own upgrade or promotion process that suits your needs.  Attached your desired badge to this "Featured" group and then only featured members would have it. But, you would have to manually feature them and then upgrade their membership level to match before the badge shows for display.  Just an idea, sorry if its not what your after. Just wasn't sure if you considered the option. Good luck.

Quote · 11 Jun 2014

 sorry I can't give you your answer but before you go looking for a custom solution for the Profile Switcher I suggest you really test the functionality of the block first.  It does NOT work like you would think it does/should.  Its really just another picture viewer.

We want to show an badge inside the Profile Photo Switcher Block if a member is featured. If a member isn't featured we don't want to show a thing.
Is there a code to show the badge only when a member is featured.

PS. The badge needs to appear when you are visiting a other members profile en he / she's a featured member. Not if you're one...

 

yes, I searched before asking....
Quote · 11 Jun 2014

 

 sorry I can't give you your answer but before you go looking for a custom solution for the Profile Switcher I suggest you really test the functionality of the block first.  It does NOT work like you would think it does/should.  Its really just another picture viewer.

We want to show an badge inside the Profile Photo Switcher Block if a member is featured. If a member isn't featured we don't want to show a thing.
Is there a code to show the badge only when a member is featured.

PS. The badge needs to appear when you are visiting a other members profile en he / she's a featured member. Not if you're one...

 

I don't understand why Boonex added the Profile Photo Switcher (which should be named Profile Photos Viewer; note the s on photos).  The way it was done in Dolphin 6 is better.  I decided to remove the profile photo switcher block as it is not needed and simply added pagination to the Profile Photo Block as outlined here: http://www.boonex.com/forums/?action=goto&search=1#topic/Profile-Photo-Block.htm

Geeks, making the world a better place
Quote · 11 Jun 2014

 I actually use the block because its looks cleaner than the other options but I renamed it simply to "Profile Photos" so as not to confuse members.

 

The functionality it SHOULD provide it both simple and pretty standard on most sites but using the Avatar workaround mentioned elsewhere in these forums will have to do.  Having the profile pic change every time a new photo is uploaded is untenable.

 

 sorry I can't give you your answer but before you go looking for a custom solution for the Profile Switcher I suggest you really test the functionality of the block first.  It does NOT work like you would think it does/should.  Its really just another picture viewer.

We want to show an badge inside the Profile Photo Switcher Block if a member is featured. If a member isn't featured we don't want to show a thing.
Is there a code to show the badge only when a member is featured.

PS. The badge needs to appear when you are visiting a other members profile en he / she's a featured member. Not if you're one...

 

I don't understand why Boonex added the Profile Photo Switcher (which should be named Profile Photos Viewer; note the s on photos).  The way it was done in Dolphin 6 is better.  I decided to remove the profile photo switcher block as it is not needed and simply added pagination to the Profile Photo Block as outlined here: http://www.boonex.com/forums/?action=goto&search=1#topic/Profile-Photo-Block.htm

 

yes, I searched before asking....
Quote · 11 Jun 2014

 

Having the profile pic change every time a new photo is uploaded is untenable.

 I am guessing that it does so because it puts it at the beginning.  Would it be possible to rewrite it so that it is at the end?

Geeks, making the world a better place
Quote · 11 Jun 2014

 You (or one of the other local geniuses here) can tell me Cool

 

Having the profile pic change every time a new photo is uploaded is untenable.

 I am guessing that it does so because it puts it at the beginning.  Would it be possible to rewrite it so that it is at the end?

 

yes, I searched before asking....
Quote · 11 Jun 2014

 

 You (or one of the other local geniuses here) can tell me Cool

 

Having the profile pic change every time a new photo is uploaded is untenable.

 I am guessing that it does so because it puts it at the beginning.  Would it be possible to rewrite it so that it is at the end?

 

The reason I guessed is because to change your profile photo, you go to your profile photo album and you move the photo you want to be your profile photo to the beginning of the album.  Therefore, one would assume that the uploader is placing the photo at the beginning of the album; Dolphin has a jquery thingy that allows one to sort the profile photos and order them, photo in order place 1 is the profile photo.  If I have some time, I may look into this.

Geeks, making the world a better place
Quote · 11 Jun 2014

if you come up with a better mousetrap then I know a few people that would be interested.  You could probably turn it into a salable mod.

 

We simply can't have our members needing to rearrange albums themselves to get back the profile pic they want.

 

 

[/threadhijack]

yes, I searched before asking....
Quote · 11 Jun 2014

not sure if this is relevant, but in the Admin section - Settings - Advanced Settings -> General: there is 'Enable last-added item as album cover:' (I do not use the profile photo anything on the profile page. I added the avatar to the description block so the description wraps around their avatar picture), but was wondering if changing that setting would change the order of the profile pictures as well.

 

But besides all of that - to answer your original question: Your solution may be possible by adding an if/then statement to your code. If member is featured, then show badge. A rough writeup would be something like:

 

$membership_badge = db_value("SELECT `Featured` FROM `Profiles` WHERE `ID` = '" . $_COOKIE['memberID'] . "'") ? true : false;
            if ($membership_badge)
            echo 'show badge';
            else
            echo 'not featured';

 

Please keep in mind, that I have not actually tried to make this work. This is just a bit of code that Deano passed along to me, which may help you solve your question. The above code would need to be tweaked, but I wanted to show you to hopefully give you an idea.

caredesign.net
Quote · 12 Jun 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.