Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Bf2 stats v2.12 modified
Bf2 stats v2.12 modified

1 Replies / 1696 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


mity
Reputation: 464.6 Add RepSubtract Rep
Local time: 3:27 PM
Location: Queensland AU
blank.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Jun 04, 2007
Last Visit: 02 Jan 2009
Posts: 8
Points: 269 

Post Bf2 stats v2.12 modified Posted: Sun Nov 18, 2007 3:28 pm

Shop Purchases:
Multi-T3 Multi Gaming Theme

hay all im looking for some help with coding something in brainpecker's BF2 stats v2.12.

I have change the bottom so it shows the buddies list as a clan list and im now trying to add new fields like team score combat score and last commander score. but i dont know how to get their score to show below is a link to my page im working on MY SITE STATS PAGE

the code:

bf2_stats_tables.php
show the wzc stats table

Code:
function displayBuddies($amount) {
   include("bf2_stats_config.php");
   
   $queryWhere = generateQuery($conf_buddy_search_string, $conf_buddy_pids_array);
   
   if($amount>0) $limit = "LIMIT 0,$amount";
   
   $query = "SELECT * FROM $db_table_name WHERE $queryWhere ORDER BY score DESC $limit";
   $result = mysql_query($query);
   $num = @mysql_numrows($result);
   
   // table header "#  nick  score"
   $out .= "<table width='100%' cellspacing='0' cellpadding='0' class='borderAround'>";
   $out .= "<tr><td width='100%' hight='31' colspan='6' class='row1' align='center' nowrap><strong>xWzCx Stats</strong><br></td></tr>";
   $out .= "<tr class='secondTableColor'>";
      $out .= "<td width='5%' class='verySmallFont' nowrap>";
      $out .= "<strong>Rank</strong>";
      $out .= "</td>";
      
      $out .= "<td width='19%' class='verySmallFont' nowrap>";
      $out .= "<strong>Player Name</strong>";
      $out .= "</td>";
      
      
      $out .= "<td width='19%' class='verySmallFont' nowrap>";
      $out .= "<strong>Total Score</strong>";
      $out .= "</td>";
            
      $out .= "<td width='19%' class='verySmallFont' nowrap>";
      $out .= "<strong>Teamwork Score</strong>";
      $out .= "</td>";
      
      $out .= "<td width='19%' class='verySmallFont' nowrap>";
      $out .= "<strong>Combat score</strong>";
      $out .= "</td>";
      
      $out .= "<td width='19%' class='verySmallFont' nowrap>";
      $out .= "<strong>Commander score</strong>";
      $out .= "</td>";
      
   $out .= "</tr>";
   
   // tabel content, repeated for each player
   for($i=0; $i<$num; $i++) {
      $out .= "<tr class='secondTableColor'>";
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= $i+1;
         $out .= "</td>";
         
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= "<a href='modules.php?name=BF2_Stats&input1=".mysql_result($result,$i,"pid")."'>".htmlspecialchars(mysql_result($result,$i,"nick"))."</a>";
         $out .= "</td>";
         
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= mysql_result($result,$i,"score");
         $out .= "</td>";
         //COPY I DID OF THE SCORE NEEDS TO SHOW Teamwork Score   
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= mysql_result($result,$i,"score");
         $out .= "</td>";
         //COPY I DID OF THE SCORE NEEDS TO SHOW Combat score
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= mysql_result($result,$i,"score");
         $out .= "</td>";
         //COPY I DID OF THE SCORE NEEDS TO SHOW Commander score
         $out .= "<td class='verySmallFont' nowrap>";
         $out .= mysql_result($result,$i,"score");
         $out .= "</td>";
         
      $out .= "</tr>";
   }
   $out .= "</table>";


when you look up a player name you will see the scoring stats
below is a image of the scoring table.

here is the code the code to the scoring table dont know if i can use it.....
file name bf2_stats_tables.php
Code:
function scoringTable($val, $cleanVal, $weAre) {
   global $set_align, $set_align2;
   
   echo "<table width='100%' class='borderAround'>";
   echo "<tr class='secondTableColor'><td class='highlight' colspan='2' align='center'><strong>scoring stats</strong></td></tr>";

   echo "<tr class='secondTableColor'><td class='verySmallFont' $set_align><strong>Total score</strong></td>";
   echo "<td class='verySmallFont' $set_align2>".calcHighlite("scor", $weAre).$cleanVal["scor"]."</td></tr>";

   echo "<tr class='secondTableColor'><td class='verySmallFont' $set_align><strong>Teamwork score</strong></td>";
   echo "<td class='verySmallFont' $set_align2>".calcHighlite("twsc", $weAre).$cleanVal["twsc"]."</td></tr>";
   
   echo "<tr class='secondTableColor'><td class='verySmallFont' $set_align><strong>Combat score</strong></td>";
   echo "<td class='verySmallFont' $set_align2>".calcHighlite("cmsc", $weAre).$cleanVal["cmsc"]."</td></tr>";
   
   echo "<tr class='secondTableColor'><td class='verySmallFont' $set_align><strong>Commander score</strong></td>";
   echo "<td class='verySmallFont' $set_align2>".calcHighlite("cdsc", $weAre).$cleanVal["cdsc"]."</td></tr>";

that code is what im trying to add to the main page in the buddies list or now it is the clan list
so if anyone can help i will love you for ever...... Love but not in a gay way sorry Open Mouth

scoring_table.PNG
 Description:
 Filesize:  1.74 KB
 Viewed:  1688 Time(s)

scoring_table.PNG


 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 3:27 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.17 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Bf2 stats v2.12 modified Posted: Thu Jan 17, 2008 6:10 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Nice little fix there, thanks.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
1 Replies / 1696 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum