Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP News Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Wolverine" data-source="post: 390772" data-attributes="member: 50862"><p>So I've been working with a RevCMS theme and implanting some features into it (just on my spare time). </p><p></p><p>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).</p><p></p><p>[ATTACH=full]5606[/ATTACH]</p><p>Here's my PHP code. I'm most likely fucking it up, but if someone could fix this up, that'd be excellent.</p><p>[PHP] <?php</p><p> $onlineRow = "SELECT id,username,motto,online,look FROM users";</p><p> {</p><p> echo'</p><p> <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'] .'&amp;action=drk&amp;direction=3&amp;head_direction=3&amp;gesture=sml&amp;size=1) no-repeat;"></div></p><p> <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></p><p> ';}</p><p> ?>[/PHP]</p></blockquote><p></p>
[QUOTE="Wolverine, post: 390772, member: 50862"] 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). [ATTACH=full]5606[/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> ';} ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP News Help
Top