Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support News Avatars
Smileman
Posted on 21 Jul 2008, 20:50:51

Access: Member
Total Posts: 1
Joined: 2008-07-21

Hello!

I have a little problem. On the admin site it is possible to add an Avatar URL to every news severally. It's Ok, but I don't know how can I display it in my template.

There is an {avatar} tag at templates but it only display the avatar of the news poster.


I try to add a new tag for it in the index.php near 486. line

Code:
$template2 = str_replace("{avatar_news}","<img src=\"$row[avatar]\">",$template2);

and use this in the template but it didn't work. It wanted to display the profile avatar too. But if I write the code for exemple this at the same line

Code:
$template2 = str_replace("{avatar_news}","<img src=\"$row[timestamp]\">",$template2);

than it display the timestamp of the $newstable which isn't the same table is it?

I'm sure I do someting wrongly but I don't know what :ermm:
Maybe just 2 click on the admin site but I can't find the corrent option for it.

Please help! thx.

And sorry for my English
#283
Network-13.com © 2013