Title: [Plugin: User Community] Inline Image Gallery
Last modified: August 19, 2016

---

# [Plugin: User Community] Inline Image Gallery

 *  [vanfell](https://wordpress.org/support/users/vanfell/)
 * (@vanfell)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/)
 * thanks to Txanny for the nice plugin..
 * i have a question about alkivia
    how to make the image gallery include in user
   profile, so i don’t need to open it again, just one load in user page and i get
   the image gallery below my primary image. i have try so much way but i can’t 
   find it. please help me. thanks a lot Txanny
 * this is my blog using alkivia
    [http://www.borneophotography.org/user/user/felliandre_m](http://www.borneophotography.org/user/user/felliandre_m)
 * sorry for my bad english

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [vanfell](https://wordpress.org/support/users/vanfell/)
 * (@vanfell)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116855)
 * this is the new link, [http://www.borneophotography.org/profile/user/ian](http://www.borneophotography.org/profile/user/ian)
   
   the gallery have inline now, but i still can’t find how to put the user gallery
   in the user profile page. i want the primary image replaced with the user gallery..
   any suggestions
 *  [wesleyvw](https://wordpress.org/support/users/wesleyvw/)
 * (@wesleyvw)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116889)
 * Wow! Thats really great [http://www.borneophotography.org/profile/user/ian](http://www.borneophotography.org/profile/user/ian)
 * I really really want this kind of gallery into my WordPress.
    C’mon guys, help
   us out 😛
 *  [monbouc](https://wordpress.org/support/users/monbouc/)
 * (@monbouc)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116905)
 * vanfell > this hack shall fulfill your needs (but you’ll have to watch carefully
   any plugin update, that may write over it)… Just replace the “_profilePicture”
   function that you’ll find in the alkivia/components/gallery/gallery.php file 
   by the following :
 *     ```
       function _profilePicture( $header, $user ) {
   
       	$out = $this->getUserImage($user->ID, 'aligncenter');
   
       	$num = $this->countApprovedImages($user->{$this->option_name});
       	if ( 1 < $num ) {
   
       		$images = ucom_get_user_gallery($user->ID);
       		if ( empty($images) ) {
       			return false;
       		}
   
       		$out .= "<div class='gallery'>\n";
       		foreach ( $images as $thumb ) {
       			$out .= "<dl class='gallery-item'><dt class='gallery-icon'>\n";
       			$out .= '<a href="' . $thumb['link'] .'" title="' . $thumb['caption'] . '" rel="lightbox">' . $thumb['img'] . '</a>';
       			$out .= "</dt><dd class='gallery-caption'>{$thumb['caption']}<dd></dl>\n";
       		}
       		$out .= '<br style="clear: both;" /></div>';
   
       	}
   
       	$header .= apply_filters('ucom_profile_image', $out);
       	return $header;
       }
       ```
   
 * I hope it helps.
 *  Thread Starter [vanfell](https://wordpress.org/support/users/vanfell/)
 * (@vanfell)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116906)
 * after have done this..
    [http://www.borneophotography.org/profile/gallery/ian](http://www.borneophotography.org/profile/gallery/ian)
   i’ll try your hack to move the gallery to the [http://www.borneophotography.org/profile/user/ian](http://www.borneophotography.org/profile/user/ian)
   page.. i hope the primary image will be replaced with the gallery..and it will
   be so cool..
 *  Thread Starter [vanfell](https://wordpress.org/support/users/vanfell/)
 * (@vanfell)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116917)
 * yes, it works, i have replace the primary picture with the gallery in the /profile/
   user page..but something wrong, my simple press forum plugin broke..but when 
   i disable the alkivia (user community) plugin, the simple press work well n also
   normal as usually..
 *  [dikkevandale](https://wordpress.org/support/users/dikkevandale/)
 * (@dikkevandale)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116982)
 * How can I add the gallery directly inline beneath the userprofile? I don’t want
   to click on a main image first.
 *  [dcservices](https://wordpress.org/support/users/dcservices/)
 * (@dcservices)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116984)
 * Is there an update to this?
 *  [dcservices](https://wordpress.org/support/users/dcservices/)
 * (@dcservices)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116985)
 * Nevermind, simply changed gallery-default.php to:
 *     ```
       $gallery_title = '<h1 class="alkivia-title">' . sprintf(__("%s's Photo Gallery", $i18n),
                                       '<a href="' . aoc_profile_link($user->user_login) . '">' . $user->display_name . '</a>')
                      . '</h1>';
   
       // Apply a filter to the title to allow changing the title when using the gallery in other places.
       echo apply_filters('aoc_gallery_title', $gallery_title);
       ?>
   
       <?php if ( ! empty($edit_link) ) { ?>
       	<h3 class="alkivia-admin-link"><?php echo $edit_link; ?></h3>
       <?php } ?>
   
       <div class='gallery'>
       	<?php foreach ( $images as $thumb ) { ?>
   
       			<a href="<?php echo $thumb['link'] ?>" title="<?php echo $thumb['caption']; ?>"><?php echo $thumb['img']; ?></a>
   
       	<?php } ?>
       	<br style="clear: both;" />
       </div>
       ```
   

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: User Community] Inline Image Gallery’ is closed to new replies.

 * 8 replies
 * 5 participants
 * Last reply from: [dcservices](https://wordpress.org/support/users/dcservices/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-user-community-inline-image-gallery/#post-1116985)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
