4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: milanNN on February 17, 2012, 07:55:44 PM

Title: Number of user photos in profile with link.
Post by: milanNN on February 17, 2012, 07:55:44 PM
How can i show total number of user photos with the  link in profile?

Sorry i have already found
in member.php
$sql = "SELECT COUNT(image_id) AS totimg
         FROM ".IMAGES_TABLE."
         WHERE  user_id = $user_id";
    $result = $site_db->query($sql);
   $row = $site_db->fetch_array($result);
   $uploaded_images = $row['totimg'];
    $site_template->register_vars(array(
         "uploaded_imgs" => $uploaded_images,
in Member_profile.html past
<tr>
     <td class="row1"><b>{lang_user_photos}</b></td>
     <td class="row1"><A href="{url_show_user_images}">{uploaded_imgs}</a></td>
</tr>
Title: Re: Number of user photos in profile with link.
Post by: Rembrandt on February 18, 2012, 04:05:30 PM
surely you mean the:
http://www.4homepages.de/forum/index.php?topic=14692.msg81435#msg81435