Advertisement:

Author Topic: How To Make Crown Beside Our Name  (Read 11447 times)

Offline bloodrune

  • Semi-Newbie
  • *
  • Posts: 61
Re: How To Make Crown Beside Our Name
« Reply #20 on: December 05, 2008, 09:04:27 AM »
i want to make admin crown mod crown donator crown vip crown..

like this forum http://advanced-scape.110mb.com/forum/index.php?topic=525.0

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,907
  • Gender: Male
    • N3RVE.COM
Re: How To Make Crown Beside Our Name
« Reply #21 on: December 05, 2008, 09:24:31 AM »
Admin CP -> Membergroups ->
Move the pointer over a group and look at the status bar to see where it's linked
My Forum will output http://dev.oxynerve.net/community/index.php?action=membergroups;sa=members;group=1

Where 1 is the group ID :)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: How To Make Crown Beside Our Name
« Reply #22 on: December 05, 2008, 11:16:44 PM »
i want to make admin crown mod crown donator crown vip crown..

like this forum http://advanced-scape.110mb.com/forum/index.php?topic=525.0

Upload your crown images in {yourtheme}/images folder and name them crown1.gif for admin, crown2.gif for moderator, crown#.gif where # is the id number of your membergroup. Then in Display.template.php, find
Code: [Select]
<div class="floatleft poster">
<h4>', $message['member']['link'], '</h4>
<ul class="smalltext" id="msg_', $message['id'], '_extra_info">';

replace
 
Quote
<div class="floatleft poster">';
            if (in_array($message['member']['group_id'], array('1', '2', '#')))
               echo '
               <h4><img src="', $settings['theme_url'], '/images/crown', $message['member']['group_id'], '.gif', '" alt="" />', $message['member']['link'], '</h4>
                  <ul class="smalltext" id="msg_', $message['id'], '_extra_info">';

Replace the # in the array with the id number of your membergroup.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline bloodrune

  • Semi-Newbie
  • *
  • Posts: 61
Re: How To Make Crown Beside Our Name
« Reply #23 on: December 06, 2008, 01:18:46 AM »
if i use this code on my smf 1.1.7
Code: [Select]
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">';
   if ($message['member']['id'] == 1)
      echo '<img src="' . $settings['images_url'] . '/collapse.gif' . '" alt="" />';
   echo '
      <b>', $message['member']['link'], '</b>

can i make more crown?