>",$topposters,$pal_To..."> >",$topposters,$pal_To...">
 
Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Also if you want your top posters for the calendar month you need to do the following:

Find:

$tString = str_replace("<<NUMPOSTERS>>",$topposters,$pal_TopPosters[0]);

Below it add

$tString .= " (";
$tString .= date("F");
$tString .= ")";

and change the query to:

$FirstOfMonth = mktime(0,0,0, date("m"),1,date("Y"));
$LastOfMonth = mktime(0,0,0, date("m")+1,1,date("Y")) - 86400;

$strWhere = "AND B_Posted BETWEEN '$FirstOfMonth' AND '$LastOfMonth' ";

$query = "
SELECT U_Username,
COUNT( B_Number ) AS TotalPosts,
U_Number
FROM w3t_Users,
w3t_Posts
WHERE U_Number > 1
AND U_Number = B_PosterId
$strWhere
GROUP BY U_Username
ORDER BY TotalPosts DESC
$limit
";

This should give you the top posters of the calendar month. With a small adaptation of the SQL query to Josh's pal box you can set this up.


Nikos
Sponsored Links
Entire Thread
Subject Posted By Posted
Beta-[6.2-6.3] Recent Top Posters 1.0 JoshPet 06/15/2003 7:09 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 J.C. 06/15/2003 7:13 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 Allusivekudos 06/15/2003 8:20 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 ericgtr 06/24/2003 6:34 PM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 Ian_W 06/24/2003 8:11 PM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 omegatron 06/24/2003 9:47 PM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 JoshPet 06/25/2003 3:50 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 ericgtr 06/25/2003 5:37 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 JoshPet 06/25/2003 5:48 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 JoshPet 06/25/2003 5:52 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 ericgtr 06/25/2003 5:55 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 AKD96 06/28/2003 2:13 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 ericgtr 06/28/2003 3:47 PM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 JoshPet 06/29/2003 5:27 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 ericgtr 06/29/2003 6:37 AM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 dimopoulos 06/30/2003 2:37 PM
Re: Beta-[6.2-6.3] Recent Top Posters 1.0 AKD96 07/16/2003 10:48 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)