Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

function profile_link

Last updated on 7 years ago
Posted 7 years ago
Translated with Goggle

Hi have again a question in the maincore.php I find the
// User profile link
function profile_link($user_id, $user_name, $user_status, $class = "profile-link") {
   global $locale, $settings;

   $class = ($class ? " class='$class'" : "");

   if ((in_array($user_status, array(0, 3, 7)) || checkrights("M")) && (iMEMBER || $settings['hide_userprofiles'] == "0")) {
      $link = "<a href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$user_name."</a>";
   } elseif ($user_status == "5" || $user_status == "6") {
      $link = $locale['user_anonymous'];
   } else {
      $link = $user_name;

   return $link;

Now would like a non-existent ID display with the name "Old User".
Shoutbox example: a user has there been an entry has been deleted from the DB but the display is still the ID as a number of these is now but as "Old User" appear.
Even better also equal user_avatar = delete_user.png with and user_sig = This user has been deleted!.
Has an idea how I can implement?

With this addition is that when I put the user in user_status to 8.
   } elseif ($user_status == "8") {
      $link = "Old User";

A non-existent ID you can not rely on user_status 8 but.
Greeting Rolly8 HL
What is important for others must not be as important for me!
I'm stubborn, Unteachable, in protest I do not what others believe is right!
This gives a thought to it?
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Rolly8-HL,