Advertisement:

Author Topic: Removing icons under forum avatar?  (Read 1065 times)

Offline oOTrentOo

  • Jr. Member
  • **
  • Posts: 102
Removing icons under forum avatar?
« on: June 15, 2012, 11:59:58 PM »


Does anyone know how to remove these icons?

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,589
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Removing icons under forum avatar?
« Reply #1 on: June 16, 2012, 05:32:43 AM »
In your theme's Display.template.php, find the following and delete:

Code: [Select]
         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            echo '
                        <li class="profile">
                           <ul>';
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                              <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
               echo '
                              <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

            // Don't show the email address if they want it hidden.
            if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
               echo '
                              <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                              <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

            echo '
                           </ul>
                        </li>';
         }

READ MY SIG, FIRST! (In case I've boobed)

Offline oOTrentOo

  • Jr. Member
  • **
  • Posts: 102
Re: Removing icons under forum avatar?
« Reply #2 on: June 16, 2012, 11:37:27 PM »
I could not find that anywhere. :/

Offline Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,460
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Removing icons under forum avatar?
« Reply #3 on: June 16, 2012, 11:39:22 PM »
Which theme are you using?

(Please include a link)
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline oOTrentOo

  • Jr. Member
  • **
  • Posts: 102
Re: Removing icons under forum avatar?
« Reply #4 on: June 16, 2012, 11:48:31 PM »

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,589
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Removing icons under forum avatar?
« Reply #5 on: June 17, 2012, 04:49:45 AM »
Try editing the same file in the default theme's directory, then. :)

Offline MrPhil

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,641
Re: Removing icons under forum avatar?
« Reply #6 on: June 17, 2012, 09:26:47 AM »
Rather than editing the theme file (or worse, deleting chunks of code that they'll want back later), why not just change the setting for show_profile_buttons from True to False?

This information is kept per theme in the database, and there should be a place in Admin to change it.
Please do not PM me with support questions, unless I ask you to. Unsolicited PMs for support will be ignored. It's best to have questions and answers in public, so others can research a problem and learn about it without having to ask the question yet again. Thank you!
FAQs | SMF 1.1 fixes | Project ideas
-= From the ashes shall rise a sooty tern =-