Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm trying to include the user gallery into my user's profile page please ...
Created a view call gallery-user, but all I get is a link on the page to the gallery.
<div id="user-gallery"><?php $view = views_get_view('gallery_user');
print views_build_view('embed', $view, array(strval($profileuser->uid)), false, false);
?></div>
with this effort, it only shows 1 image ..
<?php
// Load the nodeprofile node for the user that is the author of the current node
$nodeprofilenode = nodeprofile_load('gallery', $node->uid);
print l($nodeprofilenode->field_galleryimage[0]['value'],'user/' . $nodeprofilenode->uid)
?>
Also, please how do I limit the user to only 5 images with multiple select?
Most appreciate any reply and thank you.
Lilian