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

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.
Thread Information
1 post
2554 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can 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.
Users who participated in discussion: Rolly8-HL