How can i show the profile image in a lightbox?
I tried this:
$href = $user->getIconURL('large');
$icon = '<a class="elgg-lightbox" href="'.$href.'"><img src="'.$href.'" /></a>';
Profile picture gets shown well but when i click on it the lightbox opens, but it doesn't show the picture, instead it shows the file in 'editor' mode.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- stoffal@stoffal81
stoffal - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.Wrong code.
Try this:
@RvR I tried it, but it's not working. Now i can't click on the picture to open the lightbox.
Missing