Community Forums > General > Voobly Software Developer Kit > PHP code for Top 10 ratings of a team in Voobly

PHP code for Top 10 ratings of a team in Voobly

 [I3dC]PJMaster


Group: Standard Membership
Join Date: 25 June 2007
Posts:185
Edited 7 August 2010 - 12:25 am by [I3dC]PJMaster
Whoever is interested,

I own a web site for my clan. This web site is based on PHP Fusion 7.01. I created some code using the Voobly API to obtain and display the top 10 ratings from a specific team in Voobly.

You must login into Voobly to view image


This is the web site: [You must login to view link]

If you are interested on obtaining this code, PM me and I will provide you with it.

Regards,
PJ
Link | Reply | Quote
 BugA_the_Great


Group: Standard Membership
Join Date: 20 April 2008
Posts:417
Edited 6 August 2010 - 9:16 am by BugA_the_Great
ar.png jose coded something recently, for use with many forum systems (IPB + Unreal Portal, phpBB 2.x + portal.php, phpBB 2.x Plus, phpBB 2.x, phpBB 3.x + bb3portal, phpNuke).

You must login into Voobly to view image


More info about Voobly Live Ratings and [You must login to view link].
Link | Reply | Quote
 [I3dC]PJMaster


Group: Standard Membership
Join Date: 25 June 2007
Posts:185
Posted 7 August 2010 - 12:19 am
OMG! Now I feel like my work is nothing compared to that! Hehe... Thanks, I will try and port it to PHP Fusion as well.
Link | Reply | Quote
 BugA_the_Great


Group: Standard Membership
Join Date: 20 April 2008
Posts:417
Posted 7 August 2010 - 8:03 pm
Nah, as long as you`ve learned something from the code you made yourself, it`s a good thing ;)
No problem, when you do so, I`ll add it to the topic.
Link | Reply | Quote
 keTzaL__


Group: Standard Membership
Join Date: 8 October 2008
Posts:528
Posted 14 August 2010 - 1:03 am
and joomla ? =(
Link | Reply | Quote
 _CaNeK__


Group: Standard Membership
Join Date: 16 June 2010
Posts:20
Posted 19 August 2010 - 2:42 am
Html ?? ;thumbup
Link | Reply | Quote
 [K]King_JBMaster


Group: Standard Membership
Join Date: 9 April 2009
Posts:850
Posted 10 October 2010 - 7:19 am
html is harder then php although it is do able it will take time for this to be working perfectly.
Link | Reply | Quote
 Comu


Group: Standard Membership
Join Date: 21 May 2010
Posts:152
Posted 31 January 2011 - 8:03 pm
html isn't harder than PHP, lolz.
Link | Reply | Quote
 TheCashNut


Group: Standard Membership
Join Date: 12 March 2011
Posts:2
Posted 13 March 2011 - 11:36 am
It is if you want dynamic content in HTML exclusively on a server without any server-side runtime technology. (Try a cross-domain AJAX request and you'll see what I mean!)
Link | Reply | Quote
 Comu


Group: Standard Membership
Join Date: 21 May 2010
Posts:152
Posted 13 March 2011 - 12:01 pm
Well this isn't HTML then anymore. It's JavaScript based.
Link | Reply | Quote
 TheCashNut


Group: Standard Membership
Join Date: 12 March 2011
Posts:2
Posted 13 March 2011 - 5:56 pm
Javascript, HTML, same thing :)
Link | Reply | Quote
 _____Killer_


Group: Standard Membership
Join Date: 24 January 2012
Posts:30
Posted 29 February 2012 - 1:55 pm
Assuming you have database access it is very simple

$sql = "SELECT * FROM `members` ORDER BY `ratings` DESC LIMIT 10"; // replace members with table name and ratings with field name
$sql = mysql_query($sql) or die(mysql_error());
$nrw=mysql_num_rows($sql);
$row=0;

while($row < $nrw) {
$member_name =mysql_result($sql,$row,"member_name"); // edit field names
$rating=mysql_result($sql,$row,"rating"); // edit field names
$any_other_field_names=mysql_result($sql,$row,"any_other_field_names"); // add additional field names

echo $member_name." ".$rating."<br>\n"; // replace with your html either table row or div

$row++;
}
Link | Reply | Quote
 Woof_woof


Group: Standard Membership
Join Date: 16 June 2011
Posts:2770
Posted 3 March 2012 - 2:00 pm
i didn't get a thing
Link | Reply | Quote
 [dfsdf]ouch__


Group: Standard Membership
Join Date: 15 May 2012
Posts:878
Posted 6 July 2012 - 12:34 pm
yeah seemsgood ///
Link | Reply | Quote
 ArgoNaut_Proek


Group: Standard Membership
Join Date: 27 July 2011
Posts:6
Posted 28 August 2012 - 1:56 pm
#EmbarassedIHaveNoIdeaWhatYouAreFreakingTalkingAbout


Link | Reply | Quote
[1]2
Displaying 1 - 15 out of 25 posts
Forum Jump:
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests

Most active threads in past week: