News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Topic Count in Profiles

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

Previous topic - Next topic

live627

Link to the mod

Topic Count in Profiles

Original Author: Arantor

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.

Rohan_

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

qtime

Should it be possible to use this value for post counted membergroups?

Costa

Could you update languages?  :D

Modifications.portuguese_pt.php
$txt['profile_topics_started'] = 'Tópicos Iniciados';

Modifications.portuguese_pt-utf8.php
$txt['profile_topics_started'] = 'Tópicos Iniciados';

Modifications.portuguese_brazilian.php
$txt['profile_topics_started'] = 'Tópicos Iniciados';

Modifications.portuguese_brazilian-utf8.php
$txt['profile_topics_started'] = 'Tópicos Iniciados';

Farewell
-Costa
Hugo "Costa" Fernandes - PT SMF
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."

alex30

Thanks. Very good addition that will eventually make members open new topics.  :P

Costa

alex30, the post count make member post too much :P
Hugo "Costa" Fernandes - PT SMF
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."

Rohan_

#6
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
Proud To Be An Indian

alex30

Costa
Which is good when posts are helpful and not "LOL" ones.

Rohan_

hey Arantor Please Help . i got 5000+ pages in error log ..
Proud To Be An Indian

Blinker

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:

'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?


Rohan_

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

Arantor

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.

JBlaze

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 Team Member 2009 - 2012

Arantor

Quote from: καrηαgε™ 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

I know, but this gives you a handy count in the profile screen with less clicking :)

alex30

Thanks for fixing errors.

Arantor any other plans about future mods similar to this?

Just want to know what to expect. :)

Arantor

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

Rohan_

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

cz99

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

Arantor

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.

Bass_Chaz

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..)

Advertisement: