Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Changing Profile Image

  • kdave321
  • kdave321
  • OFFLINE
  • Posts: 196
  • Thanks: 25
  • Karma: 2
3 months 2 days ago #339194 by kdave321
Changing Profile Image was created by kdave321
I just found a solution to dynamically change a profile image, and thought I'd share it.

Our site policy is to keep profiles up, after someone passses away, as a memoriam page, but change the profile image to Black & White.

I had been changing the photos but realized that CSS could do it.

I added a new field, "cb_imageclass", and then added this to Profile Image "Profile Value Layout":
Code:
<span class="[cb:userdata field="cb_imageclass" /]">[value]</span>

Then I made a class RIP in my template file with "filter: grayscale(100%);".  Now when the imageclass field for a member is changed to RIP, their profile image is B&W.


 
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum