. ::  Rilasciato Nuovissimo BB3 Iamma Central Block  ::  Nasce Mondophpnuke.com  ::  Quale Computer - Gen 2010  ::  Tema Soccer-Football  ::  Modulo E-Commerce 4 Nuke ::.
Benvenuto su PHP-Nukefordonkeys.com Donkeys76 Mercatino 1200Temi Manuale
 
Benvenuto su PHP-Nukefordonkeys.com

  Iscriviti! E' Gratis!                                                                                      
Menu Generale
Home
News
Archivio News
Invia News
Mappa del Sito
Recensioni
Trova Tutto
Utenti
Forums
Downloads
Contatti
Top Nuke Italia
Web Links
1 Million Nuke Pixel
Tutorials
Speciali
Manuali
PHPNuke Tools
Utility
Gallerie
Nuke Shopping
Documenti

La Tua WebAgency


Recensioni Siti
· MemHT Portal
· Web Agency
  Il tuo sito qui

**************
·Casino online
·Sfrutta meglio il web

100 Power Scripts

Mega Pack





Avatars nel blocco forum-centerblock
Stampa

Inserire avatars nel blocco forum-centerblock
Un contributo del nostro amico Duebit

La modifica è semplice,basta sostituire le righe seguenti.
Portatevi intorno la riga 108 (orientativamente).

SOSTITUIRE la seguente riga

Codice
list( $uname, $uid ) = $db->sql_fetchrow( $result4 );

con

Codice
list( $uname, $uid, $user_avatar ) = $db->sql_fetchrow( $result4 );

Subito DOPO la riga

Codice
$OrigPoster = "<A HREF="modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid"STYLE="text-decoration: none"> $uname </a>";

INSERIRE le seguenti righe:

Codice
$OrigAvatar = "<img src="modules/Forums/images/avatars/$user_avatar"border="0" alt="">";
if( $user_avatar == "gallery/blank.gif" )
$OrigAvatar = "<img src="modules/Forums/images/avatars/blank.gif"border="0" alt="">";

SOSTITUIRE la riga:

Codice
$Topic_Buffer .= "<tr height=20 onmouseover="this.style.backgroundColor='#eeeeee'" onmouseout="this.style.backgroundColor=''"><td $cellstyle>$TopicImage&nbsp;&nbsp;</td><td $cellstyle>$TopicTitleShow</td><td $cellstyle><div align="center">$OrigPoster</div></td><td $cellstyle><div align="center"><b>$topic_views</b></div></td><td $cellstyle><div align="center"><b>$topic_replies</b></div></td><td $cellstyle align="center">$LastPoster<br><font size="-2"></font></td></tr>";

con la seguente riga

Codice
$Topic_Buffer .= "<tr height=20 onmouseover="this.style.backgroundColor='#eeeeee'" onmouseout="this.style.backgroundColor=''"><td $cellstyle>$TopicImage&nbsp;&nbsp;</td><td $cellstyle>$TopicTitleShow</td><td $cellstyle><div align="center">$OrigPoster$OrigAvatar</div></td><td $cellstyle><div align="center"><b>$topic_views</b></div></td><td $cellstyle><div align="center"><b>$topic_replies</b></div></td><td $cellstyle align="center">$LastPoster<br><font size="-2"></font></td></tr>";

NOTA:
Se gli avatars del vostro sito si trovano in una cartella differente da quella di default basta
modificarne il percorso contenuto nella nuova riga inserita precendetemente:

Codice
$OrigAvatar = "<img src="percorso_miacartella_avatars/avatars/$user_avatar"border="0" alt="">";


  

[ Torna su 005Mixture | Indice Sezioni ]






PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Generazione pagina: 0.18 Secondi