News:

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

Main Menu

Anonymous Board Mod

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

Previous topic - Next topic

MiY4Gi

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?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

shazoo!

Do you have a paypal account? I'd like to buy you a beer

MiY4Gi

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.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Seath

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.

bros

Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

Vuhdo

Quote from: bros on December 12, 2012, 05:28:49 PM
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

I'd like this as well.

stylusss

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.
For top-notch server quality and expertise, visit CoreISP.net

memiller

#267
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

stylusss

Still not working for me...
For top-notch server quality and expertise, visit CoreISP.net

memiller

  The fix above is for when APC caching breaks new anonymous topics.  Is that the trouble you are having?

stylusss

Quote from: 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?

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.
For top-notch server quality and expertise, visit CoreISP.net

memiller

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'];


...

stylusss

Quote from: 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'];


...

I tried it again and it worked without errors, thanks. 8)
For top-notch server quality and expertise, visit CoreISP.net

memiller

Kick ass!

I finally made a valid contribution here. About time!  ;)

Vuhdo

Quote from: Vuhdo on December 24, 2012, 06:46:48 PM
Quote from: bros on December 12, 2012, 05:28:49 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?

stylusss

Quote from: Vuhdo on January 25, 2013, 03:11:12 AM
Quote from: Vuhdo on December 24, 2012, 06:46:48 PM
Quote from: bros on December 12, 2012, 05:28:49 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?
For top-notch server quality and expertise, visit CoreISP.net

Vuhdo

Quote from: stylusss on January 25, 2013, 07:41:24 PM
Quote from: Vuhdo on January 25, 2013, 03:11:12 AM
Quote from: Vuhdo on December 24, 2012, 06:46:48 PM
Quote from: bros on December 12, 2012, 05:28:49 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?

2.0.4

MiY4Gi

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.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Vuhdo

Quote from: 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.

Yep this is exactly how I would want it, just for admins and moderators to be able to use

MiY4Gi

I'll see if I can do something later.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Advertisement: