Advertisement:

Author Topic: Topic Count in Profiles  (Read 30877 times)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,508
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Topic Count in Profiles
« on: August 18, 2009, 10:40:38 AM »
Link to Mod

Topic Count in Profiles


Original Author: Arantor
Previous Authors: live627
SMF Version: 2.0.X
Mod Version: 2.1a

Description:
This mod adds a count of the number of topics a user has started, underneath their post count, plus a count of the number of different topics they have posted in overall.

It should work on any theme that uses the same base Profile template as the SMF curve theme, for anything else you may have to do a theme edit, but it is a very small edit in the profile itself.
 
Why Not Visit:
http://www.smfhacks.com
« Last Edit: July 20, 2010, 03:56:41 PM by live627 »
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Rohan_

  • Sophist Member
  • *****
  • Posts: 1,328
  • Gender: Male
  • I Love SMF :)
Re: Topic Count in Profiles
« Reply #1 on: August 18, 2009, 03:49:19 PM »
Very Nice mod big bro . i installed it in my forum and its working awesome :) .. i really need this option i was just opening a topic for this then i just found this mod in latests .. thanks a lot :)
Proud To Be An Indian

Offline qtime

  • Full Member
  • ***
  • Posts: 501
Re: Topic Count in Profiles
« Reply #2 on: August 18, 2009, 04:08:45 PM »
Should it be possible to use this value for post counted membergroups?

Offline Costa

  • SMF Hero
  • ******
  • Posts: 3,045
  • Gender: Male
  • Do NOT feed the trolls...
Re: Topic Count in Profiles
« Reply #3 on: August 18, 2009, 04:17:24 PM »
Could you update languages?  :D

Modifications.portuguese_pt.php
Code: [Select]
$txt['profile_topics_started'] = 'Tópicos Iniciados';
Modifications.portuguese_pt-utf8.php
Code: [Select]
$txt['profile_topics_started'] = 'Tópicos Iniciados';
Modifications.portuguese_brazilian.php
Code: [Select]
$txt['profile_topics_started'] = 'Tópicos Iniciados';
Modifications.portuguese_brazilian-utf8.php
Code: [Select]
$txt['profile_topics_started'] = 'Tópicos Iniciados';
Farewell
-Costa
Hugo "Costa" Fernandes
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Offline alex30

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
Re: Topic Count in Profiles
« Reply #4 on: August 18, 2009, 04:28:03 PM »
Thanks. Very good addition that will eventually make members open new topics.  :P

Offline Costa

  • SMF Hero
  • ******
  • Posts: 3,045
  • Gender: Male
  • Do NOT feed the trolls...
Re: Topic Count in Profiles
« Reply #5 on: August 18, 2009, 04:31:27 PM »
alex30, the post count make member post too much :P
Hugo "Costa" Fernandes
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Offline Rohan_

  • Sophist Member
  • *****
  • Posts: 1,328
  • Gender: Male
  • I Love SMF :)
Re: Topic Count in Profiles
« Reply #6 on: August 18, 2009, 05:46:43 PM »
hey after installing this mod i got this in error log .. this error comes when we enter in a topic . and the mod is working fine just giving this error in error log

8: Undefined index: topics
File: /home/vhosts/www.mysite.com/Sources/Load.php
Line: 1214
« Last Edit: August 18, 2009, 06:22:16 PM by Rohan_ »
Proud To Be An Indian

Offline alex30

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
Re: Topic Count in Profiles
« Reply #7 on: August 18, 2009, 05:56:52 PM »
Costa
Which is good when posts are helpful and not "LOL" ones.

Offline Rohan_

  • Sophist Member
  • *****
  • Posts: 1,328
  • Gender: Male
  • I Love SMF :)
Re: Topic Count in Profiles
« Reply #8 on: August 19, 2009, 04:37:14 AM »
hey Arantor Please Help . i got 5000+ pages in error log ..
Proud To Be An Indian

Offline Blinker

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
Re: Topic Count in Profiles
« Reply #9 on: August 19, 2009, 05:25:37 AM »
I also have a lot of errors, but unlike Rohan, only about 45 pages... :)

The error is:

8: Undefined index: topics
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/Load.php
Line: 1247


It's from this code in load.php Arantor:

Code: [Select]
'topics' => comma_format($profile['topics']),
Oh, also...the topics entry is not showing up in profiles. ;)

It's probably just a small tweak needed, what do you reckon mate?


Offline Rohan_

  • Sophist Member
  • *****
  • Posts: 1,328
  • Gender: Male
  • I Love SMF :)
Re: Topic Count in Profiles
« Reply #10 on: August 19, 2009, 05:29:03 AM »
yeah the error is in 'topics' => comma_format($profile['topics']),

but everything is working fine just showing error in error log .. plz fix
Proud To Be An Indian

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,411
    • StoryBB/StoryBB on GitHub
Re: Topic Count in Profiles
« Reply #11 on: August 19, 2009, 02:59:36 PM »
I couldn't fix this last night or earlier on due to not having Internet access last night - and once I saw all your posts here this morning, I fixed the bug and the site was down.

Newly patched version on mod site, sorry for the stupid error folks, is all fixed.

Rohan_ please: I know you want it fixed, bumping it 3 times isn't going to get it fixed any quicker.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline JBlaze

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,158
  • Gender: Male
    • @fragicide on Twitter
Re: Topic Count in Profiles
« Reply #12 on: August 19, 2009, 03:04:10 PM »
Nice job Arantor. Just a little FYI, this is a default feature in 2.0. You can list all posts, attachments and topics made via ?action=profile;u=xx;area=showposts

But again, nice mod indeed ;D
Jason Clemons
Former Lead Customizer/Support Specialist
Twitter | Facebook | Instagram

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,411
    • StoryBB/StoryBB on GitHub
Re: Topic Count in Profiles
« Reply #13 on: August 19, 2009, 03:05:35 PM »
Nice job Arantor. Just a little FYI, this is a default feature in 2.0. You can list all posts, attachments and topics made via ?action=profile;u=xx;area=showposts

I know, but this gives you a handy count in the profile screen with less clicking :)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline alex30

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
Re: Topic Count in Profiles
« Reply #14 on: August 19, 2009, 03:27:10 PM »
Thanks for fixing errors.

Arantor any other plans about future mods similar to this?

Just want to know what to expect. :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,411
    • StoryBB/StoryBB on GitHub
Re: Topic Count in Profiles
« Reply #15 on: August 19, 2009, 03:36:01 PM »
With me, expect the unexpected :)

I've been asked to expand this to produce a per-category count, but not sure yet about anything else.

I tend to look at things in Mod Requests and if it's a day or so to implement I'll likely do it before long :)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Rohan_

  • Sophist Member
  • *****
  • Posts: 1,328
  • Gender: Male
  • I Love SMF :)
Re: Topic Count in Profiles
« Reply #16 on: August 19, 2009, 04:28:50 PM »
hey thanx a ton big bro .. and sorry i didn't bumped it 3 times :( i just replied to alex .
Proud To Be An Indian

Offline cz99

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
  • Mariano
    • Tiro Defensivo Peru  - Foro de Armas en General
Re: Topic Count in Profiles
« Reply #17 on: August 21, 2009, 02:19:18 AM »
Hello, congratulations, good mod, as I like to do to include the same data in the profile shown in the post:

Mariano :.
El Pisco es Peruano.
visiten: www.tirodefensivoperu.com

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,411
    • StoryBB/StoryBB on GitHub
Re: Topic Count in Profiles
« Reply #18 on: August 21, 2009, 08:04:16 AM »
I really, really wouldn't put it in the thread display's user profile, to be honest. The count of topics is not stored anywhere, meaning that it is recalculated as needed. I wouldn't want to recalculate it on a per-page basis since that could get expensive to do.

I suppose it could be modified to actually store and update the figures, but that would require the mod to calculate it for every user on install... which would be expensive to run too.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bass_Chaz

  • Semi-Newbie
  • *
  • Posts: 81
    • The Granite State Geocachers Community
Re: Topic Count in Profiles
« Reply #19 on: August 22, 2009, 07:37:26 PM »
Installed and started to get this..

8: Undefined index: topics
File: /home/content/b/a/s/basschaz/html/community/Sources/Load.php
Line: 1103

Uninstalled and everything is back to "normal"
(ok as Normal as a site can be..)