Wolverine
Member
- Aug 1, 2014
- 90
- 3
So I've been working with a RevCMS theme and implanting some features into it (just on my spare time).
I'm trying to get the news author to appear. I only want the author's avatar to appear, I can get an avatar to appear by using {figure} instead, but then it shows the users avatar (not the authors, it shows your avatar if you view the article).
Here's my PHP code. I'm most likely fucking it up, but if someone could fix this up, that'd be excellent.
I'm trying to get the news author to appear. I only want the author's avatar to appear, I can get an avatar to appear by using {figure} instead, but then it shows the users avatar (not the authors, it shows your avatar if you view the article).
You must be registered for see images attach
Here's my PHP code. I'm most likely fucking it up, but if someone could fix this up, that'd be excellent.
PHP:
<?php
$onlineRow = "SELECT id,username,motto,online,look FROM users";
{
echo'
<div id="userAvatar" style="margin-bottom: 10px;;float:left;width: 75px;height:70px;background: url(http://avatar-retro.com/habbo-imaging/avatarimage?figure='. $onlineRow['look'] .'&action=drk&direction=3&head_direction=3&gesture=sml&size=1) no-repeat;"></div>
<div id="slickTitle" style="margin-top:17px;" class="newsAuthor"><a href="/home/'. $onlineRow['username'] .'" style="text-decoration:none;color:#666;">{username}</a><span class="newstext"><b>{newsDate}</b></span></div>
';}
?>