BalHack
19/08/2007, 21h07
Bonjour, voici comment mettre l'avatar du vainqueur à la place de l'icône du jeu quand vous jouez.
J'espère ne pas faire de bêtise en mettant ça ici.
Description
Affiche l'avatar du vainqueur quand vous jouez
Conception
Auteur du hack / Author of the hack : Teepiak (BalHack)
Lien du sujet du hack / Link of the thread of the hack : http://www.lien-du-sujet.com (http://www.lien-du-sujet.com/)
Version de vBulletin Requise / Version vBulletin Required : vBulletin 3.6.x
Testé / Tested: OuiRermerciements et Supports
Remerciements à / Thanks to : ibpro arcade
Le support de ce hack ne se fera que dans ce sujet, dans la mesure du possible et des moyens de chacuns / Help about this hack will be only done on this post, with what we have and what we can .Installation
Ouvir arcade.php
rechercher if (($vbversion != "3.0") && ($NATIVEMODE==0))
{
($hook = vBulletinHook::fetch_hook('ibproarcade_play_game') ) ? eval($hook) : false;
}
Ajoutez en dessous //Affichage AVATAR BalHack début
$DB->query("SELECT g.gid,g.gname,g.gtitle,g.gwords,g.gcat,g.highscore _type,g.decpoints, c.* FROM ibf_games_list AS g, ibf_games_champs AS c WHERE (g.gid = c.champ_gid) AND gid=".$id);
if( $DB->get_num_rows() )
{
$ainfo = $DB->fetch_row();
//$ginfo['champ_score'] = $this->arcade->t3h_format($ginfo['champ_score']);
//replaced
$ainfo['champ_score'] = $this->arcade->do_arcade_format($ainfo['champ_score'],$ainfo['decpoints']);
if( !empty($ainfo['champ_mid']) )
{
$DB->query("SELECT avatar,avatar_size AS size FROM ibf_members WHERE id=".$ainfo['champ_mid']);
$avatar = $DB->fetch_row();
$ainfo['avatarcode'] = $std->get_avatar($avatar , 1 , $avatar['size']);
}
}
else
{
$DB->query("SELECT * FROM ibf_games_list WHERE gid=".$id);
$ainfo = $DB->fetch_row();
}
$ainfo['avatarcode'] = (empty($ainfo['avatarcode'])) ? "<img src='./arcade/images/noavatar.gif' alt='' title='' />" : $ainfo['avatarcode'];
//Affichage AVATAR BalHack fin Recherchez $this->output .= $this->html->game($game,$top,$extra_html); remplacez par $this->output .= $this->html->game($game,$top,$extra_html,$ainfo); Fermez et enregistrez
Ouvrir skin_arcade.php
Recherchez function game($game,$top,$extra) { Remplacez par function game($game,$top,$extra,$ainfo) {
recherchez <tr>
<td align="center" class="alt2"><img src="./arcade/images/{$game['gname']}1.gif" alt="" width="50" height="50" /></td>
</tr> Remplacez par <tr>
<td align="center" class="alt2">{$ainfo['avatarcode']}</td>
</tr>
Pour les tournois, recherchez function tourneygame($game,$top,$tid) { Remplacez par function tourneygame($game,$top,$tid,$ainfo) { Puis recherchez <tr>
<td align="center" class="alt2"><img src="./arcade/images/{$game['gname']}1.gif" alt="" width="50" height="50" /></td>
</tr> Remplacez par <tr>
<td align="center" class="alt2">{$ainfo['avatarcode']}</td>
</tr>
Faites la même chose pour le 2ème thème si vous avez donné le choix à vos membres.
C'est fini, j'espère que cela servira.Aperçu
Image avant et après modification
J'espère ne pas faire de bêtise en mettant ça ici.
Description
Affiche l'avatar du vainqueur quand vous jouez
Conception
Auteur du hack / Author of the hack : Teepiak (BalHack)
Lien du sujet du hack / Link of the thread of the hack : http://www.lien-du-sujet.com (http://www.lien-du-sujet.com/)
Version de vBulletin Requise / Version vBulletin Required : vBulletin 3.6.x
Testé / Tested: OuiRermerciements et Supports
Remerciements à / Thanks to : ibpro arcade
Le support de ce hack ne se fera que dans ce sujet, dans la mesure du possible et des moyens de chacuns / Help about this hack will be only done on this post, with what we have and what we can .Installation
Ouvir arcade.php
rechercher if (($vbversion != "3.0") && ($NATIVEMODE==0))
{
($hook = vBulletinHook::fetch_hook('ibproarcade_play_game') ) ? eval($hook) : false;
}
Ajoutez en dessous //Affichage AVATAR BalHack début
$DB->query("SELECT g.gid,g.gname,g.gtitle,g.gwords,g.gcat,g.highscore _type,g.decpoints, c.* FROM ibf_games_list AS g, ibf_games_champs AS c WHERE (g.gid = c.champ_gid) AND gid=".$id);
if( $DB->get_num_rows() )
{
$ainfo = $DB->fetch_row();
//$ginfo['champ_score'] = $this->arcade->t3h_format($ginfo['champ_score']);
//replaced
$ainfo['champ_score'] = $this->arcade->do_arcade_format($ainfo['champ_score'],$ainfo['decpoints']);
if( !empty($ainfo['champ_mid']) )
{
$DB->query("SELECT avatar,avatar_size AS size FROM ibf_members WHERE id=".$ainfo['champ_mid']);
$avatar = $DB->fetch_row();
$ainfo['avatarcode'] = $std->get_avatar($avatar , 1 , $avatar['size']);
}
}
else
{
$DB->query("SELECT * FROM ibf_games_list WHERE gid=".$id);
$ainfo = $DB->fetch_row();
}
$ainfo['avatarcode'] = (empty($ainfo['avatarcode'])) ? "<img src='./arcade/images/noavatar.gif' alt='' title='' />" : $ainfo['avatarcode'];
//Affichage AVATAR BalHack fin Recherchez $this->output .= $this->html->game($game,$top,$extra_html); remplacez par $this->output .= $this->html->game($game,$top,$extra_html,$ainfo); Fermez et enregistrez
Ouvrir skin_arcade.php
Recherchez function game($game,$top,$extra) { Remplacez par function game($game,$top,$extra,$ainfo) {
recherchez <tr>
<td align="center" class="alt2"><img src="./arcade/images/{$game['gname']}1.gif" alt="" width="50" height="50" /></td>
</tr> Remplacez par <tr>
<td align="center" class="alt2">{$ainfo['avatarcode']}</td>
</tr>
Pour les tournois, recherchez function tourneygame($game,$top,$tid) { Remplacez par function tourneygame($game,$top,$tid,$ainfo) { Puis recherchez <tr>
<td align="center" class="alt2"><img src="./arcade/images/{$game['gname']}1.gif" alt="" width="50" height="50" /></td>
</tr> Remplacez par <tr>
<td align="center" class="alt2">{$ainfo['avatarcode']}</td>
</tr>
Faites la même chose pour le 2ème thème si vous avez donné le choix à vos membres.
C'est fini, j'espère que cela servira.Aperçu
Image avant et après modification