Staff badge?

Results 1 to 12 of 12
  1. #1
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Staff badge?

    Ok, I've created and coded my own hotel staff badge. It looks good in the client but on staff page I just get this :

    capture.png

    How do I fix this?

    Thanks in advance...


  2. #2
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Staff badge?

    Change the c_images path to yours.

  3. #3
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Re: Staff badge?

    where at?

  4. #4
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Re: Staff badge?

    bump...

  5. #5
    Proficient Member owot is offline
    MemberRank
    Jun 2010 Join Date
    185Posts

    Re: Staff badge?

    Are you going to post help for every new thing your hotel gets?

    Right click and show image in new tab, look at the path of the image and go into your staff-page.tpl or whatever and change the img src="" url to the right path of the picture.

  6. #6
    Proficient Member BeastFC is offline
    MemberRank
    Dec 2012 Join Date
    160Posts

    Re: Staff badge?

    Post your staffpage code here please

  7. #7
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Re: Staff badge?

    Quote Originally Posted by owot View Post
    Are you going to post help for every new thing your hotel gets?

    Right click and show image in new tab, look at the path of the image and go into your staff-page.tpl or whatever and change the img src="" url to the right path of the picture.
    This is the " Help Section " and I need help, what's wrong with that? This is a community we are here to help each other not put people down.

    Quote Originally Posted by BeastFC View Post
    Post your staffpage code here please
    Code:
    <?php
    
    
    function GetDescr($level)
    {
    	switch ($level)
    	{
    		case 7:
    		
    			return 'Hotel Management & Developers';
    			
    		case 6:
    		
    			return 'Administrative Staff';
    			
    		case 5:
    		
    			return 'Moderator Coordinators/Leaders';
    			
    		case 4:
    		
    			return 'Moderation & Safety Staff';
    			
    		case 3:
    		
    			return 'Trainee Moderators';
    	
    		default:
    		
    			return '';
    	}
    }
    
    
    $getGroups = dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC");
    
    
    while ($group = mysql_fetch_assoc($getGroups))
    {	
    	echo '<div class="habblet-container ">		
    <div class="cbb clearfix blue "> 
    <h2 class="title"><span style="float: left;">' . clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>';
    	
    	$getMembers = dbquery("SELECT id,username,motto,look,online FROM users WHERE rank = '" . $group['id'] . "'");
    	
    	echo '<div class="box-content">';
    	
    	if (mysql_num_rows($getMembers) > 0)
    	{
    		$oe = 1;
    		
    		while ($member = mysql_fetch_assoc($getMembers))
    		{
    			if ($oe == 2)
    			{
    				$oe = 1;
    			}
    			else
    			{
    				$oe = 2;
    			}
    	
    			echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
    			<tbody>
    				<tr>
    					<td valign="middle" width="25">
    						<img style="margin-top: -10px;" src="%www%/includes/imager.php?figure=' . $member['look'] . '&size=m">
    					</td>
    					<td valign="top">
    						<b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br />
    						<i>' . clean($member['motto']) . '</i><br />
    						<br />';
    						
    					$getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");
    					
    					while ($b = mysql_fetch_assoc($getBadges))
    					{
    						echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    					}
    						
    					echo '</td>
    					<td valign="top" style="float: right;">
    						' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . '
    					</td>
    				</tr>
    			</tbody>
    			</table>';
    		}
    	}
    	else
    	{
    		echo '<i>There are no users in this staff group yet.</i>';
    	}
    	
    	echo '</div>
    	</div> 
    </div> 
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
    }
    
    
    ?>

  8. #8
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Staff badge?

    I see your problem:
    Code:
    echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    In theory it's getting http://rainhotel.us/c_images/album1584/FONDR.gifbadge.gif
    Remove: FONDR.gif

  9. #9
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Re: Staff badge?

    Quote Originally Posted by Kudzo View Post
    This is the " Help Section " and I need help, what's wrong with that? This is a community we are here to help each other not put people down. Also, still broken images... -_-



    Code:
    <?php
    
    
    function GetDescr($level)
    {
        switch ($level)
        {
            case 7:
            
                return 'Hotel Management & Developers';
                
            case 6:
            
                return 'Administrative Staff';
                
            case 5:
            
                return 'Moderator Coordinators/Leaders';
                
            case 4:
            
                return 'Moderation & Safety Staff';
                
            case 3:
            
                return 'Trainee Moderators';
        
            default:
            
                return '';
        }
    }
    
    
    $getGroups = dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC");
    
    
    while ($group = mysql_fetch_assoc($getGroups))
    {    
        echo '<div class="habblet-container ">        
    <div class="cbb clearfix blue "> 
    <h2 class="title"><span style="float: left;">' . clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>';
        
        $getMembers = dbquery("SELECT id,username,motto,look,online FROM users WHERE rank = '" . $group['id'] . "'");
        
        echo '<div class="box-content">';
        
        if (mysql_num_rows($getMembers) > 0)
        {
            $oe = 1;
            
            while ($member = mysql_fetch_assoc($getMembers))
            {
                if ($oe == 2)
                {
                    $oe = 1;
                }
                else
                {
                    $oe = 2;
                }
        
                echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
                <tbody>
                    <tr>
                        <td valign="middle" width="25">
                            <img style="margin-top: -10px;" src="%www%/includes/imager.php?figure=' . $member['look'] . '&size=m">
                        </td>
                        <td valign="top">
                            <b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br />
                            <i>' . clean($member['motto']) . '</i><br />
                            <br />';
                            
                        $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");
                        
                        while ($b = mysql_fetch_assoc($getBadges))
                        {
                            echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
                        }
                            
                        echo '</td>
                        <td valign="top" style="float: right;">
                            ' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . '
                        </td>
                    </tr>
                </tbody>
                </table>';
            }
        }
        else
        {
            echo '<i>There are no users in this staff group yet.</i>';
        }
        
        echo '</div>
        </div> 
    </div> 
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
    }
    
    
    ?>
    I changed the im src and still broken images...

    Quote Originally Posted by Clawed View Post
    I see your problem:
    Code:
    echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    What is it, I tried http://<font color="#333333">rainhot...m1584/=</font> and http://rainhotel.us/c_images/album1538/FONDR.gif still broken images.

  10. #10
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Staff badge?

    Quote Originally Posted by Kudzo View Post
    I changed the im src and still broken images...


    What is it, I tried http://<font color="#333333">rainhot...m1584/=</font> and http://rainhotel.us/c_images/album1538/FONDR.gif still broken images.
    This album path don't work: http://rainhotel.us/swfs/c_images/album1538/
    But this does: http://rainhotel.us/swfs/c_images/

    Now album path works change this:
    Code:
    echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    To this:
    Code:
    echo '<img src="http://rainhotel.us/swfs/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    Last edited by Clawed; 01-07-13 at 09:47 PM.

  11. #11
    Habbo Section Kudzo is offline
    MemberRank
    Sep 2012 Join Date
    127.0.0.1Location
    358Posts

    Re: Staff badge?

    Quote Originally Posted by Clawed View Post
    This album path don't work: http://rainhotel.us/swfs/c_images/album1538/
    But this does: http://rainhotel.us/swfs/c_images/

    Now album path works change this:
    Code:
    echo '<img src="http://rainhotel.us/c_images/album1584/FONDR.gif' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';
    To this:
    Code:
    echo '<img src="http://rainhotel.us/swfs/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';

    Thanks, +1, I might need your help for something else, but not sure if you are willing to help, I'll pay you $1.00, PM if your interested. Just 1 thing and I'm done

  12. #12
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Staff badge?

    Yea & PMed you.



Advertisement