vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - vBadvanced Module: Top Posters in Last X Days (https://vborg.vbsupport.ru/showthread.php?t=199406)

Hasann 12-20-2008 10:00 PM

vBadvanced Module: Top Posters in Last X Days
 
1 Attachment(s)
Top Posters vBAdvanced CMPS Module by Hasann

http://img205.imageshack.us/img205/5...postersxt3.png

This Product brought to you by
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:

Demo: 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/9...benanntpm7.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

Quote:

Originally Posted by princeedward (Post 1690106)
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....

:(

Quote:

Originally Posted by Huy Ho?ng (Post 1690254)
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

Quote:

Originally Posted by princeedward (Post 1690106)
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

Quote:

Originally Posted by rob01 (Post 1690581)
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/h...sc/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.ph...ine=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

Quote:

Originally Posted by princeedward (Post 1690498)
still the same on my side bro... :(

Quote:

Originally Posted by asj (Post 1690552)
the same problem !! :(

Quote:

Originally Posted by rob01 (Post 1690581)
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 ?

Quote:

Originally Posted by rolandogomez (Post 1690772)
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.

Quote:

Originally Posted by chooky (Post 1690898)
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.ph...ine=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

Quote:

Originally Posted by chooky (Post 1696488)
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:
Code:

$avatarurl =  $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
Replace with:
Code:

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

Code:

// 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:
PHP Code:

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

Quote:

Originally Posted by scorpion#1 (Post 1710307)
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

Quote:

Originally Posted by Asma44 (Post 1725430)
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

Quote:

Originally Posted by Huy Ho?ng (Post 1758244)
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.

PHP Code:

$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!


All times are GMT. The time now is 04:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01522 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete