[HELP] How to make your news article author show your avatar? [HELP]

jerison

Member
Jul 23, 2012
57
1
Okay, so I seen this other habbo retros news articles and the author looks like this:

wste7a.png


As mine just looks like this: (My username is Jerison but it cuts it off for some reason? ;/)

2l9gx6w.png


How do I make mine like the other retros?
 

Pinkman

Posting Freak
Jul 27, 2016
818
194
This isnt hard. Here is the code man.
1. Go on your news.php
2. Search for {newsAuthor}
3. Add in this code;
Code:
<?php

$getCom = mysql_query("SELECT * FROM cms_news WHERE id = '".htmlentities($_GET['id'])."' ");
?><?php
          while($Com = mysql_fetch_array($getCom)){
          $getuserlook = mysql_query("SELECT * FROM users WHERE username = '".$Com['author']."'");
          $userlook = mysql_fetch_array($getuserlook);
                  echo'
                      <img src="http://www.habbo.com/habbo-imaging/avatarimage?figure='.$userlook['look'].'&direction=1&head_direction=3&size=m" class="floatRight">
                      ';
                                 }?>
4. Then it works!
You should get something like this:
 

iGlenn

:)
Jul 21, 2015
618
92
This isnt hard. Here is the code man.
1. Go on your news.php
2. Search for {newsAuthor}
3. Add in this code;
Code:
<?php

$getCom = mysql_query("SELECT * FROM cms_news WHERE id = '".htmlentities($_GET['id'])."' ");
?><?php
          while($Com = mysql_fetch_array($getCom)){
          $getuserlook = mysql_query("SELECT * FROM users WHERE username = '".$Com['author']."'");
          $userlook = mysql_fetch_array($getuserlook);
                  echo'
                      <img src="http://www.habbo.com/habbo-imaging/avatarimage?figure='.$userlook['look'].'&direction=1&head_direction=3&size=m" class="floatRight">
                      ';
                                 }?>
4. Then it works!
You should get something like this:
this thread is from 2013....
 

Users who are viewing this thread

Top