siggen
02-23-2008, 12:49 AM
Hi!
Im trying to make a "rewiced" mod for my vB 3.6.8 from the mod Sender Avatar In Private Message List (https://vborg.vbsupport.ru/showthread.php?t=127414), in order to show my members avatars by changing the Postbit Template, so the avatar will show on all their postings in my forum instead for the Post Icon.
If we get this to work, it will show the member avatars on all posts from subscribed threads in the CP, New Posts, forumdisplay and so on.
I am hoverer stuck as to how to find the path to my avatars, as you will see...
Hope someone can help me figure this out, as it would be a great mod for a lot of forums out there...
- First, I went to the Thraeadbit Template, and found the following:
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
This is the contents of the little square that holds the status icon. I wanted to remove it in order to place my members avatars there instead.
I replaced that with the following;
<if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]" width="60" /></td><else /><td class="alt2" width="60"><img src="images/misc/noavatar.gif" width="60" border="0" /></if></td></if>
I had already saved a noavatar.gif in my images/misc.
My problem is that I only get the noavatar.gif up in my forumdisplay, user cp and new posts, and not the individual user avatars.
I have tried to replace the
<img src="$sk_avurl[0]"
with
<img src="image.php?u=$user[userid]"
but that didnt solve my problem.
I have to admit that I Im a neewbie, and have never tried this before, som Im kinda lost here...
What am I doing wrong?!? :o
I really want this to work, I think it would just look fantastic!
Im trying to make a "rewiced" mod for my vB 3.6.8 from the mod Sender Avatar In Private Message List (https://vborg.vbsupport.ru/showthread.php?t=127414), in order to show my members avatars by changing the Postbit Template, so the avatar will show on all their postings in my forum instead for the Post Icon.
If we get this to work, it will show the member avatars on all posts from subscribed threads in the CP, New Posts, forumdisplay and so on.
I am hoverer stuck as to how to find the path to my avatars, as you will see...
Hope someone can help me figure this out, as it would be a great mod for a lot of forums out there...
- First, I went to the Thraeadbit Template, and found the following:
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
This is the contents of the little square that holds the status icon. I wanted to remove it in order to place my members avatars there instead.
I replaced that with the following;
<if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]" width="60" /></td><else /><td class="alt2" width="60"><img src="images/misc/noavatar.gif" width="60" border="0" /></if></td></if>
I had already saved a noavatar.gif in my images/misc.
My problem is that I only get the noavatar.gif up in my forumdisplay, user cp and new posts, and not the individual user avatars.
I have tried to replace the
<img src="$sk_avurl[0]"
with
<img src="image.php?u=$user[userid]"
but that didnt solve my problem.
I have to admit that I Im a neewbie, and have never tried this before, som Im kinda lost here...
What am I doing wrong?!? :o
I really want this to work, I think it would just look fantastic!