Add Image Ranks In Profile Of Funmobile

Started on the old forum in October 2007 · view the original in the archive · old links redirect here

8 replies · 633 views · started 19 years ago · 1 min read

5 participants
subzero Super moderator Fellow · 3,954 posts #4
function getstatus($uid)
{
  $info= mysql_fetch_array(mysql_query("SELECT perm, credits FROM ibwf_users WHERE id='".$uid."'"));
  if(isbanned($uid))
  {
    return "BANNED!";
  }
    if($info[0]=='3')
  {
    return "<img src=\"images/owner.gif\" alt=\"Owner!\"/>";
  }else if($info[0]=='2')
  {
    return "<img src=\"images/administrator.gif\" alt=\"Administrator!!\"/>";
    }else if($info[0]=='1')
  {
return "<img src=\"images/moderator.gif\" alt=\"Moderator!!\"/>";
   
  }else{
    if($info[1]<10)
    {
      return "N00b";
    }else if($info[1]<25)
    {
        return "SpaRkl3";
    }else if($info[1]<50)
    {
        return "flaR3";
    }else if($info[1]<75)
    {
        return "flaM3";
    }else if($info[1]<250)
    {
        return "buRst";
    }else if($info[1]<500)
    {
        return "ViTa1";
    }else if($info[1]<750)
    {
        return "Lava unplugged";
    }else if($info[1]<1000)
    {
        return "GuRu";
    }else if($info[1]<1500)
    {
        return "V.I.P";
    }else if($info[1]<2000)
    {
        return "FaNatic";
    }else if($info[1]<2500)
    {
        return "Lava KNight";
    }else if($info[1]<3000)
    {
        return "VeteRaN";
    }else if($info[1]<4000)
    {
        return "Lava eXpelleR";
    }else if($info[1]<5000)
    {
        return "MasteR";
    }else if($info[1]<10000)
    {
        return "ic0N";
    }else 
    {
        return "Lava volcaNo";
    }
  }
}

Replace that in core.php External image (may be gone)

just add to return "<img src="images/moderator.gif" alt="Moderator!!"/>";

replace return "Lava volcaNo"; to return "<img src="images/moderator.gif" alt="Moderator!!"/>";

<img src=" url " alt=" what name ? \ "/> got it ??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #6

:)username says: hello to world

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Ricky21ster Developer · 139 posts #9

this code wat i uses at my first updates do similar for funmobile lol

else if($action=="stfol")
{

  addonline(getuid_sid($sid),"Staff online list","");
    echo "<card id=\"main\" title=\"Staff Online\">";

  //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $timeout = 180;
  $timeon = time()-$timeout;
  $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'"));
    $num_items = $noi[0]; //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if($page>$num_pages)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;
    if($limit_start<0)$limit_start=0;
    //changable sql
    $sql = "
    SELECT name, perm, id FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'
            LIMIT $limit_start, $items_per_page
    ";
    echo "

[size="1"]";
     $tmsg = getpmcount(getuid_sid($sid));
  $umsg = getunreadpm(getuid_sid($sid));
  if($umsg>0)
  {
  echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg/$tmsg)</a>
";
  }
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {
      $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>";
      if($item[1]==1)
      {
      $item[1] = "[i]matrix mod[/i]!";
     echo "<img src=\"images/mod.gif\" alt=\"x\"/>";
      }else if($item[1]==2)
      {
      $item[1] = "[i]matrix admin[/i]!";
      echo "<img src=\"images/adm.gif\" alt=\"x\"/>";
      }else if($item[1]==3)
      {
      $item[1] = "[i]matrix rulers[/i]!";
      echo "<img src=\"images/own.gif\" alt=\"x\"/>";
      }
      echo "$lnk - $item[1] 
";
    }
    echo "[/size]</p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"index.php?action=$action&page=$ppage&sid=$sid\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=$action&page=$npage&sid=$sid\">Next»</a>";
    }
    echo "
$page/$num_pages
";
    if($num_pages>2)
    {
      echo getjumper($action, $sid,"index");
    }
    echo "</p>";
  ////// UNTILL HERE >>

  echo "<p align=\"center\">";
  echo "<a href=\"index.php?action=chat&sid=$sid\">Chat</a>
";
echo "<a href=\"forum.php?action=forums&sid=$sid\">Forums</a>
";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo "</card>";
}

get cheap web hosting ever AdzeHost

get free hosting for life time hostwebswap not allowed

get free cpanel web hosting free cpanel hostingwap are allowed

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close