Trying to display first and last name of user in fancybox.
-
Hi,
So I have the gallery installed on my site and when a user clicks on the image the enlarged photo has the description of the photo underneath. I would like to also have the user who uploaded that photo’s first and last name (or if not possible, username) underneath or to the side of the description as well.
I believe I need to insert something similar to this
echo $user->first_name. ' ' .$user->last_name;
And I believe i need to make the adjustments in
plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.phpAnd I believe i need to make the modifcation in the top part of this code found in the index.php
<div class="ngg-gallery-thumbnail"> <a href="<?php echo esc_attr($storage->get_image_url($image))?>" title="<?php echo esc_attr($image->description )?>" data-image-id='<?php echo esc_attr($image->pid); ?>' <?php echo $effect_code ?>> <img title="<?php echo esc_attr($image->alttext)?>" alt="<?php echo esc_attr($image->alttext)?>" src="<?php echo esc_attr($storage->get_image_url($image, $thumbnail_size_name))?>" width="<?php echo esc_attr($thumb_size['width'])?>" height="<?php echo esc_attr($thumb_size['height'])?>" style="max-width:none;" /> </a> </div>
But I am having no luck so far. Any help would be greatly appreciated. Thank you.
- The topic ‘Trying to display first and last name of user in fancybox.’ is closed to new replies.