News:

Wondering if this will always be free?  See why free is better.

Main Menu

How To Make Crown Beside Our Name

Started by bloodrune, December 05, 2008, 07:25:39 AM

Previous topic - Next topic

bloodrune

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

N3RVE

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

Bulakbol

Quote from: bloodrune 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

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
<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

bloodrune

if i use this code on my smf 1.1.7
<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?

Advertisement: