Advertisement:

Author Topic: total number of posts  (Read 217 times)

Offline Artmotiv

  • Semi-Newbie
  • *
  • Posts: 22
total number of posts
« on: January 09, 2019, 06:12:48 PM »
HI,

how to add total post under profile picture area?
I somehow "lost it" and cannot find where in admin area I can enable it again :(


thanks in advance.

Br,
Art

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,606
  • Gender: Male
    • Macedonian electronics forum
Re: total number of posts
« Reply #1 on: January 09, 2019, 09:19:54 PM »
That's the mini profile.

I don't think you can actually do that (hide number of posts), not without a mod.

In any case, it's a theme issue. Did you change something in your theme recently? Install any mods that might have modified theme files?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,466
  • Riding the endless highway in the sky.
Re: total number of posts
« Reply #2 on: January 09, 2019, 09:34:48 PM »
It's in Display.template.php -

Code: [Select]

// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';


Option to disable is in Admin -> Features and Options -> Profile Fields.

Offline Artmotiv

  • Semi-Newbie
  • *
  • Posts: 22
Re: total number of posts
« Reply #3 on: January 10, 2019, 03:24:28 AM »
It's in Display.template.php -

Code: [Select]

// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';


Option to disable is in Admin -> Features and Options -> Profile Fields.

Thanks! That`s what I was missing :)