<?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">
';
}?>
this thread is from 2013....This isnt hard. Here is the code man.
1. Go on your news.php
2. Search for {newsAuthor}
3. Add in this code;
4. Then it works!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"> '; }?>
You should get something like this:
You must be registered for see links
However it is useful if you think about it... Thanks for solvething this! You should much rather use the template engine that rev has... I will be posting a updated script where it uses the template engine. Thanks!this thread is from 2013....
true, this is usefulHowever it is useful if you think about it... Thanks for solvething this! You should much rather use the template engine that rev has... I will be posting a updated script where it uses the template engine. Thanks!