News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topic Count in Profiles

Started by live627, August 18, 2009, 10:40:38 AM

Previous topic - Next topic

live627

1.5.4 is out; titles are fixed and those stickler database errors should be gone now

kai920

#61
Thanks live627 - would like to test but I'm getting an error on install for ./Sources/Profile-View.php, the 2nd step. I tried to see why it was failing, but couldn't figure it out.


Any ideas? This is on a fairly vanilla test RC2 forum with only tagging system and board sort methods installed. It had topic count in profiles 1.5.3 which uninstalled successfully.


edit: the attached xml seems to work

Cal O'Shaw

Got a typo error in 1.5.4!

Using SMF 1.1.11:

In the 3rd edit of themes/default/Profile.template.php you have "showTosts" instead of "showPosts"? or "showTopics"?, which is throwing an error:

8: Undefined index: showTosts
File: /home/xxx/public_html/forum/Themes/default/Profile.template.php
Line: 468

Cal

live627

lol what a silly typo! I fixed that and reupped. Thanks for pointing that out! :)

Fisch.666

@kai920

Thanks for this updated install20.xml, works without a problem!

kai920

Quote from: Fisch.666 on January 07, 2010, 03:10:29 PM
@kai920

Thanks for this updated install20.xml, works without a problem!

You're welcome :)

TheListener

Installed the mod  though I had one minor edit.

I can't see any changes.

:(

live627

AdminCP => Configuration => Modifications => Topic Count in Profiles

TheListener

Thanks Live.

I managed to find it eventually last night.

:)


aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

live627

Version 1.6 is an update for SMF  2.0 RC3

recived

Mod only counts or you can display a list?
1. Topics started
2. Topics participated in

live627

It only displays the count of those two  stats

recived

A very useful feature of "Topics participated in", somebody will do to it output a list of topics?

frozenas

Not working for me, getting this error:

Template Parse Error!
There was a problem loading the /Themes/default/Profile.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Profile.template.php on line 130

121: echo '
122: <dt>', $txt['profile_posts'], ': </dt>
123: <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
124:
125: echo '
126: <dt>', $txt['profile_topics_started'], ': </dt>
127: <dd>', $context['member']['topics'], ' ('. $context['member']['topics_per_day'], ' ', $txt['posts_per_day'], ')</dd>
128: <dt>', $txt['profile_topics_participated'], ': </dt>
129:

130: // Only show the email address fully if it's not hidden - and we reveal the email.

131: if ($context['member']['show_email'] == 'yes')
132: echo '
133: <dt>', $txt['email'], ': </dt>
134: <dd><a href="', $scripturl, '?action=emailuser;sa=email;uid=', $context['member']['id'], '">', $context['member']['email'], '</a></dd>';
.
This one on the direct link it asks to go:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/frozenas/public_html/test/forum/Themes/default/Profile.template.php on line 130.

Latest versions, default themes...

live627

#75
Line 129:

Code (Find) Select
<dt>', $txt['profile_topics_participated'], ': </dt>

Code (Replace with) Select
<dt>', $txt['profile_topics_participated'], ': </dt>';

frozenas

Done, still the same~:

119:
120: if (!isset($context['disabled_fields']['posts']))
121: echo '
122: <dt>', $txt['profile_posts'], ': </dt>
123: <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
124:
125: echo '
126: <dt>', $txt['profile_topics_started'], ': </dt>
127: <dd>', $context['member']['topics'], ' ('. $context['member']['topics_per_day'], ' ', $txt['posts_per_day'], ')</dd>

128: <dt>', $txt['profile_topics_participated'], ': </dt>';[/code

129:
130: // Only show the email address fully if it's not hidden - and we reveal the email.
131: if ($context['member']['show_email'] == 'yes')
132: echo '
.

live627

119:
120: if (!isset($context['disabled_fields']['posts']))
121: echo '
122: <dt>', $txt['profile_posts'], ': </dt>
123: <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
124:
125: echo '
126: <dt>', $txt['profile_topics_started'], ': </dt>
127: <dd>', $context['member']['topics'], ' ('. $context['member']['topics_per_day'], ' ', $txt['posts_per_day'], ')</dd>

128: <dt>', $txt['profile_topics_participated'], ': </dt>';

129:
130: // Only show the email address fully if it's not hidden - and we reveal the email.
131: if ($context['member']['show_email'] == 'yes')
132: echo '

TheListener

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /xxxxxxxxxxx/Themes/default/Profile.template.php on line 130


   if (!$context['user']['is_owner'] && $context['can_send_pm'])
      echo '
            <a href="', $scripturl, '?action=pm;sa=send;u=', $context['id_member'], '">', $txt['profile_sendpm_short'], '</a><br />';
   echo '
            <a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />
            <a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '">', $txt['statPanel'], '</a>
         </p>';

   echo '
      </div>
      <span class="botslice"><span></span></span>
      </div>
   </div>
   <div id="detailedinfo">
      <div class="windowbg2">
      <span class="topslice"><span></span></span>
      <div class="content">
         <dl>';

   if ($context['user']['is_owner'] || $context['user']['is_admin'])
      echo '
            <dt>', $txt['username'], ': </dt>
            <dd>', $context['member']['username'], '</dd>';

   if (!isset($context['disabled_fields']['posts']))
      echo '
            <dt>', $txt['profile_posts'], ': </dt>
            <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';

   echo '
            <dt>', $txt['profile_topics_started'], ': </dt>
            <dd>', $context['member']['topics'], ' ('. $context['member']['topics_per_day'], ' ', $txt['posts_per_day'], ')</dd>
            <dt>', $txt['profile_topics_participated'], ': </dt>

      if (!isset($context['disabled_fields']['topics']))
   echo '
            <dt>', $txt['topicp'], ':</dt>
            <dd>', $context['member']['topics'], ' (', $context['member']['topics_per_day'], ' ', $txt['topics_per_day'], ')</dd>';

// Only show the email address fully if it's not hidden - and we reveal the email.


The line in red is the guilty line. Also would having the Ultimate portal mod installed have anyaffect?

Nick Whetstone

Quote from: Brack1 on July 26, 2010, 07:41:58 PM
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /xxxxxxxxxxx/Themes/default/Profile.template.php on line 130


   if (!$context['user']['is_owner'] && $context['can_send_pm'])
      echo '
            <a href="', $scripturl, '?action=pm;sa=send;u=', $context['id_member'], '">', $txt['profile_sendpm_short'], '</a><br />';
   echo '
            <a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />
            <a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '">', $txt['statPanel'], '</a>
         </p>';

   echo '
      </div>
      <span class="botslice"><span></span></span>
      </div>
   </div>
   <div id="detailedinfo">
      <div class="windowbg2">
      <span class="topslice"><span></span></span>
      <div class="content">
         <dl>';

   if ($context['user']['is_owner'] || $context['user']['is_admin'])
      echo '
            <dt>', $txt['username'], ': </dt>
            <dd>', $context['member']['username'], '</dd>';

   if (!isset($context['disabled_fields']['posts']))
      echo '
            <dt>', $txt['profile_posts'], ': </dt>
            <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';

   echo '
            <dt>', $txt['profile_topics_started'], ': </dt>
            <dd>', $context['member']['topics'], ' ('. $context['member']['topics_per_day'], ' ', $txt['posts_per_day'], ')</dd>
            <dt>', $txt['profile_topics_participated'], ': </dt>

      if (!isset($context['disabled_fields']['topics']))
   echo '
            <dt>', $txt['topicp'], ':</dt>
            <dd>', $context['member']['topics'], ' (', $context['member']['topics_per_day'], ' ', $txt['topics_per_day'], ')</dd>';

// Only show the email address fully if it's not hidden - and we reveal the email.


The line in red is the guilty line. Also would having the Ultimate portal mod installed have anyaffect?
Try this:
Code (Find this...) Select
': </dt>

      if (!isset($context['disabled_fields']['topics']))

Code (Replace it with this...) Select
': </dt>';

      if (!isset($context['disabled_fields']['topics']))
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Advertisement: