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
Habbo RevCms news comment errors
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="Cronus" data-source="post: 216236" data-attributes="member: 35689"><p>Hello fellow DevBest,</p><p> </p><p> </p><p>how do I make </p><p> </p><p><a href="http://prntscr.com/1fvpim" target="_blank">http://prntscr.com/1fvpim</a></p><p> </p><p>look like</p><p> </p><p><a href="http://prntscr.com/1fvpph" target="_blank">http://prntscr.com/1fvpph</a></p><p> </p><p>My News.php</p><p> </p><p>[CODE]<!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title> - News</title></p><p> </p><p> </p><p><script type="text/javascript"></p><p>var andSoItBegins = (new Date()).getTime();</p><p>var ad_keywords = "";</p><p>document.habboLoggedIn = true;</p><p>var habboName = "{username}";</p><p>var habboReqPath = "{url}";</p><p>var habboStaticFilePath = "{url}/app/tpl/skins/{skin}";</p><p>var habboImagerUrl = "http://habbo.nl";</p><p>var habboPartner = "";</p><p>var habboDefaultClientPopupUrl = "{url}/client";</p><p>window.name = "habboMain";</p><p>if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWnd"; }</p><p></script></p><p><link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script></p><p><script type="text/rocketscript" "{url}/app/tpl/skins/{skin}/js/common.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/style.css" type="text/css"/></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/buttons.css" type="text/css"/></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/boxes.css" type="text/css"/></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/tooltips.css" type="text/css"/></p><p><link rel="stylesheet" href="http://images.habbo.nl/habboweb/ibobbax/web-gallery/v2/styles/newcredits.css" type="text/css"/></p><p><script data-rocketsrc="http://images.habbo.nl/habboweb/ibobbax/web-gallery/static/js/newcredits.js" type="text/rocketscript"></script></p><p><style type="text/css">body{background-image:url('{url}/app/tpl/skins/{skin}/images/bg.png')!important;}h1 a{height:51px!important;width:500px!important;background-image:url('{url}/app/tpl/skins/{skin}/images/logo.gif')!important;}</style></p><p> </p><p> </p><p> </p><p><meta name="description" content="HabZon is a virtual world where you can meet and make friends. Make friends, join the fun, get noticed!"/></p><p><meta name="keywords" content="HabZon, habrus, ibobbax, habluck, ibx, ibobbaxhotel, ibobbax hotel, meth0d, nillus, uber, org, *****, retro, keep it real, private server, free, credits, habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer"/></p><p><!--[if IE 8]></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie8.css" type="text/css" /></p><p><![endif]--></p><p><!--[if lt IE 8]></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie.css" type="text/css" /></p><p><![endif]--></p><p><!--[if lt IE 7]></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie6.css" type="text/css" /></p><p><script src="{url}/app/tpl/skins/{skin}/static/js/pngfix.js" type="text/javascript"></script></p><p><script type="text/javascript"></p><p>try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</p><p></script></p><p> </p><p><style type="text/css"></p><p>body { behavior: url(http://www.habbo.nl/js/csshover.htc); }</p><p></style></p><p><![endif]--></p><p><meta name="build" content=""/></p><p></head></p><p><script language="javascript" type="text/rocketscript" data-rocketsrc="http://simplexstream.com/system/streaminfo.js"></script></p><p><script language="javascript" type="text/rocketscript" data-rocketsrc="http://simplexstream.com/js.php/xenonr/streaminfo/rnd0"></script></p><p><body id="news" class=" "></p><p><div id="overlay"></div></p><p><div id="header-container"></p><p><div id="header" class="clearfix"></p><p><h1><a href="{url}"></a></h1></p><p><script type="text/javascript"></p><p> L10N.put("purchase.group.title", "Create a group");</p><p> document.observe("dom:loaded", function() {</p><p> $("signout").observe("click", function() {</p><p> HabboClient.close();</p><p> });</p><p> });</p><p> </script></p><p><ul id="navi"></p><p> <li class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/HabboExtreme/images/id.png" style="vertical-align: middle;"></a><span></span></li></p><p> <li class="selected"><strong>Community <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li></p><p><li><a href="{url}/shop">Shop <img src="{url}/app/tpl/skins/{skin}/images/new_11.gif" style="vertical-align: middle;"></a><span></span></li></p><p> </ul></p><p><div id="ibxs-online"><div class="rounded"></p><p><div style="padding-top:7px;"></p><p><a href="/client" class="new-button green-button" style="float:left;" target="ClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter HabZon</b><i></i></a></div></p><p><span style="margin-top:-2px"></p><p>{online} User(s) online </span></p><p></div></div></p><p></div></p><p></div></p><p><div id="content-container"></p><p><div id="navi2-container" class="pngbg"></p><p><div id="navi2" class="pngbg clearfix"></p><p><ul></p><p> </p><p> <li class=""><a href="{url}/community">Community</a></li></p><p> <li class="selected">News</li></p><p> <li class=""><a href="{url}/Management">Management</li></p><p> <li class=""><a href="{url}/Administration">Administration</a></li></p><p> <li class=""><a href="{url}/DJS">DJS</a></li></p><p> <li class=""><a href="{url}/Events">Events</a></li></p><p> <li class=" last"><a href="{url}/logout" class="userlink" id="signout">Sign Out</a></p><p> </ul></p><p> </div></p><p> </div></p><p> </p><p> <div id="container"></p><p> </p><p><div id="content" style="position: relative" class="clearfix"></p><p> </p><p> <div id="container"></p><p> <div id="content" style="position: relative" class="clearfix"></p><p> <div id="column1" class="column"></p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix default "></p><p> <h2 class="title">News</h2></p><p> <div id="article-archive"></p><p> <ul></p><p> {newsList}</p><p> </p><p> </ul></p><p> </div></p><p> </div></p><p> </div></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </div></p><p> <div id="column2" class="column"></p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix notitle "></p><p> <div id="article-wrapper"></p><p> <h2>{newsTitle}</h2></p><p> <div class="article-meta">Posted {newsDate}</div></p><p> </p><p> <div class="article-body"></p><p> {newsContent}</p><p> <br><br></p><p> <p><font face="Verdana" size="1"><b>- {newsAuthor}</b></p></p><p> <script type="text/javascript" language="Javascript"></p><p> document.observe("dom:loaded", function() {</p><p> $$('.article-images a').each(function(a) {</p><p> Event.observe(a, 'click', function(e) {</p><p> Event.stop(e);</p><p> Overlay.lightbox(a.href, "Image is loading");</p><p> });</p><p> });</p><p> </p><p> $$('a.article-2729').each(function(a) {</p><p> a.replace(a.innerHTML);</p><p> });</p><p> });</p><p> </script></p><p> </div></p><p> </div></p><p> </p><p> <?php</p><p> </p><p> </p><p>if(isset($_POST['post_comment']))</p><p> $posted_on = date("M j, Y g:i A");</p><p> </p><p>if (empty($_POST['comment']))</p><p>$_POST['comment'] = '';</p><p> </p><p>$comment = strip_tags (filter($_POST['comment']));</p><p>if($comment == NULL){</p><p> //define("ERROR", "You have to type in a reply!<br /><br />");</p><p> //$error_message = 'You have to type in a reply!<br /><br />';</p><p> }else{</p><p>if (isLogged)</p><p>{</p><p> mysql_query("INSERT INTO cms_comments (article, userid, comment, posted_on, author) VALUES ('".filter($_GET['id'])."', '".$_SESSION['user']['id']."', '".filter($comment)."', '".$posted_on."', '" . $_SESSION['user']['username']. "');") or die(mysql_error());</p><p> define('SUCCESS', 'You have successfully posted a comment on this news article!');</p><p> </p><p> </p><p> define("ERROR", "<br>Thanks for your reply!<br />");</p><p> </p><p> //$error_message = 'Thanks for your reply!<br /><br />';</p><p> }</p><p>}</p><p>?></p><p> </p><p><div class="habblet-container "></p><p><div class="cbb clearfix notitle "></p><p><div id="article-wrapper"><h2>Place Comment</h2></p><p><div class="article-meta"></div></p><p><div class="article-body"></p><p><?php</p><p>if($userPosts >= 1)</p><p>{</p><p> define('ERROR', 'Sorry, you are only allowed one comment per article.');</p><p>}</p><p>if(defined("SUCCESS")){</p><p>?></p><p><div class="rounded rounded-green" width="20%"></p><p> <?php echo SUCCESS; ?><br /></p><p> </div></p><p> <div>&nbsp;</div></p><p><?php</p><p>}</p><p>if(defined("ERROR")) {</p><p>?></p><p><div class="rounded rounded-red" width="20%"></p><p> <?php echo ERROR; ?><br /></p><p> </div></p><p> <div>&nbsp;</div></p><p><?php</p><p>}</p><p>else</p><p>{</p><p>?></p><p><form action="" method="post"></p><p><textarea name="comment" maxlength="500"></textarea><br /><br /></p><p><input type="submit" name="post_comment" value="Place Comment" /></p><p></form></p><p><?php</p><p>}</p><p>?></p><p></div></p><p></div></p><p></div></p><p></div></p><p> </p><p><style type="text/css"></p><p>input[type="text"], input[type="password"] {</p><p>background-color: #F1F1F1;</p><p>border: 1px solid #999999;</p><p>width: 175px;</p><p>padding: 5px;</p><p>font-family: verdana;</p><p>font-size: 10px;</p><p>color: #666666;</p><p>}</p><p>input[type="submit"] {</p><p>background-color: #F1F1F1;</p><p>border: 1px solid #999999;</p><p>padding: 5px;</p><p>font-family: verdana;</p><p>font-size: 10px;</p><p>color: #666666;</p><p>}</p><p>textarea {</p><p>background-color: #F1F1F1;</p><p>border: 1px solid #999999;</p><p>padding: 5px;</p><p>width: 517px;</p><p>height: 70px;</p><p>font-family: verdana;</p><p>font-size: 10px;</p><p>color: #666666;</p><p>}</p><p>select {</p><p>background-color: #F1F1F1;</p><p>border: 1px solid #999999;</p><p>padding: 5px;</p><p>font-family: verdana;</p><p>font-size: 10px;</p><p>color: #666666;</p><p>}</p><p></style></p><p><?php</p><p>$getComments = mysql_query("SELECT * FROM cms_comments WHERE article = '".filter($_GET['id'])."' ORDER by id DESC");</p><p>?></p><p><div class="habblet-container "></p><p><div class="cbb clearfix notitle "></p><p><div id="article-wrapper"><h2>Comments <?php echo mysql_num_rows($getComments); ?></h2></p><p><div class="article-meta"></div></p><p><div class="article-body"></p><p><?php</p><p> if(mysql_num_rows($getComments) == 0) {</p><p> echo "No comments for this article!";</p><p> } else {</p><p> echo '<table width="528px">';</p><p> while($Comments = mysql_fetch_array($getComments)){</p><p> $getUserInfo = mysql_query("SELECT * FROM users WHERE username = '".$Comments['author']."'");</p><p> $userInfo = mysql_fetch_array($getUserInfo);</p><p> echo '</p><p> <tr></p><p> <td width="90px" valign="top"></div></p><p> <div style="</p><p>height: 65px;</p><p>width: 50px;</p><p>float: left;</p><p>overflow: hidden;</p><p>"></p><p> <div style="float:left"><img position:absolute; src="http://www.habbo.nl/habbo-imaging/avatarimage?figure='.$userInfo['look'].'&size=b&direction=2&head_direction=3&gesture=sml&size=2"></div></p><p> ';</p><p> if($userInfo['rank'] >= 5) {</p><p> echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/album1584/ADM.gif"></div>';</p><p> }</p><p> if($userInfo['rank'] == 3) {</p><p> echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/XXX.gif"></div>';</p><p> }</p><p> if($userInfo['rank'] == 4) {</p><p> echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/XXX.gif"></div>';</p><p> }</p><p> if($userInfo['rank'] == 2) {</p><p> echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/VIP.gif"></div>';</p><p> }</p><p> if($userInfo['rank'] == 1) {</p><p> echo '<div style="position: absolute; z-index:1"><img src="{url}/lid.png"></div>';</p><p> }</p><p> </p><p> </p><p> echo '</p><p> </p><p> </td></p><p> <td width="427px" valign="top"></p><p> <i><a href="/me">'.$userInfo['username'].' </a></i></p><p> <br /><br />'.$Comments['comment'].'</p><p> </p><p> </p><p> </td></p><p> </tr></p><p> <tr></p><p> <td width="80px" valign="top"></p><p> </p><p> </td></p><p> <td width="400px" align="right"></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p></div></div></div></div></p><p><br></p><p><div style="width:125%; height:1px; background-color:#ccc; margin-top:-17px;"></div></p><p> </p><p> </p><p> </td></p><p> </tr>';</p><p> }</p><p> echo '</table>';</p><p> }</p><p> ?></div> </div> </div> </div></p><p></div></p><p></div></p><p></div></p><p></div></p><p> </p><p> </p><p> </p><p> <?php include_once('bottom.php'); ?>[/CODE]</p></blockquote><p></p>
[QUOTE="Cronus, post: 216236, member: 35689"] Hello fellow DevBest, how do I make [url]http://prntscr.com/1fvpim[/url] look like [url]http://prntscr.com/1fvpph[/url] My News.php [CODE]<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title> - News</title> <script type="text/javascript"> var andSoItBegins = (new Date()).getTime(); var ad_keywords = ""; document.habboLoggedIn = true; var habboName = "{username}"; var habboReqPath = "{url}"; var habboStaticFilePath = "{url}/app/tpl/skins/{skin}"; var habboImagerUrl = "http://habbo.nl"; var habboPartner = ""; var habboDefaultClientPopupUrl = "{url}/client"; window.name = "habboMain"; if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWnd"; } </script> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script> <script type="text/rocketscript" "{url}/app/tpl/skins/{skin}/js/common.js"></script> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/style.css" type="text/css"/> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/buttons.css" type="text/css"/> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/boxes.css" type="text/css"/> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/tooltips.css" type="text/css"/> <link rel="stylesheet" href="http://images.habbo.nl/habboweb/ibobbax/web-gallery/v2/styles/newcredits.css" type="text/css"/> <script data-rocketsrc="http://images.habbo.nl/habboweb/ibobbax/web-gallery/static/js/newcredits.js" type="text/rocketscript"></script> <style type="text/css">body{background-image:url('{url}/app/tpl/skins/{skin}/images/bg.png')!important;}h1 a{height:51px!important;width:500px!important;background-image:url('{url}/app/tpl/skins/{skin}/images/logo.gif')!important;}</style> <meta name="description" content="HabZon is a virtual world where you can meet and make friends. Make friends, join the fun, get noticed!"/> <meta name="keywords" content="HabZon, habrus, ibobbax, habluck, ibx, ibobbaxhotel, ibobbax hotel, meth0d, nillus, uber, org, *****, retro, keep it real, private server, free, credits, habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer"/> <!--[if IE 8]> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie8.css" type="text/css" /> <![endif]--> <!--[if lt IE 8]> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie.css" type="text/css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/v2/styles/ie6.css" type="text/css" /> <script src="{url}/app/tpl/skins/{skin}/static/js/pngfix.js" type="text/javascript"></script> <script type="text/javascript"> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {} </script> <style type="text/css"> body { behavior: url(http://www.habbo.nl/js/csshover.htc); } </style> <![endif]--> <meta name="build" content=""/> </head> <script language="javascript" type="text/rocketscript" data-rocketsrc="http://simplexstream.com/system/streaminfo.js"></script> <script language="javascript" type="text/rocketscript" data-rocketsrc="http://simplexstream.com/js.php/xenonr/streaminfo/rnd0"></script> <body id="news" class=" "> <div id="overlay"></div> <div id="header-container"> <div id="header" class="clearfix"> <h1><a href="{url}"></a></h1> <script type="text/javascript"> L10N.put("purchase.group.title", "Create a group"); document.observe("dom:loaded", function() { $("signout").observe("click", function() { HabboClient.close(); }); }); </script> <ul id="navi"> <li class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/HabboExtreme/images/id.png" style="vertical-align: middle;"></a><span></span></li> <li class="selected"><strong>Community <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li> <li><a href="{url}/shop">Shop <img src="{url}/app/tpl/skins/{skin}/images/new_11.gif" style="vertical-align: middle;"></a><span></span></li> </ul> <div id="ibxs-online"><div class="rounded"> <div style="padding-top:7px;"> <a href="/client" class="new-button green-button" style="float:left;" target="ClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter HabZon</b><i></i></a></div> <span style="margin-top:-2px"> {online} User(s) online </span> </div></div> </div> </div> <div id="content-container"> <div id="navi2-container" class="pngbg"> <div id="navi2" class="pngbg clearfix"> <ul> <li class=""><a href="{url}/community">Community</a></li> <li class="selected">News</li> <li class=""><a href="{url}/Management">Management</li> <li class=""><a href="{url}/Administration">Administration</a></li> <li class=""><a href="{url}/DJS">DJS</a></li> <li class=""><a href="{url}/Events">Events</a></li> <li class=" last"><a href="{url}/logout" class="userlink" id="signout">Sign Out</a> </ul> </div> </div> <div id="container"> <div id="content" style="position: relative" class="clearfix"> <div id="container"> <div id="content" style="position: relative" class="clearfix"> <div id="column1" class="column"> <div class="habblet-container "> <div class="cbb clearfix default "> <h2 class="title">News</h2> <div id="article-archive"> <ul> {newsList} </ul> </div> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div> <div id="column2" class="column"> <div class="habblet-container "> <div class="cbb clearfix notitle "> <div id="article-wrapper"> <h2>{newsTitle}</h2> <div class="article-meta">Posted {newsDate}</div> <div class="article-body"> {newsContent} <br><br> <p><font face="Verdana" size="1"><b>- {newsAuthor}</b></p> <script type="text/javascript" language="Javascript"> document.observe("dom:loaded", function() { $$('.article-images a').each(function(a) { Event.observe(a, 'click', function(e) { Event.stop(e); Overlay.lightbox(a.href, "Image is loading"); }); }); $$('a.article-2729').each(function(a) { a.replace(a.innerHTML); }); }); </script> </div> </div> <?php if(isset($_POST['post_comment'])) $posted_on = date("M j, Y g:i A"); if (empty($_POST['comment'])) $_POST['comment'] = ''; $comment = strip_tags (filter($_POST['comment'])); if($comment == NULL){ //define("ERROR", "You have to type in a reply!<br /><br />"); //$error_message = 'You have to type in a reply!<br /><br />'; }else{ if (isLogged) { mysql_query("INSERT INTO cms_comments (article, userid, comment, posted_on, author) VALUES ('".filter($_GET['id'])."', '".$_SESSION['user']['id']."', '".filter($comment)."', '".$posted_on."', '" . $_SESSION['user']['username']. "');") or die(mysql_error()); define('SUCCESS', 'You have successfully posted a comment on this news article!'); define("ERROR", "<br>Thanks for your reply!<br />"); //$error_message = 'Thanks for your reply!<br /><br />'; } } ?> <div class="habblet-container "> <div class="cbb clearfix notitle "> <div id="article-wrapper"><h2>Place Comment</h2> <div class="article-meta"></div> <div class="article-body"> <?php if($userPosts >= 1) { define('ERROR', 'Sorry, you are only allowed one comment per article.'); } if(defined("SUCCESS")){ ?> <div class="rounded rounded-green" width="20%"> <?php echo SUCCESS; ?><br /> </div> <div> </div> <?php } if(defined("ERROR")) { ?> <div class="rounded rounded-red" width="20%"> <?php echo ERROR; ?><br /> </div> <div> </div> <?php } else { ?> <form action="" method="post"> <textarea name="comment" maxlength="500"></textarea><br /><br /> <input type="submit" name="post_comment" value="Place Comment" /> </form> <?php } ?> </div> </div> </div> </div> <style type="text/css"> input[type="text"], input[type="password"] { background-color: #F1F1F1; border: 1px solid #999999; width: 175px; padding: 5px; font-family: verdana; font-size: 10px; color: #666666; } input[type="submit"] { background-color: #F1F1F1; border: 1px solid #999999; padding: 5px; font-family: verdana; font-size: 10px; color: #666666; } textarea { background-color: #F1F1F1; border: 1px solid #999999; padding: 5px; width: 517px; height: 70px; font-family: verdana; font-size: 10px; color: #666666; } select { background-color: #F1F1F1; border: 1px solid #999999; padding: 5px; font-family: verdana; font-size: 10px; color: #666666; } </style> <?php $getComments = mysql_query("SELECT * FROM cms_comments WHERE article = '".filter($_GET['id'])."' ORDER by id DESC"); ?> <div class="habblet-container "> <div class="cbb clearfix notitle "> <div id="article-wrapper"><h2>Comments <?php echo mysql_num_rows($getComments); ?></h2> <div class="article-meta"></div> <div class="article-body"> <?php if(mysql_num_rows($getComments) == 0) { echo "No comments for this article!"; } else { echo '<table width="528px">'; while($Comments = mysql_fetch_array($getComments)){ $getUserInfo = mysql_query("SELECT * FROM users WHERE username = '".$Comments['author']."'"); $userInfo = mysql_fetch_array($getUserInfo); echo ' <tr> <td width="90px" valign="top"></div> <div style=" height: 65px; width: 50px; float: left; overflow: hidden; "> <div style="float:left"><img position:absolute; src="http://www.habbo.nl/habbo-imaging/avatarimage?figure='.$userInfo['look'].'&size=b&direction=2&head_direction=3&gesture=sml&size=2"></div> '; if($userInfo['rank'] >= 5) { echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/album1584/ADM.gif"></div>'; } if($userInfo['rank'] == 3) { echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/XXX.gif"></div>'; } if($userInfo['rank'] == 4) { echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/XXX.gif"></div>'; } if($userInfo['rank'] == 2) { echo '<div style="position: absolute; z-index:1"><img src="{url}/r63/c_images/badges/VIP.gif"></div>'; } if($userInfo['rank'] == 1) { echo '<div style="position: absolute; z-index:1"><img src="{url}/lid.png"></div>'; } echo ' </td> <td width="427px" valign="top"> <i><a href="/me">'.$userInfo['username'].' </a></i> <br /><br />'.$Comments['comment'].' </td> </tr> <tr> <td width="80px" valign="top"> </td> <td width="400px" align="right"> </div></div></div></div> <br> <div style="width:125%; height:1px; background-color:#ccc; margin-top:-17px;"></div> </td> </tr>'; } echo '</table>'; } ?></div> </div> </div> </div> </div> </div> </div> </div> <?php include_once('bottom.php'); ?>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo RevCms news comment errors
Top