4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2014, 10:30:58 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Number of user photos in profile with link.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Number of user photos in profile with link.  (Read 1378 times)
milanNN
Newbie
*
Offline Offline

Posts: 40

Thank You
-Given: 7
-Receive: 0


View Profile WWW
« 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>
« Last Edit: February 17, 2012, 08:37:35 PM by milanNN » Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4097

Thank You
-Given: 108
-Receive: 860

Vienna


View Profile WWW
« Reply #1 on: February 18, 2012, 04:05:30 PM »

surely you mean the:
http://www.4homepages.de/forum/index.php?topic=14692.msg81435#msg81435
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.141 seconds with 20 queries.