Is it possible to show a generic name like "anonymous coward" instead of the user's IP when they edit without logging in?
Is it possible to show a generic name like "anonymous coward" instead of the user's IP when they edit without logging in?
Yeah, try this.
Edit includes/User.php, search for "$this->mName = IP::santiizeIP" (line 1155 on 1.11), comment out that line and replace it with "$this->mName = 'Anonymous Coward';
This seems to work for recent changes and page history. I haven't been trying it for long and didn't make much effort to check for implications... but like I said it seems to work great.
Its good code ($this->mName = 'Anonymous Coward', but this code hides real IP's from all.
How to make that real IP's were snown for sysop's and bureaucrats only?
Regards, Verto
hi,
you can use getGroups() from the user.php to get an array of the groups of the logged in user. now you had to check if your groupname is in the array.
example:
global $wgUser;
if(in_array('sysop', $wgUser->getGroups())
{
do it
}
greets
meikrosoft
hi,
sorry double post
meikrosoft
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks