vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-17-2004, 10:40 PM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Top (10) Posters Module

2 templates
1 file

Put the topten.php file in the Modules folder
create 2 new templates : adv_portal_topposters and top_posters with the content included in the aproriate txt files.

It give a module with the Top 10 users with more posts

Is you want change the amount of users to show in this module, simpley change the LIMIT option in the php file:

PHP Code:
$top_posters $DB_site->query("SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT 10"); 
where LIMIT 10 is the number of userr to include in this query. Yo can change the numbre 10 for 5, 20, or wathelse that you want.
Attached Files
File Type: zip top posters.zip (1.0 KB, 732 views)

Last edited by Acido; 05-22-2004 at 01:16 AM.
  #2  
Old 05-17-2004, 11:45 PM
seidel seidel is offline
Junior Member
 
Join Date: May 2004
Posts: 23
Default Re: Top (10) Posters Module

Hi!

I have vbadvanced homepage 1.1

How put your excellent module?

Please helpme!

Thanks!
  #3  
Old 05-18-2004, 01:01 AM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Top (10) Posters Module

The modules only work with vBadvanced CMPS
__________________
Zachery
vBadvanced Support & SysAdmin

  #4  
Old 05-18-2004, 01:29 AM
seidel seidel is offline
Junior Member
 
Join Date: May 2004
Posts: 23
Default Re: Top (10) Posters Module

Oh!, many thanks!
  #5  
Old 05-18-2004, 05:32 AM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Top (10) Posters Module

See screenshot ---

Seems to function properly. Nice hack.

But there is no border around it....

Also -- even though I took out the >> on the rest of the page, it came back on this block?
Attached Images
File Type: jpg untitled.JPG (57.2 KB, 1117 views)
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners!

Lincoln vs Cadillac : Mopar Forum : Car Audio Talk
  #6  
Old 05-18-2004, 01:21 PM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Re: Top (10) Posters Module

Quote:
Originally Posted by joeychgo
See screenshot ---

Seems to function properly. Nice hack.

But there is no border around it....

Also -- even though I took out the >> on the rest of the page, it came back on this block?
Sorry for the borders:

In Template: adv_portal_topposters

Find:

Code:
 <table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0"  width="100%">
Replace it with:

Quote:
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">
Border Fixed
  #7  
Old 05-18-2004, 11:46 PM
seidel seidel is offline
Junior Member
 
Join Date: May 2004
Posts: 23
Default Re: Top (10) Posters Module

Your module is great!

*installed* here expertforum.info/vbulletin

Last edited by seidel; 05-19-2004 at 09:22 AM.
  #8  
Old 05-19-2004, 07:34 AM
bluesteel bluesteel is offline
Member
 
Join Date: Apr 2004
Posts: 41
Default Re: Top (10) Posters Module

Simple, but good. Thanks!
*installed*
  #9  
Old 05-19-2004, 08:10 AM
Socket Socket is offline
Junior Member
 
Join Date: Apr 2004
Posts: 14
Thumbs up Re: Top (10) Posters Module

Cheers Acido just what I needed
  #10  
Old 05-19-2004, 08:20 AM
BoNfiRe BoNfiRe is offline
Senior Member
 
Join Date: Apr 2004
Posts: 105
Default Re: Top (10) Posters Module

yea thx for that shame I only have 3 posters, and one of them is me lol
  #11  
Old 05-19-2004, 08:43 AM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Top (10) Posters Module

Quote:
Originally Posted by Acido
Border Fixed


Thats what I like - service with a smile thanks alot
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners!

Lincoln vs Cadillac : Mopar Forum : Car Audio Talk
  #12  
Old 05-19-2004, 08:44 AM
Rids Rids is offline
Junior Member
 
Join Date: Jan 2004
Posts: 28
Default Re: Top (10) Posters Module

Thanks for this Acido, a useful little module - *installed*
  #13  
Old 05-21-2004, 01:35 PM
hpwilhelm hpwilhelm is offline
Junior Member
 
Join Date: Jan 2004
Location: Norway
Posts: 26
Default Re: Top (10) Posters Module

Thanks for a wery usefull add-on!

Would it be possible to make it display "Most popular users", Top 10 reputation with points display?
  #14  
Old 05-21-2004, 01:59 PM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Re: Top (10) Posters Module

Quote:
Originally Posted by hpwilhelm
Thanks for a wery usefull add-on!

Would it be possible to make it display "Most popular users", Top 10 reputation with points display?
I'l try write it tomorrow
  #15  
Old 05-21-2004, 02:30 PM
hpwilhelm hpwilhelm is offline
Junior Member
 
Join Date: Jan 2004
Location: Norway
Posts: 26
Default Re: Top (10) Posters Module

Quote:
Originally Posted by Acido
I'l try write it tomorrow
Thanks! Looking forward to it!
  #16  
Old 05-22-2004, 01:26 AM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Re: Top (10) Posters Module

Quote:
Originally Posted by hpwilhelm
Thanks! Looking forward to it!
I rewrite a new module. But if you want take a easy way, you can change the query in this module, to get people sorted by reputation, posts, referrals... etc

Check the file topten.php

Where you see: SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT 10"

you can change that field (posts) by reputation or joindate, lastactivity etc.

Regards.
  #17  
Old 05-22-2004, 05:37 AM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Top (10) Posters Module

I suggest for larger boards if its possible for you to store this number in the datastore or somthing else, so this doesnt have to be run every time a user browses the board, ^^ just a thought that might speed things up
__________________
Zachery
vBadvanced Support & SysAdmin

  #18  
Old 05-22-2004, 06:21 AM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Re: Top (10) Posters Module

Quote:
Originally Posted by Zachery
I suggest for larger boards if its possible for you to store this number in the datastore or somthing else, so this doesnt have to be run every time a user browses the board, ^^ just a thought that might speed things up
I have not enought skills to do that.
Can you help?
  #19  
Old 05-22-2004, 07:22 AM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Top (10) Posters Module

Sadly im not that good with php ^^ altho Brian should be
__________________
Zachery
vBadvanced Support & SysAdmin

  #20  
Old 05-22-2004, 09:36 PM
bluesteel bluesteel is offline
Member
 
Join Date: Apr 2004
Posts: 41
Default Re: Top (10) Posters Module

Made a VERY minor change to this hack.

In adv_portal_topposters template, find
PHP Code:
<td width="100%"><span class="smallfont">$top_stats[top_posters
                        </
span></td
And replace with
PHP Code:
<td width="100%"><ol><span class="smallfont">$top_stats[top_posters
                        </
span></ol></td
This should give you something like this
Attached Images
File Type: jpg topposters.JPG (11.6 KB, 638 views)
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a new module Zedd Add-On Modules & Modifications 6 12-13-2004 11:35 PM


All times are GMT -4. The time now is 03:14 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.