Ole funziona alla meraviglia
il tuo DB va benissimo però o dovuto fare delle modifiche seno mi dava l'ID 0 infatti era un ID inesistente e risultava un 0 perchè dovevo anche descrivere nel $user_cache[$poster_id] = array( di viewtopic.php.
Finalmente con le tue fatiche e le mie fatiche siamo riusciti a capire dove c'era questo sbaglio che non dava su viewtopic il nome dello style.
Infatti vorrei rilasciare ovviamente sempre dal vero autore di
RMcGirr83 per la sua
MOD XFIRE
ma con inclusione nelle pagina su viewtopic.php e viewtopic_body.html questa modifica in più
Aprire
viewtopic.php
trova
Codice: Seleziona tutto
'msn' => ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=msnm&u=$poster_id") : '',
Aggiungi dopo
Codice: Seleziona tutto
// BEGIN xfire mod
'xfire' => ($row['user_xfire'] && $auth->acl_get('u_sendim')) ? $row['user_xfire'] : '',
'user_xfire_style' => ($row['user_xfire_style'] = str_replace(array(1, 2, 3, 4, 5, 6), array('shadow', 'combat', 'scifi', 'fantasy', 'wow', 'default'), (int) $row['user_xfire_style'])),
//END xfire mod
infatti qui o aggiunto dei
row su
user_xfire_style in tutte e due i lati, per far si che il DB riconosce no l'id ma il nome dello style.
Trova
Aggiungi dopo
Codice: Seleziona tutto
// BEGIN xfire mod
'U_XFIRE' => $user_cache[$poster_id]['xfire'],
'U_XFIRE_STYLE' => $user_cache[$poster_id]['user_xfire_style'],
//END xfire mod
Dopo trova
Codice: Seleziona tutto
// Dump vars into template
$template->assign_block_vars('postrow', $postrow);
Aggiungi Prima
Codice: Seleziona tutto
// Campi XFire
$xfire_sql = "SELECT user_xfire, user_xfire_style
FROM " . USERS_TABLE . "
WHERE user_id = {$poster_id}";
$xfire_result = $db->sql_query($xfire_sql);
$xfire_data = $db->sql_fetchrow($xfire_result);
$db->sql_freeresult($xfire_result);
$xfire_data['user_xfire_style'] = str_replace(array(1, 2, 3, 4, 5, 6), array('shadow', 'combat', 'scifi', 'fantasy', 'wow', 'default'), (int) $xfire_data['user_xfire_style']);
unset($xfire_sql, $xfire_result, $xfire_data);
// FINE
Apri styles/prosilver/template/viewtopic_body.html
Trova
Aggiungi dopo
Codice: Seleziona tutto
<!-- IF not S_IS_BOT -->
<!-- IF postrow.U_XFIRE or postrow.U_XFIRE_STYLE -->
<ul class="profile-tag">
<br />
<br />
<br />
{L_LISTA_TAG}
<!-- IF postrow.U_XFIRE or postrow.U_XFIRE_STYLE --><li class="tag-xfire" style="margin-top:5px">
{L_NAME_TAG_X}: <a href="http://profile.xfire.com/{postrow.U_XFIRE}" onclick="window.open(this.href);return false;" onmouseover="return overlib('<iframe src=\'http://miniprofile.xfire.com/bg/{postrow.U_XFIRE_STYLE}/type/0/{postrow.U_XFIRE}.png\' scrolling=\'no\' frameborder=\'0\' height=\'141\' width=\'450\'>', BORDER, 0, FULLHTML, WIDTH, 450, HEIGHT, 140, VAUTO, HAUTO);" onmouseout="return nd();">{postrow.U_XFIRE}</a></li><!-- ENDIF -->
</ul>
<!-- IF postrow.U_XFIRE or postrow.U_XFIRE_STYLE --><script type="text/javascript" src="{ROOT_PATH}overlib/overlib.js"></script><!-- ENDIF -->
</dl>
<!-- ENDIF -->
<!-- ENDIF -->
Ovviamente il javascript overlib.js lo trovate sulla MOD xbox_leaderboard_111
il risultato e questo su viewtopic.php
http://media.consolnextgen.com/immagine ... _topic.png
e tutto Ringazio a
Carlo per l'aiuto che mi a dato.
Grazie di nuovo e buon lavoro a tutti.