PDA

View Full Version : Avatar in Showthread Template


indiamike
08-24-2002, 02:35 AM
I am using a seperate style for one forum and it's read only except for the person posting (like a blog) and I wanted to know what code could I use in the Showthread Template that would pull the avatar from the user who posted the thread to show in the top.

I have tried a few differant things but nothing seems to work.

Any suggestions.

Mike

assassingod
09-03-2002, 09:57 PM
If I understand you correctly, the best I can think of is moving:

$post[avatar]

Above:
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

But I reckon thats not what you're looking for, sorry.

indiamike
09-03-2002, 10:06 PM
Thanks for replying.

I tried the $post[avatar] originally but it didn't seem to work in that template.

I also tried an exact url similar to this http://mysite.com/forum/avatar.php?userid=$thread[postuserid]

That also didn't work.

Anybody else wanna have a go at it.

Here is a LINK (http://www.indiamike.com/india/showthread.php?s=&threadid=914) to one of my blog pages. I am just trying to insert the avatar at the top next to the user name.

cheers
Mike

assassingod
09-03-2002, 10:19 PM
That should work!! the $post[avatar] , its default with vB -_-

Anyway, I cant remember the code, but add $post[avatar] above the forum title-Would look nice. Sorry if I cant help more, I dont understand why that Avatar code doesnt work:S (Btw, doing this in postbit template, right?)

indiamike
09-04-2002, 08:36 AM
:eek: Doh!!!! I am big dummy


Stupid me, I made the request in this post totally wrong in the beginning.

What I mean is I want to include the AVATAR in the SHOWTHREAD Template.

....doh....

assassingod
09-04-2002, 03:53 PM
Oooooh! :p Thats why it doesnt work. Sorry, methinks you need some PHP editing:( But I think you should just stick with HTML and add the avatar to the top of that lovely postbit:)