Version: , by YLP1
Developer Last Online: Nov 2009
Version: Unknown
Rating:
Released: 05-04-2008
Last Update: Never
Installs: 0
No support by the author.
I cannot figure out how to increase the number of newest champions to 12 from the default list of 5 or increasing the number of latest arcade scores to 12 from 1 on the arcade.php.
I am running the latest version of ibProArcade and vb 3.7.0 Gold.
This is driving me nuts and any help in accomplishing this is greatly appreciated.
$DB->query("SELECT c.*, g.gcat, cat.password FROM ibf_games_champs AS c, ibf_games_list AS g, ibf_games_cats AS cat WHERE c.champ_gid=g.gid AND g.gcat=cat.c_id AND g.active=1 AND trim(password)='' ORDER BY champ_date DESC LIMIT 0,5");
replace with
PHP Code:
$total_de_champs = 12; $DB->query("SELECT c.*, g.gcat, cat.password FROM ibf_games_champs AS c, ibf_games_list AS g, ibf_games_cats AS cat WHERE c.champ_gid=g.gid AND g.gcat=cat.c_id AND g.active=1 AND trim(password)='' ORDER BY champ_date DESC LIMIT 0,$total_de_champs");
and then, if you want to change it later, just change the $total_de_champs variable with the amount of champs you want.
as for the latest scores...well, that requires a major modification...i'm looking how to make it work
okey so here is how you edit the latests scores ! !
first find all this in between lines ~2152 and ~2173
PHP Code:
//latest score and champions //Added g.decpoints after g.title $DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM ibf_games_scores AS s, ibf_games_list AS g, ibf_games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,5"); $newest_score = $DB->fetch_row();
by the way, this is hardcoded inside arcade.php, and it shouldn't be that way, but i don't know how templating in ibproarcade works, so this is the fastest way..
Hi and thank you for the instructions. I am getting a db error - not being a coder for sure - but the error is that it cannot find the db table. Is this because the table prefix is missing? If so, where do I correct the code to include the table prefix.
$DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM games_scores AS s, games_list AS g, games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,$total_de_scores");
to this one
PHP Code:
$DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM ibf_games_scores AS s, ibf_games_list AS g, ibf_games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,$total_de_scores");
i trully have on idea how this actually works really, because i don't have those prefixes for the tables, but they still work (all the ibproarcade queries are like that).