Thread subject: muscapaul's PHP-Fusion website :: Extended Profile v2.xx

Posted by muscapaul on 10-01-2008 20:27
#98

Try this code. It will only display for members.
Code
<?php
if (iMEMBER) {
    $result=dbquery("SELECT * FROM ".$db_prefix."extended_profile_values t1 INNER JOIN  ".$db_prefix."users t2 ON t1.prop_user_id=t2.user_id WHERE prop_name='ps3_name' ORDER BY user_id");
    echo "<table width='100%' cellpadding='0' cellspacing='0' class=''>";
    if (dbrows($result) != 0) {
        while ($data = dbarray($result)) {
            if ($data['prop_value'] != '') {
            echo "<tr><td class='small' align='left'><a href='profile.php?lookup=$data[user_id]' title=''>";
            echo $data['user_name']."</a></td><td>";
            echo stripslashes($data['prop_value'])."</td></tr>";
        }
    }
}
echo "</table>";
}
else { }
?>



To make it display for all, remove the line
if (iMEMBER) {
and remove the } above else { }.
To make it admin only replace iMEMBER by iADMIN or iSUPERADMIN.


Notice: Undefined index: post_edituser in /home/muscapal/public_html/print.php on line 147
Edited by muscapaul on 10-01-2008 20:28