vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Leaderboard on Forumhome? (https://vborg.vbsupport.ru/showthread.php?t=233889)

vaskies 01-22-2010 08:45 PM

Leaderboard on Forumhome?
 
I tried using the code directly from the league module, but had no luck because the tables being queried don't exist.
PHP Code:

 $league $DB->query("SELECT l.mid, l.gid, AVG(l.position) AS position, SUM(l.points) as points,
                                    m.name
                                    FROM ibf_games_league AS l
                                    LEFT JOIN ibf_members AS m ON (l.mid=m.id)
                                    "
.$extquery."
                                    GROUP by mid
                                    ORDER BY points DESC"
);
               while (
$row $DB->fetch_row($league) ) {
                   
extract($row);
                   
$rank++;
                   
$name $row['name'];
                   if (
$ibforums->member['id'] == $mid) {
                       
$name "<b>".$name."</b>";
                   } 

Where and how are these "ibf" database tables defined? Needless to say I've extensively searched and unfortunately haven't come up with anything yet...

stangger5 01-23-2010 12:29 AM

What all are you tring to do ??

Have a look at my forum home..
Links in my sig..

vaskies 01-23-2010 10:50 AM

To use your site as a reference, I've been trying to get this:
http://www.next-level-arcade.com/ibp...de/league.html
and limit it to the top 10, to be used on forumhome.

The current problem I face is I can't find where these "ibf_games_league" and "ibf_members" tables are defined, because they are not actually created in the vbulletin database.

Edit: I'm using vbulletin 4.0 gold patch level 1, btw.


All times are GMT. The time now is 10:42 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.01919 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete