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 6 August 2010 - 6:25 pm 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 | Válasz | Idézet
 BugA_the_Great


Group: Standard Membership
Join Date: 19 April 2008
Posts:417
Edited 6 August 2010 - 3: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 | Válasz | Idézet
 [I3dC]PJMaster


Group: Standard Membership
Join Date: 25 June 2007
Posts:185
Posted 6 August 2010 - 6:19 pm
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 | Válasz | Idézet
 BugA_the_Great


Group: Standard Membership
Join Date: 19 April 2008
Posts:417
Posted 7 August 2010 - 2: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 | Válasz | Idézet
 NeverMore__


Group: Standard Membership
Join Date: 8 October 2008
Posts:528
Posted 13 August 2010 - 7:03 pm
and joomla ? =(
Link | Válasz | Idézet
 _CaNeK__


Group: Standard Membership
Join Date: 15 June 2010
Posts:20
Posted 18 August 2010 - 8:42 pm
Html ?? ;thumbup
Link | Válasz | Idézet
 [K]King_JBMaster


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


Group: Standard Membership
Join Date: 21 May 2010
Posts:150
Posted 31 January 2011 - 2:03 pm
html isn't harder than PHP, lolz.
Link | Válasz | Idézet
 TheCashNut


Group: Standard Membership
Join Date: 12 March 2011
Posts:2
Posted 13 March 2011 - 6: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 | Válasz | Idézet
 Comu


Group: Standard Membership
Join Date: 21 May 2010
Posts:150
Posted 13 March 2011 - 7:01 am
Well this isn't HTML then anymore. It's JavaScript based.
Link | Válasz | Idézet
 TheCashNut


Group: Standard Membership
Join Date: 12 March 2011
Posts:2
Posted 13 March 2011 - 12:56 pm
Javascript, HTML, same thing :)
Link | Válasz | Idézet
 _____Killer_


Group: Standard Membership
Join Date: 24 January 2012
Posts:25
Posted 29 February 2012 - 7:55 am
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 | Válasz | Idézet
 Woof_woof


Group: Standard Membership
Join Date: 15 June 2011
Posts:2770
Posted 3 March 2012 - 8:00 am
i didn't get a thing
Link | Válasz | Idézet
 [dfsdf]ouch__


Group: Standard Membership
Join Date: 15 May 2012
Posts:878
Posted 6 July 2012 - 6:34 am
yeah seemsgood ///
Link | Válasz | Idézet
 ArgoNaut_Proek


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


Link | Válasz | Idézet
[1]2
Displaying 1 - 15 out of 25 posts
Ugrás:
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests

Most active threads in past week: