MrHorror
06-12-2011, 04:57 PM
Using this code as an uploaded XML....
require_once('./includes/functions_user.php');
$userid = $thread['postuserid'];
$username = $thread['postusername'];
$avatarurl = fetch_avatar_url($userid);
if ($avatarurl == '') {
$avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/aucun_avatar.gif' border='0' width='40' height='40' alt='Profil de $username'></a></div>";
}
else {
$avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='image.php?u=$userid' border='0' width='40' height='40' alt='Avatar $username'></a></div>";
}
and then by placing this bit of code...
.avatar_forumdisplay {
padding:0px 5px 0px 0px;
}
into additional CSS...and then by finding this bit of html:
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
and adding $avatar to it...you can make avatars appear next to threads. As shown in this photo:
http://i55.tinypic.com/2wpkxz7.jpg
What I need help with, is for someone to take the xml, and edit it so along with avatars next to threads on forum display, it can also show avatars next to threads on forum home. As shown in the below photo...
https://vborg.vbsupport.ru/external/2011/06/60.jpg
I'd appreciate it if someone could do this for me?
require_once('./includes/functions_user.php');
$userid = $thread['postuserid'];
$username = $thread['postusername'];
$avatarurl = fetch_avatar_url($userid);
if ($avatarurl == '') {
$avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/aucun_avatar.gif' border='0' width='40' height='40' alt='Profil de $username'></a></div>";
}
else {
$avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='image.php?u=$userid' border='0' width='40' height='40' alt='Avatar $username'></a></div>";
}
and then by placing this bit of code...
.avatar_forumdisplay {
padding:0px 5px 0px 0px;
}
into additional CSS...and then by finding this bit of html:
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
and adding $avatar to it...you can make avatars appear next to threads. As shown in this photo:
http://i55.tinypic.com/2wpkxz7.jpg
What I need help with, is for someone to take the xml, and edit it so along with avatars next to threads on forum display, it can also show avatars next to threads on forum home. As shown in the below photo...
https://vborg.vbsupport.ru/external/2011/06/60.jpg
I'd appreciate it if someone could do this for me?