1
Mods & Plugins (Releases & Support) / Re: Private URL to members profile
« on: November 07, 2005, 06:04:48 AM »
Or maybe server config overides htaccess?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Your request got error on prossesimpressive... but why i`ve got it..?
<?
include "config.php";
$profile_img = '<img src="http://www.funny.lt/templates/default/images/profile.gif" border="0" align="absmiddle" alt="Member profile">';
$pm_img = '<img src="http://www.funny.lt/templates/default/images/pm.gif" border="0" align="absmiddle" alt="Private message">';
$db = mysql_connect("$db_host", "$db_user", "$db_password") or die ("Error");
@mysql_select_db("$db_name", $db) or die ("DB not found");
$result = mysql_query("SELECT profile_hits, user_name, user_id FROM 4images_users ORDER BY profile_hits DESC LIMIT 5");
while ($row = mysql_fetch_array($result)) {
echo
"<a href=http://www.funny.lt/pm.php?action=new&user_id=".$row['user_id'].">".$pm_img."</a>
<a href=http://www.funny.lt/member.php?action=mailform&user_id=".$row['user_id'].">".$mail_img."</a>
<a href=http://funny.lt/member.php?action=showprofile&user_id=".$row['user_name'].">".$row['user_name']."</a> - <b>".$row['profile_hits']."</b><br/>";
}
?>