PDA

View Full Version : Help With Auto Staff List



Moh
26-11-2006, 07:18 PM
Im making a auto Staff list, where Radio Managers can add some one to the staff list.
But for the staff list I need it so that it goes in rows, not collums.
I need it to look like this page here (http://crazyhabbo.net/pages/crazyhabbo/meet_the_team.htm).

So it adds 3 staff on a row, and then below.
Can any one help with this?

Alsol, I need it so if user level - 1, it means management so it will add it to the top, and like level 2 - News reporter.

Can any one help :D

+Rep

Carnio
27-11-2006, 11:01 AM
That Sounds Like A Really Cool Feature.

As Its So Annoying Having To Edit The Staff List Every Couple Of Days That Would Be So Much Easier And Quicker.

But Im Not Fantastic At Coding So I Cant Really Help.

When its Finished Would I Be Able To Have A Copy ?

Moh
27-11-2006, 03:56 PM
That Sounds Like A Really Cool Feature.

As Its So Annoying Having To Edit The Staff List Every Couple Of Days That Would Be So Much Easier And Quicker.

But Im Not Fantastic At Coding So I Cant Really Help.

When its Finished Would I Be Able To Have A Copy ?

Yep, If you look in the post I posted with the Staff Profile System, I will be instead of members list, but a staff list :p

Then it means I don't have to add each DJ when there hired.

I can do it in collums, but I want it so that it goes in rows of three.

Still needing Help.

beer
27-11-2006, 04:00 PM
ive been looking 4 1 of those. Another link to integrate in2 panel. Let me know when u get done. Thanks!

Moh
27-11-2006, 04:23 PM
ive been looking 4 1 of those. Another link to integrate in2 panel. Let me know when u get done. Thanks!

will do, Well ill be posting it :D

Back to topic:
Any one know please :D

YouFail
27-11-2006, 06:54 PM
Right I think I know what you meant well with the user levels anyway




$query = mysql_query("SELECT * FROM `staff` ORDER BY `id` ASC");



If you explain it in more detail over MSN I may be able to help.

Moh
27-11-2006, 07:24 PM
Ok :D

your on my msn

YouFail
27-11-2006, 07:25 PM
Sorry doesnt work =/

Moh
27-11-2006, 07:39 PM
Or like this :p

<strong>Management</strong>
<?

include "config.php";

$d = mysql_query("SELECT * FROM `users` ORDER BY `level` ASC");
while ($staff = mysql_fetch_array($d)) {

IF ($staff[level] == 1) {

echo (" <p><strong></strong></p> ");

echo ("
<p><a href=\"profile.php?user=$staff[username]\">$staff[username]</a></p> ");

}

}

?>
<strong>Offical DJ's</strong>
<?

include "config.php";

$d = mysql_query("SELECT * FROM `users` ORDER BY `level` ASC");
while ($staff = mysql_fetch_array($d)) {
IF ($staff[level] == 2) {

echo (" <p><strong></strong></p> ");

echo ("

<a href=\"profile.php?user=$staff[username]\">$staff[username]</a> ");

}

}

?>

YouFail
27-11-2006, 08:10 PM
Ok thats good :) Post the next problem pls :P

Moh
27-11-2006, 08:11 PM
I need it so if level = 3,4 - DJ Name becomes name

File Content

<?
ob_start();
include("config.php");
if (!$_GET[user])
{
$getuser = mysql_query("SELECT * from users order by level asc");
while ($user = mysql_fetch_array($getuser))
{
// gets all the users information.
echo ("<font face=\"Verdana\" size=\"1\" color=\"#000000\"><a href=\"members.php?view=Profile&user=$user[username]\">$user[username]</a><br />\n");
// links to a page to view the user's profile.
}
}
ELSE
{
$getuser = mysql_query("SELECT * from users where username = '$_GET[user]'");
$usernum = mysql_num_rows($getuser);
if ($usernum == 0)
{
echo ("<table cellpadding=\"2\" width=\"359\" id=\"table1\" height=\"369\">
<tr>
<td colspan=\"2\" height=\"16\" width=\"351\"><b>
<div class=\"header\">
<font face=\"Verdana\" size=\"1\" color=\"#D75C03\">$_GET[user]'s Information:</font></div>
</b>
<div class=\"underheader\">
<i><font size=\"1\" face=\"Verdana\" color=\"#D75C03\">View some information about
$_GET[user]</font></i></div>
<font size=\"1\" face=\"Verdana\"><br></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>General Information:</b></font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">DJ Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">DJ $_GET[user]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Habbo Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Forum Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Site Title:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Age:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Main Hotel:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Gender:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Song:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Genre:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite CH Management:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Habbo Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Real Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">wow</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Interests:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td height=\"16\" width=\"157\"></td>
<td height=\"16\" width=\"188\"></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>A Bit About </b></font>
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$_GET[user]</font></b><font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>:</b></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#FF9933\" height=\"16\" width=\"351\">
<font size=\"1\" face=\"Verdana\">$profile[about]</font></td>
</tr>
</table>
<div style=\"opacity: 0.4;\">
<font size=\"1\" face=\"Verdana\">&nbsp;</font><table cellpadding=\"2\" width=\"359\" id=\"table2\" height=\"17\">
<tr>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"169\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$_GET[user]'s
Habbo Image</font></b></td>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"176\">
<b><font face=\"Verdana\" size=\"1\" color=\"#FFFFFF\">$_GET[user]'s Habbo
is:</font></b><img border=\"0\" src=\"status/status.php?name=$_GET[user]\" width=\"50\" height=\"16\"></td>
</tr>
<tr>
<td height=\"13\" width=\"169\" bgcolor=\"#FF9933\">
<p align=\"center\">
<img border=\"0\" src=\"figure/figure.php?name=$_GET[user]\"></td>
<td height=\"13\" width=\"176\">
<p align=\"center\"></td>
</tr>
</table>
</div>");
}
else
{
$profile = mysql_fetch_array($getuser);
echo ("<table cellpadding=\"2\" width=\"359\" id=\"table1\" height=\"369\">
<tr>
<td colspan=\"2\" height=\"16\" width=\"351\"><b>
<div class=\"header\">
<font face=\"Verdana\" size=\"1\" color=\"#D75C03\">$profile[username]'s Information:</font></div>
</b>
<div class=\"underheader\">
<i><font size=\"1\" face=\"Verdana\" color=\"#D75C03\">View some information about
$profile[username]</font></i></div>
<font size=\"1\" face=\"Verdana\"><br></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>General Information:</b></font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">DJ Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">DJ $profile[username]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Habbo Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[habboname]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Forum Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[forumname]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Site Title:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[sitetitle]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Age:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[age]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Main Hotel:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[hotel]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Gender:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[gender]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Song:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favouritesong]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Genre:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favouritegenre]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite CH Management:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favmanagement]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Habbo Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[besthabbofriend]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Real Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[bestfriend]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Interests:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[interests]</font></td>
</tr>
<tr>
<td height=\"16\" width=\"157\"></td>
<td height=\"16\" width=\"188\"></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>A Bit About </b></font>
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[username]</font></b><font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>:</b></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#FF9933\" height=\"16\" width=\"351\">
<font size=\"1\" face=\"Verdana\">$profile[about]</font></td>
</tr>
</table>
<div style=\"opacity: 0.4;\">
<font size=\"1\" face=\"Verdana\">&nbsp;</font><table cellpadding=\"2\" width=\"359\" id=\"table2\" height=\"17\">
<tr>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"169\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[habboname]'s Habbo Image</font></b></td>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"176\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[username]'s
Habbo is:</font></b><img border=\"0\" src=\"status/status.php?name=$profile[habboname]\" width=\"50\" height=\"16\"></td>
</tr>
<tr>
<td height=\"13\" width=\"169\" bgcolor=\"#FF9933\">
<p align=\"center\">
<img border=\"0\" src=\"figure/figure.php?name=$profile[habboname]\"></td>
<td height=\"13\" width=\"176\">
<p align=\"center\"></td>
</tr>
</table>
</div>");
// in the above code, we display the user's information.
}
}
?>

<body link="#000000" vlink="#000000" alink="#000000"><link rel="stylesheet" type="text/css" href="http://www.crazyhabbo.net/halloween/stylesheet.css">

<title>Staff List</title>

YouFail
27-11-2006, 08:15 PM
Don't listen to my dodgy PHP.

Moh
27-11-2006, 08:31 PM
Don't listen to my dodgy PHP.

lol.

Well you got most of the Auto Staff page done.

Priview here.
http://www.crazyhabbo.net/profile/test3.php

I just Need the users to be in rows, and the profiles need to be different

Want to hide these adverts? Register an account for free!