Warning: The author of this contribution does not provide support for it anymore.

Top Posters on Index Cleaned contribution

Exclude some forums? - Top Posters on Index

Exclude some forums?

by marian0810 » Thu Jul 01, 2010 10:57 pm

We've been using this mod for a long time now without any problems, so thank you :D And now I have a question... we have a few forums on our board where posts are not counted for a users postcount. I was wondering if those forums could somehow be excluded when counting the posts for the Top Ten.
So that if I post 30 messages in the admin forum - and the postcount in my profile doesn't go up - those 30 posts can't help to put me in the Top Ten either. I hope I'm making myself clear, and that it's possible. Thanks in advance!
You and me, time and space. You watch us run!
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: Exclude some forums?

by lefty74 » Sat Jul 03, 2010 8:02 pm

hi if you know the forum id's you could change in includes/functions_topposter.php

find

Code: Select all

               AND u.user_id = p.poster_id

after, add

Code: Select all

               AND " . $db->sql_in_set('p.forum_id', array(2,3), true) . "

and replace 2,3 with the forum_id's that should not be included
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Exclude some forums?

by marian0810 » Sat Jul 03, 2010 8:28 pm

Thank you very much!! :!:
You and me, time and space. You watch us run!
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: Exclude some forums?

by bicol » Wed Aug 18, 2010 5:01 pm

Hi Lefty,

I have some problems:

1) The title appears as { TOP_POSTERS } instead of TOP POSTERS or Top Posters

2) The of last 24 hrs: does not appear in the second line.

Please take a look at this screenshot:

Image

Please help me fix these problems.

Thank you! :)
bicol
Registered User
Posts: 0
Joined: Wed Aug 18, 2010 4:45 pm
Contact:

Re: Exclude some forums?

by lefty74 » Fri Aug 20, 2010 3:23 pm

Hi bicol,
1.make sure you have edited the correct language files. if you have us_en, you will also need to edit that one.
2.make sure the edited file is uploaded
3. dont forget to purge the cache
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Exclude some forums?

by bicol » Fri Aug 27, 2010 9:50 am

Thank you for the reply lefty. I followed your instructions, however, I still was not able to get the desired result. :(
bicol
Registered User
Posts: 0
Joined: Wed Aug 18, 2010 4:45 pm
Contact:

Re: Exclude some forums?

by lefty74 » Sat Aug 28, 2010 8:45 am

what language are you using on your board, if you switch to en, you still don't see it?
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact: