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:
<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