vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vBulletin CMS Widgets - Widget: Top 5 Posters this Month (https://vborg.vbsupport.ru/showthread.php?t=230793)

MaryTheG(r)eek 12-21-2009 10:00 PM

Widget: Top 5 Posters this Month
 
..............................................

nightbloom 12-22-2009 02:58 PM

Worked beautifully on my site. Thanks!

fayax 12-23-2009 06:48 AM

It is Excellent! and I love it!

btw any chance you can make a block out of this so we can also add it to the forums? :)

Forum Lover 12-23-2009 10:53 AM

Tagged, will use it after upgrades on my site. BTW, can you read my siggy please? :p

bart6767 12-23-2009 11:12 AM

Can this be made so it will open in same window other than a new window ?

MaryTheG(r)eek 12-23-2009 01:47 PM

Quote:

Originally Posted by bart6767 (Post 1936253)
Can this be made so it will open in same window other than a new window ?

Yes, it can be done be modify the code. Just remove:
Code:

target="_blank"
from any link (those starting with "<a")

Maria

bart6767 12-23-2009 05:57 PM

Quote:

Originally Posted by MicroHellas (Post 1936380)
Yes, it can be done be modify the code. Just remove:
Code:

target="_blank"
from any link (those starting with "<a")

Maria

Thanks Maria

SonicGT 12-23-2009 07:54 PM

Installed in my dev forum since im not prod yet with 4.0
The formatting for posts to user appears to be off though for me. I did remove the usergroup line in the query since in my dev site all the users are basically admin right now
See attached

https://vborg.vbsupport.ru/external/2009/12/38.jpg

Datenpapst 12-23-2009 08:16 PM

Hi,
Is it possible to show the avatars of all users, the top 2 - 5 in a smaller size and also to add the online status, add as a friend and send a private message icon next to the name?

Boots 12-23-2009 11:12 PM

Deathly slow query on a forum with a lot of posts.

Dr.osamA 12-23-2009 11:40 PM

installed

Thanks Maria

MaryTheG(r)eek 12-24-2009 09:43 AM

Quote:

Originally Posted by Boots (Post 1936894)
Deathly slow query on a forum with a lot of posts.

Just commenting in such a topic, says nothing more other than someone wants to appear smarty. Include in your post what do you think as optimised query, and also be more specific on your meaning of "lot of posts", so the users can compare it with their forum's posts. So "Lot of posts" means 1000, 10000, 100000 or what?

And don't forget the saying: "If you don't have something good to say, is better to keep your mouth close".


Thank you and Merry Christmas to you and to your family.
Maria

Boots 12-24-2009 10:00 AM

Quote:

Originally Posted by MicroHellas (Post 1937146)
Just commenting in such a topic, says nothing more other than someone wants to appear smarty. Include in your post what do you think as optimised query, and also be more specific on your meaning of "lot of posts", so the users can compare it with their forum's posts. So "Lot of posts" means 1000, 10000, 100000 or what?

In my case the forum has 2,162,154 posts and the query takes about 3-5 seconds. You could have clicked on the link to my forum to see the post total btw. I tried out the mod, found the query to be slow and removed it. I don't have time to optimize the query.

Quote:

And don't forget the saying: "If you don't have something good to say, is better to keep your mouth close".
This doesn't apply in this case. People need to know the good and the bad when it comes to these mods. An inexperienced forum owner could cripple his forum from installing something without considering the negative effects it could have on performance.

Quote:

Thank you and Merry Christmas to you and to your family.
Maria
Same to you :D

MaryTheG(r)eek 12-24-2009 10:33 AM

Quote:

Originally Posted by Boots (Post 1937154)
In my case the forum has 2,162,154 posts and the query takes about 3-5 seconds. You could have clicked on the link to my forum to see the post total btw. I tried out the mod, found the query to be slow and removed it. I don't have time to optimize the query.

It's not about anount of posts my dear friend. It's about amount of users. The records in the parent table (in this case "Users"), is who takes more time and not the child table (in this case "Posts"). Simple because the child table is already indexed on userid, so the query stops running when userid is changing, unlike the parent table (users) where the query must go throughout all records.

In simple words: 1000 users X 2000 posts each, will take less time than 10000 users X 200 posts each, even if the total amount of posts is the same on both cases.

Quote:

Originally Posted by Boots (Post 1937154)
This doesn't apply in this case. People need to know the good and the bad when it comes to these mods. An inexperienced forum owner could cripple his forum from installing something without considering the negative effects it could have on performance.

Calorie wrote it somewhere. It's American saying, and yes I also disagree with it, but only in cases when someone says his opinion explaining it, just like you did in your second post.

Maria

grahamsmythe 12-26-2009 01:08 AM

This is another nice little widget you've written.

Many thanks and keep up the good work!

grahamsmythe 12-26-2009 01:34 AM

Rather than having just usergroup 2, is there any way of having it pick up usergroup 2 AND 10?

Id rather not remove line 17. As you say, Admins would always go to the top of the list.

kf4eok 12-26-2009 02:03 AM

installed thanks

grahamsmythe 12-28-2009 09:10 AM

Further to my other post about it recognising multiple usergroups, my installations doesn't seem to show users avatars, even though they DO have an avatar installed.

The top posters just has the default avatar showing.

steve1966 12-28-2009 04:01 PM

great thanks

ccjc 12-29-2009 05:28 AM

I dont see "Choose PHP Direct Execution as Widget's Type" in the widget creation page.

Am I missing something here?

MaryTheG(r)eek 12-29-2009 10:48 AM

Quote:

Originally Posted by ccjc (Post 1941237)
I dont see "Choose PHP Direct Execution as Widget's Type" in the widget creation page.

Am I missing something here?

This is a vBulletin issue, so you've to contact them for support. As you can see there are lot installation which means that this option exists. Actually is the 2nd from the end. Maybe your PHP version, your server type... don't know what to say.

Maria

Mikhailtech 01-02-2010 03:00 AM

Not working on my site (check right side for the widget) :

http://www.pcshoptalk.com/

Any ideas?

kjpp 01-02-2010 09:19 AM

It is posible to add this widget on forum site?

Regards
kjpp

MaryTheG(r)eek 01-02-2010 10:05 AM

Quote:

Originally Posted by kjpp (Post 1944784)
It is posible to add this widget on forum site?

Regards
kjpp

Only if someone else takes the code and change it to work with forumhome. I don't use to code touching forumhome.

Maria

tazattitude 01-02-2010 01:26 PM

Quote:

Originally Posted by grahamsmythe (Post 1938338)
Rather than having just usergroup 2, is there any way of having it pick up usergroup 2 AND 10?

Id rather not remove line 17. As you say, Admins would always go to the top of the list.

Maria,
I would also like to do this. I'd like to add 2 more usergroups to the query, but NOT include the mods, the admin, and a couple other groups.

(WHERE usergroupid=2, 18, 19) ???


That would be great!

Thanks!

rbc 01-02-2010 01:56 PM

Quote:

Originally Posted by Mikhailtech (Post 1944607)
Not working on my site (check right side for the widget) :
http://www.pcshoptalk.com/
Any ideas?

@ Mikhailtech
just works fine on your page, as fare as i can see :)

@ Maria
Thanks, i like it !

Mikhailtech 01-02-2010 03:30 PM

You're right. I was checking posts for non-registered users, forgot this only checks that group by default.

@Maria ... is there any way to save/check this query after the month is over? Something like "last month's top posters". What would be the code syntax for that? I'm asking because I need to know the top posters for each month up to midnight and it's best to check that the following month.

allenewood 01-02-2010 06:11 PM

Thank you!

Bergler 01-02-2010 06:35 PM

Yes it works, but unless you can add more usergroups, I dont think it will work as good as it could. I went in to try and add other usergroups as suggested but I get a database error from where i added the usergroups! I tried it like this, (WHERE usergroupid=2, 18, 19) and like this (WHERE usergroupid=2 18 19) No work, just error on both.

SLY LS1 01-04-2010 01:55 AM

My usernames and post count dont seem to line up...

Hmmm

Bergler 01-04-2010 02:11 AM

Got this from another thread and this worked!!

Quote:

Originally Posted by MicroHellas (Post 1937803)
Yes, sure. You can do it on 2 ways:

1.- Changing the "where" argument from WHERE usergroupid=2, to WHERE usergroupid=2 OR usergroupid=3 OR usergrooupid=7 . In this example we assume that you want to include members who belong to usergroups 2,3,7

2.- By using an array. At the top of the file add:
Code:

$grouparray = "2,3,7";
$groupids = explode(',',$grouparray);

Then change the "where" argument from WHERE usergroupid=2, to WHERE usergroupid IN ($groupids)

Maria


vividbreeze 01-05-2010 06:52 PM

Hey, lets say it picks top 5 posters of Jan, what happens when Feb 1 hits? Will it start everyones count back down to ZERO so we can see who are the top posters EACH month so some ppl dont have a head star advantage?

thanks!

tazattitude 01-05-2010 07:27 PM

Yes it restarts every month

MaryTheG(r)eek 01-11-2010 03:19 PM

Due to lack of free time, I must decrease the time that I'm spending here for support. By having a long thread for each of my 16 mods, most often I'm bypassing questions. That's why for urgent questions please visit my site, where it's easier to support you, by having a thread per question.

Thank you
Maria

RedHacker 02-02-2010 05:23 AM

Thanks but i have one problem.. If the avatar are big image not look fine..
How to fix....?

tazattitude 02-02-2010 09:04 AM

Quote:

Originally Posted by RedHacker (Post 1972806)
Thanks but i have one problem.. If the avatar are big image not look fine..
How to fix....?

I would think that if you changed this line

PHP Code:

<img border="0" src="'.$useravatar.'"><br /> 

to

PHP Code:

<img border="0" width="100" src="'.$useravatar.'"><br /> 

this should take care of it.

RedHacker 02-02-2010 09:11 AM

Quote:

Originally Posted by tazattitude (Post 1972892)
I would think that if you changed this line

PHP Code:

<img border="0" src="'.$useravatar.'"><br /> 

to

PHP Code:

<img border="0" width="100" src="'.$useravatar.'"><br /> 

this should take care of it.

Thanks very much...

RedHacker 02-09-2010 09:38 AM

Problem with FF2 and show the numbers of posts

https://vborg.vbsupport.ru/external/2010/03/66.jpg

leeman 02-12-2010 03:36 PM

How to fix this??

I changed limit from 5 to 10 and this poped in.

neudimenxion 03-10-2010 05:47 AM

Quote:

Originally Posted by RedHacker (Post 1978160)
Problem with FF2 and show the numbers of posts

https://vborg.vbsupport.ru/external/2010/03/66.jpg

i'vw got the same problem too.


All times are GMT. The time now is 01:49 PM.

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.01329 seconds
  • Memory Usage 1,835KB
  • 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
  • (4)bbcode_php_printable
  • (16)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