PDA

View Full Version : Add-On Releases - vBadvanced Module: Top Posters in Last X Days


Hasann
12-20-2008, 10:00 PM
Top Posters vBAdvanced CMPS Module by Hasann

http://img205.imageshack.us/img205/5407/toppostersxt3.png

This Product brought to you by
www.vbulletin-turkey.com (http://www.vbulletin-turkey.com/)

Description:

This will add a CMPS block to your vBadvanced CMPS portal page.
It will display the "Top Posters" based on post count in your vBulletin forums.

Features:
Username link to profile.
Post count link to show all posts by the member.
Top Posters Count
Hide Posts Count
Top Poster Avatars
Top Poster Avatar width
Top Poster Avatar height
Ignore Users to show in top posters list
Ignore UserGroups to show in top posters list
Username HTML Markup (fetch_musername)
Uses exec_switch_bg (Reads $bgclass and returns the alternate table class)
only 1 query
Top Posters in the Last X Days

NOTE: vB Optimise: vBAdvanced Integration
Cache vBAdvanced Module: Top Posters
if you turned this option to yes than this module generates 0 query

Top Posters in the Last X Days Examples:
1 (day) = Today's Top Posters
7 (days) = Top Posters of the Week
30 (days) = Top Posters of the Month
365 (days) = Top Posters of the Year
0 (no limit) = Overall Top Posters


Tested on:


vBulletin 3.7.x
vBulletin 3.8.x
vBadvanced (http://www.vbadvanced.com/) CMPS v3.1.0
vBadvanced (http://www.vbadvanced.com/) CMPS v3.2.1

Demo: www.vbulletin-turkey.com (http://www.vbulletin-turkey.com/)

INSTALL INSTRUCTIONS

Go to your Forums -> Admincp -> vBa CMPS / Download -> Upload Module -> Module to Upload -> Select topposters file as .xml or .module format from your pc -> than Submit.

http://img525.imageshack.us/img525/9486/unbenanntpm7.jpg

princeedward
12-21-2008, 06:28 AM
Bro. Hasann looks good and very interesting...maybe we can add this or place it to forumhome under "What's Going On"...is it possible?



Mark Installed & Rated Exellent!

EDIT:
hmmm...can't upload it via vBa CMPS > Download / Upload Module
ERROR:
"The file you have uploaded is not a valid module file."
or maybe not possible to my vBadvanced CMPS v3.0 RC1 (vB 3.6)

anyway thanks for the release of it....

:(

puertoblack2003
12-21-2008, 07:14 AM
thanks hasann :up: the 3.7 version works well for 3.8

Huy Ho?ng
12-21-2008, 12:06 PM
Error: Invalid File Specified.
Can you help me???

FrmRed
12-21-2008, 01:23 PM
tesekkuler admınım elıne sağlık

thank you very much hasann

Hasann
12-21-2008, 03:32 PM
Bro. Hasann looks good and very interesting...maybe we can add this or place it to forumhome under "What's Going On"...is it possible?



Mark Installed & Rated Exellent!

EDIT:
hmmm...can't upload it via vBa CMPS > Download / Upload Module
ERROR:
"The file you have uploaded is not a valid module file."
or maybe not possible to my vBadvanced CMPS v3.0 RC1 (vB 3.6)

anyway thanks for the release of it....

:(

Error: Invalid File Specified.
Can you help me???

sorry guys it was my mistake fixed and upgraded :(

princeedward
12-21-2008, 05:52 PM
still the same on my side bro... :(

asj
12-21-2008, 07:06 PM
Bro. Hasann looks good and very interesting...maybe we can add this or place it to forumhome under "What's Going On"...is it possible?



Mark Installed & Rated Exellent!

EDIT:
hmmm...can't upload it via vBa CMPS > Download / Upload Module
ERROR:
"The file you have uploaded is not a valid module file."
or maybe not possible to my vBadvanced CMPS v3.0 RC1 (vB 3.6)

anyway thanks for the release of it....

:(

the same problem !! :(

rob01
12-21-2008, 08:10 PM
the avatar dosnt seem to appear... i only see the image when someone still dosnt choose a avatar ..

any idea? :S

i think is because of my vBadvanced CMPS any idea how to fix the avatar ?

rolandogomez
12-22-2008, 01:31 AM
the avatar dosnt seem to appear... i only see the image when someone still dosnt choose a avatar ..

any idea? :S

i think is because of my vBadvanced CMPS any idea how to fix the avatar ?

I have the same problem. When I added /forums/ in front of $avatarurl for the adv_portal_top_posters_bit template, I then get the avatars of those that have, but now the no avatar image doesn't appear. When I try to open the ? in a new window, the URL for that image now is http://www.phototherapy.org/forums/http://www.phototherapy.org/forums/images/styles/tulip/misc/unknown.gif see how the domain url is there twice.

When I take out the /forums/ and those with no avatars show, that url is: http://www.phototherapy.org/image.php?u=1&dateline=1229200176

So it has to do with something on how it calls the url for the avatar. Other than that, nice mod. Until someone can fix the URL problem for the avatar, I'm turning off the avatars portion. I wish I was a coder/programmer. Thanks, rg sends!

rolandogomez
12-22-2008, 01:34 AM
I would also like to get those other mods you have on your forum for vBadvanced, like the members with top friends and the top visited members. Thanks, rg.

chooky
12-22-2008, 07:09 AM
I also get the Error "The file you have uploaded is not a valid module file."

Hasann
12-23-2008, 07:15 PM
still the same on my side bro... :(

the same problem !! :(

the avatar dosnt seem to appear... i only see the image when someone still dosnt choose a avatar ..

any idea? :S

i think is because of my vBadvanced CMPS any idea how to fix the avatar ?

I would also like to get those other mods you have on your forum for vBadvanced, like the members with top friends and the top visited members. Thanks, rg.

I also get the Error "The file you have uploaded is not a valid module file."

which version of vbadvanced do you use?
upgrade your vbadvanced version to 3.1.0

rolandogomez
12-23-2008, 10:24 PM
I'm using the latest vba plus 3.8 RC 1. Any ideas to get this fixed? Thanks, rg.

AWMGolfer
12-27-2008, 01:12 PM
Just curious, would there be an easy way to change this from top poster to random user and/or latest member?

Hasann
12-29-2008, 01:33 PM
added

.xml
.module (serialized data)

file types

rolandogomez
12-29-2008, 02:09 PM
Still no images showing up on 3.8 RC1. If I turn on the images, only the no-avatar for those without an avatar shows up. When I view the address the system is using to try and pull the image, i.e., the image location, it's something like this, http://www.phototherapy.org/image.php?u=1&dateline=1229200176. The rest of the mod works fine, so I've turned off the images/avatars. I hope this gets fixed, nice mod otherwise. Thanks, Rolando

chooky
12-29-2008, 04:05 PM
I also get the Error "The file you have uploaded is not a valid module file."

I use vbadvanced 3.1.0

thunderclap82
01-01-2009, 02:49 PM
I also get the Error "The file you have uploaded is not a valid module file."

I use vbadvanced 3.1.0

I too am getting the error. vBadvanced 3.1.0 and vBulletin 3.8 RC2 is installed on my end.

Mythor
01-04-2009, 01:30 AM
This is what I changed to get custom avatars showing correctly for my forum. Your mileage may vary. :)
In topposters.xml find:
$avatarurl = $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
Replace with:
$avatarurl = "/forum/" . $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
Note you will need to replace "/forum/" with your specific subdirectory. e.g. "/vb3/"

Nice module, thanks Hasann. :)

rolandogomez
01-04-2009, 02:41 AM
Mythor,

I took your idea and in order to get mine to work, I had to do more. Though instead of messing with the XML file, I just did it on the top_posters.php file. After applying your changes in blue, I had to apply what is in red too, see below (note, "forums" is my forum directory, for all users, make sure it's your directory name, not mine) :

// User custom avatar
if ($vbulletin->options['usefileavatar']) {
if ($thumb AND @file_exists($vbulletin->options['avatarpath'] . "/thumbs/avatar$userinfo[userid]_$userinfo[avatarrevision].gif")) {
$avatarurl = "/forums/" . $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
} else {
$avatarurl = "/forums/" . $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
}
} else {
if ($thumb AND $userinfo['filedata_thumb']) {
$avatarurl = '/forums/image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . "&dateline=$userinfo[avatardateline]&type=thumb";
} else {
$avatarurl = '/forums/image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . "&dateline=$userinfo[avatardateline]";

Now it works, (demo here: http://www.phototherapy.org/index.php ) much thanks! rg sends!

Mythor
01-04-2009, 05:28 AM
Sorry, I suggested doing it on the XML file but forgot to point out you should do so before uploading it. That was why I did it that way. ;)
Glad you got there with a nudge in the right direction. Hopefully Hasann can sort this out in the next version! :)

Huy Ho?ng
01-09-2009, 06:53 AM
I import vbb error: Invalid File Specified

Can you help me???

steve1966
01-09-2009, 09:18 AM
I managed to get it working thanks to rolandogomez edits

scorpion#1
01-12-2009, 10:38 PM
Please install as intrusions :confused:

Hasann
01-12-2009, 10:41 PM
Please install as intrusions :confused:

Hi there

Go to your Forums -> Admincp -> vBa CMPS / Download -> Upload Module -> Module to Upload -> Select topposters file as .xml or .module format from your pc -> then Submit.

https://vborg.vbsupport.ru/

scorpion#1
01-12-2009, 10:54 PM
thanks

Asma44
01-26-2009, 05:57 PM
Hi Hasann,
I don't have "vBa CMPS / Download" in my admincp :(
what shall I do?

mike2567
02-13-2009, 09:26 PM
have the same issues with custom avatar not showing and I am not familiar with editing php files.

Guess I will wait for an eventual fix in the xml file.

Like this mod though!

www.texaseliteforces.com

ZeusTalkgeek
02-16-2009, 07:01 AM
To all you guys getting "Invalid File Specified":

Make sure you aren't trying to add this via the Product Manager.

You must go to:
Admin CP-> vBa CMPS-> Download/Upload Module

Hasann
03-01-2009, 06:01 PM
Sunday, March 1st New Update is there


Top Posters Avatar Problem fixed.
Added "Top Posters in the Last X Days" Function
Templates fixed and improved.
Complete code fixed and improved.
Coded from scratch.
Saved 2 queries.

muhakeme
03-01-2009, 06:26 PM
Ich habe das Module installiert und bin sehr zufrieden damit:p

Vielen Dank Hasann

Huy Ho?ng
03-02-2009, 06:04 AM
Hi Hasann,
I don't have "vBa CMPS / Download" in my admincp :(
what shall I do?

the same problem !!

deLi_kurT
03-02-2009, 11:11 AM
Thanks Hasann

Hasann
03-02-2009, 03:48 PM
the same problem !!

you make me just crazy man :D:D:D:D:D:D

Go to your Forums -> Admincp -> vBa CMPS --> Download / Upload Module -> Module to Upload -> Select topposters.xml module file from your Computer -> than Submit.

https://vborg.vbsupport.ru/

armthehomeless1
03-05-2009, 11:43 PM
Wow, I'm surprised at how many people are asking the same question in this thread!

Installation instructions are in the first post.

Installed fine for me. Altough, for upgrade I had to remove the old one first. It wouldn't let me overwrite.

armthehomeless1
03-06-2009, 12:13 AM
Avatars still weren't showing up for me in the new version at first. I managed to fix it by adding "forum/" in front of 'image.php' on line 49 in top_posters.php on the server.

$avatarurl = 'forum/image.php?' . vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";

Hopefully that helps someone else, who's forum is installed at www.website.com/forum :)

goxy63
03-07-2009, 10:27 AM
Hassan thanks for this module, hope that you will create few more similar to this one for 3.8.1

@armthehomeless1
helped to me, thanks

is tehere any similar modules as this one with avatars, latest registered, most popular ect !?

Netz
03-12-2009, 12:45 PM
I can't find translations. Do I have to translate it myself?

petertdavis
03-15-2009, 02:02 PM
Really nice mod Hasann. How do you get the sub-header, where it says "Top Posters in Last x Days" to not show anymore? It's kind of redundant with the header, which I just changed to say "Today's Top Posters" anyway. Thanks!

Theater
03-21-2009, 05:41 PM
Nice mod, thank you sir. :)

Bergler
04-21-2009, 03:12 AM
Just installed the mod, with no issues, except the Avatar don't show?

Running CMPS v3.1.0 and vBulletin® Version 3.8.2

masterweb
05-08-2009, 06:11 PM
Installed but i have the same issue with avatars...pls help

Just installed the mod, with no issues, except the Avatar don't show?

Running CMPS v3.1.0 and vBulletin? Version 3.8.2

MaR?
06-15-2009, 10:57 PM
Im NO using CMPS but I want this for a simple vbulletin... Is It possible?

Feanor_87
07-11-2009, 07:58 PM
Thanks! Works great!

Is there an option to ignore certain forums so it doesn't count the posts there?

yotsume
07-11-2009, 08:14 PM
Hasann another awesome mod by you! INSTALLED and works perfect!

BGObsession
07-11-2009, 10:01 PM
Installed - sweet hack.

Pet Peeve though - for those of you who keep saying 'it installed perfectly for me!' as if those that have difficulty are stupid...maybe, duh, there's a bug that doesn't impact you?

In this case, when I tried to install it to all of the skins I have loaded, I got the same error message 'invalid file' that many others did. Only when I limited it to my 2 main skins did it upload correctly.

a9eel
07-12-2009, 12:19 AM
thx

BGObsession
07-13-2009, 11:55 PM
Minor detail - but if I set it to track the top posters total (all-time), the module reads:

Top Posters in Last 0 Days

That doesn't really make sense - I'd prefer to change the text to 'Top Posters Ever' or something similar. Where can I find that line of text?

BGObsession
07-25-2009, 09:36 PM
*bump*

Minor detail - but if I set it to track the top posters total (all-time), the module reads:

Top Posters in Last 0 Days

That doesn't really make sense - I'd prefer to change the text to 'Top Posters Ever' or something similar. Where can I find that line of text?



Any help here?

Hasann
07-25-2009, 10:02 PM
Minor detail - but if I set it to track the top posters total (all-time), the module reads:

Top Posters in Last 0 Days

That doesn't really make sense - I'd prefer to change the text to 'Top Posters Ever' or something similar. Where can I find that line of text?

look into module.xml file at adv_portal_top_posters template there is the phrase you looked

BGObsession
07-29-2009, 10:16 PM
Thanks Hasann, appreciate it!

goxy63
07-31-2009, 01:34 AM
top_posters.php

after changin line 59 from
"$avatarurl = forums/images/misc/unknown.gif"
to
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";

that is same as line 49....reason is to display avatars ....

where to change code to call "unknown.gif" for users who dont have avatar!?

part of code in my "top_posters.php" (part in blue is line 59)

$avwidth = '';
$avheight = '';
if ($top_poster['avatarid'])
{
$avatarurl = $top_poster['avatarpath'];
}
else
{
if ($top_poster['hascustomavatar'] AND $vbulletin->options['avatarenabled'] AND ($vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canuseavatar']))
{
if ($vbulletin->options['usefileavatar'])
{
$avatarurl = $vbulletin->options['avatarurl'] . "/avatar$top_poster[userid]_$top_poster[avatarrevision].gif";
}
else
{
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";
}
if ($top_poster['avheight'] AND $top_poster['avwidth'])
{
$avheight = "height=\"$top_poster[avheight]\"";
$avwidth = "width=\"$top_poster[avwidth]\"";
}
}
else
{
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";
}
}

if (!$avatarurl)
{
$mod_options['adv_portal_top_posters_avatar'] = false;
}
else
{
$mod_options['adv_portal_top_posters_avatar'] = true;
}

}

Hasann
07-31-2009, 09:10 AM
<i>31. July 2009 new update is released.</i>

All known bugs are fixed now.

steve1966
07-31-2009, 11:19 AM
thanks for the new update

goxy63
07-31-2009, 11:59 AM
I have only one issue now

Height of Top Posters List is not working for me, whatever I change it doesnt create scrollbar

can it be cause I installed module specyfing only one page (page which works for my VBA)

any suggestions?

and yeah, it may be of use to a noobs like me
if your VBA is not installed in a same directory as forums you should place
forums/ (or whatewer neme is) in top_posters.php
here:
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&amp;dateline=$top_poster[avatardateline]";

$avatarurl = 'forums/images/misc/unknown.gif';

yotsume
08-01-2009, 09:38 PM
31. July 2009 new update is released.

All known bugs are fixed now.

SORRY NOT A CHANCE!!!
All known bugs aint fixed at all!

First I just upgraded and your scroll bar doesnt show no matter what height I select.

Second Your mod is not showing some avatars but others....

So whats the deal with the scroll bar?

EDIT: I fixed the problem with no avatars showing. How I fixed this on my site was I had to change just one users avatar and somehow this mod recalculated the avatars and now they all show! Interesting BUG! Now, please help me to fix the no scrollbar bug.

THANKS!

supermak
08-03-2009, 12:18 AM
Hi Dude, I really like your mod, but I'd like to make just a little change.

I'd like to know if it's possible (changing the query or whatever) to show TOP THREAD STARTERS instead of top posters.

Thanks in advance,

RedHacker
09-16-2009, 07:39 AM
You already have a module with an identifier of 'top_posters'. Please select a different identifier.

I cant upgrade

RedHacker
09-17-2009, 06:45 AM
Not show scroll bar

princeedward
09-17-2009, 09:37 PM
yes the height adjustment is not workin and scroller too.... got vb 3.8.4 here...

FTG STRYKER FG
10-19-2009, 05:10 PM
Hi, I really like this mod, but there seems to be an issue for me. Installed just as you said and it works but with the following error:

1) Avatars do not show up. The images are white boxes with red X. (turned off for now)

FTG STRYKER FG
10-19-2009, 05:55 PM
Got it to work by doing the following:

{

$avatarurl = "/forums/" . $vbulletin->options['avatarurl'] . "/avatar$top_poster[userid]_$top_poster[avatarrevision].gif";

}

else

{

$avatarurl = "/forums/" . 'image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&amp;dateline=$top_poster[avatardateline]";

}

FTG STRYKER FG
10-19-2009, 06:29 PM
Also had to add the following in order for the "unkown" avatar to show when a user has no avatar set in theirprofile:

$avatarurl = "/forums/" . 'images/misc/unknown.gif';

muratcan25
10-24-2009, 08:12 PM
thank you very much hasann

reddyink
11-13-2009, 01:31 AM
Great MOD! Installed.

Is it possible to modify this to show Top Posters of a particular forum (example: Forum 10)

Thanks

kralex
11-22-2009, 11:18 PM
eline sağlık hocam. güzel şeyler yapıyorsun. tanışmak isterim seninle. vbulletin-turkey'in kapanmasına üzüldüm bu arada.

cgway.net
03-19-2010, 03:25 PM
please help no any data collected by the module

i wait

muratcan25
09-29-2010, 11:20 AM
thank you
*************
sağol !

Alecsmith
08-17-2011, 06:18 AM
I wonder if it can be upgraded for VB 4 :D

Andr? Noberto
02-10-2013, 01:34 PM
Hello õ/

How can I ignore some forums on this module?

Can you help just a little?

Thank you