Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: JMV290 on November 04, 2007, 07:12:46 PM

Title: Anonymous Board Mod
Post by: JMV290 on November 04, 2007, 07:12:46 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=993)

Anonymous Board Modification
Version 0.3

Originally written by:  Michael Miller
Updated for 1.1.4 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 retroactively change any posts nor will it change posts that are moved into that board.

On a per post basis a poster can choose to post non-anonymously by checking the check box that is displayed on the post screen.
This check box 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.

note: Due to changes in how 1.1.4 code, I am unsure if this will run on any previous version...  (you should have 1.1.4 anyway)
Title: Re: Anonymous Board Mod
Post by: rumfa on November 05, 2007, 01:26:51 PM
Wow...It is naaais :D
Many guys will be trilled to have this mod.
Thanks man
Title: Re: Anonymous Board Mod
Post by: allumius on November 07, 2007, 07:34:18 AM
is posible the "nick" for this anonymous board not "ANONYMOUS" and for example "COLECTIVE POSTER" for example

Sorry for my very bad english
Title: Re: Anonymous Board Mod
Post by: Kindred on November 07, 2007, 08:35:55 AM
Actually, yes...

in Sources/Post.php, the mod added these lines of code
Code: [Select]
// Destroy the identifing user data
$user_info['username'] = 'Anonymous';
$user_info['name'] = 'Anonymous';
$user_info['email'] = '';
$user_info['avatar'] = array();
$ID_MEMBER = 0;

You can change the text to anything you like...

Actually, on further review (someone had asked for this), you could assign a specific UserID, email, and/or avatar to the "anonymous poster"


I think, for version 1, I will add an admin interface that allows the admin to define these values. (that won't happen until after December, though)
Title: Re: Anonymous Board Mod
Post by: Stargater59 on November 07, 2007, 07:32:00 PM
Any way to get rid of the 'Guest' under the username?
Title: Re: Anonymous Board Mod
Post by: Kindred on November 08, 2007, 08:29:48 AM
The "Guest" is dynamically written to the screen by the system... because the user is ID=0

So, if you created an actual anonymous user, and used the code above to assign the post to that user, it would not show up as guest.
Title: Re: Anonymous Board Mod
Post by: Stargater59 on November 08, 2007, 01:46:35 PM
Ah, ok.

Well, I'm not entirely sure what this mod could be used for. But.. it's kinda cool!
Title: Re: Anonymous Board Mod
Post by: choloman05 on November 09, 2007, 08:59:08 PM
Nice. Haven't used it yet, but I will. I know there were a few of us looking for this to be made. Thanks a ton Kindred.
Title: Re: Anonymous Board Mod
Post by: rumfa on November 14, 2007, 05:12:38 PM
This feature was really hot on the forum...but it seems many aren't even informed.
Title: Re: Anonymous Board Mod
Post by: Kindred on November 14, 2007, 05:27:04 PM
???  huh?
Title: Re: Anonymous Board Mod
Post by: h4ni on December 08, 2007, 03:00:55 PM
work fine
thank you
Title: Re: Anonymous Board Mod
Post by: dknife on January 07, 2008, 04:55:04 PM
Just an addon to this. I found that this mod was fairly useless if people had signatures, since it would post those as well. So if you install the SignatureSettings mod, then change the following in Display.php, it removes the signatures when posting in any anonymous boards:

Code: [Select]
// Are we showing signatures?
if ($context['anonymousBoard'])
$context['signature_enabled'] = FALSE;
else
$context['signature_enabled'] = substr($modSettings['signature_settings'], 0, 1) == 1;
Title: Re: Anonymous Board Mod
Post by: Kindred on January 07, 2008, 05:10:12 PM
hmmm... nope.

It must have been an interaction between the mods that required this for you in the first place.
I have a signature on my forum...  I posted anonymously, and no signature was recorded.
Title: Re: Anonymous Board Mod
Post by: dknife on January 08, 2008, 06:45:30 AM
Yeah was thinking about this last night and realized it was impossible for that to happen from your mod. Found it was a change I had made caused it. Works flawlessly, great mod and thankyou.
Title: Re: Anonymous Board Mod
Post by: Adi. on January 12, 2008, 11:13:09 AM
Thank you very much for this mods.

I created a board for counseling about bad habit and this mod really helps our users to be open because their user ids is hidden.  ;)
Title: Re: Anonymous Board Mod
Post by: 2pac on January 14, 2008, 04:28:34 AM
this mod is awesome! :D
Title: Re: Anonymous Board Mod
Post by: Darkness_ on January 18, 2008, 11:17:52 PM
I cant download this one
Title: Re: Anonymous Board Mod
Post by: Kindred on January 19, 2008, 09:50:21 PM
There was a hardware failure of the SMF servers which apparently caused attachments and mods to become corrupt.

I have uploaded a fresh copy of 0.3b, which appears to work now.
Title: Re: Anonymous Board Mod
Post by: Antechinus on January 22, 2008, 09:12:55 PM
We like the idea of this mod but are concerned about the potential for abuse. If anyone uses the anonymity to attack or threaten someone we want to be able to nail them. Yes, we have reason to think this is a valid concern.

Does this mod allow the admins to see the identity of posters on the anonymous boards?

If not, is there a mod available which does allow this or can this one be altered to provide this facility?

Thanks.
Title: Re: Anonymous Board Mod
Post by: 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)
Title: Re: Anonymous Board Mod
Post by: perplexed on February 06, 2008, 07:53:47 AM
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
Title: Re: Anonymous Board Mod
Post by: Kindred on February 06, 2008, 09:23:05 AM
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)
Title: Re: Anonymous Board Mod
Post by: perplexed on February 06, 2008, 10:20:43 AM
great, thanks!
Title: Re: Anonymous Board Mod
Post by: lookang on February 11, 2008, 06:16:11 AM
   
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
Title: Re: Anonymous Board Mod
Post by: Kindred on February 11, 2008, 08:39:13 AM
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.
Title: Re: Anonymous Board Mod
Post by: Darkness_ on February 14, 2008, 04:21:33 PM
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
Title: Re: Anonymous Board Mod
Post by: Darkness_ on February 14, 2008, 04:50:28 PM
I've solved it myself for the ones who want this to



go tho your sources and open post.php
find this code
Code: [Select]
// 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

Code: [Select]
// 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;
}
Title: Re: Anonymous Board Mod
Post by: Kindred on February 14, 2008, 05:10:14 PM
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']) )
Title: Re: Anonymous Board Mod
Post by: Darkness_ on February 14, 2008, 05:16:15 PM
It works fine with me, I don't have any problems.
and my eror logs are disabled.
Title: Re: Anonymous Board Mod
Post by: Kindred on February 14, 2008, 06:20:26 PM
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.)
Title: Re: Anonymous Board Mod
Post by: Darkness_ on February 14, 2008, 06:54:33 PM
hmm oke thank for your feedback

but how do I get that default as on?
Title: Re: Anonymous Board Mod
Post by: dillon on March 07, 2008, 07:08:01 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?
Title: Re: Anonymous Board Mod
Post by: Kindred on March 07, 2008, 07:21:52 PM
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.
Title: Re: Anonymous Board Mod
Post by: dillon on March 10, 2008, 07:53:35 PM
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?
Title: Re: Anonymous Board Mod
Post by: Kindred on March 10, 2008, 08:29:19 PM
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.
Title: Re: Anonymous Board Mod
Post by: dillon on March 10, 2008, 08:31:02 PM
Okay, thank you for your reply.
Title: Re: Anonymous Board Mod
Post by: dillon on March 12, 2008, 08:29:39 AM
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???
Title: Re: Anonymous Board Mod
Post by: Kindred on March 12, 2008, 08:30:57 AM
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)
Title: Re: Anonymous Board Mod
Post by: dillon on March 12, 2008, 08:45:38 AM
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 :)
Title: Re: Anonymous Board Mod
Post by: slackyboy on March 13, 2008, 01:20:31 PM
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.
Title: Re: Anonymous Board Mod
Post by: susb on March 13, 2008, 01:28:55 PM
We use this mod on our "Send a Message to your Loved One" board.  Ours is a grief and loss support site.

http://www.healingafterloss.org/newforum/index.php/board,4.0.html

We had been using the "hide post" mod for members to keep their messages private, but many of our users are not technically savvy and I often had to go behind them to make sure the message was truly hidden.

This anon mod, on the other hand, makes this task simple.  ;D The most technologically challenged of my membership can understand "Post this message with your username (NOT ANONYMOUS)" and make the appropriate selection. 

Title: Re: Anonymous Board Mod
Post by: Kindred on March 13, 2008, 02:29:39 PM
limiting the non-anonymous option would be complicated.

However, to remove the ability to make something non-anonymous, just edit post.template.php and remove the checkbox that sets the value.
Title: Re: Anonymous Board Mod
Post by: 2pac on March 18, 2008, 12:10:02 AM
I find that some of my users find it kind of annoying that they have to check teh box to post as themselves... they've told me that they would rather post as themselves and click the check box when they want to post as anonymous


so i was wondering... how can i make it so that it reads

"post as ANONYMOUS"

and have them click the check box on when they want to post anonymously


would it be easy to implement, or would it be like reinventing the wheel?

thanks for your help!
Title: Re: Anonymous Board Mod
Post by: Kindred on March 18, 2008, 09:11:12 AM
try reading the other pots in the thread?

Modify the post.template.php changes to make the box "post as yourself" default to "checked"
Title: Re: Anonymous Board Mod
Post by: 2pac on March 18, 2008, 03:47:45 PM
try reading the other pots in the thread?

Modify the post.template.php changes to make the box "post as yourself" default to "checked"

yes, I read every post.... but I would really like to set it up the way I described it. I just think it seems a little bit more professional the way I described it, instead of having them to uncheck a box.

anyway, I can understand it its too hard to implement, or if you're just not interested. either way, thank you for a great mod! :)
Title: Re: Anonymous Board Mod
Post by: Kindred on March 18, 2008, 05:53:35 PM
well, the change would be more complicated than it first seems, because the variable is used in a few places.

I don't plan to released a modified version of the mod at this time...  except to upgrade the mod to 2.0 code.  However, if it occurs to me when I am updating it for 2.0, I may add an admin choice.  we'll see...
Title: Re: Anonymous Board Mod
Post by: rumfa on March 27, 2008, 07:24:47 PM
Can you make the same stuff for a singel topic so when i make a new topic, that a have the same option as in board (make this topic anonymous).
There are sometimes only single topics witch better to make anonymous for the normal users, Rather then making the whole broad anonymous.
Good mod by the way, once again ;)

Title: Re: Anonymous Board Mod
Post by: Kindred on March 27, 2008, 07:52:38 PM
it might be possible... but again, beyond what I intend this mod for.

This mod serves a specific purpose: Allow a board to be set for anonymous posting. That's all it does, and that's all I intend it to do.
Title: Re: Anonymous Board Mod
Post by: soyabiatch on April 02, 2008, 02:54:49 AM
Is this available for smf 2.0? I tried to install it and failed almost all tests.
Title: Re: Anonymous Board Mod
Post by: Kindred on April 02, 2008, 07:19:20 AM
I have not updated it for 2.0 yet.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 11:36:13 AM
Hiya :) Nice mod, the folks on my forum like it, and I don't hate it either :P

But - after I installed this, and made one of our child-boards anonymous and open for registered users only,
I've had a few errors on my log from that board...

They all indicate an Undefined index: url
in /Sources/Subs.php
Lines, 3177, 3164, and 3161. All those lines seem to have something to do with avatars.

Lines 3160-3182:
Code: [Select]
// Figure out the avatar... uploaded?
if ($user_info['avatar']['url'] == '' && !empty($user_info['avatar']['ID_ATTACH']))
$context['user']['avatar']['href'] = $user_info['avatar']['custom_dir'] ? $modSettings['custom_avatar_url'] . '/' . $user_info['avatar']['filename'] : $scripturl . '?action=dlattach;attach=' . $user_info['avatar']['ID_ATTACH'] . ';type=avatar';
// Full URL?
elseif (substr($user_info['avatar']['url'], 0, 7) == 'http://')
{
$context['user']['avatar']['href'] = $user_info['avatar']['url'];

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
if (!empty($modSettings['avatar_max_width_external']))
$context['user']['avatar']['width'] = $modSettings['avatar_max_width_external'];
if (!empty($modSettings['avatar_max_height_external']))
$context['user']['avatar']['height'] = $modSettings['avatar_max_height_external'];
}
}
// Otherwise we assume it's server stored?
elseif ($user_info['avatar']['url'] != '')
$context['user']['avatar']['href'] = $modSettings['avatar_url'] . '/' . htmlspecialchars($user_info['avatar']['url']);

if (!empty($context['user']['avatar']))
$context['user']['avatar']['image'] = '<img src="' . $context['user']['avatar']['href'] . '"' . (isset($context['user']['avatar']['width']) ? ' width="' . $context['user']['avatar']['width'] . '"' : '') . (isset($context['user']['avatar']['height']) ? ' height="' . $context['user']['avatar']['height'] . '"' : '') . ' alt="" class="avatar" border="0" />';
Title: Re: Anonymous Board Mod
Post by: Kindred on April 03, 2008, 12:48:37 PM
I have never seen that error with this mod before
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 12:59:08 PM
I've never seen that error before :) And it only comes up on the anonymous board. So I'm pretty confident it has something to do with this mod. Could be a conflict with some other mod though... *think*

Installed is:

 Mod Name Version 
1. Admins Can Post As Alternative User 1.0
2. Case Insensitive Smileys 1.0
3. Enable/Disable Themes 1.0.2
4. Googlebot & Spiders Mod 2.0.3
5. Karma Description Mod 2.3
6. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1
7. vReportBoard Mod 1.03
8. Moderator Activity Report for SMF1.1.2 1.2
9. No Spam by Guests! 0.2
10. Spoiler Tag 0.3.2
11. Centerfold World 1.0 (avatarpack)
12. Member posts recount 0.5
13. Auto Embed Video Clips 2.1.4
14. Anonymous Boards 0.3b
Title: Re: Anonymous Board Mod
Post by: Kindred on April 03, 2008, 03:26:09 PM
the problem is... I don't modify THAT code at all in this mod....
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 03:38:18 PM
Strange... Really, since it really is isolated to the anonymous board alone. But I'll have to try and dig in to this then.. Try to find what actually triggers the error...
Title: Re: Anonymous Board Mod
Post by: rumfa on April 13, 2008, 11:59:46 AM
HEy, isn't it to much asked for the following (no need for a mod, just some hints where to change the code):

Now you check in order to post WITH A NAME (if the borad i set to anonymous) and the default is anonymous. But for my forum, and some I saw, i would be more conveniant to have this same mod but inverted. Only when you check the box , to post anonimoulsy.

So in fact everything stays the same, only the "make this board anonimous" does't have effect till you check the box "post anomimosly" underneath the post for example.
Title: Re: Anonymous Board Mod
Post by: rumfa on April 14, 2008, 02:52:08 AM
Actually the think i am asking for could be done in a much more simpeler way. What is the code i need to add, to make the box underneath the post cheked ON. Is that way everyabodys name would be shown, unless UNchecked. IT's more sompeler than my first question i think.
Title: Re: Anonymous Board Mod
Post by: Kindred on April 14, 2008, 08:03:15 AM
Change the code in post.template.php to add a "CHECKED" in the checkbox tag.
Title: Re: Anonymous Board Mod
Post by: rumfa on April 14, 2008, 08:35:56 AM
OK..thanks. To clarify for the rest.

For the ones that are using the anonymous mod only when needed, you can make the default display your name unless UNchecked.

Find post.template.php
Code: [Select]
<input type="checkbox" name="post_unanon" />
Change in:
Code: [Select]
<input type="checkbox" checked name="post_unanon" />
It would be good to add a make this topic anonymous for the admins. But that can wait, this mod i good as well.

Cheers
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on April 14, 2008, 11:03:47 AM
It would be good to add a make this topic anonymous for the admins. But that can wait, this mod i good as well.
http://custom.simplemachines.org/mods/index.php?mod=1123 ? :)

Or did you mean a completely anonymous topic, as in all who post are anonymous?
Title: Re: Anonymous Board Mod
Post by: rumfa on April 14, 2008, 01:04:22 PM
I didn't try It butt i will test on teh locals and see if it is what I mean what you mean :D.
I meant to downsize the anonymity. In place to make the whole board anonymous, that the admin has the option to start an anonymous topic.
Board is quite big to make anonymous, that's why. But this tweak will do the job quite fine for now.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 11:40:03 AM
Ok, I believe I've gone through the package 10 times with the parser, and have found nothing that would account for this. Maybe you could help me with this. After a large upgrade to 1.1.5 I installed this again with a few other mods,
now pretty much when ever anyone makes a new thread, regardless if it is a normal thread or one with a poll, I get this in the logs:

8: Undefined index: anonymousBoard
File: /var/www/vhosts/***/httpdocs/Themes/default/languages/Post.english.php (main sub template - eval?)
Line: 631

No such line in Post.english.php

After I disabled eval:

8: Undefined index: anonymousBoard
File: /var/www/vhosts/***/httpdocs/Themes/default/Post.template.php
Line: 631

Code: [Select]
if ( $context['anonymousBoard'] )
and

8: Undefined index: anonymousBoard
Tiedosto: /var/www/vhosts/***/httpdocs/Sources/Post.php
Rivi: 1070

Code: [Select]
if ( $context['anonymousBoard'] && !isset($_POST['post_unanon']) )
So, any ideas would be welcome, since I really like the mod, but don't want to be deleting errors every other hour. :)
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 11:53:55 AM
Also noticed, that If I make a new thread on the anonymous board, it doesn't give the option to post with my own name, but automatically posts with my real nick. If I'm inside a thread already created before, I can post as anonymous, and it does give the option of posting with my own nick...
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 12:49:08 PM
lex...

the undefined means that something is missing. The system never defined what that content sub-section is... I'll try to look at it next weekend.

regarding your last question... I'm not sure I understand.  The mod offers Anonymous or not-anonymous. If not-anonymous, then use the user's screen name, just like any other post.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 01:10:22 PM
Yep, I know what the undefined means. But I could not locate what was missing. It does the same regardless of language (I have english and finnish installed)

It works perfectly when I post to a thread someone else has opened, then I can post anonymous, and have the option to post with my real nick. But, If I try to open a new thread, it automatically posts with my real nick, and doesn't show the option.

1: Replying on board 69 (Anonymous board)
 (http://img137.imagevenue.com/loc618/th_07274_replying_122_618lo.jpg) (http://img137.imagevenue.com/img.php?image=07274_replying_122_618lo.jpg)
* Does not create an error in the log * - Posts anonymously by default.

2: Opening a new thread on board 69 (Anonymous board)
 (http://img237.imagevenue.com/loc160/th_07275_newtopic_122_160lo.jpg) (http://img237.imagevenue.com/img.php?image=07275_newtopic_122_160lo.jpg)
* creates errors, see below * - Posts with my profile information.

Code: [Select]
index.php?action=post;board=69.0 
8: Undefined index: anonymousBoard
File: /var/www/vhosts/apachefoorumi.net/httpdocs/Themes/default/Post.template.php
Line: 631
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 01:15:59 PM
hmmm.... it looks like only half the mod got installed into the post section of code (post new and reply are two different functions)

-edit for explanation- the issue you are describing makes sense if the anonymous code was added into the reply section, and not the post section, since - if there is no option to make a first post anon, the system will obviously use your display name when you post it.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 01:18:07 PM
I'll go through the code once more... Though I already believed I checked everything out...
I'll be back to tell you if I found something.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 01:30:19 PM
-edit for explanation- the issue you are describing makes sense if the anonymous code was added into the reply section, and not the post section, since - if there is no option to make a first post anon, the system will obviously use your display name when you post it.
Is that other edit supposed to already be included in this mod?
Since I just downloaded a fresh copy to make sure I didn't have corrupted copy or anything,
and these are the only post.php and post.template.php edits it shows:

 (http://img141.imagevenue.com/loc550/th_08570_Post_122_550lo.jpg) (http://img141.imagevenue.com/img.php?image=08570_Post_122_550lo.jpg)

And both are included in my files. Or I'm a looking at the wrong direction?
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 01:42:07 PM
hmmm....   It might be the difference between 1.1.4 and 1.1.5

Those WERE the correct edits....

wait...   did you make the change in Load.php?
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 01:51:49 PM
I'll doublecheck that as well.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 02:02:22 PM
I'll doublecheck that as well.
Should be there. The files attached if you want to see them.

These mods are as well installed on our forum:

1. Case Insensitive Smileys 1.0
2. Member posts recount 0.5
3. Spoiler Tag 0.3.2
4. Anonymous Boards 0.3b
5. Admins Can Post As Alternative User 1.0
6. Karma Description Mod 2.3
7. vReportBoard Mod 1.03
8. Auto Embed Video Clips 2.2
9. Reg Bar 1.0.2
10. Enhanced Quick Reply Box 2.0.2 2.0.2

All these used to work ok together in 1.1.4
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 02:59:09 PM
hmmmm...  actually, looking at the code, I see a better way to do it than the way I did originally.

I'm going to take a crack at revising the mod over the weekend (and possibly do a version for 2.0 at the same time.)
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 03:00:38 PM
No hurry - I'm all for waiting, if it means better results. :D
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 03:05:05 PM
side note...   I looked at your code, and I don't see anything that jumps out at me.  However, I have not tested in conjunction with other posting mods, and I can imagine potential conflicts with  the Admins Can Post As Alternative User mod, since it also adjusts the poster's information.
Title: Re: Anonymous Board Mod
Post by: Aleksi "Lex" Kilpinen on May 05, 2008, 03:07:45 PM
I'll just have to test how it works out if I remove it then...
Title: Re: Anonymous Board Mod
Post by: 2pac on May 05, 2008, 03:58:38 PM
any chance of seeing this in 2.0 beta?
Title: Re: Anonymous Board Mod
Post by: Kindred on May 05, 2008, 03:59:40 PM
hmmmm...  actually, looking at the code, I see a better way to do it than the way I did originally.

I'm going to take a crack at revising the mod over the weekend (and possibly do a version for 2.0 at the same time.)
Title: Re: Anonymous Board Mod
Post by: 2pac on May 05, 2008, 04:02:10 PM
lol
Title: Re: Anonymous Board Mod
Post by: Se7enIIIX on June 06, 2008, 11:18:26 PM
Any updates for this mod? I have version 1.1.5 and it seems this only works for 1.1.4 and lower. I installed it but when I check a forum to be anonymous it does not set properly =(
Title: Re: Anonymous Board Mod
Post by: Kindred on June 08, 2008, 02:48:49 PM
hmmmm... it works correctly on my 1.1.5 install.....   I'll look at it next weekend.
Title: Re: Anonymous Board Mod
Post by: kquinn on June 16, 2008, 09:09:38 PM
I am VERY new to running a forum, so please bear with me and my stupid questions.

 ;D

I am running SMF 1.1.5 and I have installed this mod.  It works correctly, but there is no words next to the little box you check to UN-ANON yourself in the forum, so my members don't see it is there and are posting anon when they don't mean to.

Can someone give me the code I need to fix this?  Like the posts I've seen that say "find this code" and "replace with this code" ... thats pretty much the only way I can fix it cuz I just don't get it otherwise.

Thank you!
Title: Re: Anonymous Board Mod
Post by: Kindred on June 16, 2008, 09:19:28 PM
look in modifications.english.php and add the same strings to modifications.<yourlanguage>.php
Title: Re: Anonymous Board Mod
Post by: kquinn on June 16, 2008, 09:34:59 PM
 :( I have no idea what that means.  (Told you I was new to this).
Title: Re: Anonymous Board Mod
Post by: Kindred on June 17, 2008, 07:45:27 AM
I'm not sure how to say it any simpler....

you are obviously not using English as a language (English UTF-8 is different from English). Mods for 1.1.x only install in English by default.

So, look in the file modifications.english.php. Find the anonymous board mod text strings and copy them into the modifications.XYZ.php file for whatever language your are using.
Title: Re: Anonymous Board Mod
Post by: kquinn on June 17, 2008, 08:49:46 AM
OK, I think that helped.  Off to try. Thank you.
Title: Re: Anonymous Board Mod
Post by: shanniberry on June 17, 2008, 02:51:39 PM
This was the fix...just had to add the code to Modifications.english-utf8.php from Themes/default/languages/
Title: Re: Anonymous Board Mod
Post by: dillon on July 13, 2008, 02:10:35 PM
I am looking to have an anonymous section (with the option to post using user names) and the rest of the forum having a default of posting with your user name with an option to post anonymously. 

Is there a way of accomplishing this?  I noticed some code was suggested earlier but I'm unsure if that would change the entire structure of the board and basically I want 2 types of boards.....one defaulting to post anonymous and one defaulting to posts with user names.
Title: Re: Anonymous Board Mod
Post by: Kindred on July 14, 2008, 07:44:47 AM
The way this mod is set up, you get one way.

The mod (as written) has the board default to anonymous and allow username on checkbox.
I posted code earlier indicating how to change that to default to username, but allow anonymous on checkbox.


allowing either/or on a by-board basis would require rewriting the mod...   and I may consider it for the next release, (after 2.0RC is released... )
Title: Re: Anonymous Board Mod
Post by: nopity4u on July 20, 2008, 10:27:49 PM
Just wanted to stop in to say nice mod. I had to change around Subs-Boards a little bit as I had installed ColorizeBoards. But it's working perfectly. I am running an NFL fansite and I wanted my users to have a place to trash talk without exposing themselves. This fit the bill exactly.
Title: Re: Anonymous Board Mod
Post by: asmith on July 29, 2008, 05:34:44 AM
I have SMF 1.1.5 . the test fails in load.php :/
Title: Re: Anonymous Board Mod
Post by: Kindred on July 29, 2008, 07:22:58 AM
posibly you have another mod that modified load.php.

You will have to follow the manual install instructions.
Title: Re: Anonymous Board Mod
Post by: pluck3k on August 15, 2008, 01:56:27 PM
There's a good possibility I'm missing something but when I try to install the mod it says everything went fine, but it makes no modifications to any code that I can tell.  The one snippet you posted somewhere in this thread ( a change it made to post.php) wasn't made on my install, so I'm assuming none of the others are since there is no functionality at all, no change in view or anything.

This is the first mod I've installed, so I may have something poorly configured.  I noticed that the temp files all have 666 access.
Title: Re: Anonymous Board Mod
Post by: Kindred on August 16, 2008, 12:56:56 PM
Are you running the default theme and in English language? (note: English UTF-8 is different form English)

SMF Version?
Title: Re: Anonymous Board Mod
Post by: nbviv on September 26, 2008, 04:47:33 PM
I force all users to post anonymously, you have to edit post.template.php. What if you have like 10 themes? Is there an easier way to force anonymity than editing all 10 files?
Title: Re: Anonymous Board Mod
Post by: Kindred on September 26, 2008, 09:14:35 PM
not with the way the mod is currently designed.
Title: Re: Anonymous Board Mod
Post by: Erbros on September 27, 2008, 04:52:08 PM
Any chance this will be updated for smf 2.0 b4?
Title: Re: Anonymous Board Mod
Post by: Kindred on September 27, 2008, 06:49:36 PM
not much...

I will definitely update it when 2.0 is out of beta.
Title: Re: Anonymous Board Mod
Post by: Asshandler on October 29, 2008, 03:17:16 PM
Mod installed fine on 1.1.6, however, when I click to make a board anonymous, it does not save the change.

When i go back in to look, the box remains unchecked.

What might the issue be?
Title: Re: Anonymous Board Mod
Post by: Kindred on October 29, 2008, 06:59:21 PM
what browser?
Title: Re: Anonymous Board Mod
Post by: Crankie Yankee on January 05, 2009, 06:07:26 PM
Mod installed fine on 1.1.6, however, when I click to make a board anonymous, it does not save the change.

When i go back in to look, the box remains unchecked.

What might the issue be?
what browser?

I have the same exact problem as Asshandler and my browser is Microsoft Internet Explorer. It is the lastest version which I think is MSIE 9.0. This mod would be an awesome addition to my forum so I hope there is a quick fix for this problem. Any help would be greatly appreciated.
Title: Re: Anonymous Board Mod
Post by: Kindred on January 05, 2009, 09:24:28 PM
there is no IE9...    IE7 is the current version and IE8 is in alpha/beta....
Title: Re: Anonymous Board Mod
Post by: Crankie Yankee on January 06, 2009, 12:40:14 AM
there is no IE9...    IE7 is the current version and IE8 is in alpha/beta....

LOL, OK I stand corrected but that doesn't help me at all.

I have uninstalled this mod and tried to reinstall it. When I did this I received an error message saying I must delete the package from my server. I deleted it from my server and tried to reinstall it through the admin. Now I get this screen:

(http://freeworldyachtclub.net/FYCimages/anonmodinstall.png)

I believe this is the screen I got when I originaly tried to install this mod but I went ahead and installed it anyway. It didn't seem to create any problems but it clearly didn't work properly due to not being able to save the change (make this board anonymous) when modifying a board through admin. I'm assuming this particular problem has to do with the ManageBoards.php but I'm clueless as to what to do to correct it.

Title: Re: Anonymous Board Mod
Post by: Kindred on January 06, 2009, 08:27:14 AM
First of all, computers do not leanr by repetition. If something does not work, uninstalling and reinstalling will liely cause MORE problems than anything else.

second, well, if the files FAILED, then is it any wonder that the mod did not work correctly?

What you have to do is MANUALLY apply the mod to those files.   There are instructions on the mod site on the screen from which you downloaded the mod package...
Title: Re: Anonymous Board Mod
Post by: Crankie Yankee on January 06, 2009, 03:19:15 PM
OK, easy enough but if the mod automatically installed properly there wouldn't be a problem in the first place. Especially when using the SMF core default theme. It has been my experience that I have installed over 100 third party mods on my forum with ease as they have all been "plug and play" so to speak. This mod, being as simple a mod as it is, leaves very little to be desired by the not so suave forumer. Of course if I don't want to use it I don't have to go through the trouble of manually installing it, but isn't one of the purposes of a support thread to get feedback from users so you could try and develop an updated version of the install file that works properly or am I missing something? I deleted this mod and reinstalled it so I could give you the exact scenario of the problem I have been having NOT to actually try to install it again. Does that answer your question? Now try answering mine.
Title: Re: Anonymous Board Mod
Post by: Kindred on January 06, 2009, 08:48:23 PM
well, it worked correctly and installed on the forum version when I built it. :P

I'll update it for 2.0 when RC1 is released.
Title: Re: Anonymous Board Mod
Post by: Crankie Yankee on January 07, 2009, 05:55:03 PM
well, it worked correctly and installed on the forum version when I built it. :P

I'll update it for 2.0 when RC1 is released.

No, don't bother Mr. Support Specialist! I'll do it myself.
Title: Re: Anonymous Board Mod
Post by: Kindred on January 07, 2009, 06:28:09 PM
well, it is my mod... and I WILL release a new version when 2.0 comes out to RC1
Title: Re: Anonymous Board Mod
Post by: dpiffy on January 29, 2009, 03:53:22 AM
well, it worked correctly and installed on the forum version when I built it. :P

I'll update it for 2.0 when RC1 is released.

Speaking of which, you being more so a staff member on here basically, do they have a timeline on this RC1?  I have been wandering when a newer update / final release comes out.
Title: Re: Anonymous Board Mod
Post by: mattchewone on February 11, 2009, 09:43:55 AM
Will your new release be compatable with 2.0beta?
Title: Re: Anonymous Board Mod
Post by: Kindred on February 11, 2009, 01:05:51 PM
no...   2.0 RC1 and above
Title: Re: Anonymous Board Mod
Post by: BYTE-Smasher on February 19, 2009, 07:45:06 PM
So like.... now?  ;)
Title: Re: Anonymous Board Mod
Post by: soyabiatch on February 19, 2009, 09:35:49 PM
please.
Title: Re: Anonymous Board Mod
Post by: freejgfan on February 19, 2009, 11:33:44 PM
Question - my forum members noticed that they could not edit or delete their posts in the anonymous board. Is this a feature of the anonymous board mod? Because elsewhere, in the regular forums, they are able to edit and delete their posts. Any suggestions?
Title: Re: Anonymous Board Mod
Post by: Kindred on February 19, 2009, 11:35:30 PM
I am currently working on re-releasing the PhatCalPack mod  (2 more weeks)

Once I am done that, I will focus on and re-release the anonymous board mod for 2.0


On the question of editing...  

Of course they can not edit or delete a post...   this mod removes the link that tells the system that THEY posted it.... so, unless they have rights to edit ANY post, they will not be able to edit an anonymous post.  There is no way around that...   It is the nature of making a post truly anonymous.
Title: Re: Anonymous Board Mod
Post by: freejgfan on February 19, 2009, 11:44:40 PM
Thank you, Kindred. And also FYI, the blabberizer mod does not work in the anonymous forum. But I can work around that when I have to blabberize someone.
Title: Re: Anonymous Board Mod
Post by: mattchewone on February 20, 2009, 05:21:45 AM
Kindred, is there a way to show the posters username to only the admin/mods?

So that if i chose to use the anonymous board for a competition board, normal posters cannot see who posted what for the competition but us the admin/mods can see who posted to choose who goes into the finals etc.

Thanks

Matt
Title: Re: Anonymous Board Mod
Post by: Kindred on February 20, 2009, 07:34:38 AM
not with this mod....    this mod removes all of the poster information, although it does leave the IP address (for potential legal reasons)

The reason that I built this mod was so that posters could post truly anonymously without fear of staff retribution.
Title: Re: Anonymous Board Mod
Post by: mattchewone on February 20, 2009, 10:13:03 AM
Could you perhaps create a seperate mod that does the exact same but allows the admin and if the permissions set the mods to view who posted.

So its only anonymous to the members but we can see so we can pick the winners etc.
Title: Re: Anonymous Board Mod
Post by: Kindred on February 20, 2009, 04:03:23 PM
we'll see....   but unlikely in the short term.

I mostly make mods to suit my own sites' needs and then make them available for others to use (if they are useful)
Title: Re: Anonymous Board Mod
Post by: Darkness_ on March 04, 2009, 01:37:43 PM
Will it take long time before the upgrade to 2.0 RC1 will be available
Title: Re: Anonymous Board Mod
Post by: JrGirl on March 27, 2009, 08:42:48 PM
Is this getting any closer to completion?   Just checking and thanks for the information in advance!
Title: Re: Anonymous Board Mod
Post by: soyabiatch on March 28, 2009, 06:11:40 AM
this is the mod I am waiting for before I upgrade to RC1 :)
Title: Re: Anonymous Board Mod
Post by: Kindred on March 28, 2009, 07:51:32 AM
I know that I have been delayed...   I hope to have a beta version this coming week (April 2)
Title: Re: Anonymous Board Mod
Post by: soyabiatch on April 22, 2009, 07:09:19 PM
any news on an update yet?
Title: Re: Anonymous Board Mod
Post by: Goodman854 on May 02, 2009, 12:11:58 AM
3.     Execute Modification     ./Sources/ManageBoards.php     Test failed
4.    Execute Modification    ./Sources/Subs-Boards.php    Test failed

I even manually did it and same result tick off box and it auto unticks. I have SMF Shop as well. THis needs to be fixed before u even think about 2.0 RC
Title: Re: Anonymous Board Mod
Post by: Kindred on May 02, 2009, 02:11:52 AM
hmmm... it works fine for me on 1.1.8, so I would have to assume that it's a conflict with one or more other mods.

For those of you waiting...   I have a beta version 0.4 for SMF 2.0RC1.
I would like 2-3 testers before I submit the mod update to the mod site for general usage.
Title: Re: Anonymous Board Mod
Post by: Goodman854 on May 02, 2009, 01:00:57 PM
I have SMF Shop Any way you could make it work with that? Because SMF Shop is in 2.0 as well and good luck making it work then.
Title: Re: Anonymous Board Mod
Post by: Kindred on May 02, 2009, 01:23:35 PM
Well,   if you installed the previous version on 2.0 RC1. it's no wonder the mod doesn't work...     Coding has changed significantly between 1.1.x and 2.0 and the previous mod was ONLY intended to work on 1.1.x


The new version works for me on 2.0, but I need some additional testers.
Title: Re: Anonymous Board Mod
Post by: Goodman854 on May 03, 2009, 11:30:47 PM
What are u talking about? I use 1.1.8 And if you can't make it work there with out conflicitng with SMF BUY then how the hell will u ever manage on 2.0?
Title: Re: Anonymous Board Mod
Post by: Kindred on May 04, 2009, 08:38:27 AM
excuse me?   That is rather rude.

Like other mod authors, I make no promises that this mod will work in combination with any other mod. My only goal, at this time, is to make it work on SMF 2.0 "out of the box", which I believe that I have done.
I have it working on my forum, but I need beta testers.

As for 1.1.x. The previous version works on 1.1.x. I've been using it on SMF 1.1.x versions since I released the mod up to 1.1.8 which I am currently running on one of my forums. 

I *COULD* look at your issue and see where the intersects with the other mod are (I suspect that you mis-installed) however, rudeness is not the way to convince me to do extra work for you...   especially since I have set the 1.1.x version into sunset mode.
Title: Re: Anonymous Board Mod
Post by: Goodman854 on May 04, 2009, 05:47:17 PM
Rude? Ha saw that one comming. No offence but from reading what you said to the rest of the people ABOVE sounded prity rude. Might as well give back the love right? If i'm mistaken then sorry but I would much like for you to try to look into the problem. It would be greatly appericated.

EDIT: I think its your avatar give me a sense of rudeness no offense Just throws me off. I'll adblock it.

EDIT2: yea i think its your avatar. Hard week as well for me. Sorry

EDIT3: you sure wanan push 2.0 version why? 2.0 sucks nothing works with it SMF Shop (the program that likely confluicting with yours in my forum IS ALSO on 2.0 so either way people wont be able to use it!!!!!)
Title: Re: Anonymous Board Mod
Post by: Kindred on May 04, 2009, 06:09:57 PM
My avatar?  How odd...


2.0 is much better than 1.1.x...   I am currently using it on one of my forums and an switching my other forum over this weekend.

As for SMF Shop...   as I said, the code in 2.0 is significantly different, therefore I have no idea how it will interact. (and since I don't ever plan to run the shop myself...)

As I said, I am sunsetting the 1.1.x version. If you PM me an admin login for your system and FTP info, I will try to take a look at your site next weekend.
Title: Re: Anonymous Board Mod
Post by: Goodman854 on May 04, 2009, 11:01:32 PM
ok.
Title: Re: Anonymous Board Mod
Post by: Sman1400 on May 10, 2009, 11:23:57 PM
the 2.0 RC1 version being released anytime soon??

if you still need beta testers drop me an email

Sman1400 [at] hotmail . com
Title: Re: Anonymous Board Mod
Post by: Jackson Cage on June 07, 2009, 11:04:24 PM
Since I upgraded to 1.1.9 you can't seem to start a post anonymously but you can reply as such. Any ideas ?
Title: Re: Anonymous Board Mod
Post by: leezard on July 24, 2009, 05:17:03 PM
just wondering if this is still in the works, have a lot of requests for this on a new forum i threw together
Title: Re: Anonymous Board Mod
Post by: soyabiatch on October 30, 2009, 06:27:23 PM
hi, any news on the 2.0 version. I need this mod to upgrade my forum
Title: Re: Anonymous Board Mod
Post by: Kindred on October 30, 2009, 08:53:39 PM
sorry... I built a version, but my ZIP seems to have gotten corrupted and failed to extract every time.

I am currently re-doing it for RC2 as I upgrade my own sites. Give me a week or so to finish that up.
Title: Re: Anonymous Board Mod
Post by: Sman1400 on November 02, 2009, 01:24:12 PM
yayyyy lol
Title: Re: Anonymous Board Mod
Post by: fatesjoke03 on November 11, 2009, 07:22:54 PM
Any news on this? I am really looking forward to this awesome mod to appear in 2.0. I loved it in 1.0 and can't wait to have it back up and running.
Title: Re: Anonymous Board Mod
Post by: Sman1400 on December 07, 2009, 09:34:04 PM
Any news on this? I am really looking forward to this awesome mod to appear in 2.0. I loved it in 1.0 and can't wait to have it back up and running.

Same here, been waiting for it along time :P
Title: Re: Anonymous Board Mod
Post by: Shorti25 on December 08, 2009, 08:40:01 PM
we need this mod for smf2.0 too

help please
Title: Re: Anonymous Board Mod
Post by: skper on December 13, 2009, 10:03:32 PM
How can I add the option to post anonymously on quick reply within anonymous boards?
Title: Re: Anonymous Board Mod
Post by: Kindred on December 14, 2009, 12:10:06 AM
not sure off the top of my head...   but I do not plan to include that in the 2.0 release...

Quick replay, IMO should never have any options...   
Title: Re: Anonymous Board Mod
Post by: skper on December 18, 2009, 09:35:05 AM
I understand that you feel that way but my forum could really use this.  We have a very busy anonymous section and this would be a great feature.  Would you consider helping me with the alterations I would need to make to make this happen?
Title: Re: Anonymous Board Mod
Post by: Kindred on January 18, 2010, 10:04:24 PM
Update: (For the love of all gods, would the world please slow down?)

I have recently taken on some specialized tasks with the teams here at simplemachines. In addition my RL job has gotten busier and my RL family takes priority over everything else.

Although this is a simple mod, I just do not have the time right now to re-write it for 2.0.
If someone else wants to take over the development and support of this mod, I am willing to turn it over to that individual.
Title: Re: Anonymous Board Mod
Post by: dillon on March 22, 2010, 08:42:58 PM
I am willing to pay to have this mod made for 2.0.  Any takers?  :)
Title: Re: Anonymous Board Mod
Post by: SikLiFe on May 26, 2010, 05:02:31 AM
I w
Update: (For the love of all gods, would the world please slow down?)

I have recently taken on some specialized tasks with the teams here at simplemachines. In addition my RL job has gotten busier and my RL family takes priority over everything else.

Although this is a simple mod, I just do not have the time right now to re-write it for 2.0.
If someone else wants to take over the development and support of this mod, I am willing to turn it over to that individual.

I would love to, Send me a message when your available (:
Title: Re: Anonymous Board Mod
Post by: Kindred on May 26, 2010, 08:11:44 AM
siklife,

go ahead and make your modifications. Send me the results and I will switch the system to recognize you as the author.
Title: Re: Anonymous Board Mod
Post by: stopthere on August 12, 2010, 10:26:24 PM
just wondering if there is anything new with this mod? I want to upgrade to 2.0 but can't without the anon board feature  :(
Title: Re: Anonymous Board Mod
Post by: Bugo on September 01, 2010, 06:31:37 AM
Try this package. Perfectly works on SMF 1.1.11 and 2.0 RC3.
Supported languages: English, Russian, Ukrainian.



-edit - attachment removed, see below.
Title: Re: Anonymous Board Mod
Post by: Kindred on September 01, 2010, 06:58:06 AM
Bugo,

I put this mod up for grabs... but you never contacted me about taking over.
Siklife did, but then never moved on it...   However, you should *NOT* include an attachment to update a mod. You should always contact the author and ask if you can take over the mod and thus get the mod officially turned over to you and reviewed by the customization team instead of bypassing the normal procedure.

Pending this, I have removed your attachment.
Title: Re: Anonymous Board Mod
Post by: Bugo on September 01, 2010, 10:00:59 AM
Thanks for the bureaucracy.
Title: Re: Anonymous Board Mod
Post by: Kindred on September 01, 2010, 10:05:46 AM
you're welcome. We have rules for a reason.
Title: Re: Anonymous Board Mod
Post by: Paul_Pauline on September 27, 2010, 07:30:05 AM
Hi Guyz !


This mod parses for 1.1.11  :)

I was wondering if anyone has installed this on 1.1.11, and if they've encountered any problems ?

Thanks, Paul.
Title: Re: Anonymous Board Mod
Post by: dillon on September 27, 2010, 07:42:04 AM
I have it running on 1.1.11, no problems at all.
Title: Re: Anonymous Board Mod
Post by: Paul_Pauline on September 27, 2010, 08:08:46 AM
That's good   :)

Is there any way to remove the word "Guest" from underneath the word "Anonymous"

So all that is there is Anonymous in the post
Title: Re: Anonymous Board Mod
Post by: Kindred on September 27, 2010, 10:43:34 AM
not easily...   What this mod currently does is to remove the username and user number from the post....   SMF determines that any user with a user number of NULL or 0 is "Guest"
Title: Re: Anonymous Board Mod
Post by: Paul_Pauline on September 27, 2010, 12:29:18 PM
Yeah, I can understand the reasoning behind that.

I was just wondering, as it appears that it is a guest posting, rather than an anonymous member.

Thanks for the reply  ;)
Title: Re: Anonymous Board Mod
Post by: Kindred on September 27, 2010, 12:35:56 PM
well, the option would be to change the mod a little....


Set the UserID to a target number instead of zeroing out the userID,
set up an anonymous user account that belongs to a group which actually has no rights in and of itself (i.e. all permissions= deny)
note the userID
change the code to set that number instead of "0"
Title: Re: Anonymous Board Mod
Post by: Paul_Pauline on September 27, 2010, 12:47:25 PM
I'll have a play about with that when I get a minute   :D
Title: Re: Anonymous Board Mod
Post by: stopthere on October 03, 2010, 06:13:26 AM
I can't believe no one has taken it on to update to use with 2 :(
Title: Re: Anonymous Board Mod
Post by: sodmanccc on November 22, 2010, 09:32:34 PM
hello Kindred,

this is a highly used mod with over 30,000 downloads.. is there any support for smf 2.x?

i dont see any.. would it be possible?



Title: Re: Anonymous Board Mod
Post by: Bugo on November 23, 2010, 01:22:15 AM
http://www.simplemachines.org/community/index.php?topic=204149.msg2768873#msg2768873
Title: Re: Anonymous Board Mod
Post by: sodmanccc on November 24, 2010, 12:52:58 AM
Bugo,

I put this mod up for grabs... but you never contacted me about taking over.
Siklife did, but then never moved on it...   However, you should *NOT* include an attachment to update a mod. You should always contact the author and ask if you can take over the mod and thus get the mod officially turned over to you and reviewed by the customization team instead of bypassing the normal procedure.

Pending this, I have removed your attachment.

so a user can make and release it but due to that over 60,000 downloads in total are out of luck??
not cool :(
Title: Re: Anonymous Board Mod
Post by: Kindred on November 24, 2010, 07:23:32 AM
did you even read my post other than the "I have removed..."?

I specifically stated that, if Bugo wanted to take over the mod and release an update, he should contact me and make arrangements to officially take it over and have it shifted to his authorship. Attachments in this thread are *NOT* the way to make a release.
Title: Re: Anonymous Board Mod
Post by: sodmanccc on December 06, 2010, 10:55:17 PM
did you even read my post other than the "I have removed..."?

I specifically stated that, if Bugo wanted to take over the mod and release an update, he should contact me and make arrangements to officially take it over and have it shifted to his authorship. Attachments in this thread are *NOT* the way to make a release.
right does not change the fact.

so a user can make and release it but due to that over 60,000 downloads in total are out of luck??
not cool :(

Title: Re: Anonymous Board Mod
Post by: dillon on December 06, 2010, 10:59:48 PM
Another vote here.  My forum reached over 7,000 members with this mod, they are completely addicted to it.  I'm stuck in the dark ages with 1.1.11 until this mod makes the move. 
Title: Re: Anonymous Board Mod
Post by: Kindred on December 06, 2010, 11:48:02 PM
... should contact me and make arrangements to officially take it over and have it shifted to his authorship. Attachments in this thread are *NOT* the way to make a release.


YES, it does change the fact.  NO ONE HAS EVER ACTUALLY CONTACTED ME about taking over this mod. I am willing to transfer ownership, but that person needs to take over being owner, and support....    and attachments in the thread are not the way to do it.
Title: Re: Anonymous Board Mod
Post by: Bugo on December 07, 2010, 02:28:46 AM
Kindred, I don't want take over the mod, I just wanted help you with updating to SMF 2, because you have no time for this.
Title: Re: Anonymous Board Mod
Post by: memiller on January 19, 2011, 05:11:30 PM
Kindred,
  I am having the same problem that was described back on reply 61. I installed the mod. For a while, it was working but last week, now the only way to post anon is if you reply to an existing post. If you try to start a new topic, it posts with your name and doesn't show the "Post this message with your username (NOT ANONYMOUS)" check box. I manually checked the install, and it is correct. We are using SMF 1.1.12.

The error is similar too:
"Notice: Undefined index: anonymousBoard in /usr/local/www/apache22/data/*****/forum/Themes/default/languages/Post.english.php (main sub template - eval?) on line 624"

Post.english.php only has 186 lines, so that's kind of weird.

I read through this thread, but didn't really see a solution. Would you be willing to revisit this issue and perhaps give me some guidance? I am stuck.
Many thanks.

 Mark
Title: Re: Anonymous Board Mod
Post by: Kindred on January 19, 2011, 06:05:26 PM
out of the blue?


Did you perhaps add a new mod or a new theme?

I haven't looked at this mod in well over a year...   so I am unsure what issues still exist, but I swear I fixed that one.
Title: Re: Anonymous Board Mod
Post by: impreza on January 19, 2011, 06:09:06 PM
Great addition - I tested it, I greet and thank
Title: Re: Anonymous Board Mod
Post by: memiller on January 19, 2011, 06:43:39 PM
out of the blue?


Did you perhaps add a new mod or a new theme?

I haven't looked at this mod in well over a year...   so I am unsure what issues still exist, but I swear I fixed that one.

 To the best of my knowledge, no new mods were added. I changed some permissions to local to restrict some regular members on some stuff, and the problem appeared almost immediately after. The frustrating part is that I feel I should be able to figure this out. It is only failing on new topic posts. But it beats me where the context is being lost.


Title: Re: Anonymous Board Mod
Post by: Kindred on January 19, 2011, 07:51:59 PM
hmmm....   it may be a conflict with the local versus global permissions....    I never thought to test it on a board with local permissions.
Title: Re: Anonymous Board Mod
Post by: memiller on January 20, 2011, 11:46:45 AM
hmmm....   it may be a conflict with the local versus global permissions....    I never thought to test it on a board with local permissions.

I changed the board back to global permissions with no change in symptoms. I also tried adding guest account posting permissions as a test (didn't leave that long for obvious reasons), but also no change.

Mark
Title: Re: Anonymous Board Mod
Post by: Robin1989 on February 03, 2011, 12:47:08 PM
kindred i was wondering if someone had requested to take this over yet so that it could be updated as this mod would be perfect for my forum but im on 2.0.

or do you know of any paid alternatives as it is a mod i would pay a fair amount for
Title: Re: Anonymous Board Mod
Post by: Kindred on February 03, 2011, 02:22:28 PM
no one has approached me
Title: Re: Anonymous Board Mod
Post by: memiller on February 21, 2011, 01:50:10 PM
hmmm....   it may be a conflict with the local versus global permissions....    I never thought to test it on a board with local permissions.

I changed the board back to global permissions with no change in symptoms. I also tried adding guest account posting permissions as a test (didn't leave that long for obvious reasons), but also no change.

Mark

Kindred,
  I think I have figured out some of what's going on, but I have no idea how to fix it. I use APC for cache. Whenever the cache is set to any level of caching, I see the problem. Set to "No Cache" and the problem disappears and topics can be created anonymously again. Obviously, I would like to be able to use APC on SMF, but have it turned off as a workaround for now. This is a very odd interaction to my experience. Do you have any ideas on what may be the problem?

 By the way, since I haven't said it yet, thanks for this mod! Even with the issue we're banging on right now, it has been extremely useful.

  - Mark
Title: Re: Anonymous Board Mod
Post by: Kindred on February 21, 2011, 01:59:07 PM
That is odd.... I wonder why caching would interfere with this mod...

BTW: Try installing the mod for disabling the eval function....    that way we can see where the actual error is happening.
Title: Re: Anonymous Board Mod
Post by: live627 on February 21, 2011, 03:53:57 PM
or do you know of any paid alternatives as it is a mod i would pay a fair amount for
There is one for 20.00USD at http://dev.live627.com/ and is tested to work with SMF 2.0 RC3 and later.

If Kindred et al don't like this they can remove it.
Title: Re: Anonymous Board Mod
Post by: Kindred on February 21, 2011, 04:46:40 PM
hopefully that mod for sale is not using my coding... i am willing to let someone take the mod over... but never paid.
Title: Re: Anonymous Board Mod
Post by: live627 on February 21, 2011, 04:54:28 PM
hopefully that mod for sale is not using my coding
It's not... as I said back in August I wasn't aware of your mod
Title: Re: Anonymous Board Mod
Post by: memiller on February 22, 2011, 02:48:42 PM
That is odd.... I wonder why caching would interfere with this mod...

BTW: Try installing the mod for disabling the eval function....    that way we can see where the actual error is happening.


I have had that installed for a while.  I turn off eval and all I get is:

Notice: Undefined index: anonymousBoard in /usr/local/www/apache22/data/xxxxxxxx.org/forum/Themes/default/Post.template.php on line 624

Title: Re: Anonymous Board Mod
Post by: Kindred on February 22, 2011, 03:07:02 PM
and what are lines 620-625 of your post.template.php?
Title: Re: Anonymous Board Mod
Post by: memiller on February 23, 2011, 02:01:27 PM
Here are lines 613 to 633:

                // Show some useful information such as allowed extensions, maximum size and amount of attachments allowed.
                if (!empty($modSettings['attachmentCheckExtensions']))
                        echo '
                                                                        ', $txt['smf120'], ': ', $context['allowed_extensions'], '<$
                echo '
                                                                        ', $txt['smf121'], ': ', $modSettings['attachmentSizeLimit'$
                                                                </td>
                                                        </tr>';
        }

        // anonymous board mod
        if ( $context['anonymousBoard'] )
                echo '
                                                        <tr>
                                                                <td colspan="2">
                                                                        <b>' . $txt['Post_anonymous'] . '</b>
                                                                        <input type="checkbox" name="post_unanon" />
                                                                </td>
                                                        </tr>';



Line 624 is "        if ( $context['anonymousBoard'] )"

Title: Re: Anonymous Board Mod
Post by: Kindred on February 23, 2011, 03:36:39 PM
ah. I see the problem.

naughty me...  I just commented on the same error in someone else's mod.


that line should be...
if (!empty($context['anonymousBoard'] ))

that will stop the error, but won't fix the caused problem (which is that the board is not recognizing that you should be able to post anonymously)

The error basically means that the context value is not being set, since it is not set, the system sees it as undefined... but since it is not set, the system won't know that the board is set to be anonymous.

argh.

well....   I may just have to update the darned mod in order to get rid of the problems. lol

Title: Re: Anonymous Board Mod
Post by: Neek on February 23, 2011, 03:53:12 PM
man how come no one is willing to officially takeover this mod? there's demand for it!

if i had the know-how i would totally step up to the plate but i'm too dumb. if you're someone who has already supported it unofficially why not just do it officially? please?

wanting this for 2.0 RC5 badly...
Title: Re: Anonymous Board Mod
Post by: live627 on February 23, 2011, 07:17:20 PM
Did you see the first post on this page?

http://www.simplemachines.org/community/index.php?topic=204149.msg2963406#msg2963406
Title: Re: Anonymous Board Mod
Post by: memiller on February 25, 2011, 11:08:38 AM
Kindred:
 It is exactly as you predicted. After editing that line to check for empties, the error is no longer reported, but the symptoms remain the same: Anonymous works for replying to an existing topic, but starting a new topic throws the error.

 BTW, if you do find time to update the mod, it will make some folks very happy.

Thanks again,
  Mark
Title: Re: Anonymous Board Mod
Post by: summever on June 16, 2011, 10:59:23 PM
Hi there, I followed every step to update this mod, but i still got a error, which is said:

 $txt['makeBoard_anonymous']='Make this board anonymous?'; $txt['Post_anonymous'] = 'Post this message with your username (NOT ANONYMOUS)';
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in public_html/Sources/Subs-Boards.php on line 1519

what does it mean? Thank you so much!!
Title: Re: Anonymous Board Mod
Post by: Kindred on July 14, 2011, 08:57:25 AM
summever, sorry, I didn't see your post.
It looks like, however you did the edits, that your file is missing the newline between those statements. or perhaps missing a single quote in the line BEFORE that one.



For every one else....   GOOD NEWS!

JMV290 has agreed to take over this mod for 2.0! He says that he is close to getting his code updated and will be posting a 2.0 version shortly!   I have transferred the mod to his control (as you may note from the fact that he is now the original poster. :) )
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 14, 2011, 10:22:36 AM
For every one else....   GOOD NEWS!

JMB290 has agreed to take over this mod for 2.0! He says that he is close to getting his code updated and will be posting a 2.0 version shortly!   I have transferred the mod to his control (as you may note from the fact that he is not the original poster. :) )

AWESOME!!!!! My patience paid off. I see there's now a 2.0 compatible version on the mod page. GREAT STUFF!! Can't wait to try it out. And here I thought I'd have to wait a year for you to update the mod.  ;D

Title: Re: Anonymous Board Mod
Post by: Bugo on July 14, 2011, 01:48:31 PM
Well, better late than never => http://www.simplemachines.org/community/index.php?topic=204149.msg2768873#msg2768873
Title: Re: Anonymous Board Mod
Post by: Kindred on July 14, 2011, 02:29:24 PM
I explained the process to you back then. You never contacted me and told me that you would take over distribution and support for the mod, so nothing was ever done. JMV290 DID do so....
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 14, 2011, 08:31:03 PM
I installed the mod, had to do a manual edit of the manageboards.php file for the following lines:

Code: (Find) [Select]
$boardOptions['posts_count'] = isset($_POST['count']);
$boardOptions['override_theme'] = isset($_POST['override_theme']);

Code: (Add after) [Select]

$boardOptions['anonymous_board'] = isset($_POST['anonymous_board']);

The Facebook Like mod added in a line between the ['posts_count"] and ['override_theme'} lines, so I added in new line just after the ['override_theme'] line. I'm pretty sure I did that correctly.

The problem is, the mod isn't working. I haven't noticed any changes in the board which I marked as Anonymous. I created a new topic, but there was no sign of the option to post un-anonymously, nor was my completed post anonymous. It's as if the mod wasn't installed at all.

Let me clear my cache and cookies and try again.

 
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 15, 2011, 08:30:42 AM
It's still not working.  :(
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 18, 2011, 01:32:53 AM
And where has this new developer gone? Is this like a hit and run?
Title: Re: Anonymous Board Mod
Post by: live627 on July 18, 2011, 03:47:26 AM
Would this one help? http://livemods.net/index.php?action=mods#56
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 18, 2011, 12:12:55 PM
Would this one help? http://livemods.net/index.php?action=mods#56

Well, I'm sure your mod will work, but if you can get the same functionality for free, why pay? :D I'm not really in any hurry either since I'm just playing around with mods on my newly made forum. Once everything else is setup, only then will I consider paid mods, like the Advanced Prefix mod, and your Anonymous Board Mod.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 27, 2011, 06:19:26 PM
Still no update? Come on...
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on August 05, 2011, 11:29:29 PM
.......
Title: Re: Anonymous Board Mod
Post by: bobbart on August 12, 2011, 03:00:24 PM
Having an issue with the mod.  Its showing any group moderators name that would post in the board thats set to be anonymous.
Title: Re: Anonymous Board Mod
Post by: Sirenism on September 29, 2011, 03:41:00 PM
It installed on SMF 2.0 perfectly and works when a user replies to a topic that's been created. However if you create a new topic in that board the topic creators name still shows and is not anonymous. The only way to fix it is to run the included SQL:

Code: [Select]
UPDATE `smf_messages` SET `id_member`=0 WHERE `id_board`=[BOARD NUMBER];
UPDATE `smf_messages` SET `poster_name`='Anonymous' WHERE `ID_BOARD`=[BOARD NUMBER];
UPDATE `smf_messages` SET `poster_email`='' WHERE `id_board`=[BOARD NUMBER];
UPDATE `smf_messages` SET `modified_name`='Anonymous' WHERE `modified_name`<>'' AND `id_board`=[BOARD NUMBER];

This fixes the problem for topics that were posted, but doesn't fix the problem of the creator of the topic having the option to post anonymously when first posting that topic. I hope that made sense. I don't want to have to run that SQL every time someone creates a post because it defeats the purpose of having this mod in place.

Any ideas on how I can possibly fix this?
Title: Re: Anonymous Board Mod
Post by: billowingwillows on October 05, 2011, 05:13:57 AM
Quote
The mod (as written) has the board default to anonymous and allow username on checkbox.
I posted code earlier indicating how to change that to default to username, but allow anonymous on checkbox.

Hi, I was reading through all of your posts in this thread to see if you mentioned how to accomplish exactly this (so the checkbox would activate the anonymous function) and then I found it. Now I feel really relieved that I can use this mod the way I need and to use simple machines in general (needed to make sure that this function would be possible before I chose).
Is there a way I can donate to you for your work? This one is kind of a life-saver.  ;D
Title: Re: Anonymous Board Mod
Post by: samurai-lupin on October 21, 2011, 12:49:22 PM
Kindred:
 It is exactly as you predicted. After editing that line to check for empties, the error is no longer reported, but the symptoms remain the same: Anonymous works for replying to an existing topic, but starting a new topic throws the error.

 BTW, if you do find time to update the mod, it will make some folks very happy.

Thanks again,
  Mark

Hello, has this issue ever been fixed as I am expiriencing exactly the same problem.
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 06, 2011, 05:35:33 PM
And where has this new developer gone? Is this like a hit and run?
Oh no. I was just not aware of this topic or the discussed issues until now.

I had been checking my PMs all summer after updating the mod but got nothing so I figured nothing was wrong.  After September I got a bit caught up with classes and work but should have a bit of free time starting in the next week or two to look at the issues.

The first PM I actually got regarding the issue was in late november and that got buried in my e-mail inbox where I didn't notice it until today.
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 06, 2011, 05:54:13 PM
It's still not working.  :(
What theme are you using it on?
(http://i.imgur.com/prc4o.png)
If this box is checked you should get the option on the board like this

(http://i.imgur.com/N7KUE.png)
Post the topic and I get returned this
(http://i.imgur.com/jebvY.png)

Now if you check the box
(http://i.imgur.com/aUH5L.png)

The following should post
(http://i.imgur.com/NkK93.png)


Replying to either topic works fine too:
(http://i.imgur.com/NkK93.png)

and

(http://i.imgur.com/kiIl3.png)


I may be misreading content but it looks like on 2.0 with the default theme everything works fine.  If someone could clarify the issue or provide screenshots or a link that'd be great.



edit:  Samurai-lupin:  Is this your forum that you are trying the mod on http://www.detektorforum.de/smf ?  If so mod I worked on and am supporting works on 2.0+   I'm not sure if Kindred or anyone else is still supporting the older version of the mod.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on December 06, 2011, 06:30:05 PM
Cool, no hard feelings. Now that you're here, it's all good.

Well, I was using it on Ambassador, one of Crip's Curve variants. I've got SMF 2.0.1. Well, I haven't worked on my forum in a while, but from what I remember, I ticked the Make This Board Anonymous box, but nothing changed in the corresponding forum board. I made a few test posts, and all showed the usernames of the posters.

I should get around to working on my forum over the next few days, then I'll give you more feedback. At the moment I have don't have the Anonymous Board mod installed, so I'll give it another go and let you know what happens.
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 06, 2011, 07:23:57 PM
Thanks, let me know if it works on both that theme and the default.

I've not had a chance to test it on 2.0.1 either.
Title: Re: Anonymous Board Mod
Post by: billowingwillows on December 12, 2011, 07:16:28 AM
Hello, today I've finally installed Simple Machines. 2.0.1. I'm getting everything up and running, and as can be seen further up, I've been curious about this mod before I even installed.  ;D

I went to Package Manager, selected the freshly-downloaded zip, went to install it, but it strongly recommended me not to, on account of some errors it found. I see that the theme I'm using might affect performance, judging by the posts above. Okay, so my theme that I'm using now is named "Black Rain" (page here: http://custom.simplemachines.org/themes/index.php?lemma=118 (http://custom.simplemachines.org/themes/index.php?lemma=118)

And here's the errors (new so I don't know if this is how this stuff is usually reported):

*    1.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Add Before    ./Themes/default/ManageBoards.template.php    Test failed
*    2.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
      1.    Add After    ./Sources/ManageBoards.php    Test failed
      2.    Add After    ./Sources/ManageBoards.php    Test successful
*    4.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
      1.    Add After    ./Sources/Subs-Boards.php    Test failed
      2.    Replace    ./Sources/Subs-Boards.php    Test failed
      3.    Add Before    ./Sources/Subs-Boards.php    Test successful
*    5.    Execute Modification    ./Sources/Load.php    Test failed
      1.    Replace    ./Sources/Load.php    Test failed
      2.    Add Before    ./Sources/Load.php    Test failed
*    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 failed
      1.    Add After    ./Sources/Who.php    Test failed
      2.    Add After    ./Sources/Who.php    Test failed
   9.    Execute Code    add_settings.php

Normally I'd assume that, being a newb, I messed something up, but installing the forum was a breeze and I didn't have a chance to mess stuff up with the mod itself. ;)

While I'm at it, I saw that, with this anonymous function, the default is anonymous posting, with a user being able, while posting, to select a box to make their post not show anonymously.
Is there any easy way to make it so that a forum can default as a regular forum, but that the user, when posting, can select a box to make their post anonymous, just for that specific post? I've seen this function at another forum and it proved very useful, and would prove useful for the format of my forums too.

Thanks for any help! :)
Title: Re: Anonymous Board Mod
Post by: Kindred on December 12, 2011, 07:41:41 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

as fro switching... you would have to switch the code that assigns the anon and the text...
Title: Re: Anonymous Board Mod
Post by: billowingwillows on December 12, 2011, 12:28:04 PM
Thanks for the reply. Hhm... read through the article and I'm a bit startled at the idea of replacing all that code manually. I've done stuff like that a lot with HTML and CSS, but that's with simple stuff...

I got to ask... is it common for this to happen? And it's probably because of the different themes?
I basically need to find those files specifically, and insert the code in by hand... but what I don't understand is what the difference would be between this and if I went ahead with installation anyway. Especially since I won't truly understand what all the code means... should I just back-up and then try forcing the installation first?  :o

On the other note, I figured that there'd be a way of modifying the code to accomplish the switch, but I was curious if maybe the creator would already know specifically how to do this, if it'd be easy for him to explain how. I do have enough of an adventurous spirit to dive right into this and experiment, but at this point, indications certainly would be welcome.  ;D
Title: Re: Anonymous Board Mod
Post by: Kindred on December 12, 2011, 01:29:09 PM
Well, forcing the installation past the warnings means that the mod will be partially installed and will likely cause errors in your forum until the installation is either completed or removed.

As I said in the wiki, you will have to manually edit any of the files/sections which throw errors on the automatic installation.

And no... the errors are not due to additional themes.  The errors are likely due to other mods which have alreayd modified the target installation code.

As for your other question.... it does help to read the previous pages of this thread....
Find post.template.php
Code: [Select]
<input type="checkbox" name="post_unanon" />
Change in:
Code: [Select]
<input type="checkbox" checked name="post_unanon" />

or

find this code in post.php
Code: [Select]
// 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

Code: [Select]
// 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;
}
Title: Re: Anonymous Board Mod
Post by: samurai-lupin on December 12, 2011, 07:26:27 PM
Kindred:
 It is exactly as you predicted. After editing that line to check for empties, the error is no longer reported, but the symptoms remain the same: Anonymous works for replying to an existing topic, but starting a new topic throws the error.

 BTW, if you do find time to update the mod, it will make some folks very happy.

Thanks again,
  Mark

Hello, has this issue ever been fixed as I am expiriencing exactly the same problem.

Bump
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 13, 2011, 06:34:15 PM
From what I understand from your posts and PMs is that the issue you're having is with the version written for SMF 1.1.x which I'm not supporting and don't think Kindred is supporting anymore either.



And thanks Kindred for answering that.  There really isn't much I can do work around errors that may be related to installation of other mods.  billowingwillows, how many other mods do you have installed? 

You were able to get it to install on 2.0.1. though?  I was just testing what I had and I think I might have some issue with the version string preventing me from installing it myself on a tester so I need to look at that.   

edit: And that was fixed. I had it sent to only install on 2.0 so it wasn't even showing with the option to install on 2.0.1 for me. This should be fixed for all 2.x releases unless there is a change to the code itself.
Title: Re: Anonymous Board Mod
Post by: Huf on December 17, 2011, 06:33:20 AM
Hi!

I'm experiencing the same "Can post anonymous replies, but cannot start anonymous topics" on my forum that's been mentoned a few times earlier on the thread.

I use SMF 2.0.1 on my forum and the error appears both on the default theme (Curve) and on Core theme. I have installed the 1.1 version of the mod.

This is the message I get in the forum's error log when I start a new topic:
Code: [Select]
*forum url*/index.php?action=post;board=89.0
8: Undefined index: anonymous_board
File: *forum root*/Themes/default/Post.template.php (main sub template - eval?)
Line: 524

The error log also shows some of these error messages, though only a couple of them:
Code: [Select]
*forum url*/index.php?action=post2;start=0;board=89
8: Undefined index: anonymous_board
File: *forum root*/Sources/Post.php
Line: 1248

The board in question (id 89) has been marked as anonymous in the admin panel. The error happens to users of several different usergropus, including me with admin rights, people with mod rights and people in the regular user group. Some users, however, have managed to start anonymous threads on the board but I have not found anything (usergroup, permissions, theme, language) that deviates between the few that can start anonymous topics and the rest (most of the users) who can't. ???

Here is a screenshot when I'm replying to a thread on the anonymous board (this is working ok):
(http://oi42.tinypic.com/2ihnx1k.jpg)

And here is a screenshot when I'm creating a new thread on the anonymous board (no "post with your username" checkbox appears. After the thread is submitted the poster info of the thread can be seen instead of it being submitted by anonymous.)
(http://oi43.tinypic.com/16gehoo.jpg)

Title: Re: Anonymous Board Mod
Post by: samurai-lupin on December 17, 2011, 01:45:44 PM
Same problem here as huf has. Really would appreciate a fix for this. Thank you!
Title: Re: Anonymous Board Mod
Post by: samurai-lupin on December 19, 2011, 12:42:02 PM
Bump. Would be great if someone can fix this bug please.
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 21, 2011, 11:51:35 AM
Lupin, isn't your board 1.x?

Huf, is there a field "anonymous_board" in your database?  Try to manually run the install.php script and see what's happening, I'm curious as to whether or not the script is running. I haven't been able to recreate the issue so I can't test it myself.  It should be a column under {dbprefix}boards.


--
I was able to recreate it on a fresh 2.0.1 install but I can't get into PHPMyAdmin to check the database right now. It does work fine on the other forum I was testing when I did a 2.0 install -> Mod Install -> Update to 2.0.1. 

I will take a look to see what's up once I finish up at work.


It's possible the error is related to the $context['anonymous_board'], though I don't know why.
Title: Re: Anonymous Board Mod
Post by: Huf on December 21, 2011, 04:48:49 PM
Lupin, isn't your board 1.x?

Huf, is there a field "anonymous_board" in your database?  Try to manually run the install.php script and see what's happening, I'm curious as to whether or not the script is running. I haven't been able to recreate the issue so I can't test it myself.  It should be a column under {dbprefix}boards.

Alright, I checked the database and there is a column "anonymous_board" in the "smf_boards" table. The column's value for all other areas is 0 and for the anonymous area it's 1. This was the case when I posted my previous message as well, I just forgot to mention it. :-[

I backtracked the mod's installation on the Theme and Source files to see if for some reason something would have been omitted, but all the changes were there. The only thing that was different that in the install.xml was in the Post.template.php file where installation xml says this:
Code: [Select]
<file name="$themedir/Post.template.php">
<operation>
<search position="after"><![CDATA[
// Finally, the submit buttons.
]]></search>
<add><![CDATA[
// anonymous board mod
if ( $context['anonymous_board'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

]]></add>
</operation>
</file>
which should place the anonymous board mod changes after the "//Finally..." line but in my board's Post.template.php the anonymous board modification is before the "//Finally..." line. :o Not that it makes any difference in the end, since the "//Finally..." line is just a comment, but I still found that a bit weird. :laugh:

I just checked the error log again and the last errors of the matter have been from December 18th. I tried making a new topic in the anonymous area and now the "Post with your username" checkbox appeared and I could start a topic anonymously.

I haven't touched anything, haven't made any changes or anything and now it works. I'm the only admin that touches any files or packages as well so no-one else has done any modifications either. I'm stumped. Some mysterious things are happening. ;D

I'll be doing some testing on my forum still, but at the moment the problem seems to have been fixed. I wonder if it was some kind of a caching problem or something, my forum has had some other problems with it as well and that's the only thing I've tampered with these past couple of days. ???

In any case, I'll be reporting back if the error appears again or if I can determine what it actually was that was causing it but at the moment it seems to be working for all different usergroups without a problem so all is well.

Happy Holidays and thanks for the great mod!  :)
Title: Re: Anonymous Board Mod
Post by: JMV290 on December 21, 2011, 05:15:23 PM
Thank you very much.  I'll take a look and might have to rework the query to see what it's inserting the code there. Glad it works for you.  I should have a fix up within the next few days.
Title: Re: Anonymous Board Mod
Post by: Kindred on December 21, 2011, 06:19:51 PM
it is inserting the code correctly.

search position = after
means
add code = before the searched position
Title: Re: Anonymous Board Mod
Post by: samurai-lupin on December 21, 2011, 10:27:52 PM
Yes, I use the SMF 1.1 version of the mod. I'd greatyl appreciate any input on how I can solve this problem. Thank you.
Title: Re: Anonymous Board Mod
Post by: distante on February 05, 2012, 10:22:57 AM
Is there some way to pass a whole forum into a "Anonymous Board" changing the current posts? (and all the way around)

I have a hidden "girl talk" sub forum for members only that I like to make public but using the anonymous feature, to see how it works (and if don't go back to be a "normal" board)
Title: Re: Anonymous Board Mod
Post by: Kindred on February 08, 2012, 11:53:58 AM
hmmmm....

MYSITE/index.php?action=post2;start=0;board=11
8: Undefined index: anonymous_board
File: /MYSITEDIR/Themes/default/Post.template.php
Line: 746

the offending line is:
if ( $context['anonymous_board'] )
which implies that the value is never set in the context array...


Also, setting a board to anonymous (with the checkbox) works...  but I see no option at all to allow the user to NOT be anonymous. (did you remove that functionality?)
Title: Re: Anonymous Board Mod
Post by: Scorpii on February 08, 2012, 12:51:21 PM
Exact same error here, trying to track it down..

http://www.mysite.com/forum/index.php?action=post;board=86.0
Undefined index: anonymous_board
File: /home/user/public_html/forum/Themes/default/Post.template.php
Line: 602

here are lines 601, 602, 603
Code: [Select]
// anonymous board mod
if ( $context['anonymous_board'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

The option to allow anonymous appears on replies for me as well, but not on the initial post. Would apprecialte any feedback, going to try to trace down where the variable was set.. was thinking of trying to put an isset check in but would probably just clear up the errors and not fix the issue i'm guessing..
Title: Re: Anonymous Board Mod
Post by: Kindred on February 08, 2012, 01:16:22 PM
that is a good point... every single mod that sets a variable like this should always check to see if it's set...   of course, as you say, it removed the error but won't fix the underlying problem.
Title: Re: Anonymous Board Mod
Post by: samurai-lupin on February 15, 2012, 02:03:54 PM
Yes, I use the SMF 1.1 version of the mod. I'd greatyl appreciate any input on how I can solve this problem. Thank you.

I wanted tpo bump this and would greatly appreciate a fix for this problem. Thank you!
Title: Unable to start an anonymous topic
Post by: shazoo! on April 10, 2012, 10:30:20 AM
Running 2.0.2 The anonymous option does not show up on a new topic but it does on the replies.

What do I need to do to fix this?

It seems to come and go for no apparent reason

Title: Re: Anonymous Board Mod
Post by: samurai-lupin on April 11, 2012, 12:18:58 AM
Any news on the problem running this mod on SMF 1.1?
Title: Re: Anonymous Board Mod
Post by: shazoo! on April 18, 2012, 02:05:18 PM
Has anyone figured out how to add the check box to quick reply?
Title: Re: Anonymous Board Mod
Post by: littlenicki on July 18, 2012, 03:51:50 AM
Looks like a dead mod?
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 19, 2012, 09:20:38 AM
seems to be the case
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 19, 2012, 09:38:09 AM
No mods are dead on SMF until an admin, the acting developer, or another developer says so. A little patience wouldn't go amiss. I'm also interested in this mod. Also, when enough people start experiencing the same error, one of the users usually manages to isolate and fix the problem.
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 19, 2012, 04:25:38 PM
Technically that may be true, but no one has even ventured to answer my questions since April
After 3 months, I gave up.
Title: Re: Anonymous Board Mod
Post by: littlenicki on July 23, 2012, 05:08:53 PM
Since people have been looking for a fix for well over a year this sounds like abandoned to me. Sad but true.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 27, 2012, 08:29:31 PM
Here's the fix for the Anonymous Board Mod (SMF 2.0) all you guys have been waiting for.

In Load.php

Find:

Code: [Select]
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],

Then below the above code add:

Code: [Select]
                                'anonymous_board' => $row['anonymous_board'],

Next, find and delete:

Code: [Select]
$context['anonymous_board'] = $row['anonymous_board'];

Now find:

Code: [Select]
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

And below the above code add:

Code: [Select]

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

This is what your final code should look like:

Code: [Select]
// Basic operating information. (globals... :/)
$board_info = array(
'id' => $board,
'moderators' => array(),
'cat' => array(
'id' => $row['id_cat'],
'name' => $row['cname']
),
'name' => $row['bname'],
'description' => $row['description'],
'num_topics' => $row['num_topics'],
'unapproved_topics' => $row['unapproved_topics'],
'unapproved_posts' => $row['unapproved_posts'],
'unapproved_user_topics' => 0,
'parent_boards' => getBoardParents($row['id_parent']),
'parent' => $row['id_parent'],
'child_level' => $row['child_level'],
'theme' => $row['id_theme'],
'override_theme' => !empty($row['override_theme']),
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'posts_count' => empty($row['count_posts']),
'cur_topic_approved' => empty($topic) || $row['approved'],
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],
                                'anonymous_board' => $row['anonymous_board'],
);

// Load the membergroups allowed, and check permissions.
$board_info['groups'] = $row['member_groups'] == '' ? array() : explode(',', $row['member_groups']);

do
{
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
);
}
while ($row = $smcFunc['db_fetch_assoc']($request));

// If the board only contains unapproved posts and the user isn't an approver then they can't see any topics.
// If that is the case do an additional check to see if they have any topics waiting to be approved.
if ($board_info['num_topics'] == 0 && $modSettings['postmod_active'] && !allowedTo('approve_posts'))
{
$smcFunc['db_free_result']($request); // Free the previous result

$request = $smcFunc['db_query']('', '
SELECT COUNT(id_topic)
FROM {db_prefix}topics
WHERE id_member_started={int:id_member}
AND approved = {int:unapproved}
AND id_board = {int:board}',
array(
'id_member' => $user_info['id'],
'unapproved' => 0,
'board' => $board,
)
);

list ($board_info['unapproved_user_topics']) = $smcFunc['db_fetch_row']($request);
}

if (!empty($modSettings['cache_enable']) && (empty($topic) || $modSettings['cache_enable'] >= 3))
{
// !!! SLOW?
if (!empty($topic))
cache_put_data('topic_board-' . $topic, $board_info, 120);
cache_put_data('board-' . $board, $board_info, 120);
}
}
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

Now it's just up to the mod developer to incorporate the above code into the mod. If you would like to know what was causing the problem, then read this thread (http://www.simplemachines.org/community/index.php?topic=482724.msg3380398#msg3380398).
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 27, 2012, 08:38:41 PM
Here's the Anonymous Board Mod SMF 2.0 fix all you guys have been waiting for.

In Load.php

Find:

Code: [Select]
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],

Then below the above code add:

Code: [Select]
                                'anonymous_board' => $row['anonymous_board'],

Next, find and delete:

Code: [Select]
$context['anonymous_board'] = $row['anonymous_board'];

Now find:

Code: [Select]
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

And below the above code add:

Code: [Select]

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

This is what your final code should look like:

Code: [Select]
// Basic operating information. (globals... :/)
$board_info = array(
'id' => $board,
'moderators' => array(),
'cat' => array(
'id' => $row['id_cat'],
'name' => $row['cname']
),
'name' => $row['bname'],
'description' => $row['description'],
'num_topics' => $row['num_topics'],
'unapproved_topics' => $row['unapproved_topics'],
'unapproved_posts' => $row['unapproved_posts'],
'unapproved_user_topics' => 0,
'parent_boards' => getBoardParents($row['id_parent']),
'parent' => $row['id_parent'],
'child_level' => $row['child_level'],
'theme' => $row['id_theme'],
'override_theme' => !empty($row['override_theme']),
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'posts_count' => empty($row['count_posts']),
'cur_topic_approved' => empty($topic) || $row['approved'],
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],
                                'anonymous_board' => $row['anonymous_board'],
);

// Load the membergroups allowed, and check permissions.
$board_info['groups'] = $row['member_groups'] == '' ? array() : explode(',', $row['member_groups']);

do
{
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
);
}
while ($row = $smcFunc['db_fetch_assoc']($request));

// If the board only contains unapproved posts and the user isn't an approver then they can't see any topics.
// If that is the case do an additional check to see if they have any topics waiting to be approved.
if ($board_info['num_topics'] == 0 && $modSettings['postmod_active'] && !allowedTo('approve_posts'))
{
$smcFunc['db_free_result']($request); // Free the previous result

$request = $smcFunc['db_query']('', '
SELECT COUNT(id_topic)
FROM {db_prefix}topics
WHERE id_member_started={int:id_member}
AND approved = {int:unapproved}
AND id_board = {int:board}',
array(
'id_member' => $user_info['id'],
'unapproved' => 0,
'board' => $board,
)
);

list ($board_info['unapproved_user_topics']) = $smcFunc['db_fetch_row']($request);
}

if (!empty($modSettings['cache_enable']) && (empty($topic) || $modSettings['cache_enable'] >= 3))
{
// !!! SLOW?
if (!empty($topic))
cache_put_data('topic_board-' . $topic, $board_info, 120);
cache_put_data('board-' . $board, $board_info, 120);
}
}
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

Now it's just up to the mod developer to incorporate the above code into the mod. If you would like to know what was causing the problem, then read this thread (http://www.simplemachines.org/community/index.php?topic=482724.msg3380398#msg3380398).
THis fixes the issue where the checkbox doesn't show on a new topic?  nice!!

Now if someone could figure out how to add it to the quick reply
Title: Re: Anonymous Board Mod
Post by: Arantor on July 27, 2012, 08:40:18 PM
It working properly on 2.0.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 27, 2012, 08:54:14 PM
It working properly on 2.0.

I'm not sure what you mean. Are you saying that the mod works perfectly fine on 2.0 without the fix? Both during topic replying AND topic creation?

Most users reported that they could reply anonymously, but not create new topics anonymously. Perhaps the majority of that 30 000 people who downloaded the mod haven't experienced these errors, but this fix would then be for the minority who have the problem.
Title: Re: Anonymous Board Mod
Post by: Arantor on July 27, 2012, 08:57:12 PM
I assumed that's what you fixed in this...

The majority of people who downloaded this mod did so for 1.1.x...
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 27, 2012, 09:00:25 PM
I see, so you were just confirming that the fix works on 2.0?

So that 30000+ downloads were for the 1.1.x version? That would explain why there are so few people reporting the problem. The 1.1.x version doesn't have the cache problem.

Title: Re: Anonymous Board Mod
Post by: shazoo! on July 27, 2012, 09:03:34 PM
I had the problem on 2.0.2
Title: Re: Anonymous Board Mod
Post by: Arantor on July 27, 2012, 09:04:05 PM
Nope. I was clarifying what I thought you'd managed to achieve with your posted fix, since that was the question asked.

As for the downloads, it's been around literally years, so 30k downloads is rather tame, really.


shazoo!, so try the changes, see if that helps.
Title: Re: Anonymous Board Mod
Post by: littlenicki on July 27, 2012, 09:18:08 PM
Hello MiY4Gi,

do you also happen to know the fix for the SMF 1.1 version? People using SMF 1.1 seem to have been looking for a fix for years.

Would be nice to get this problem solved.

Thank you
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 28, 2012, 09:57:53 AM
Nope. I was clarifying what I thought you'd managed to achieve with your posted fix, since that was the question asked.

As for the downloads, it's been around literally years, so 30k downloads is rather tame, really.


shazoo!, so try the changes, see if that helps.
Seems to work beautifully, thank you!
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 28, 2012, 11:02:15 AM
Hello MiY4Gi,

do you also happen to know the fix for the SMF 1.1 version? People using SMF 1.1 seem to have been looking for a fix for years.

Would be nice to get this problem solved.

Thank you

Sorry, unfortunately I only had a look at the SMF 2.0 version. What's wrong with the SMF 1.1 version?
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 28, 2012, 12:21:49 PM
Shazoo, I'm curious. Were your users still using the mod, even with the bug? How did that work?
Title: Re: Anonymous Board Mod
Post by: littlenicki on July 28, 2012, 12:32:56 PM
Hello MiY4Gi,

the problem has been mentioned several times in this topic. That is on the SMF 1.1 people can post anonymous replies, but cannot start anonymous topics.

A fix would greatly be appreciated

Regards
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 28, 2012, 12:35:26 PM
Shazoo, I'm curious. Were your users still using the mod, even with the bug? How did that work?
I had to turn it off.  The section we were using it on, wasn't one that needed anonymous 100%, I wanted to use it in case they WANTED to be anonymous, but most of my users use quick reply, which is why I wanted to find out how to add the checkbox to the quick reply too.

It worked TOO well, making everyone anonymous lol

Now that you gave this fix, I'm going to look into it again and have it defaulted OFF (unchecked) and see if it works better now
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 28, 2012, 01:17:32 PM
I had to turn it off.  The section we were using it on, wasn't one that needed anonymous 100%, I wanted to use it in case they WANTED to be anonymous, but most of my users use quick reply, which is why I wanted to find out how to add the checkbox to the quick reply too.

It worked TOO well, making everyone anonymous lol

Now that you gave this fix, I'm going to look into it again and have it defaulted OFF (unchecked) and see if it works better now

Is it possible to do that with this mod? I thought you had to set the whole board to anonymous, so people needed to select NOT TO BE anonymous when posting?

Anyway, I'll try to figure out how to add the option to the quick reply.
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 28, 2012, 02:15:47 PM
I had to turn it off.  The section we were using it on, wasn't one that needed anonymous 100%, I wanted to use it in case they WANTED to be anonymous, but most of my users use quick reply, which is why I wanted to find out how to add the checkbox to the quick reply too.

It worked TOO well, making everyone anonymous lol

Now that you gave this fix, I'm going to look into it again and have it defaulted OFF (unchecked) and see if it works better now

Is it possible to do that with this mod? I thought you had to set the whole board to anonymous, so people needed to select NOT TO BE anonymous when posting?

Anyway, I'll try to figure out how to add the option to the quick reply.

Kindred posted some instructions in this thread on how to turn it off by default (have the box unchecked):

Well, forcing the installation past the warnings means that the mod will be partially installed and will likely cause errors in your forum until the installation is either completed or removed.

As I said in the wiki, you will have to manually edit any of the files/sections which throw errors on the automatic installation.

And no... the errors are not due to additional themes.  The errors are likely due to other mods which have alreayd modified the target installation code.

As for your other question.... it does help to read the previous pages of this thread....
Find post.template.php
Code: [Select]
<input type="checkbox" name="post_unanon" />
Change in:
Code: [Select]
<input type="checkbox" checked name="post_unanon" />

or

find this code in post.php
Code: [Select]
// 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

Code: [Select]
// 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;
}
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 29, 2012, 06:41:57 AM
Darkness' edit actually flips what the checkbox does.  so you check it become anonymous, quick reply posts anonymous

rumfa's edit, makes the default box checked, but quick reply also posts anonymously.

so both are pretty much useless to me. :(

NOTE:  my code looks a little different from Darkness', he has:

Code: [Select]
// anonymous board mod
if ( $context['[b]anonymousBoard[/b]'] && !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;
}

While mine says:

Code: [Select]
if ( $context['[b]anonymous_board[/b]'] && !isset($_POST['post_unanon']) )
{
// Destroy the identifing user data
$user_info['username'] = 'Anonymous';
$user_info['name'] = 'Anonymous';
$user_info['email'] = '';
$user_info['id'] = 0;
}

Note: anonymous_board and anonymousBoard, it looks like he just removes the ! from isset in the code and keeps everything else in tact, which is what I did.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 29, 2012, 02:05:47 PM
So basically Darkness's and Rumfa's hotfixes solve only half your problem. You need to extend the anonymous functionality to the quick reply. Is that the problem you're having?

As for the code differences between you and Darkness_on, I'm not sure, but I believe $ID_MEMBER is a variable from SMF 1.0, and so you won't see it in SMF 2.0. It looks like Darkness_on is using 1.0 while you're using 2.0. 

Anyway, what is the purpose of those [b] tags wrapped around "anonymous_board"? Did you put them there? Never mind, I guess you were trying to bold those words, but you didn't realise that bbcodes wouldn't work inside [code] tags.
Title: Re: Anonymous Board Mod
Post by: Arantor on July 29, 2012, 02:06:33 PM
$ID_MEMBER is a 1.1.x thing, the 2.0 equivalent is $user_info['id'].
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 29, 2012, 05:31:55 PM
So basically Darkness's and Rumfa's hotfixes solve only half your problem. You need to extend the anonymous functionality to the quick reply. Is that the problem you're having?

As for the code differences between you and Darkness_on, I'm not sure, but I believe $ID_MEMBER is a variable from SMF 1.0, and so you won't see it in SMF 2.0. It looks like Darkness_on is using 1.0 while you're using 2.0. 

Anyway, what is the purpose of those [b] tags wrapped around "anonymous_board"? Did you put them there? Never mind, I guess you were trying to bold those words, but you didn't realise that bbcodes wouldn't work inside [code] tags.
Exactly

Yes, I tried to bold it :/  thank you!
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on July 29, 2012, 06:07:20 PM
Over the next couple of days I'll have a look to see if I can solve your problem, that is, try to extend the mod to the quick reply. I don't think it will be too hard.
Title: Re: Anonymous Board Mod
Post by: shazoo! on July 29, 2012, 06:37:33 PM
Over the next couple of days I'll have a look to see if I can solve your problem, that is, try to extend the mod to the quick reply. I don't think it will be too hard.
you.are.awesome.

THANKYOU!!
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on August 01, 2012, 04:49:46 PM
Right, to add the "Post with your username" tick box to your quick reply here's what you do.

Open /Themes/default/Display.template.php

Find:

Code: [Select]
if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';

Add below:

Code: [Select]

// anonymous board mod
if ( $context['anonymous_board'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';


As for the reversal of the ticky box function, that is, making it so that if you tick the box then you post anonymously, and if you leave it unticked, then you post like normal, you would apply Darkness's hotfix:

Open /Sources/Post.php

Find:

Code: [Select]
if ( $context['anonymous_board'] && !isset($_POST['post_unanon']) )

Replace with:

Code: [Select]
if ( $context['anonymous_board'] && isset($_POST['post_unanon']) )

You just need to remove the "!" from in front of "isset".

You may also want to change the wording of the tick box:

Open /Themes/default/languages/Modifications.english.php

Find:

Code: [Select]
$txt['makeBoard_anonymous']='Make this board anonymous';
$txt['Post_anonymous'] = '<b>Post with your username? (NOT ANONYMOUS)</b>';
$txt['mboards_anon_board_desc'] = 'New replies and topics will be posted anonymously by default';

Then change the bits on the right of the equal signs to reflect your new wording, e.g.

$txt['Post_anonymous'] = '<b>Post with your username? (NOT ANONYMOUS)</b>';       
becomes           
$txt['Post_anonymous'] = '<b>Post anonymously?</b>';

$txt['mboards_anon_board_desc'] = 'New replies and topics will be posted anonymously by default';       
becomes     
$txt['mboards_anon_board_desc'] = 'Users can choose to post anonymously.';

Let  me know if you experience any problems.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on August 01, 2012, 05:06:58 PM
Eventually they may add the above fixes to this mod.

I'd particularly like to see an option on each anonymous board to enable or disable anonymous posting by default, since as you have stated, some situations require anonymous posting to be off by default, rather than on.

I'm also considering the feasibility of changing the tick box to a "Post Anonymously" button, so that it can "fit in" with the other buttons ("Post" and "Preview"). What do you guys think?
Title: Re: Anonymous Board Mod
Post by: shazoo! on August 01, 2012, 05:40:28 PM
Do you have a paypal account? I'd like to buy you a beer
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on August 02, 2012, 01:21:50 PM
Haha, no it's fine. Thanks for the offer though. So everything is working okay then? What's your forum's URL? I'd like to see your modified anonymous-mod in action.
Title: Re: Anonymous Board Mod
Post by: Seath on October 20, 2012, 09:07:37 AM
Hello,

MiY4Gi thank you for all your fixes they are working wonderfully.

Bug:
I have fresh install of 2.0.2 and when I am modify board and I select it to be anonymous then save the board, the changes don't take effect. I had to make the change in database to keep the specific board anonymous.

Request:
I like the ability to remove the option of replying as anonymous. So, in the board I have selected as a anonymous only the first post and replays of the user who started the topic would be anonymous. Everyone else who reply wouldn't be.

Sorry I hope I made it clear, I am not very good in explanations.  O:)

Thanks in advance.
Title: Re: Anonymous Board Mod
Post by: bros on December 12, 2012, 05:28:49 PM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?
Title: Re: Anonymous Board Mod
Post by: Vuhdo on December 24, 2012, 06:46:48 PM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

I'd like this as well.
Title: Re: Anonymous Board Mod
Post by: stylusss on December 25, 2012, 01:23:52 AM
I'm finding that people cannot post new topics as anonymous - only new replies - is this how the mod is supposed to be work? I am using the 1.1.x version.
Title: Re: Anonymous Board Mod
Post by: memiller on January 04, 2013, 12:14:43 PM
With MiY4Gi's info (Thanks!!),  I think I fixed it for SMF v1.1.17 too...

in Load.php:

After:

                        // Basic operating information. (globals... :/)
                        $board_info = array(
                                'id' => $board,
                                'moderators' => array(),
                                'cat' => array(
                                        'id' => $row['ID_CAT'],
                                        'name' => $row['cname']),
                                'name' => $row['bname'],
                                'description' => $row['description'],
                                'num_topics' => $row['numTopics'],
                                'parent_boards' => getBoardParents($row['ID_PARENT']),
                                'parent' => $row['ID_PARENT'],
                                'child_level' => $row['childLevel'],
                                'theme' => $row['ID_THEME'],
                                'override_theme' => !empty($row['override_theme']),
                                'use_local_permissions' => !empty($modSettings['permission_enable_by_board']) && $row['permission_mode'] == 1,
                                'permission_mode' => empty($modSettings['permission_enable_by_board']) ? (empty($row['permission_mode']) ? 'normal' : ($ro$
                                'posts_count' => empty($row['countPosts']),


add:

                                'anonymousBoard' => $row['anonymousBoard'],

Then, after:

                       // Otherwise the topic is invalid, there are no moderators, etc.
                        $board_info = array(
                                'moderators' => array(),
                                'error' => 'exist'
                        );
                        $topic = null;
                        $board = 0;
                }
                mysql_free_result($request);
        }

Add:

// Is the board anonymous?
        $context['anonymousBoard'] = $board_info['anonymousBoard'];


Then remove or comment out line:

$context['anonymousBoard'] = $row['anonymousBoard'];


With those changes, I am able to to run APC at level 1 caching and anonymous topic creation works.

Cheers!
- Mark
Title: Re: Anonymous Board Mod
Post by: stylusss on January 04, 2013, 04:50:32 PM
Still not working for me...
Title: Re: Anonymous Board Mod
Post by: memiller on January 04, 2013, 05:04:17 PM
  The fix above is for when APC caching breaks new anonymous topics.  Is that the trouble you are having?
Title: Re: Anonymous Board Mod
Post by: stylusss on January 04, 2013, 05:19:43 PM
  The fix above is for when APC caching breaks new anonymous topics.  Is that the trouble you are having?

I am on APC level 1, SMF 1.1.17. The mod works for when you reply, but no option when you create a topic.
Title: Re: Anonymous Board Mod
Post by: memiller on January 04, 2013, 05:33:30 PM
Ok, just to check, Load.php should look like:

              // Basic operating information. (globals... :/)
              $board_info = array(
                      'id' => $board,
                      'moderators' => array(),
                      'cat' => array(
                              'id' => $row['ID_CAT'],
                              'name' => $row['cname']),
                      'name' => $row['bname'],
                      'description' => $row['description'],
                      'num_topics' => $row['numTopics'],
                      'parent_boards' => getBoardParents($row['ID_PARENT']),
                      'parent' => $row['ID_PARENT'],
                      'child_level' => $row['childLevel'],
                      'theme' => $row['ID_THEME'],
                      'override_theme' => !empty($row['override_theme']),
                      'use_local_permissions' => !empty($modSettings['permission_enable_by_board']) && $row['permission_mode'] == 1,
                      'permission_mode' => empty($modSettings['permission_enable_by_board']) ? empty($row['permission_mode']) ? 'normal' : ($row['permission_mode'] == 2 ? 'no_polls' : ($row['permission_mode'] == 3 ? 'reply_only' : 'read_only'))) : 'normal',
                      'posts_count' => empty($row['countPosts']),
                      'anonymousBoard' => $row['anonymousBoard'],
              );



and

                        // Otherwise the topic is invalid, there are no moderators, etc.
              $board_info = array(
                      'moderators' => array(),
                      'error' => 'exist'
              );
              $topic = null;
              $board = 0;
      }
      mysql_free_result($request);
}

      $context['anonymousBoard'] = $board_info['anonymousBoard'];



and you have removed

$context['anonymousBoard'] = $row['anonymousBoard'];


...
Title: Re: Anonymous Board Mod
Post by: stylusss on January 04, 2013, 05:52:46 PM
Ok, just to check, Load.php should look like:

              // Basic operating information. (globals... :/)
              $board_info = array(
                      'id' => $board,
                      'moderators' => array(),
                      'cat' => array(
                              'id' => $row['ID_CAT'],
                              'name' => $row['cname']),
                      'name' => $row['bname'],
                      'description' => $row['description'],
                      'num_topics' => $row['numTopics'],
                      'parent_boards' => getBoardParents($row['ID_PARENT']),
                      'parent' => $row['ID_PARENT'],
                      'child_level' => $row['childLevel'],
                      'theme' => $row['ID_THEME'],
                      'override_theme' => !empty($row['override_theme']),
                      'use_local_permissions' => !empty($modSettings['permission_enable_by_board']) && $row['permission_mode'] == 1,
                      'permission_mode' => empty($modSettings['permission_enable_by_board']) ? empty($row['permission_mode']) ? 'normal' : ($row['permission_mode'] == 2 ? 'no_polls' : ($row['permission_mode'] == 3 ? 'reply_only' : 'read_only'))) : 'normal',
                      'posts_count' => empty($row['countPosts']),
                      'anonymousBoard' => $row['anonymousBoard'],
              );



and

                        // Otherwise the topic is invalid, there are no moderators, etc.
              $board_info = array(
                      'moderators' => array(),
                      'error' => 'exist'
              );
              $topic = null;
              $board = 0;
      }
      mysql_free_result($request);
}

      $context['anonymousBoard'] = $board_info['anonymousBoard'];



and you have removed

$context['anonymousBoard'] = $row['anonymousBoard'];


...

I tried it again and it worked without errors, thanks. 8)
Title: Re: Anonymous Board Mod
Post by: memiller on January 04, 2013, 06:16:57 PM
Kick ass!

I finally made a valid contribution here. About time!  ;)
Title: Re: Anonymous Board Mod
Post by: Vuhdo on January 25, 2013, 03:11:12 AM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

I'd like this as well.

can anyone do this?
Title: Re: Anonymous Board Mod
Post by: stylusss on January 25, 2013, 07:41:24 PM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

I'd like this as well.

can anyone do this?

What forum version are you using?
Title: Re: Anonymous Board Mod
Post by: Vuhdo on February 26, 2013, 11:20:24 AM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

I'd like this as well.

can anyone do this?

What forum version are you using?

2.0.4
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on February 27, 2013, 06:51:25 AM
I think that will take quite a bit of extra coding. Unless you only need to do it for 1 or 2 membergroups, like for admins and moderators. Actually, come to think of it, that's not such a bad idea. In the boards that I made anonomous, only idiots or admins would post non-anonomously, so displaying it for everyone would just be a waste of screen real estate.
Title: Re: Anonymous Board Mod
Post by: Vuhdo on March 07, 2013, 04:58:21 PM
I think that will take quite a bit of extra coding. Unless you only need to do it for 1 or 2 membergroups, like for admins and moderators. Actually, come to think of it, that's not such a bad idea. In the boards that I made anonomous, only idiots or admins would post non-anonomously, so displaying it for everyone would just be a waste of screen real estate.

Yep this is exactly how I would want it, just for admins and moderators to be able to use
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on March 08, 2013, 01:07:54 AM
I'll see if I can do something later.
Title: Re: Anonymous Board Mod
Post by: Vuhdo on March 10, 2013, 03:41:27 AM
I'll see if I can do something later.

Great TY!
Title: Re: Anonymous Board Mod
Post by: flossy on April 16, 2013, 11:57:54 AM
I seem to be having one problem.

I am currently using SMF 2.0.4. I have added anonymous board mod and it's working however i am having one slight problem. 4/5 times, The first poster is not anonymous and is showing their usernames however all replies are anonymous. Only first poster is not. Then every now and then. Randomly. i'd say 1/5 times. The first poster would be anonymous. lol

Is there a way i can fix this or do you know why this is happening?

It is not a live forum so i have deleted the boards and mod. Cleared cache and reinstalled the mod and new boards and still doing the same thing. :s
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on April 16, 2013, 06:52:09 PM
Very strange problem. Unless you can find some pattern in the occurrences of the problem, there really isn't much help anyone can offer. Does the SMF error log say anything? What about the server error log? Generally I would associate any intermittent errors like the one you're having to failing hardware. But I think it could also be lack of hardware resources such as ram shortages or server overloads, etc.
Title: Re: Anonymous Board Mod
Post by: Kindred on April 16, 2013, 07:30:17 PM
Actually,  can duplicate the problem...   But it becomes even odder.
On boards which are not set to be anon, there is no option...  But the first poster of the  thread is forced anonymous.

It seems like the first post in threads is treated the opposite of the setting.
Title: Re: Anonymous Board Mod
Post by: flossy on April 16, 2013, 09:48:02 PM
Thanks for the fast responses.

@kindred, have you used this mod previously and it was working good? if so, what did you do different between when it worked well to now?

I originally thought maybe it's being on smf 2.0.4 but i read the replies of this topic and nobody else on 2.0.4 has brought it up so ;/
Title: Re: Anonymous Board Mod
Post by: Kindred on April 16, 2013, 10:41:57 PM
I wrote the mod, back for 1.1.x...   I have not tried it on 2.0.x since then though.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on April 17, 2013, 01:04:58 PM
Ah, sorry I forgot about that bug. If I recall it has something to do with the way the cache of SMF 2.0 works. There is an anonymous mod variable that would occasionally not get defined, and that is what's causing the problem (iirc). Last year I posted a fix for it: http://www.simplemachines.org/community/index.php?topic=204149.msg3380492#msg3380492

I assumed that the mod had been updated with the fix, but I was mistaken.
Title: Re: Anonymous Board Mod
Post by: Kindred on April 17, 2013, 01:13:44 PM
yup, MiY4Gi, that's it... :)   thanks for reminding me.
Title: Re: Anonymous Board Mod
Post by: MiY4Gi on April 17, 2013, 03:07:58 PM
Okay, for those that want to hide the "Post un-anonomously" ticky box from all users except admins and mods, here's what you need to do:

Open /Themes/default/Post.template.php

Code: (find) [Select]
// anonymous board mod
if ( $context['anonymous_board'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

Code: (replace) [Select]
// anonymous board mod
if ( $context['anonymous_board'] && $context['user']['is_admin'] || $context['anonymous_board'] && $context['user']['is_mod'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

If you chose to also display that line on your Quick Reply box then:

Open /Themes/default/Display.template.php.

Repeat as for Post.template.php.

Once I learn how to add it as an option under board settings, then I'll post the code here. For now you'll just have to hardcode the membergroups.
Title: Re: Anonymous Board Mod
Post by: flossy on April 17, 2013, 10:35:27 PM
@ MiY4Gi, Thank you so much. i did suspect the cache which is why i wrote in my post that i cleared the cache both on my browser and on smf but didn't work. Working perfectly now. thank you.
Title: Re: Anonymous Board Mod
Post by: Sulfur on June 29, 2013, 11:09:30 AM
It installed on SMF 2.0 perfectly and works when a user replies to a topic that's been created. However if you create a new topic in that board the topic creators name still shows and is not anonymous. The only way to fix it is to run the included SQL:

Code: [Select]
UPDATE `smf_messages` SET `id_member`=0 WHERE `id_board`=[BOARD NUMBER];
UPDATE `smf_messages` SET `poster_name`='Anonymous' WHERE `ID_BOARD`=[BOARD NUMBER];
UPDATE `smf_messages` SET `poster_email`='' WHERE `id_board`=[BOARD NUMBER];
UPDATE `smf_messages` SET `modified_name`='Anonymous' WHERE `modified_name`<>'' AND `id_board`=[BOARD NUMBER];

This fixes the problem for topics that were posted, but doesn't fix the problem of the creator of the topic having the option to post anonymously when first posting that topic. I hope that made sense. I don't want to have to run that SQL every time someone creates a post because it defeats the purpose of having this mod in place.

Any ideas on how I can possibly fix this?

Can someone help me in this? it gives me an error...

#1054 - Unknown column 'posterName' in 'field list'

already try with real_name but nothing... can someone help?
Title: Re: Anonymous Board Mod
Post by: Kindred on June 30, 2013, 07:36:50 AM
poster_name
not
posterName

smf 2.0.x does nto use camel case
Title: Re: Anonymous Board Mod
Post by: bros on February 14, 2014, 04:56:51 PM
So I have done a fresh
Ah, sorry I forgot about that bug. If I recall it has something to do with the way the cache of SMF 2.0 works. There is an anonymous mod variable that would occasionally not get defined, and that is what's causing the problem (iirc). Last year I posted a fix for it: http://www.simplemachines.org/community/index.php?topic=204149.msg3380492#msg3380492

I assumed that the mod had been updated with the fix, but I was mistaken.

I tried that fix on a test board I set up and I had to manually uninstall the mod because the forums refused to load. :P
Title: Re: Anonymous Board Mod
Post by: shazoo! on April 22, 2014, 03:51:10 PM
..edited...
Title: Re: Anonymous Board Mod
Post by: shazoo! on February 01, 2015, 04:28:17 PM
Hi, getting the following error in my log:

//.../index.php?action=post;board=29.0
8: Undefined index: anonymous_board
File://.../Themes/default/Alerts.template.php (main sub template - eval?)
Line: 542

as well as:

//.../index.php?action=post2;start=0;board=21
8: Undefined index: anonymous_board
File: //.../Sources/Post.php
Line: 1333

which shows the following:

Code: [Select]
1332: // Anonymous board mod
==>1333: if ( $context['anonymous_board'] && isset($_POST['post_unanon']) )
1334: {
1335: // Destroy the identifing user data
1336: $user_info['username'] = 'Anonymous';
1337: $user_info['name'] = 'Anonymous';
1338: $user_info['email'] = '';
1339: $user_info['id'] = 0;
1340: }
1341:
1342:

Any help would be very much appreciated!
Title: Re: Anonymous Board Mod
Post by: Kindred on February 01, 2015, 04:36:33 PM
looks like a conflict between some other mod and this one...

you can try this... replace the if line with this...

if ( isset($context['anonymous_board']) && isset($_POST['post_unanon']) )


untested, YMMV
Title: Re: Anonymous Board Mod
Post by: shazoo! on February 01, 2015, 05:40:53 PM
looks like a conflict between some other mod and this one...

you can try this... replace the if line with this...

if ( isset($context['anonymous_board']) && isset($_POST['post_unanon']) )


untested, YMMV
Thanks, Kindred!! I'll give it a go!
Title: Re: Anonymous Board Mod
Post by: shazoo! on February 01, 2015, 05:47:32 PM
looks like a conflict between some other mod and this one...

you can try this... replace the if line with this...

if ( isset($context['anonymous_board']) && isset($_POST['post_unanon']) )


untested, YMMV

Ok, so it looks like I get a new error now, which prevents the check box from showing on the new topic post.php, but it shows on reply and edit:

//.../index.php?action=post;board=26.0
8: Undefined index: anonymous_board
File: //.../forum/Themes/default/Post.template.php
Line: 542

Code: [Select]
541: // anonymous board mod
==>542: if ( $context['anonymous_board'] )
543: echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';
544:

I'm thinking it's clashing with the hidden post mod, because I see it erroring at the same time:

//.../index.php?action=post;topic=5712.0;last_msg=94399
8: Undefined index: hiddenOption
File: /.../Sources/Post.php
Line: 2635

Code: [Select]
2633: // Hide the post in preview or not? --- XD
2634: $row['can_view_post'] = 1;
==>2635: if (!empty($modSettings['allow_hiddenPost']) && $row['hiddenOption'] > 0)
2636: {
2637: global $sourcedir;
2638: require_once($sourcedir . '/HidePost.php');
2639: $row['id_topic'] = $topic;
2640: $context['current_message'] = $row;
2641: $row['body'] = getHiddenMessage();
2642: $row['can_view_post'] = $context['can_view_post'];
2643: }
Title: Re: Anonymous Board Mod
Post by: halpaslan on March 12, 2015, 04:40:39 PM
Is it possible to use this mod in a time interval.
For example my post is anonymous for 2 days. After 2 days my profile is shown on my post. Is it possible to modify this mod look like that?
Title: Re: Anonymous Board Mod
Post by: Kindred on March 12, 2015, 05:26:17 PM
No. Not at all.

This mod permanently erases the user id from the post. It is not just hidden, and therefore is not recoverable.

Doing what you ask would be a completely different mod.
Title: Re: Anonymous Board Mod
Post by: halpaslan on March 14, 2015, 06:20:28 PM
Do you think it can be or not?
Title: Re: Anonymous Board Mod
Post by: Kindred on March 14, 2015, 07:00:14 PM
Well, anything CAN be done, if you know how to code it.

In this case, however, what you have asked for is not possible with the current mod. Period.
Therefore, if you feel that you need it, you should post a request in the mod requests board... And given that it is a very niche request, you may have to be willing to pay someone to code it for you.
Title: Re: Anonymous Board Mod
Post by: machinenoob on July 12, 2015, 09:25:30 PM
just a heads up, the fix where the checkbox is not showing was not fixed/implemented, goto page 15 and look for the link to fix it
Title: Re: Anonymous Board Mod
Post by: Jade Elizabeth on August 23, 2015, 09:43:30 PM
Is this working on 2.0 properly? I've seen a few fixes and I am wondering if that is something I need to do or just might need to do?

Also would it be simple enough to perhaps record the username somewhere? (can display beside the IP for admins or anyone who has log ip perms)

Also would it be simple enough to force quick replies to be NOT anonymous. That should be an opt in thing only is all.

If actual solutions could be provided that would be more helpful than yes or no. And if no, please let me know why so I can avoid pursuing it :).
Title: Re: Anonymous Board Mod
Post by: Kindred on August 23, 2015, 10:25:56 PM
Recording the username would require a complete rewrite of the mod. It, very purposefully, replaces the username and identifying information with anonymous filler.

Making quick replies anon or not anon would be a matter of adding the conditional check at the quick reply...
Title: Re: Anonymous Board Mod
Post by: Jade Elizabeth on August 23, 2015, 10:34:55 PM
Well if it's replacing that information it still receives it, so couldn't it place the username in a side field and then replace the info for the main ones? I don't even care if it's just a field in the database that I have to go into phpmyadmin to get, because honestly I am hoping to never need it lol. But I need it there for security. If people use a proxy or what ever I would like to know.

Hell if it would post a topic in the moderation area with a link to the post and the user who posted that would work too. Any sort of record would be preferred.

Title: Re: Anonymous Board Mod
Post by: Kindred on August 23, 2015, 10:54:45 PM
As I said, that would require recording the mod...

You know my statement.., almost anything is POSSIBLE, if you know how to code it...   However, what you are asking is outside of the design of the mod. If dougiefresh opts to rebuild the mod, you can ask him if he's willing to code that...  But since it would seem to be an edge case, you may have to code it yourself.
Title: Re: Anonymous Board Mod
Post by: Jade Elizabeth on August 25, 2015, 02:20:27 AM
Do you mean actually fully rebuild the mod or do you mean recode a portion of it?
Title: Re: Anonymous Board Mod
Post by: Kindred on August 25, 2015, 06:53:53 AM
to be anything more than an ugly hack, it would require recoding a significant portion.

It's not all that big a mod to start with.... :P
Title: Re: Anonymous Board Mod
Post by: Jade Elizabeth on August 26, 2015, 02:00:58 AM
I'm too afraid to look cause I don't think I will understand it XD.
But I will take a look lol.
Title: Re: Anonymous Board Mod
Post by: Logan.uy on September 01, 2015, 11:24:18 PM
I'm having problems trying to use it.

It's installed.
The selected sub forum was modified by selecting the "Make this board anonymous:" check box.

But when a topic is created, the name of the creator is shown.

Do you have some tips for this issue?
Title: Re: Anonymous Board Mod
Post by: Kindred on September 01, 2015, 11:29:09 PM
did you try reading through this thread? There are at least two fixes posted in this thread... here's one
http://www.simplemachines.org/community/index.php?topic=204149.msg3380492#msg3380492

not sure where the other one is...
Title: Re: Anonymous Board Mod
Post by: Somsom on January 08, 2016, 04:34:21 AM
I tried installing this mod in my 2.0.11 smf but it would not install. I really really need this mod as I feel it will be of great use in my new forum. Can someone help please?
Title: Re: Anonymous Board Mod
Post by: Kindred on January 08, 2016, 07:57:25 AM
Please be more specific...

"would not install" is not a useful description of a problem
Title: Re: Anonymous Board Mod
Post by: dougiefresh on January 08, 2016, 09:48:51 AM
I tried installing this mod in my 2.0.11 smf but it would not install. I really really need this mod as I feel it will be of great use in my new forum. Can someone help please?
I downloaded the mod and tried it on a clean SMF 2.0.11 forum.  It installs fine without emulation.  So clearly, it's not a "mod won't install" issue.  It's a "this mod won't install without errors" issue....  And nobody will help unless you provide more details....
Title: Re: Anonymous Board Mod
Post by: Somsom on January 08, 2016, 10:52:03 AM
I tried installing this mod in my 2.0.11 smf but it would not install. I really really need this mod as I feel it will be of great use in my new forum. Can someone help please?
I downloaded the mod and tried it on a clean SMF 2.0.11 forum.  It installs fine without emulation.  So clearly, it's not a "mod won't install" issue.  It's a "this mod won't install without errors" issue....  And nobody will help unless you provide more details....

Please pardon me. I am not very technical .You are right. It wont install without errors. Is there anyway I can get it installed without error?

Title: Re: Anonymous Board Mod
Post by: Kindred on January 08, 2016, 11:12:39 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Anonymous Board Mod
Post by: Somsom on January 08, 2016, 12:55:38 PM
Thanks.

Its working fine now. It turns out that I had downloaded and uploaded the wrong file
Title: Re: Anonymous Board Mod
Post by: Somsom on January 10, 2016, 07:54:51 AM
Here's the fix for the Anonymous Board Mod (SMF 2.0) all you guys have been waiting for.

In Load.php

Find:

Code: [Select]
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],

Then below the above code add:

Code: [Select]
                                'anonymous_board' => $row['anonymous_board'],

Next, find and delete:

Code: [Select]
$context['anonymous_board'] = $row['anonymous_board'];

Now find:

Code: [Select]
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

And below the above code add:

Code: [Select]

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

This is what your final code should look like:

Code: [Select]
// Basic operating information. (globals... :/)
$board_info = array(
'id' => $board,
'moderators' => array(),
'cat' => array(
'id' => $row['id_cat'],
'name' => $row['cname']
),
'name' => $row['bname'],
'description' => $row['description'],
'num_topics' => $row['num_topics'],
'unapproved_topics' => $row['unapproved_topics'],
'unapproved_posts' => $row['unapproved_posts'],
'unapproved_user_topics' => 0,
'parent_boards' => getBoardParents($row['id_parent']),
'parent' => $row['id_parent'],
'child_level' => $row['child_level'],
'theme' => $row['id_theme'],
'override_theme' => !empty($row['override_theme']),
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'posts_count' => empty($row['count_posts']),
'cur_topic_approved' => empty($topic) || $row['approved'],
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],
                                'anonymous_board' => $row['anonymous_board'],
);

// Load the membergroups allowed, and check permissions.
$board_info['groups'] = $row['member_groups'] == '' ? array() : explode(',', $row['member_groups']);

do
{
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
);
}
while ($row = $smcFunc['db_fetch_assoc']($request));

// If the board only contains unapproved posts and the user isn't an approver then they can't see any topics.
// If that is the case do an additional check to see if they have any topics waiting to be approved.
if ($board_info['num_topics'] == 0 && $modSettings['postmod_active'] && !allowedTo('approve_posts'))
{
$smcFunc['db_free_result']($request); // Free the previous result

$request = $smcFunc['db_query']('', '
SELECT COUNT(id_topic)
FROM {db_prefix}topics
WHERE id_member_started={int:id_member}
AND approved = {int:unapproved}
AND id_board = {int:board}',
array(
'id_member' => $user_info['id'],
'unapproved' => 0,
'board' => $board,
)
);

list ($board_info['unapproved_user_topics']) = $smcFunc['db_fetch_row']($request);
}

if (!empty($modSettings['cache_enable']) && (empty($topic) || $modSettings['cache_enable'] >= 3))
{
// !!! SLOW?
if (!empty($topic))
cache_put_data('topic_board-' . $topic, $board_info, 120);
cache_put_data('board-' . $board, $board_info, 120);
}
}
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

        // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

Now it's just up to the mod developer to incorporate the above code into the mod. If you would like to know what was causing the problem, then read this thread (http://www.simplemachines.org/community/index.php?topic=482724.msg3380398#msg3380398).

Thank you very much for this
Title: Re: Anonymous Board Mod
Post by: lntit on February 02, 2016, 07:05:22 PM
Hi there!

I'm banging on a weird error that appear in the error log:
Code: [Select]
http://-----/index.php?board=48.0
8: Undefined index: anonymous_board
File: /-----/forum/Sources/Load.php
Line: 780
Code: [Select]
$context['anonymous_board'] = $board_info['anonymous_board'];
I figured out that this error occurs only if someone clicks on a link to a topic, post or board that has been deleted.
Here the code around line 780:
Code: (php) [Select]
// If there aren't any, skip.
if ($smcFunc['db_num_rows']($request) > 0)
{
$row = $smcFunc['db_fetch_assoc']($request);

// Set the current board.
if (!empty($row['id_board']))
$board = $row['id_board'];

// Basic operating information. (globals... :/)
$board_info = array(
'id' => $board,
'moderators' => array(),
'cat' => array(
'id' => $row['id_cat'],
'name' => $row['cname']
),
'name' => $row['bname'],
'description' => $row['description'],
'num_topics' => $row['num_topics'],
'unapproved_topics' => $row['unapproved_topics'],
'unapproved_posts' => $row['unapproved_posts'],
'unapproved_user_topics' => 0,
'parent_boards' => getBoardParents($row['id_parent']),
'parent' => $row['id_parent'],
'child_level' => $row['child_level'],
'theme' => $row['id_theme'],
'override_theme' => !empty($row['override_theme']),
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'posts_count' => empty($row['count_posts']),
'cur_topic_approved' => empty($topic) || $row['approved'],
'cur_topic_starter' => empty($topic) ? 0 : $row['id_member_started'],

'anonymous_board' => $row['anonymous_board'],
);

// Load the membergroups allowed, and check permissions.
$board_info['groups'] = $row['member_groups'] == '' ? array() : explode(',', $row['member_groups']);

do
{
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
);
}
while ($row = $smcFunc['db_fetch_assoc']($request));

// If the board only contains unapproved posts and the user isn't an approver then they can't see any topics.
// If that is the case do an additional check to see if they have any topics waiting to be approved.
if ($board_info['num_topics'] == 0 && $modSettings['postmod_active'] && !allowedTo('approve_posts'))
{
$smcFunc['db_free_result']($request); // Free the previous result

$request = $smcFunc['db_query']('', '
SELECT COUNT(id_topic)
FROM {db_prefix}topics
WHERE id_member_started={int:id_member}
AND approved = {int:unapproved}
AND id_board = {int:board}',
array(
'id_member' => $user_info['id'],
'unapproved' => 0,
'board' => $board,
)
);

list ($board_info['unapproved_user_topics']) = $smcFunc['db_fetch_row']($request);
}

if (!empty($modSettings['cache_enable']) && (empty($topic) || $modSettings['cache_enable'] >= 3))
{
// !!! SLOW?
if (!empty($topic))
cache_put_data('topic_board-' . $topic, $board_info, 120);
cache_put_data('board-' . $board, $board_info, 120);
}
}
else
{
// Otherwise the topic is invalid, there are no moderators, etc.
$board_info = array(
'moderators' => array(),
'error' => 'exist'
);
$topic = null;
$board = 0;
}
$smcFunc['db_free_result']($request);
}

    // Is the board anonymous?   
$context['anonymous_board'] = $board_info['anonymous_board'];

if (!empty($topic))
$_GET['board'] = (int) $board;

if (!empty($board))
{
// Now check if the user is a moderator.
$user_info['is_mod'] = isset($board_info['moderators'][$user_info['id']]);

if (count(array_intersect($user_info['groups'], $board_info['groups'])) == 0 && !$user_info['is_admin'])
$board_info['error'] = 'access';

// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#c' . $board_info['cat']['id'],
'name' => $board_info['cat']['name']
)),
array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);
}

I'd really love to know how I can fix it. :)
Title: Re: Anonymous Board Mod
Post by: lntit on February 11, 2016, 03:26:25 PM
Have nobody an idea how to fix it? :o
Title: Re: Anonymous Board Mod
Post by: addlife on February 10, 2019, 08:27:12 PM
Here's the fix for the Anonymous Board Mod (SMF 2.0) all you guys have been waiting for.

In Load.php

Find:


I know this is a couple years after this was posted. Thank you so much for these clear edit instructions! I found the load.php file in my file manager in the Sources folder and edited it like you explained. It solved the problem! I'm using SMF version 2.0.15