Anonymous Board Mod

Started by JMV290, November 04, 2007, 07:12:46 PM

Previous topic - Next topic

perplexed

so this mod hides the name, avatar, signature/banner etc?

does it also hide group badges (if multiple badges installed), custom profile fields displayed on posts, member group, send PM, YIM messenger icons, and Member awards links, send money shop links etc?

Just want to make sure

thanks

Kindred

This mod rewrites "anonymous" into the user info for the author of the post...

Which means that anything that depends on pulling the userID of the author is now set to display the information for userID=0 (i.e. no one)
Сл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."


lookang

   
Package Manager
From the package manager you can download and install modifications to your forum through an easy to use interface.
          Browse Packages         Download Packages    Installed Packages    Options    

Apply Mod
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
Anonymous Board Modification
Version 0.3

Originally written by: Michael Miller
Updated for 1.1.x by Kindred

This mod allows you to set up anonymous boards.
Anonymous boards change the poster's information so that the only record is their IP address at time of posting.

To setup a board as an anonymous board:
Admin -> Manage Boards -> modify
Then click the appropriate check box

Once that is done by default all posters to that board will be anonymous.
However it will not retroactivly change any posts nor will it chnange posts that are moved into that board.

On a per post basis a poster can choose to post unanonymously by checking the checkbox that is displayed on the post screen.
This checkbox only appears on the editor screen so anyone using quick reply won't be able to unanon themselves.

Any posts moved out of an anonymous board will still remain anonymous.

you can set existing posts to anonymous by the following:
UPDATE `smf_messages` SET `ID_MEMBER`=0 WHERE `ID_BOARD`=[YOUR ANONYMOUS BOARD ID];
UPDATE `smf_messages` SET `posterName`='Anonymous' WHERE `ID_BOARD`=[YOUR ANONYMOUS BOARD ID];
UPDATE `smf_messages` SET `posterEmail`='' WHERE `ID_BOARD`=[YOUR ANONYMOUS BOARD ID];
UPDATE `smf_messages` SET `modifiedName`='Anonymous' WHERE `modifiedName`<>'' AND `ID_BOARD`=[YOUR ANONYMOUS BOARD ID];

Mod History:

Version 0.3:
- Updated to install on SMF 1.1.x by Kindred

Version 0.2:
- Change ?action=who so that any actions inside of an anonymous board show the "Nothing, or nothing you can see..." message
- Corrected an error in the add_settings.php file

Version 0.1:
- Beta version.
- Inital version

Install Actions
Installations actions for "Anonymous Boards":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
5.    Execute Modification    ./Sources/Load.php    Test successful
6.    Execute Modification    ./Themes/default/Post.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Sources/Who.php    Test successful
9.    Execute Code    add_settings.php

help? :D

Kindred

first...  there is no need to post the entire screen....

second...  looks like you have modified
Sources/ManageBoards.php
and
Sources/Subs-Boards.php
so the mod can not find the code-insertion points that it needs.

If you go ahead with the installation, You will have to manually add the code in the appropriate locations for those files.
Сл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."

Darkness_

is it possible to set a board as anonymous board.
and when a user posts something that they have to choose that they want post it anonymouse.

maybe this will be better to explain

there is an option
Post this message with your username (NOT ANONYMOUS)

couldn't this one made
Post this message ANONYMOUS




I hope you will understand me, sorry for my bad english

Darkness_

I've solved it myself for the ones who want this to



go tho your sources and open post.php
find this code
// anonymous board mod
if ( $context['anonymousBoard'] && !isset($_POST['post_unanon']) )
{
// Destroy the identifing user data
$user_info['username'] = 'Anonymous';
$user_info['name'] = 'Anonymous';
$user_info['email'] = '';
$user_info['avatar'] = array();
$ID_MEMBER = 0;
}


and replace it with

// anonymous board mod
if ( $context['anonymousBoard'] && ($_POST['post_unanon']) )
{
// Destroy the identifing user data
$user_info['username'] = 'Anonymous';
$user_info['name'] = 'Anonymous';
$user_info['email'] = '';
$user_info['avatar'] = array();
$ID_MEMBER = 0;
}

Kindred

#27
or, rather than re-coding, you could set the "do not make this post anonymous" checkbox to default ON.

Also, your code could end up filling the error log.

It should be...

if ( $context['anonymousBoard'] && isset($_POST['post_unanon']) )
Сл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."

Darkness_

It works fine with me, I don't have any problems.
and my eror logs are disabled.

Kindred

I did not say that it would not WORK. I said that it was improper code that might end up causing errors in the logs.

none-the-less, if you are posting code, for other people to try, it really should be correct code. (and disabling the error log is not really a good idea. The error logs tell you when something needs to be fixed.)
Сл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."

Darkness_

hmm oke thank for your feedback

but how do I get that default as on?

dillon

Quote from: Kindred on January 22, 2008, 10:35:32 PM
This mod still tracks the IP address of the posters.
So Admins can check the IP address and list the posts from that IP, including posts from the user who uses it...

but no...  there is no functionality in this mod to hide the name from users and leave it exposed to Admins (and no, I do not plan not ever expand it to do so)

How do I find the IP address then if nessecary?

Kindred

Same place you find the IP on every message. In most themes, it's at the bottom right corner of the message for those users who can see 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."

dillon

Okay, that was pretty pathetic....sorry about that.  What can I say....I'm new at this :)

One more question, is it possible to have this mod used so on un-anonymous boards, it's the default to be as your user name but there is a check box if you would like to be anonymous?

Kindred

of course it's possible.... but I don't intend to do that.

This mod (as all the others that I do) was built for a specific purpose on my own sites.
--  to enable the ability to have a board defined as "anonymous" posting.

you could always set ALL boards to anonymous and then change the code to default to "show username, check here to make anonymous" but that goes well beyond what I intended the mod for when I grabbed the original code to port.
Сл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."

dillon

Okay, thank you for your reply.

dillon

I just noticed that if I click on a users profile then "last post from this member" all their anonymous posts come up!  ANY user can do this too!!!!

How can I change this???

Kindred

#37
should not be happening...   I'll look at it, but it doesn't do that on my forum...


just tested again...  it most certainly does NOT show the anonymous posts in the person's profile...
(unless they make the post NOT anonymous)
Сл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."

dillon

I'm very sorry, please forgive me but I am new to this.

I have made a mistake and found posts in the anonymous section from members but they have CHOSEN to be un-anonymous.  I'm very sorry for the misunderstanding.

It's early here and I'm a huge NOOB! 

Thank you for being so quick to respond :)

slackyboy

This is a great mod, its created a huge amount of fun on my site so thanks a lot.
Is there anyway to disable the ability to post with your username. I'm finding a lot of people posting with their usernames and ganging up on anonymous people, sort of defeats the spirit of the board.
I know this sounds crazy but what would be even better would be having the non-anonymous option only able to be used once a day. that way people would only use it if they really, really needed to.

Advertisement: