Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: CheeseHead05 on August 26, 2013, 02:13:12 PM

Title: Want to remove the IP address.
Post by: CheeseHead05 on August 26, 2013, 02:13:12 PM
How do I remove the IP address in the forum of each member?
Title: Re: Want to remove the IP address.
Post by: Chalky on August 26, 2013, 02:29:46 PM
Asked in the nicest possible way, why?
Title: Re: Want to remove the IP address.
Post by: kat on August 26, 2013, 03:52:15 PM
In case you were wondering, only admins can see those and they're good for tracking Spamtards.
Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 03:57:36 PM
I don't use it. i removed everything since my forum is a diff niche than most. .....but you can find the bit on Display.template.php

Yes, only admins see this.
Title: Re: Want to remove the IP address.
Post by: CheeseHead05 on August 26, 2013, 03:58:08 PM
ok..and lol @ spamtards..Mick, same here. Im going to look again, I removed something with "ip" and somehow it caused an error, so I just put it back...
Title: Re: Want to remove the IP address.
Post by: Kindred on August 26, 2013, 04:29:34 PM
You should know by now that you can't just go randomly deleting code from files without actually having SOME idea what you are supposed to be doing....

And you still have not actually explained why you want to remove it.
Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 04:34:26 PM
Sorry man but I can't help you ATM. (On iPhone). It's been over a year since I've seen a fresh display.template.php file but if I remember correctly, there's only 1 instance of the code bit?

Ill help you out if you still want this but later this afternoon. I need to look at a fresh file.
Title: Re: Want to remove the IP address.
Post by: kawajax on August 26, 2013, 04:41:46 PM
?

http://custom.simplemachines.org/mods/index.php?mod=2046
Title: Re: Want to remove the IP address.
Post by: kat on August 26, 2013, 04:46:02 PM
Try deleting this block of code from Display.template.php.

<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?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in?  Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt['logged'], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt['logged'];

echo '


Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 04:51:40 PM
Thanx K@.
Title: Re: Want to remove the IP address.
Post by: kat on August 26, 2013, 04:56:24 PM
No sweat! Cheesy seems to be doing what seem, to me, to be rather odd things, to his forum. I'm even wondering if SMF is, really, what he needs, as he seems to want to butcher it, so much. But, hey, it's his forum, so... :)
Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 05:00:22 PM
Lol K@!!  Are you bringing me out to the limelight? I don't need SMF but I use it, (all hacked, chopped up) bahahaha!!!!

In all truthness, I use smf because it can do whatever you tell it.
Title: Re: Want to remove the IP address.
Post by: kat on August 26, 2013, 05:03:18 PM
I'd love to know just what he's up to, you know. Just to kinda my curiosity, kinda thing.

Not that I'm a nosy bastard.






Much. ;)
Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 05:11:51 PM
Bahahaha me too me too!
Title: Re: Want to remove the IP address.
Post by: Burke ♞ Knight on August 26, 2013, 05:29:28 PM
Some kind of super spy site, maybe... ;)

Cheesy may finally tell us when the site is done.
After all, the Showcase board is very inviting. :)
Title: Re: Want to remove the IP address.
Post by: Arantor on August 26, 2013, 05:39:50 PM
/me would point out that it's possible to sniff all the IP addresses of people who visit a given topic anyway even when you're not an administrator.
Title: Re: Want to remove the IP address.
Post by: Mick. on August 26, 2013, 05:43:57 PM
What seems to me is, cheese wants to remove the ip text with its ip numbers and the icon.
Title: Re: Want to remove the IP address.
Post by: Burke ♞ Knight on August 26, 2013, 05:51:26 PM
Seems like Cheesy is making one heck of a unique site.
One that I'd love to see the finished result. :)
Title: Re: Want to remove the IP address.
Post by: Arantor on August 26, 2013, 05:54:59 PM
Quote from: BurkeKnight on August 26, 2013, 05:51:26 PM
Seems like Cheesy is making one heck of a unique site.
One that I'd love to see the finished result. :)

Honestly there's nothing unique about it from what I've heard so far.
Title: Re: Want to remove the IP address.
Post by: CheeseHead05 on August 27, 2013, 10:06:54 AM
I will definitely let you guys take a look when Im done, yea I have chopped it up just like Mick said and to comment on his "it does whatever I tell it" that is very much true, main reason y I use it and then it's free unlike vBulletin. C'mon, dont we all like freebies?!

P.S.

Arantor is probably one of those old men with no close friends who's sits in the window praying that someone comes to visit. Smile for once sir, you are breathing, dont be so negative all the time...*he probably will be the first to click on the link to my site*

And Kindred,

Im not RANDOMLY removing the code. Ive been planned to remove the code. As I seen no point of it. When you assume, most of the time assumptions are wrong...
Title: Re: Want to remove the IP address.
Post by: Arantor on August 27, 2013, 10:12:17 AM
Well... I'm 29, with introverted and mild autistic tendencies and I don't go outside because I'm happier when writing code because code, unlike people, won't ever be unpleasant to you, nor will it lie to you or try to do things without thinking about them first. The fact that code also doesn't provide ambiguous subtext or expect to do small talk is just a bonus feature.

Besides, my opinion is completely valid. Everything I have heard about your site is very generic. I have yet to hear about anything you've actually wanted that's unique. It's probably even a general discussion forum of which there are a bajillion already.
Title: Re: Want to remove the IP address.
Post by: Burke ♞ Knight on August 27, 2013, 10:15:51 AM
Personally, I think those attacks are uncalled for.

1. Arantor did not even say anything with attitude. Just stated that IP's can still be found other ways, and that he did not think you were doing anything extra-ordinary.

2. Kindred was not saying you were, just wanted to remind you to know what you are doing while in the coding. Even I need reminding at times. ;)
Title: Re: Want to remove the IP address.
Post by: CheeseHead05 on August 27, 2013, 10:25:47 AM
Burke,

Arantor is ALWAYS negative towards me.
Quote from: Arantor on August 26, 2013, 05:54:59 PM
Quote from: BurkeKnight on August 26, 2013, 05:51:26 PM
Seems like Cheesy is making one heck of a unique site.
One that I'd love to see the finished result. :)

Honestly there's nothing unique about it from what I've heard so far.

Title: Re: Want to remove the IP address.
Post by: Burke ♞ Knight on August 27, 2013, 10:37:03 AM
I'm sorry, but I don't see anything negative about that.
He's just stating that so far, there is nothing he'd heard of that is truly unique.
In other words, he's most likely seen same things asked for in the past.
Title: Re: Want to remove the IP address.
Post by: Colin on August 27, 2013, 10:38:33 AM
Let's move on.
Title: Re: Want to remove the IP address.
Post by: kat on August 27, 2013, 10:58:16 AM
/me hits the "solved" wotsit.

Assuming, that is, that my suggestion did the trick...