News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Want to remove the IP address.

Started by CheeseHead05, August 26, 2013, 02:13:12 PM

Previous topic - Next topic

CheeseHead05

How do I remove the IP address in the forum of each member?

Chalky

Asked in the nicest possible way, why?

kat

In case you were wondering, only admins can see those and they're good for tracking Spamtards.

Mick.

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.

CheeseHead05

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

Kindred

#5
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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Mick.

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.

kawajax

No one is in charge of your happiness, except you.
http://shareitservice.com/

kat

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 '



Mick.


kat

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... :)

Mick.

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.

kat

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. ;)

Mick.


Burke ♞ Knight

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. :)

Arantor

* Arantor 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.

Mick.

What seems to me is, cheese wants to remove the ip text with its ip numbers and the icon.

Burke ♞ Knight

Seems like Cheesy is making one heck of a unique site.
One that I'd love to see the finished result. :)

Arantor

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.

CheeseHead05

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

Advertisement: