1
bloodloss
Adding avatars to news items??
  • 2006/7/17 23:35

  • bloodloss

  • Just popping in

  • Posts: 5

  • Since: 2006/7/15


So I have this in my template code under news_item

<div class="itemInfo">
<span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>)
</div>

Would I reference a user avatar with:

<img class="comUserImg" src="<{$xoops_upload_url}>/<{$story.poster.avatar}>" alt="" /><div class="comUserStat"> ?

I stole that code from the comment template code.

When I do that, it doesn't seem to work. Any hints?

Thanks!
Frank

2
msdana
Re: Adding avatars to news items??
  • 2006/7/18 2:58

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


If God is watching us, the least we can do is be entertaining.
Graphic Worx : Xoops Themes

3
davidl2
Re: Adding avatars to news items??
  • 2006/7/18 7:10

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


You could always approach Hervet (the module author) and see if he has it planned for a future version, or if you need it for a special task, perhaps he could add this as a feature for you, for a suitable fee?

4
hervet
Re: Adding avatars to news items??
  • 2006/7/18 17:28

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hello,

May be you can try to see what was made in the "news by the same author"'s page to have an idea of what to do.

bye,
Hervé

5
Chris03
Re: Adding avatars to news items??
  • 2006/7/18 19:36

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Ive done it, let me see if I can dig it up, dont remember who I did it for though...
KickassAMD

6
bloodloss
Re: Adding avatars to news items??
  • 2006/7/25 3:24

  • bloodloss

  • Just popping in

  • Posts: 5

  • Since: 2006/7/15


Thanks for the help guys. If you could pull up how you did that, I would really appreciate it.

Thanks!

7
bloodloss
Re: Adding avatars to news items??
  • 2006/7/25 3:43

  • bloodloss

  • Just popping in

  • Posts: 5

  • Since: 2006/7/15


Hervet,

Where is that? I've searched but I can't find it. There is the user account page, that shows the avatar and also all the stories that a user has posted. Is that what you mean?

Thanks!

EDIT:**** Sorry, I have an out of date module.

8
Peekay
Re: Adding avatars to news items??
  • 2006/7/25 9:22

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


WF-Sections has an 'author bio' block that displays author avatar along with the text from the 'extra info' field in the author's profile. Also shows articles by same author etc.
A thread is for life. Not just for Christmas.

9
trabis
Re: Adding avatars to news items??
  • 2006/9/7 17:15

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Is this what you need??
My site

Have you find a tutorial about these???
If you still need these I can write one!

Sorry my bad english

10
[suspendTempri[suspended]
Re: Adding avatars to news items??

Make a query that searches poster username in users table and returns you his avatar name. Then just make a <img src...

Login

Who's Online

78 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 78


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits