Hello guys , recently me and my best pal FatalLulz have been working on ubercms 2.0.1 homes. It was easy due to our lack of experience in ubercms and as for the messed up codes and upcoming exams for Fatal , but yet we managed and now we have one small problem that none of us are sure how to fix it.
Screenshot by Lightshot
You see , the chest on the guestbook , they're bulging. I'm pretty sure it has to something to do with widget-GuestbookWidget.tpl because it takes the image from there. I have tried editing the avatar image url and stuff , still no luck.
Here is the code :
Hopefully somebody could help us out ! :)Code:<?php if (isset($_GET['qryName'])) { $qryId = uberUsers::name2id(GtfoClean::cleanWord($_GET['qryName'])); } else if (isset($_GET['qryId']) && is_numeric($_GET['qryId'])) { $qryId = intval($_GET['qryId']); } if(!isset($qryId) && LOGGED_IN) { header('Location: '.WWW.'/home/'.$_SESSION['UBER_USER_N']); } else if(!isset($qryId) && !LOGGED_IN) { header('Location: '.WWW.'/'); } $sql = dbquery("SELECT * from cms_guestbook_entries WHERE home_id = '".$qryId."' ORDER BY id DESC LIMIT 20"); $numrows = dbquery("SELECT id from cms_guestbook_entries WHERE home_id = '".$qryId."' ORDER BY id DESC"); $count = mysql_num_rows($numrows); ?> <div class="movable widget GuestbookWidget" id="widget-%id%" style=" left: %pos-x%px; top: %pos-y%px; z-index: %pos-z%;"> <div class="%skin%"> <div class="widget-corner" id="widget-%id%-handle"> <div class="widget-headline"><h3> <?php if(isset($_SESSION['startSessionEditHome'])) { if($_SESSION['startSessionEditHome'] == $qryId) { echo '<img src="%www%/web-gallery/images/myhabbo/icon_edit.gif" width="19" height="18" class="edit-button" id="widget-%id%-edit" /> <script type="text/javascript"> var editButtonCallback = function(e) { openEditMenu(e, %id%, "widget", "widget-%id%-edit"); }; Event.observe("widget-%id%-edit", "click", editButtonCallback); Event.observe("widget-%id%-edit", "editButton:click", editButtonCallback); </script>'; } } ?> <span class="header-left"> </span><span class="header-middle">Mi Libro de invitados (<span id="guestbook-size"><?php echo $count; ?></span>) <span id="guestbook-type" class="private"><!--<img src="/web-gallery/images/groups/status_exclusive.gif" title="Sólo amigos" alt="Sólo amigos">--></span></span><span class="header-right"> </span></h3> </div> </div> <div class="widget-body"> <div class="widget-content"> <div id="guestbook-wrapper" class="gb-private"> <ul class="guestbook-entries" id="guestbook-entry-container"> <?php if($count > 0) { while($data = mysql_fetch_array($sql)) { if(uberUsers::IsUserOnline($data['userid'])) { $status = 'online'; } else { $status = 'offline'; } echo ' <li id="guestbook-entry-'.$data['id'].'" class="guestbook-entry"> <div class="guestbook-author"> <img src="http://xukys-hotel.com/habbo-imaging/avatarimage?figure='.$users->GetUserVar($data['userid'], 'look').'&size=s" alt="'.$users->GetUserVar($data['userid'], 'username').'" title="'.$users->GetUserVar($data['userid'], 'username').'" /> </div> <div class="guestbook-actions">'; if(LOGGED_IN) { if(USER_ID == $qryId) { echo '<img src="'.WWW.'/web-gallery/images/myhabbo/buttons/delete_entry_button.gif" id="gbentry-delete-'.$data['id'].'" class="gbentry-delete" style="cursor:pointer" alt="" /><br />'; } } echo '<img src="'.WWW.'/web-gallery/images/myhabbo/buttons/report_button.gif" id="gbentry-report-'.$data['id'].'" class="gbentry-report" style="cursor:pointer" alt="" />'; echo '</div> <div class="guestbook-message"> <div class="'. $status .'"> <a href="/home/'.$users->GetUserVar($data['userid'], 'username').'">'.$users->GetUserVar($data['userid'], 'username').'</a> </div> <p>'.fixText(uberCore::BBcode($data['message']), false, false, true, false, true).'</p> </div> <div class="guestbook-cleaner"> </div> <div class="guestbook-entry-footer metadata">'.$data['time'].'</div> </li>'; } } else { echo 'No tienes ningún mensaje en tu libro de invitados.'; } ?> <div id="gb-progress" style="margin: 20px 0 60px 0; visibility: hidden"> <div class="progressbar" style=""> <img src="%www%/web-gallery/images/progress_bubbles.gif" width="29" height="6" alt=""> </div> </div> </ul></div> <?php if(LOGGED_IN) { ?> <div class="guestbook-toolbar clearfix"> <a href="#" class="new-button envelope-icon" id="guestbook-open-dialog"> <b><span></span>Publicar un nuevo mensaje</b><i></i> </a> </div> <?php } ?> <script type="text/javascript"> document.observe("dom:loaded", function() { var gb%id% = new GuestbookWidget('%user_id%', '%id%', 500); gb%id%.monitorScrollPosition(); var editMenuSection = $('guestbook-privacy-options'); if (editMenuSection) { gb%id%.updateOptionsList('private'); } }); </script> <div class="clear"></div> </div> </div> </div> </div>


Reply With Quote![[SOLVED] Ubercms 2.0.1 Homes 95 % done!](http://ragezone.com/hyper728.png)

