Author Topic: OOOPS!!  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

Offline Itchigo

  • Victory is mine!!
  • Administrator
  • Pinball Wizard
  • *****
  • Posts: 1,239
  • Country: us
  • Karma: +6/-0
OOOPS!!
« on: December 20, 2012, 09:24:49 AM »
I think I fixed the ip adress showing in posts, but I crashed the site briefly and had to go back to the default theme temporarily. We will go back to the dark theme as soon as we can. Oh Pintrepid...........

My code fix worked, but there was a {/code] showing I didn't see. From SMF: http://www.simplemachines.org/community/index.php?topic=440631.0

Display.template.php.



Code: [Select]

       // Can we issue a warning because of this post?  Remember, we can't give guests warnings.
       if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
          echo '
                         <a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
       echo '
                         <img src="', $settings['images_url'], '/ip.gif" alt="" />';

       // Show the IP to this user for this post - because you can moderate?
       if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
          echo '
                         <a href="', $scripturl, '?action=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
       // Or, should we show it because this is you?

Was changed to this:


      // Can we issue a warning because of this post?  Remember, we can't give guests warnings.
       if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
          echo '
                         <a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
       echo '
                         <!--img src="', $settings['images_url'], '/ip.gif" alt="" /-->';

       // Show the IP to this user for this post - because you can moderate?
       if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
          echo '
                         <!--a href="', $scripturl, '?action=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a-->';
       // Or, should we show it because this is you?

{/code]
« Last Edit: December 20, 2012, 09:29:18 AM by Itchigo »
Tremble in fear! Behold my Bankai!


Offline Itchigo

  • Victory is mine!!
  • Administrator
  • Pinball Wizard
  • *****
  • Posts: 1,239
  • Country: us
  • Karma: +6/-0
Re: OOOPS!!
« Reply #1 on: December 20, 2012, 11:03:54 AM »
Nevermind, I fixed it. ::)
Tremble in fear! Behold my Bankai!


Offline Rukia

  • The Rogue Queen of VP!
  • Pinball Wizard
  • *****
  • Posts: 419
  • Country: us
  • Karma: +4/-0
Re: OOOPS!!
« Reply #2 on: December 20, 2012, 10:20:46 PM »
Nevermind, I fixed it. ::)

Don't do that again!

Rukia
 :P
Y'all behave yourselves or I'll have to smack ya's!