News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Hide usernames

Started by wiecher, April 13, 2011, 09:17:40 AM

Previous topic - Next topic

wiecher

Usernames Hide  for guests.
Is that possible ?
I mean in all boards on the forum.

Arantor

See http://arantor.org/index.php?topic=262.msg4580#msg4580 but also note the comments in the third page about fixing two of the known issues with the mod.
Holder of controversial views, all of which my own.


Arantor

Quote from: wiecher on April 14, 2011, 05:37:11 AM
Ok Arantor

I have made a account there yesterday but no answer..........


Well, email's working fine... account has been activated for you anyway.
Holder of controversial views, all of which my own.


Arantor

I'm going to be uncharacteristically nice, seeing how you managed to miss the notice where I don't offer support, especially since I guess 2 hours is SUCH A LONG TIME TO WAIT!

Like I already told you, your server is misconfigured.

Specifically, it's a Windows server which doesn't support SERVER_ADDR which is used in the mod to detect Tor requests. To fix, find this code in index.php:
if ($_SERVER['REMOTE_ADDR'] !== '' && !$user_info['is_admin'])
{
$octets1 = implode('.', array_reverse(explode('.', $_SERVER['REMOTE_ADDR'])));
$octets2 = implode('.', array_reverse(explode('.', $_SERVER['SERVER_ADDR'])));
if (@gethostbyname($octets1 . '.' . $_SERVER['SERVER_PORT']  . $octets2 . '.ip-port.exitlist.torproject.org') == '127.0.0.2')
fatal_error('We do not currently allow access via Tor.', 'user');
}

define('HIDDEN', 'HIDDEN');



Replace with:
if ($_SERVER['REMOTE_ADDR'] !== '' && !empty($_SERVER['SERVER_ADDR']) && !$user_info['is_admin'])
{
$octets1 = implode('.', array_reverse(explode('.', $_SERVER['REMOTE_ADDR'])));
$octets2 = implode('.', array_reverse(explode('.', $_SERVER['SERVER_ADDR'])));
if (@gethostbyname($octets1 . '.' . $_SERVER['SERVER_PORT']  . $octets2 . '.ip-port.exitlist.torproject.org') == '127.0.0.2')
fatal_error('We do not currently allow access via Tor.', 'user');
}

define('HIDDEN', 'HIDDEN');



I hope you don't have any further questions.
Holder of controversial views, all of which my own.


wiecher

Quote from: Arantor on April 14, 2011, 06:10:39 AM
Quote from: wiecher on April 14, 2011, 05:37:11 AM
Ok Arantor

I have made a account there yesterday but no answer..........


Well, email's working fine... account has been activated for you anyway.

Email is not working Arantor  :(

Arantor

Well, it sends me emails...

In any case your account must be active because you already posted there.
Holder of controversial views, all of which my own.


Advertisement: