Welcome Guest ( Log In | Register )

UploadScript

Check out the FREE chatroom mod for IPB 3.x

 
Closed TopicStart new topic
[FILLED]Group Pic and Pips
mackiller
post Nov 3 2004, 09:45 PM
Post #1


Newbie
*

Group: Members
Posts: 49
Joined: 1-October 04
Member No.: 127,154
IPB Version: 1.3.x



like i want the pips to show up and the image that says admin or owner or member

ex

owner.gif

pip pip pip pip

This post has been edited by mackiller: Nov 3 2004, 09:45 PM


--------------------
Go to the top of the page
 
+Quote Post
FuSoYa
post Nov 3 2004, 11:30 PM
Post #2


IZE's lightning rod of hate
*******

Group: Members
Posts: 13,986
Joined: 5-September 03
Member No.: 40,573
IPB Version: 2.3.x



Try this. Open sources/Topics.php. Find:
CODE
 if ($member['g_icon'])
 {
  $member['member_rank_img'] = "<img src='{$ibforums->vars[TEAM_ICON_URL]}/{$member['g_icon']}' border='0' alt='Group Icon' />";
 }
 else
 {
  if ($pips)
  {
   if ( preg_match( "/^\d+$/", $pips ) )
   {
    for ($i = 1; $i <= $pips; ++$i)
    {
     $member['member_rank_img'] .= "<{A_STAR}>";
    }
   }
   else
   {
    $member['member_rank_img'] = "<img src='{$ibforums->vars['TEAM_ICON_URL']}/$pips' border='0' alt='*' />";
   }
  }
 }

Change To:
CODE
 if ($member['g_icon'])
 {
  $member['member_rank_img'] = "<img src='{$ibforums->vars[TEAM_ICON_URL]}/{$member['g_icon']}' border='0' alt='Group Icon' /><br />";
 }
 if ($pips)
 {
  if ( preg_match( "/^\d+$/", $pips ) )
  {
   for ($i = 1; $i <= $pips; ++$i)
   {
    $member['member_rank_img'] .= "<{A_STAR}>";
   }
  }
  else
  {
   $member['member_rank_img'] = "<img src='{$ibforums->vars['TEAM_ICON_URL']}/$pips' border='0' alt='*' />";
  }
 }

Then save and upload. Should show the group icon if available, and then the pips below it.
Go to the top of the page
 
+Quote Post
mackiller
post Nov 4 2004, 12:21 AM
Post #3


Newbie
*

Group: Members
Posts: 49
Joined: 1-October 04
Member No.: 127,154
IPB Version: 1.3.x



it worked execpt how would i add one more <br /> in between them right now they are smashed up agasted each other


--------------------
Go to the top of the page
 
+Quote Post
FuSoYa
post Nov 4 2004, 12:26 AM
Post #4


IZE's lightning rod of hate
*******

Group: Members
Posts: 13,986
Joined: 5-September 03
Member No.: 40,573
IPB Version: 2.3.x



Did you copy and paste my code exactly? I did add that extra <br /> character in there:
CODE
if ($member['g_icon'])
{
 $member['member_rank_img'] = "<img src='{$ibforums->vars[TEAM_ICON_URL]}/{$member['g_icon']}' border='0' alt='Group Icon' />";
}

Became this:
CODE
if ($member['g_icon'])
{
 $member['member_rank_img'] = "<img src='{$ibforums->vars[TEAM_ICON_URL]}/{$member['g_icon']}' border='0' alt='Group Icon' /><br />";
}

Note that it does have the extra <br /> there at the end.
Go to the top of the page
 
+Quote Post
mackiller
post Nov 4 2004, 12:53 AM
Post #5


Newbie
*

Group: Members
Posts: 49
Joined: 1-October 04
Member No.: 127,154
IPB Version: 1.3.x



ah just needed a extra <br />


--------------------
Go to the top of the page
 
+Quote Post
FuSoYa
post Nov 4 2004, 08:00 AM
Post #6


IZE's lightning rod of hate
*******

Group: Members
Posts: 13,986
Joined: 5-September 03
Member No.: 40,573
IPB Version: 2.3.x



Request Filled
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th March 2010 - 08:23 AM
Invision Skins · IPB Skins