Author Topic: Number of images of the user in profile  (Read 26354 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Number of images of the user in profile
« Reply #15 on: February 01, 2010, 09:27:24 PM »
stimmt, hab es auch nur in der main.php

$lang['user_hobby'] = "Hobby";

und in der member_editprofile.html und in der member_profile.html stehen

in der member.php habe ich nichts drin stehen

LG Harald
Danke Harald




Offline Bommel

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Number of images of the user in profile
« Reply #16 on: February 01, 2010, 09:34:24 PM »
Hallo Jan-Lukas,

das Problem hat sich mittlerweile geklärt. War ein Fehler beim abschließenden Semikolon in der main.php - der Punkt darüber wollte wohl eher zu "Pixar Studios".  :lol:

Jetzt läuft es. Danke für deine Hilfe.

Freundliche Grüße, Bommel
Freundliche Grüße, Bommel

Nicht die Geduld mit mir verlieren, ich bin noch am Lernen./ Do not lose the patience with me, I am still in the learning. ;)

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: Number of images of the user in profile
« Reply #17 on: April 19, 2010, 04:13:56 AM »
Hi -

Okay, I was totally lost. I understand this MOD and I have followed the steps but there is some code missing or some missing steps.

The mod is installed and it is working sort of ... it shows the total number of images in the user profile after inserting {uploaded_imgs} but the value just hangs therre without explanation. 

Here is the code I have posted in member_profile.html:

Quote
<tr>
          <td class="row2"><b>{lang_total_images}</b></td>
          <td class="row2">{uploaded_imgs}</td>
        </tr>

I guess I am slowly learning.  I knew from experience there was another step not mentioned in this MOD (well, it was inferred but not specifically stated):

open your lang/main.php file and add a lang definition:
this is what I added just above ?>

//--------------------------------------------------------
//--- Total Images Uploaded Member Profile Display--------
//--------------------------------------------------------
$lang['totupld_imgs'] = "Total Images I have uploaded:";

Then I knew I had to place some code somewhere that will pull the language code I added in the main.php file.  Again, this MOD doesn't tell you but it is inferred with the discussions between Jan and Bommel.

So I added this code in member.php file:  "lang_total_images" => $lang['totupld_imgs'],

I know, you're thinking... that's great dude but where? If I am learning, I deduced that it needed to go under one of these many

$site_template->register_vars(array(

sections and it should be in the main section that says  if ($action == "showprofile") {

although it is really hard to tell when that 'if action section' ends but I made a guess,

and finally, I just kind of looked around for a $site_template->register_vars(array( and found one and slid the "lang_total_images" phrase in among some other similar code. It worked. I can't tell you where to put yours because I have various MOD's added to the member.php that you don't but if that helps anybody else trying to figure this out, good!

- Brian
« Last Edit: April 19, 2010, 06:35:34 PM by surferboy »

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Number of images of the user in profile
« Reply #18 on: February 18, 2012, 10:58:53 PM »
Da dass Thema gerade wieder aktuell ist, hier noch mal die Sprachdatei dazu
hoffe das in englisch ist OK  :oops:

in der lang/main.php suche nach
//-----------------------------------------------------
//--- Image Details -----------------------------------
//-----------------------------------------------------


füge da drunter z.B. folgendes ein
 :flag-de:
$lang['uploaded_imgs'] = "Anzahl der hochgeladenen Bilder:";
 :flag-en:
$lang['uploaded_imgs'] = "Number of high-loaded pictures:";

in der includes/page_header.php füge nach
"lang_sub_categories" => $lang['sub_categories'],

folgendes ein

"lang_uploaded_imgs" => $lang['uploaded_imgs'],

bei mir sieht es dann in der templates/dein Ordner/member_profile.html so aus

Code: [Select]
<tr>
          <td class="row2"><b>{lang_uploaded_imgs}</b></td>
          <td class="row2">{uploaded_imgs}</td>
        </tr>

LG
Danke Harald