Advertisement:

Author Topic: Anonymous Board Mod  (Read 124843 times)

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #260 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?
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.

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Anonymous Board Mod
« Reply #261 on: August 01, 2012, 05:40:28 PM »
Do you have a paypal account? I'd like to buy you a beer

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #262 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.
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.

Offline Seath

  • Newbie
  • *
  • Posts: 3
Re: Anonymous Board Mod
« Reply #263 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.

Offline bros

  • Full Member
  • ***
  • Posts: 644
Re: Anonymous Board Mod
« Reply #264 on: December 12, 2012, 05:28:49 PM »
Anyone to make the button for posting as not-Anonymous only appear to certain membergroups?

Offline Vuhdo

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #265 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.

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: Anonymous Board Mod
« Reply #266 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.
For top-notch server quality and expertise, visit CoreISP.net

Offline memiller

  • Semi-Newbie
  • *
  • Posts: 22
Re: Anonymous Board Mod
« Reply #267 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
« Last Edit: January 04, 2013, 01:46:46 PM by memiller »

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: Anonymous Board Mod
« Reply #268 on: January 04, 2013, 04:50:32 PM »
Still not working for me...
For top-notch server quality and expertise, visit CoreISP.net

Offline memiller

  • Semi-Newbie
  • *
  • Posts: 22
Re: Anonymous Board Mod
« Reply #269 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?

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: Anonymous Board Mod
« Reply #270 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.
For top-notch server quality and expertise, visit CoreISP.net

Offline memiller

  • Semi-Newbie
  • *
  • Posts: 22
Re: Anonymous Board Mod
« Reply #271 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'];


...

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: Anonymous Board Mod
« Reply #272 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)
For top-notch server quality and expertise, visit CoreISP.net

Offline memiller

  • Semi-Newbie
  • *
  • Posts: 22
Re: Anonymous Board Mod
« Reply #273 on: January 04, 2013, 06:16:57 PM »
Kick ass!

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

Offline Vuhdo

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #274 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?

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: Anonymous Board Mod
« Reply #275 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?
For top-notch server quality and expertise, visit CoreISP.net

Offline Vuhdo

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #276 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

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #277 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.
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.

Offline Vuhdo

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #278 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

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #279 on: March 08, 2013, 01:07:54 AM »
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.