Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on March 17, 2016, 01:49:55 PM

Title: Post Anonymously In Topic
Post by: dougiefresh on March 17, 2016, 01:49:55 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4078)


POST ANONYMOUSLY IN TOPICS v2.11
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=4078)


Introduction
This mod adds functionality to allow users to post anonymously within boards on the forum, and (depending on the settings) whether they can see who posted anonymously.

Admin Settings
There are new settings under Admin -> Configuration -> Modification Settings -> PAIT:
1) Which boards the users are allowed to post anonymously in.
2) Hide users posting anonymously
3) Who Can See Anonymous Poster setting controls what can be seen:
  > No One.  Also disables recording Member ID - No one will ever know who made the post!  Ninja mode!
  > No One - The member who posted anonymously is recorded, but no one will ever know!
  > Only poster can see their anonymous post - Only the member posting anonymously can see his/her anonymous posts.
  > Everyone with "See Who Posted Anonymously" permission - OP plus membergroups with Who Can See Anonymous Poster permission can see anonymous posts.
4) See Who Posted Anonymously membergroups.
5) Topic Starter can see who posted anonymously? allows topic starters to see all anonymous posters in THEIR topic.
6) Topic Starter See Who Posted membergroups.

Admins and membergroups with the appropriate permission granted can also view who posted what anonymously, assuming that the posting setting is set to "See Who Posted Anonymously" permission permitted....  Admin who don't want this feature active can disable it by going into the Post Settings page and change the Who Can See Anonymous Poster setting.

Related Discussion Thread
o Option to post Anonymously on topics (http://www.simplemachines.org/community/index.php?topic=538075.0)
o Topic Starters Can See Who Posted Anonymously (http://www.simplemachines.org/community/index.php?topic=544446.msg3897899#msg3897899)

Compatibility Notes
This mod was tested on SMF 2.0.12 and SMF 2.1 RC2, but should work on SMF 2.0 and up.  SMF 2.1 Beta 2 and SMF 1.x is not and will not be supported.

Board color and icons (https://custom.simplemachines.org/mods/index.php?mod=3023) mod should be installed AFTER this mod, otherwise you will have a minor (but easily manually fixable) conflict.

Translators
o Spanish Latin: Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597)

Changelog
The changelog can be viewed at XPtsp.com (http://www.xptsp.com/board/free-modifications/post-anonymously-in-topic/?tab=1).

Compatibility With Likes Pro mod
If operation # 1 in the Sources/Profile-View.php reads Test Failed and operation # 2 is Test Successful, then it is safe to proceed with installation.  Operation # 2 addresses a weird change that the pro version Likes mod makes that I can't overcome any other way....

License
Copyright (c) 2015 - 2019, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 25, 2016, 09:25:25 AM
Uploaded v1.2 - March 25th, 2016
o Added support for SMF 2.1 Beta 2.
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on April 22, 2016, 05:32:13 AM
I installed this mod a while back because the forum members wanted to do a "Masquerade" with fake identities. It worked pretty well, so I recently re-installed it for our Forum Games section, so that people could play games with hidden identities more effectively.

For the most part, it works great. There's one bit of a problem and also one bug that needs to be fixed sometime, though.

The problem we have right now is that members can still see, in "Who's Online", when somebody is posting somewhere. It doesn't take a rocket scientist to figure out, when the list says that so-and-so is posting in a thread and an anonymous post shows up there not long after, who most likely made it. ;) This might not be a problem for huge boards where nobody could possibly keep track of everything everybody's doing, but in a smaller community like ours it's a factor to consider.

Of course, there is one obvious solution...let people "Hide" their activity on the forum. The trouble is that it's way too much trouble to go back and forth changing that setting every time they want to play the game. And I don't want them to be hidden from each other all the time, like they would be if that feature was enabled, because if they are the forum'll look like a ghost town.

Any suggestions or ideas on how to resolve this would be appreciated.

Now for the bug: the Anonymity sometimes glitches out on the "Recent Posts" list. It doesn't seem to happen 100% of the time, but when it does, people see the poster's name next to the ghost icon. I've had a whole bunch of people complain about this to me, and I've even seen it a couple of times myself, although not with any regularity. This is with "Every group that has the permission set" visibility on. The member usergroup has that permission turned off, so they shouldn't be able to view it. I've changed the visibility to "Only original poster" for now, in the hopes that that'll patch things up.

I hate to leave you with such a vague report. That's really all I know about it right now, though. Perhaps you'll immediately have some idea what's wrong with that; if not, then I'll change the permissions back on my forum so I can look for patterns in the glitches.

Thanks for the great mod(s) you've made and your support!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on April 22, 2016, 07:17:07 AM
The problem we have right now is that members can still see, in "Who's Online", when somebody is posting somewhere. It doesn't take a rocket scientist to figure out, when the list says that so-and-so is posting in a thread and an anonymous post shows up there not long after, who most likely made it. ;) This might not be a problem for huge boards where nobody could possibly keep track of everything everybody's doing, but in a smaller community like ours it's a factor to consider.
What I can is add more links to automatically make the post anonymous, and change the backstage BS (if I can find it) so that it hides the fact someone is posting....  It'll take some work to do, as it's a bit complicated  ::)

Of course, there is one obvious solution...let people "Hide" their activity on the forum. The trouble is that it's way too much trouble to go back and forth changing that setting every time they want to play the game. And I don't want them to be hidden from each other all the time, like they would be if that feature was enabled, because if they are the forum'll look like a ghost town.
Honestly, I don't like that idea, mostly because it doesn't "fit" within the declared scope of the mod....

Now for the bug: the Anonymity sometimes glitches out on the "Recent Posts" list. It doesn't seem to happen 100% of the time, but when it does, people see the poster's name next to the ghost icon. I've had a whole bunch of people complain about this to me, and I've even seen it a couple of times myself, although not with any regularity. This is with "Every group that has the permission set" visibility on. The member usergroup has that permission turned off, so they shouldn't be able to view it. I've changed the visibility to "Only original poster" for now, in the hopes that that'll patch things up.
Let me look into it.  Personally, I find this bug report is disturbing....  Can you provide me with a link to the area where you're seeing the bug, just so that I can make sure I'm looking in the right place?  Thanks!
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on April 22, 2016, 07:28:24 AM
What I can is add more links to automatically make the post anonymous, and change the backstage BS (if I can find it) so that it hides the fact someone is posting....  It'll take some work to do, as it's a bit complicated  ::)
That sounds pretty good. I can make a new board for games that require anonymity so as to make sure this isn't ever an inconvenience.

Honestly, I don't like that idea, mostly because it doesn't "fit" within the declared scope of the mod....
Well, in this case I was referring to (what I think is) an existing feature in SMF. Users can already hide their forum activity, if it's activated.

Let me look into it.  Personally, I find this bug report is disturbing....  Can you provide me with a link to the area where you're seeing the bug, just so that I can make sure I'm looking in the right place?  Thanks!
Sure. Here's the link on our forum:
http://www.soopergrape.com/RAF/index.php?action=recent
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on April 23, 2016, 06:30:41 PM
What I can is add more links to automatically make the post anonymous, and change the backstage BS (if I can find it) so that it hides the fact someone is posting....  It'll take some work to do, as it's a bit complicated  ::)
That sounds pretty good. I can make a new board for games that require anonymity so as to make sure this isn't ever an inconvenience.
I did some investigating and found that there are other "details" involved with chaning the backstage BS, such as post validation and such....  That will obviously get in the way of doing this particular little trick.  I'm going to have to think on this one a bit more.....

Honestly, I don't like that idea, mostly because it doesn't "fit" within the declared scope of the mod....
Well, in this case I was referring to (what I think is) an existing feature in SMF. Users can already hide their forum activity, if it's activated.
I haven't tried it with that particular option set.  I'll see what happens....

Let me look into it.  Personally, I find this bug report is disturbing....  Can you provide me with a link to the area where you're seeing the bug, just so that I can make sure I'm looking in the right place?  Thanks!
Sure. Here's the link on our forum:
http://www.soopergrape.com/RAF/index.php?action=recent
Good to know we are on the same page!  Thanks!
Title: Re: Post Anonymously In Topic
Post by: Rock Lee on May 06, 2016, 12:00:22 PM
Interestingly enough I'll use insurance for some things I have contrived ;D here I leave translations to the Latin Spanish although I'm not so oiling to the .xml tell me if this right :)


Regards!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on May 07, 2016, 08:56:54 AM
Uploaded v1.3 - April 7th, 2016
o Added Spanish Latin translation by Rock Lee [BC] (http://www.simplemachines.org/community/index.php?action=profile;u=322597).



@Rock Lee [BC]: Thank you for the translation!
Title: Re: Post Anonymously In Topic
Post by: Sir Osis of Liver on June 10, 2016, 01:51:18 PM
There may be a bug in this mod -

http://www.simplemachines.org/community/index.php?topic=546333.0
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on June 10, 2016, 05:47:05 PM
There may be a bug in this mod -

http://www.simplemachines.org/community/index.php?topic=546333.0
Interesting bug report....  Let me look into it!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on June 12, 2016, 07:17:41 PM
Uploaded v1.4 - June 12th, 2016
o Fixed issue in MessageIndex.php where wrong user was returned as last poster.



@Sir Osis of Liver:  Thank you for the bug report!  It's been fixed!
Title: Re: Post Anonymously In Topic
Post by: foxesdancingonsnow on June 13, 2016, 01:15:01 PM
Fantastic!  Thank you very much.  :D  I have reinstalled it on our site, and things appear normal as far as I can tell.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on June 19, 2016, 06:37:23 PM
Good to hear!  Thank you!
Title: Re: Post Anonymously In Topic
Post by: uamsameter on September 13, 2016, 06:50:45 AM
Hi there,
thanks for this mod.
I got an error in post.php while installing this mod so I had to go make the changes manually.

After that, I set the permission and boards to post anonymously and all that.
The issue is that I cant find the place to set post anonymously permission for membergroups. I even created a new membergroup but there was no place to set that permission.

The result is that admin can post anonymously but other regular members cant.

Please guide me on how to do this.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on September 14, 2016, 09:17:45 AM
I got an error in post.php while installing this mod so I had to go make the changes manually.
Um......  Which operation failed in Post.php?  Maybe I can revise the mod to make installation easier....

After that, I set the permission and boards to post anonymously and all that.
The issue is that I cant find the place to set post anonymously permission for membergroups. I even created a new membergroup but there was no place to set that permission.

The result is that admin can post anonymously but other regular members cant.

Please guide me on how to do this.
Bug confirmed for Simple view.  If you change to Classic, it is available to change.  I'll fix this bug....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on September 14, 2016, 01:54:51 PM
Uploaded v1.5 - September 14th, 2016
o Fixed visible permissions issue when viewing permissions in Simple mode.
Title: Re: Post Anonymously In Topic
Post by: uamsameter on September 14, 2016, 03:21:26 PM
this is the failed operation in subs.php is replacement of

Code: [Select]
// Editing a message...
elseif (isset($_REQUEST['msg']) && !empty($topic))
{
$_REQUEST['msg'] = (int) $_REQUEST['msg'];

// Get the existing message.
$request = $smcFunc['db_query']('', '
SELECT
m.id_member, m.modified_time, m.smileys_enabled, m.body,
m.poster_name, m.poster_email, m.subject, m.icon, m.approved,
IFNULL(a.size, -1) AS filesize, a.filename, a.id_attach,
a.approved AS attachment_approved, t.id_member_started AS id_member_poster,
m.poster_time
FROM {db_prefix}messages AS m
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = {int:current_topic})
LEFT JOIN {db_prefix}attachments AS a ON (a.id_msg = m.id_msg AND a.attachment_type = {int:attachment_type})
WHERE m.id_msg = {int:id_msg}
AND m.id_topic = {int:current_topic}
ORDER BY a.id_attach',
array(
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on September 18, 2016, 09:04:55 PM
Gonna try to be nice, but....  :o First, correct information would be helpful, as the failed operation is in Post.php, not Subs.php.  Second, did you look to see what was different?  Sometimes, just looking at the code, like searching for first line until something looks familiar, helps to make the problem stand out.  Third, you gave me the text to replace from the XML file.  How does that help me figure out what your problem is?  Am I supposed to guess?!  Geez....

Attach your Sources/Post.php file so I can see what is different, because obviously your Sources/Post.php is different than expected.  Otherwise, I can't help you.
Title: Re: Post Anonymously In Topic
Post by: Kindred on September 18, 2016, 09:24:26 PM
uamsameter,

You don't seem to realize that your failure is due to your system and the mods that you have installed prior to this one... Not due to an error in this mod.

Read the FAQ, in the wiki link at the top left, regarding a what to do when a mod fails the auto install test
Title: Re: Post Anonymously In Topic
Post by: uamsameter on September 19, 2016, 06:08:55 PM
dougiefresh,
accept my apologies for the misleading information. I was practically sleep-typing when I posted that reply. kindred can confirm that (I even posted the reply on a wrong topic that day).
the failed operation is in post.php

good news: I sort the issues out since dougiefresh told informed me of the bug in the simple view that day.

Apologies guys.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on September 19, 2016, 08:11:45 PM
dougiefresh,
accept my apologies for the misleading information. I was practically sleep-typing when I posted that reply. kindred can confirm that (I even posted the reply on a wrong topic that day).
the failed operation is in post.php

good news: I sort the issues out since dougiefresh told informed me of the bug in the simple view that day.

Apologies guys.
It's no problem, uamsameter!  I'm glad you got your issue(s) sorted out!
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on October 11, 2016, 08:46:39 PM
In an attempt to resolve the issue I mentioned earlier with people being able to view anonymous posts they shouldn't in the Recent Posts screen, I hacked up this substitution:

Code: (Find) [Select]
$id_mem = (empty($user_info['id']) ? 'm.id_member' : 'IF(m.anonymous ' . ($modSettings['PAM_mode'] == 3 ? '> 0' : '= {int:current_member}') . ', m.anonymous, m.id_member)');
Code: (Replace) [Select]
$see_who = ($modSettings['PAM_mode'] < 2 ? false : ($modSettings['PAM_mode'] == 3 && allowedTo('see_who_posted_anonymously')));
$id_mem = (empty($user_info['id']) ? 'm.id_member' : 'IF(m.anonymous ' . ($see_who ? '> 0' : '= {int:current_member}') . ', m.anonymous, m.id_member)');

I've run it for most of a day and it seems to work so far. I'll get more information about whether this does the trick and if I introduced any new bugs as we keep using it.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 12, 2016, 08:41:14 AM
In an attempt to resolve the issue I mentioned earlier with people being able to view anonymous posts they shouldn't in the Recent Posts screen, I hacked up this substitution:

Code: (Find) [Select]
$id_mem = (empty($user_info['id']) ? 'm.id_member' : 'IF(m.anonymous ' . ($modSettings['PAM_mode'] == 3 ? '> 0' : '= {int:current_member}') . ', m.anonymous, m.id_member)');
Code: (Replace) [Select]
$see_who = ($modSettings['PAM_mode'] < 2 ? false : ($modSettings['PAM_mode'] == 3 && allowedTo('see_who_posted_anonymously')));
$id_mem = (empty($user_info['id']) ? 'm.id_member' : 'IF(m.anonymous ' . ($see_who ? '> 0' : '= {int:current_member}') . ', m.anonymous, m.id_member)');

I've run it for most of a day and it seems to work so far. I'll get more information about whether this does the trick and if I introduced any new bugs as we keep using it.
In what file did you make that edit?
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on October 12, 2016, 12:05:22 PM
Recent.php, in the Sources directory.
Title: Re: Post Anonymously In Topic
Post by: pheng on October 12, 2016, 01:00:46 PM
Quote
There are two new membergroup permissions added in the Admin Area:
o Post Anonymously
o See Who Posted Anonymously

Hello
Where I can find that, I did install and modified the board but Guest can not post

Thanks
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 12, 2016, 07:42:35 PM
Recent.php, in the Sources directory.
You must be running version 1.0 of this mod, cause that is where I found that particular edit.  Please upgrade to version 1.5 before reporting bugs, as many bugs have been fixed since the initial release of the mod!  Thank you!

Where I can find that, I did install and modified the board but Guest can not post
It's in the permissions area: Admin => Members => Permissions
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on October 13, 2016, 05:44:01 PM
You must be running version 1.0 of this mod, cause that is where I found that particular edit.  Please upgrade to version 1.5 before reporting bugs, as many bugs have been fixed since the initial release of the mod!
All righty. I took the release notes to mean that those were the only changes that'd been done and that it didn't fix anything else.

After uninstalling the old version (first undoing my patch) and putting in the new, it looks like there's a bit of a hiccup -- people can't see that they posted their own anonymous posts unless they also have the "see anonymous posts" privilege, which then lets them see everybody's anonymous posts.

There also seems to be minor problems like not being able to view other members' anonymous posts in their post history, in the section showing previous posts in the topic when you're replying to them, when you have the view anonymous posts permission, and when merging topics, but those aren't showstoppers.

Unfortunately, there's a bug that is: with "Everyone who has proper permissions" visibility turned on, you can see who posted anonymously when looking at the most recent unread posts (at index.php?action=unread), whether you have the permission or not.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 13, 2016, 08:26:16 PM
 :o Wow....  I'll definitely look into these bug reports....
Title: Re: Post Anonymously In Topic
Post by: blunted on October 28, 2016, 12:50:55 PM
would you be willing to install this for me ill pay, having errors i am unable to overcome
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 29, 2016, 07:12:43 PM
would you be willing to install this for me ill pay, having errors i am unable to overcome
Yeah, post the files that you are having problems with and what the Package Manager has to say about, like this:
Code: [Select]
1. Execute Code add_remove_hooks.php
* 2. Execute Modification ./Sources/Post.php Test successful
* 3. Execute Modification ./Sources/Subs.php Test successful
* 4. Execute Modification ./Sources/Subs.php Test successful
* 5. Execute Modification ./Themes/default/Profile.template.php Test successful
6. Execute Modification ./Sources/PortalBlocks.php Skipping file
* 7. Execute Modification ./Themes/default/languages/index.english.php Test successful
* 8. Execute Modification ./Themes/default/languages/ManageSettings.english.php Test successful
9. Execute Modification ./Themes/default/languages/index.english-utf8.php Skipping file
10. Execute Modification ./Themes/default/languages/ManageSettings.english-utf8.php Skipping file
11. Execute Modification ./Themes/default/languages/index.spanish_latin-utf8.php Skipping file
12. Execute Modification ./Themes/default/languages/ManageSettings.spanish_latin-utf8.php Skipping file
13. Delete File ./Sources/Subs-BBCode-YouTube.php
14. Delete File ./Themes/default/css/BBCode-YouTube2.css
15. Delete File ./Themes/default/images/bbc/youtube.gif
16. Delete File ./Themes/default/images/bbc/yt_search.gif
17. Delete File ./Themes/default/images/bbc/yt_user.gif
Maybe I can fix the mod so that it installs correctly without manual changes for you....
Title: Re: Post Anonymously In Topic
Post by: Temptest on October 29, 2016, 07:57:36 PM
I didn't think you needed a mod to do this.
Title: Re: Post Anonymously In Topic
Post by: Kindred on October 29, 2016, 09:00:12 PM
You do.

Btw, your signature is really obnoxiously large....
Title: Re: Post Anonymously In Topic
Post by: Temptest on October 29, 2016, 09:14:11 PM
I can't change it. I don't have the tab that allows me to change my signature on my profile page. I don't know why. Do you know how to fix it?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 30, 2016, 10:48:13 PM
Uploaded v1.6 - October 30th, 2016
o Mostly resolved install errors when using with the Likes mod.



would you be willing to install this for me ill pay, having errors i am unable to overcome
Hopefully, this update resolves the issues you sent me.  Please note that for the Sources/Profile-View.php, operation # 1 should fail and operation # 2 should be successful.  This is intentional and SHOULD allow the mod to correctly install itself on a forum with the Likes mod that you are using.   Additionally, it would be helpful to know which Likes mod you are using, so I can correctly update the readme.txt to reflect this.

If you wish to donate/pay, then please do so to PayPal address donate@xptsp.com.  Thanks!

After uninstalling the old version (first undoing my patch) and putting in the new, it looks like there's a bit of a hiccup -- people can't see that they posted their own anonymous posts unless they also have the "see anonymous posts" privilege, which then lets them see everybody's anonymous posts.

There also seems to be minor problems like not being able to view other members' anonymous posts in their post history, in the section showing previous posts in the topic when you're replying to them, when you have the view anonymous posts permission, and when merging topics, but those aren't showstoppers.

Unfortunately, there's a bug that is: with "Everyone who has proper permissions" visibility turned on, you can see who posted anonymously when looking at the most recent unread posts (at index.php?action=unread), whether you have the permission or not.
This update does not address any of your bug reports.  For this, I apologize....
Title: Re: Post Anonymously In Topic
Post by: blunted on November 02, 2016, 04:45:11 PM
dont see anything in admin, a check box and 2 number boxes with no description and also get this at top

$txt['PAM_mode'] = 'Who Can See Anonymous Poster:'; $txt['PAM_mode0'] = 'No One. Also disables recording Member ID.'; $txt['PAM_mode1'] = 'No One.'; $txt['PAM_mode2'] = 'Only Original Poster (OP)'; $txt['PAM_mode3'] = 'Everyone with "See Who Posted Anonymously" permission.';

> needs to be added? forget which file
Title: Re: Post Anonymously In Topic
Post by: Kindred on November 02, 2016, 04:52:07 PM
No... ?> does not need to be ADDED... it needs to be moved to the end of the file.
Some other mod screwed up your language file (probably modifications.english.php) and then this mod tried to add strings to the end, but (because of the previous mod) added them after the ?>
Title: Re: Post Anonymously In Topic
Post by: blunted on November 02, 2016, 05:18:59 PM
No... ?> does not need to be ADDED... it needs to be moved to the end of the file.
Some other mod screwed up your language file (probably modifications.english.php) and then this mod tried to add strings to the end, but (because of the previous mod) added them after the ?>
ty!
Yeah couldnt 100% remember
Title: Re: Post Anonymously In Topic
Post by: blunted on November 02, 2016, 05:24:41 PM
nope that wasnt the file
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on November 03, 2016, 01:36:57 AM
This update does not address any of your bug reports.  For this, I apologize....
That's fine; life is how it is sometimes.

I did have one idea for an addition to the mod -- perhaps add an option that lets the person who created the topic view anonymous posts in that topic? Ideally, this could be available as a secondary option for both the "everyone who can see anonymous posts" option, and with "only original poster".
Title: Re: Post Anonymously In Topic
Post by: Arantor on November 03, 2016, 07:10:29 AM
The problem with that is that you pretty much then need to delineate it to "topic starters in these boards can see the posters" and "topic starters in these boards cannot see the posters" making it a metric ton more complex.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 03, 2016, 10:03:49 AM
I did have one idea for an addition to the mod -- perhaps add an option that lets the person who created the topic view anonymous posts in that topic? Ideally, this could be available as a secondary option for both the "everyone who can see anonymous posts" option, and with "only original poster".
Let me think about this one some....  I've still got those few bugs to work out, and I've got so much to try to address....  :-\

The problem with that is that you pretty much then need to delineate it to "topic starters in these boards can see the posters" and "topic starters in these boards cannot see the posters" making it a metric ton more complex.
I'm not sure it'd be much more complex, as I'd have to do is check to see if the OP in the thread is the current user....  It's doable...
Title: Re: Post Anonymously In Topic
Post by: blunted on November 03, 2016, 01:21:10 PM
dont see anything in admin, a check box and 2 number boxes with no description and also get this at top

$txt['PAM_mode'] = 'Who Can See Anonymous Poster:'; $txt['PAM_mode0'] = 'No One. Also disables recording Member ID.'; $txt['PAM_mode1'] = 'No One.'; $txt['PAM_mode2'] = 'Only Original Poster (OP)'; $txt['PAM_mode3'] = 'Everyone with "See Who Posted Anonymously" permission.';

> needs to be added? forget which file
any ideas?

also a nice feature would be members still being to see themselves posted.
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on November 03, 2016, 01:24:22 PM
Let me think about this one some....  I've still got those few bugs to work out, and I've got so much to try to address....  :-\
That's all right; there's no rush.

Like I said to an opposing volleyball team one time when they were chirping at us to set up more quickly, greatness takes time!
Title: Re: Post Anonymously In Topic
Post by: Shambles on November 03, 2016, 01:36:59 PM
dont see anything in admin, a check box and 2 number boxes with no description and also get this at top

$txt['PAM_mode'] = 'Who Can See Anonymous Poster:'; $txt['PAM_mode0'] = 'No One. Also disables recording Member ID.'; $txt['PAM_mode1'] = 'No One.'; $txt['PAM_mode2'] = 'Only Original Poster (OP)'; $txt['PAM_mode3'] = 'Everyone with "See Who Posted Anonymously" permission.';

> needs to be added? forget which file

any ideas?


The file should be Admin.english.php
Title: Re: Post Anonymously In Topic
Post by: blunted on November 07, 2016, 01:02:25 PM
dont see anything in admin, a check box and 2 number boxes with no description and also get this at top

$txt['PAM_mode'] = 'Who Can See Anonymous Poster:'; $txt['PAM_mode0'] = 'No One. Also disables recording Member ID.'; $txt['PAM_mode1'] = 'No One.'; $txt['PAM_mode2'] = 'Only Original Poster (OP)'; $txt['PAM_mode3'] = 'Everyone with "See Who Posted Anonymously" permission.';

> needs to be added? forget which file

any ideas?


The file should be Admin.english.php
THANKYOU

There was a second occurence of ?> mixed in like I never seen before

FIXED and appreciate it!
Title: Re: Post Anonymously In Topic
Post by: blunted on November 09, 2016, 03:57:52 PM
ever since installing this im getting errors of anonymous table doesnt exist on numerous actions
Title: Re: Post Anonymously In Topic
Post by: Kindred on November 09, 2016, 07:41:03 PM
That suggests the that the database creation portion of the install was never run
Title: Re: Post Anonymously In Topic
Post by: blunted on November 09, 2016, 07:50:59 PM
kinda fixed the error by manually creating a table, not sure if its fully fixed
Title: Re: Post Anonymously In Topic
Post by: blunted on November 10, 2016, 05:10:23 AM
An Error Has Occurred!
The database value you're trying to insert does not exist: anonymous

guess not.
any idea how to fix?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 10, 2016, 06:52:56 AM
Looks like you're missing a column in the {db_prefix}messages table.

I would advise extracting the db_install.php file from the package, putting in the root of your forum, then executing it.  For example, if your forum was at www.xptsp.com/forum, then it would become www.xptsp.com/forum/db_install.php.  Once it's run, you can delete the file.
Title: Re: Post Anonymously In Topic
Post by: blunted on November 11, 2016, 05:07:49 PM
ran it
problem still there
Title: Re: Post Anonymously In Topic
Post by: blunted on November 13, 2016, 06:53:37 PM
so no solution?
Title: Re: Post Anonymously In Topic
Post by: PyroTech03 on November 14, 2016, 02:08:18 AM
I have run into a similar issue as well...Multiple failed tests on install too.  Tried manually inserting the code that it's failing on, but run into the issue of annonymous being added to database.  Field was present on db.

running SMF 2.0.12 currently.  Running 1.6 of the mod.  What sort of info do I need to provide to help with solving this?

Thanks in advanced!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 14, 2016, 08:33:24 PM
I haven't looked at the mod lately, mostly because of work and other things......
Title: Re: Post Anonymously In Topic
Post by: blunted on November 16, 2016, 05:14:53 PM
any idea when you might?
its ruining several areas of my board
Title: Re: Post Anonymously In Topic
Post by: blunted on November 22, 2016, 10:31:51 PM
no update?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 23, 2016, 09:02:32 AM
I'm working on the mod.  I've run into a situation where the forum gives a white screen of death, after logging in as a tester (regular member membegroup) that has the "can post anonymously" but not the "can see anonymous posts" permission..... 
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 24, 2016, 10:53:44 PM
I have run into a similar issue as well...Multiple failed tests on install too.  Tried manually inserting the code that it's failing on, but run into the issue of annonymous being added to database.  Field was present on db.

running SMF 2.0.12 currently.  Running 1.6 of the mod.  What sort of info do I need to provide to help with solving this?

Thanks in advanced!
Well, just telling me it failed on multiple operations doesn't really help me....  Letting me know which operations and having a copy of the affected file attached to a post would greatly help me in assisting you.
Title: Re: Post Anonymously In Topic
Post by: PyroTech03 on November 24, 2016, 11:27:25 PM
I'll get that prolly after weekend due to the holidays.

I only mention that it failed multiple tests on install as I did the manual edits it was trying for myself afterwards and still had problems.

Did anonymous change to anon as a variable on some version? That seemed to have come up if I recall correctly.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 25, 2016, 09:39:12 PM
I'll get that prolly after weekend due to the holidays.

I only mention that it failed multiple tests on install as I did the manual edits it was trying for myself afterwards and still had problems.
I'm working on rewriting the mod at this time, fixing as many bugs as I can and unifying the decisions across all operations....  That being said, any specific information helps on diagnosing these reports....

Did anonymous change to anon as a variable on some version? That seemed to have come up if I recall correctly.
No clue.  I'm looking into this bug report, too....
Title: Re: Post Anonymously In Topic
Post by: blunted on November 25, 2016, 10:15:52 PM
verifying signups is one area
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 26, 2016, 11:10:29 AM
Uploaded v2.0 - November 26th, 2016
o Added code to globalize related database decisions into function in Subs-PAIT.php
o Moved permissions and settings code into Subs-PAIT.php.
o Moved all new language strings into seperate language files.
o Fixed error that occurs when changing a post to/from anonymous.
o Fixed issue where users couldn't see their own anonymous post.
o Fixed issue where user that posted anonymous post wasn't able to edit said post.
o Fixed issue where anonymous status wasn't automatically retained while editing.



@Everybody:  Hopefully, this update will solve the bug reports that have been filed with enough information to address them.  Please note that SMF 2.1 isn't covered by these changes yet, so please, no complaints about that.....

verifying signups is one area
A URL to the area affected (ie: ?actions=verify_signups) would be helpful.....  O:)  Plus, "verifying signups is one area" what?
Title: Re: Post Anonymously In Topic
Post by: blunted on November 26, 2016, 01:28:06 PM
in the admin when you verify a new user...

that is just one area the database issue is occurring
Title: Re: Post Anonymously In Topic
Post by: blunted on November 26, 2016, 02:06:07 PM
i think the update may have fixed it
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 26, 2016, 02:19:03 PM
i think the update may have fixed it
Thank you for the feedback!

What I can is add more links to automatically make the post anonymous
This has been completed for the next version....

The problem we have right now is that members can still see, in "Who's Online", when somebody is posting somewhere. It doesn't take a rocket scientist to figure out, when the list says that so-and-so is posting in a thread and an anonymous post shows up there not long after, who most likely made it. ;) This might not be a problem for huge boards where nobody could possibly keep track of everything everybody's doing, but in a smaller community like ours it's a factor to consider.
I'm working on this particular issue for next version....

EDIT:  I should have said "Working on this idea from several different angles"....

I did have one idea for an addition to the mod -- perhaps add an option that lets the person who created the topic view anonymous posts in that topic? Ideally, this could be available as a secondary option for both the "everyone who can see anonymous posts" option, and with "only original poster".
Working on this idea right now....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 28, 2016, 09:55:30 PM
I did have one idea for an addition to the mod -- perhaps add an option that lets the person who created the topic view anonymous posts in that topic? Ideally, this could be available as a secondary option for both the "everyone who can see anonymous posts" option, and with "only original poster".
This screenshow shows what I've got so far for the feature request from awhile ago....  Gonna try to add a listing of boards to pick to allow anonymous posts on....

What do ya think?  (Yes, I moved the settings AGAIN....)
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on November 28, 2016, 10:27:29 PM
Looks wonderful!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on November 30, 2016, 09:16:06 PM
Uploaded v2.1 - November 30th, 2016
o Added code to allow user to click to make a post anonymous or not from the post display screen.
o Added new permission to allow topic starters to see who posted anonymously within the board.
o Added option to hide user while editing an anonymous post on the board.
o Added code so that user is hidden while posting once "Anonymous Post" checkbox is checked.
o Added code so that user can start an anonymous post from the Topic Display pages.
o Moved the settings for this mod onto a seperate page under Modification Settings.
o Added new permission selection settings to the mod settings.
o Added list of boards capable of anonymous posting to the mod settings.
o NOTE: SMF 2.1 installer brought up to date with version 2.0 changes.



@Everybody:  This update should address the feature request made by James Gryphon (http://www.simplemachines.org/community/index.php?action=profile;u=431749).  It is almost complete, except for the fact that recent posts and topics don't quite work properly.  I have to look much further into the code to see what I need to change in order to get the "Topic Starters" feature introduced in this version to work properly there....  I have too much other stuff to work on, so I'm going to try to get the other mods' working properly, then come back to this....
Title: Re: Post Anonymously In Topic
Post by: blunted on December 14, 2016, 08:21:36 PM
broke my ability to remove posts
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on December 14, 2016, 09:43:50 PM
broke my ability to remove posts
So many questions.....  Sigh.

Are you the admin of the forum? (It shouldn't matter, but it'd be nice to know)

What is the anonymous post setting in Modification Settings?  Is the post in question your own?  Is it someone elses?
Title: Re: Post Anonymously In Topic
Post by: Kindred on December 14, 2016, 11:05:03 PM
Jeez...   we tracked down the bug and the user has the original error report..  but apoarently gly, when we told him to ask for help here, he decided to post a generic, useless report.

It's a database error ... your mod changes some of the db queries in removeTopicsand apparently changes something improperly
Title: Re: Post Anonymously In Topic
Post by: blunted on December 15, 2016, 02:27:35 AM
I had actually pasted a link to the thread or so i thought.  Was.on my phone which sucks at copy paste appologies..

http://www.simplemachines.org/community/index.php?topic=550481.msg3903596#msg3903596
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on December 15, 2016, 09:11:35 AM
Uploaded v2.2 - December 15th, 2016
o Fixed error in RemoveTopics function that broke the ability to remove posts.



@blunted and @Kindred:  Thank you for both the bug report and the solution to said bug report!!  It's been included in this update.

@Kindred:  Yeah, I see what you mean about the "generic, useless report" he posted....

@blunted: No worries!  We got it!
Title: Re: Post Anonymously In Topic
Post by: James Gryphon on January 23, 2017, 11:01:08 PM
Hi Doug,
Quote
Added code to allow user to click to make a post anonymous or not from the post display screen.

Does this check to see whether posting anonymously is permitted in that board? I ask just because the button seems to be showing up all over the forum, and I wanted to know if it was a problem with the mod or a problem with my installation.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on January 27, 2017, 10:16:27 PM
Does this check to see whether posting anonymously is permitted in that board? I ask just because the button seems to be showing up all over the forum, and I wanted to know if it was a problem with the mod or a problem with my installation.
Um....  I may have missed something.  Let me look into this bug report!
Title: Re: Post Anonymously In Topic
Post by: blunted on February 08, 2017, 11:20:44 AM
Installed the update however now before each subject of the thread it has

Array :

Also anyway to change it from saying guest as the poster?

I assume this is from the boardindex.template

Here is my start of that code insertion
<strong>', $board['last_post']['anon'], $txt['last_post'], '</strong> 
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on February 10, 2017, 12:39:51 PM
Uploaded v2.3 - February 10th, 2017
o Changed default sort direction to descending.
o Fixed issue where clicking on pages in "Participated In" goes back to "Topics Created" page.



Does this check to see whether posting anonymously is permitted in that board? I ask just because the button seems to be showing up all over the forum, and I wanted to know if it was a problem with the mod or a problem with my installation.
This update should fix the issue you brought up!  Thank you for the bug report!

Installed the update however now before each subject of the thread it has

Array :
I can't reproduce this bug report. 

I assume this is from the boardindex.template
If it is before the subject of each thread, then that would place it in MessageIndex.template.php, not BoardIndex.template.php.....

Also anyway to change it from saying guest as the poster?
If it is an anonymous post, it should say Anonymous, not Guest

If you want to change that string, it is in Themes/default/languages/PAIT.english.php, under:
Code: [Select]
$txt['anonymous'] = 'Anonymous';
Title: Re: Post Anonymously In Topic
Post by: blunted on February 10, 2017, 12:59:05 PM
It is in the overall board view.
So youre saying to remove that change in boardindex?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on February 10, 2017, 01:06:24 PM
Can you attach a screenshot so that I can see what you're talking about?  Because I'm not sure we are on the same page.....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on February 11, 2017, 10:16:19 PM
Got the pic.  Hmmmm.....  Board index problem.  Will look into it.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 01, 2017, 08:07:45 PM
Uploaded v2.4 - March 1st, 2017
o Attempt fix to BoardIndex.template.php display of "Array" string.



@blunted:  I apologize for the delay in answering this question.  I couldn't find anything that would produce the screenshot you PM'ed me, nor could I reproduce the issue you showed me.  So I attempted a fix by checking the variable to see if it is empty....  Maybe this will solve the issue.  I dunno.  Let me know if it does.  Thank you!
Title: Re: Post Anonymously In Topic
Post by: blunted on March 02, 2017, 01:59:04 PM
ty sorry for late reply i didnt get a notice. its not a huge issue ill try to install when i get tme
appreciate it!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 19, 2017, 11:28:21 AM
@blunted:  Any word on whether this update fixed the issue you saw?  It's only been 2 1/2 weeks since your reply....  O:)
Title: Re: Post Anonymously In Topic
Post by: thunderchld on March 19, 2017, 04:17:54 PM
Question:  I am using Custom Forms mod and I'd like to have an "anonymous feedback" option on the page.

I have my board set up, and post anonymously in topic works great - unless the post comes from the form.  If I post directly on the board, everything works. I'm at a lost.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 19, 2017, 04:38:45 PM
I'd have to look at that mod and see what needs to be changed in order for it to submit anonymous posts correctly....
Title: Re: Post Anonymously In Topic
Post by: thunderchld on March 19, 2017, 07:52:11 PM
I'd have to look at that mod and see what needs to be changed in order for it to submit anonymous posts correctly....

Whoops - Sorry about that. I thought I linked to the mod.  It is Custom Form Mod: http://custom.simplemachines.org/mods/index.php?mod=1279
Title: Re: Post Anonymously In Topic
Post by: thunderchld on March 30, 2017, 06:58:48 AM
I've been thinking about this. Would it be possible to have a checkbox on the form that the user can check/unchecked to submit anonymously?  If checked, member ID / name becomes 0/anonymous otherwise is their correct information?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 30, 2017, 09:39:36 AM
Yeah, that's what I was planned.  Just having had time or energy to do so....
Title: Re: Post Anonymously In Topic
Post by: thunderchld on March 30, 2017, 11:33:42 AM
I 100% understand and do not mean to come across pushy. I was thinking on my commute this morning of something more entertaining then my day ahead of me. :D   (The forum I run is for a personal hobby, not work.)
Title: Re: Post Anonymously In Topic
Post by: Caseeno8 on April 27, 2017, 05:42:33 PM
 just downloaded this mod and was successful.  The new settings screen came up and I made my selections and hit save.  Now the new settings screen is no where to be found.  It's gone.  In package manager I see the mod is there.  Anyone have any ideas.  I'm on 2.0.13 using TemiZ theme. That's first mod I installed on my forum.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on April 28, 2017, 03:52:40 PM
I'll take a look tomorrow....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on April 30, 2017, 10:27:36 AM
just downloaded this mod and was successful.  The new settings screen came up and I made my selections and hit save.  Now the new settings screen is no where to be found.  It's gone.  In package manager I see the mod is there.  Anyone have any ideas.  I'm on 2.0.13 using TemiZ theme. That's first mod I installed on my forum.
Yeah, I can duplicate this bug report....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on April 30, 2017, 12:56:10 PM
Uploaded v2.5 - April 30th, 2017
o Added missing admin hook to fix admin settings not showing up.



@Caseeno8:  I fixed this issue.  One of the admin hooks went missing....  Thank you for the bug report!

@thunderchld:  Sorry, I haven't examined your request yet....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on July 05, 2017, 06:40:09 PM
Uploaded v2.6 - July 5th, 2017
o Updated mod to install correctly on SMF 2.0.14.
Title: Re: Post Anonymously In Topic
Post by: thunderchld on July 06, 2017, 07:09:50 PM
Uploaded v2.5 - April 30th, 2017
@thunderchld:  Sorry, I haven't examined your request yet....

No worries!   Sorry, I thought I responded back in April.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on July 07, 2017, 11:31:12 AM
Uploaded v2.7 - July 7th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 2.
o Added anonymous posting support for Custom Form mod.



@thunderchld:  Your feature request has been fulfilled (finally!).  In order to use this feature, you must put a field in your custom forum called "anonymous".  It won't be added to the form itself, but rather used to flag a custom form post as anonymous.....  Let me know if this works for ya....
Title: Re: Post Anonymously In Topic
Post by: thunderchld on July 07, 2017, 02:20:05 PM
Uploaded v2.7 - July 7th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 2.
o Added anonymous posting support for Custom Form mod.



@thunderchld:  Your feature request has been fulfilled (finally!).  In order to use this feature, you must put a field in your custom forum called "anonymous".  It won't be added to the form itself, but rather used to flag a custom form post as anonymous.....  Let me know if this works for ya....

This is amazing! Thank you.  Is there any specific field type that should be used? Or just any so long as it is labeled "anonymous"?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on July 07, 2017, 02:56:48 PM
This is amazing! Thank you.  Is there any specific field type that should be used? Or just any so long as it is labeled "anonymous"?
A checkbox should work nicely.  Or should I add the field to the template, so that it isn't necessary to modify the form data?  Please note that the new code hasn't been tested much, but it should work just fine....
Title: Re: Post Anonymously In Topic
Post by: thunderchld on July 07, 2017, 03:31:20 PM
A checkbox works perfect for me actually, so that's fantastic.   I'm actually in the process of re-building my test site, so I'll be happy to test it and get you feedback this weekend. I really appreciate it
Title: Re: Post Anonymously In Topic
Post by: thunderchld on July 10, 2017, 05:58:50 PM
A bit behind; but I'm working on getting the mod tested. Thank you again.
Title: Re: Post Anonymously In Topic
Post by: Seamless on July 12, 2017, 06:07:04 PM
Hello all,

Recently, whilst upgrading your mod, I got an error and from that point forwards I've been unable to access the admin page.

If I click anything from the admin menu, I get the following piece of code. I've upgraded to 2.0.14 from 2.0.13 but that didn't fix anything at all. I've changed themes (that didn't help either). I think I've actually made things worse as now no one can log in on new devices - it just says that the session has expired :(

It's becoming an issue pretty quickly now as we can't ban anyone. Any help would be appreciated =)

Code: [Select]
Array
(
    [forum] => Array
        (
            [title] => Main
            [permission] => Array
                (
                    [0] => admin_forum
                    [1] => manage_permissions
                    [2] => moderate_forum
                    [3] => manage_membergroups
                    [4] => manage_bans
                    [5] => send_mail
                    [6] => edit_news
                    [7] => manage_boards
                    [8] => manage_smileys
                    [9] => manage_attachments
                )

            [areas] => Array
                (
                    [index] => Array
                        (
                            [label] => Administration Center
                            [function] => AdminHome
                            [icon] => administration.gif
                        )

                    [credits] => Array
                        (
                            [label] => Support and Credits
                            [function] => AdminHome
                            [icon] => support.gif
                        )

                    [news] => Array
                        (
                            [label] => News and Newsletters
                            [file] => ManageNews.php
                            [function] => ManageNews
                            [icon] => news.gif
                            [permission] => Array
                                (
                                    [0] => edit_news
                                    [1] => send_mail
                                    [2] => admin_forum
                                )

                            [subsections] => Array
                                (
                                    [editnews] => Array
                                        (
                                            [0] => News
                                            [1] => edit_news
                                        )

                                    [mailingmembers] => Array
                                        (
                                            [0] => Newsletters
                                            [1] => send_mail
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [packages] => Array
                        (
                            [label] => Package Manager
                            [file] => Packages.php
                            [function] => Packages
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [icon] => packages.gif
                            [subsections] => Array
                                (
                                    [browse] => Array
                                        (
                                            [0] => Browse Packages
                                        )

                                    [packageget] => Array
                                        (
                                            [0] => Download Packages
                                            [url] => http://fantasy-faction.com/forum/index.php?action=admin;area=packages;sa=packageget;get
                                        )

                                    [installed] => Array
                                        (
                                            [0] => Installed Packages
                                        )

                                    [perms] => Array
                                        (
                                            [0] => File Permissions
                                        )

                                    [options] => Array
                                        (
                                            [0] => Options
                                        )

                                )

                        )

                    [search] => Array
                        (
                            [function] => AdminSearch
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [select] => index
                        )

                )

        )

    [config] => Array
        (
            [title] => Configuration
            [permission] => Array
                (
                    [0] => admin_forum
                )

            [areas] => Array
                (
                    [corefeatures] => Array
                        (
                            [label] => Core Features
                            [file] => ManageSettings.php
                            [function] => ModifyCoreFeatures
                            [icon] => corefeatures.gif
                        )

                    [featuresettings] => Array
                        (
                            [label] => Features and Options
                            [file] => ManageSettings.php
                            [function] => ModifyFeatureSettings
                            [icon] => features.gif
                            [subsections] => Array
                                (
                                    [basic] => Array
                                        (
                                            [0] => General
                                        )

                                    [layout] => Array
                                        (
                                            [0] => Layout
                                        )

                                    [karma] => Array
                                        (
                                            [0] => Karma
                                            [enabled] =>
                                        )

                                    [sig] => Array
                                        (
                                            [0] => Signatures
                                        )

                                    [profile] => Array
                                        (
                                            [0] => Profile Fields
                                            [enabled] =>
                                        )

                                )

                        )

                    [securitysettings] => Array
                        (
                            [label] => Security and Moderation
                            [file] => ManageSettings.php
                            [function] => ModifySecuritySettings
                            [icon] => security.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => General
                                        )

                                    [spam] => Array
                                        (
                                            [0] => Anti-Spam
                                        )

                                    [moderation] => Array
                                        (
                                            [0] => Moderation
                                            [enabled] =>
                                        )

                                )

                        )

                    [languages] => Array
                        (
                            [label] => Languages
                            [file] => ManageServer.php
                            [function] => ManageLanguages
                            [icon] => languages.gif
                            [subsections] => Array
                                (
                                    [edit] => Array
                                        (
                                            [0] => Edit Languages
                                        )

                                    [add] => Array
                                        (
                                            [0] => Add Language
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                        )

                                )

                        )

                    [serversettings] => Array
                        (
                            [label] => Server Settings
                            [file] => ManageServer.php
                            [function] => ModifySettings
                            [icon] => server.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => General
                                        )

                                    [database] => Array
                                        (
                                            [0] => Database and Paths
                                        )

                                    [cookie] => Array
                                        (
                                            [0] => Cookies and Sessions
                                        )

                                    [cache] => Array
                                        (
                                            [0] => Caching
                                        )

                                    [loads] => Array
                                        (
                                            [0] => Load Balancing
                                        )

                                )

                        )

                    [current_theme] => Array
                        (
                            [label] => Current Theme
                            [file] => Themes.php
                            [function] => ThemesMain
                            [custom_url] => http://fantasy-faction.com/forum/index.php?action=admin;area=theme;sa=settings;th=3
                            [icon] => current_theme.gif
                        )

                    [theme] => Array
                        (
                            [label] => Themes and Layout
                            [file] => Themes.php
                            [function] => ThemesMain
                            [custom_url] => http://fantasy-faction.com/forum/index.php?action=admin;area=theme;sa=admin
                            [icon] => themes.gif
                            [subsections] => Array
                                (
                                    [admin] => Array
                                        (
                                            [0] => Manage and Install
                                        )

                                    [list] => Array
                                        (
                                            [0] => Theme Settings
                                        )

                                    [reset] => Array
                                        (
                                            [0] => Member Options
                                        )

                                    [edit] => Array
                                        (
                                            [0] => Modify Themes
                                        )

                                )

                        )

                    [modsettings] => Array
                        (
                            [label] => Modification Settings
                            [file] => ManageSettings.php
                            [function] => ModifyModSettings
                            [icon] => modifications.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => Miscellaneous
                                        )

                                    [hooks] => Array
                                        (
                                            [0] => Integration Hooks
                                        )

                                    [pait] => Array
                                        (
                                            [0] => PAIT
                                        )

                                )

                        )

                    [tapatalksettings] => Array
                        (
                            [label] =>
                            [file] => ManageTapatalk.php
                            [function] => ManageTapatalk
                            [icon] => tapatalk_settings.png
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] =>
                                        )

                                    [boards] => Array
                                        (
                                            [0] =>
                                        )

                                    [rebranding] => Array
                                        (
                                            [0] =>
                                        )

                                    [others] => Array
                                        (
                                            [0] =>
                                        )

                                )

                        )

                    [likeposts] => Array
                        (
                            [label] => Like Posts
                            [file] => /LikePosts/LikePostsRouter.php
                            [function] => routeLikePostsAdmin
                            [icon] => administration.gif
                            [subsections] => Array
                                (
                                )

                        )

                )

        )

    [layout] => Array
        (
            [title] => Forum
            [permission] => Array
                (
                    [0] => manage_boards
                    [1] => admin_forum
                    [2] => manage_smileys
                    [3] => manage_attachments
                    [4] => moderate_forum
                )

            [areas] => Array
                (
                    [manageboards] => Array
                        (
                            [label] => Boards
                            [file] => ManageBoards.php
                            [function] => ManageBoards
                            [icon] => boards.gif
                            [permission] => Array
                                (
                                    [0] => manage_boards
                                )

                            [subsections] => Array
                                (
                                    [main] => Array
                                        (
                                            [0] => Modify Boards
                                        )

                                    [newcat] => Array
                                        (
                                            [0] => Create New Category
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [postsettings] => Array
                        (
                            [label] => Posts and Topics
                            [file] => ManagePosts.php
                            [function] => ManagePostSettings
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [icon] => posts.gif
                            [subsections] => Array
                                (
                                    [posts] => Array
                                        (
                                            [0] => Post Settings
                                        )

                                    [bbc] => Array
                                        (
                                            [0] => Bulletin Board Code
                                        )

                                    [censor] => Array
                                        (
                                            [0] => Censored Words
                                        )

                                    [topics] => Array
                                        (
                                            [0] => Topic Settings
                                        )

                                )

                        )

                    [managecalendar] => Array
                        (
                            [label] => Calendar
                            [file] => ManageCalendar.php
                            [function] => ManageCalendar
                            [icon] => calendar.gif
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [enabled] => 1
                            [subsections] => Array
                                (
                                    [holidays] => Array
                                        (
                                            [0] => Manage Holidays
                                            [1] => admin_forum
                                            [enabled] => 1
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Calendar Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [managesearch] => Array
                        (
                            [label] => Search
                            [file] => ManageSearch.php
                            [function] => ManageSearch
                            [icon] => search.gif
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [subsections] => Array
                                (
                                    [weights] => Array
                                        (
                                            [0] => Weights
                                        )

                                    [method] => Array
                                        (
                                            [0] => Search Method
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                        )

                                )

                        )

                    [smileys] => Array
                        (
                            [label] => Smileys and Message Icons
                            [file] => ManageSmileys.php
                            [function] => ManageSmileys
                            [icon] => smiley.gif
                            [permission] => Array
                                (
                                    [0] => manage_smileys
                                )

                            [subsections] => Array
                                (
                                    [editsets] => Array
                                        (
                                            [0] => Smiley Sets
                                        )

                                    [addsmiley] => Array
                                        (
                                            [0] => Add Smiley
                                            [enabled] =>
                                        )

                                    [editsmileys] => Array
                                        (
                                            [0] => Edit Smileys
                                            [enabled] =>
                                        )

                                    [setorder] => Array
                                        (
                                            [0] => Set Smiley Order
                                            [enabled] =>
                                        )

                                    [editicons] => Array
                                        (
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on July 12, 2017, 06:13:06 PM
Try uploading the attached file to your Sources folder.  Let me know if it fixes the issue....
Title: Re: Post Anonymously In Topic
Post by: thunderchld on July 13, 2017, 02:42:07 PM
ALright, first...OMG Yes! thank you. This is perfect.  I thought I had a problem, but it appears to be with my test install somehow.  I was able ot make it work properly on my production site. (oddly enough).

The checkbox works amazing.

For those following along, I made a new field on my form. The internal text is "anonymous". The external Title is still whatever I want it to me. I set the type as a checkbox.
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 04, 2018, 06:00:58 PM
The mod appears to be working and not seen , however upon checking the box at settings its

Hide users posting anonymously?  check box then saving gives this error, not sure what the check box does?

Database error, given array of integer values is empty. (boards)
Function: PAIT_ConfigApply Filter: Only show the errors from this file File: /home/******/public_html/Sources/Subs-PAIT.php
Line: 343
Quote
   
);
      $smcFunc['db_query']('', '
         UPDATE {db_prefix}boards
         SET post_anon = 1
         WHERE id_board IN ({array_int:boards})',
         array(
            'boards' => $anon,
         )
Red = line 343 Not sure what that setting does, this board only has me as a member as its being setup was needing this mod and there are no errors installing or removing it.

EDIT: ok apparently any setting under Post Anonymously In Topic settings, gives that same error. Yet it will post anonymous but none of these settings will save.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on January 06, 2018, 10:38:34 PM
@SaltedWeb: When I installed it on a clean localhost forum, the options were able to be saved correctly.  My suggestion is to extract db_install.php and place it into your forum root folder, then call it directly from your web browser.  It should insert the fields into the database that you seem to be missing....

EDIT:  Scratch that.  Modified the board listing that could post anonymously and that error came up.  Let me figure out WTF is going on here....
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 07, 2018, 02:06:03 AM
Just got home, thanks  :) Dougie I had not tried it yet .....thanks for looking into it.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on January 07, 2018, 09:37:40 PM
Uploaded v2.8 - January 7th, 2018
o Fixed "array of integer values is empty" database error in Subs-PAIT.php.



@SaltedWeb:  This update should fix the issue you reported!  Thanks again!
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 07, 2018, 11:22:52 PM
So I removed the old one and tested it, found a conflict with a Mod but thats my own problem I worked around.
Seems to all be working as it should appreciate your hard work. I will test it more in my test forum Monday afternoon
but tonight I found permissions for groups, adding to new boards modifying old boards with the addon working fine and smooth.
And also no error codes :-)
I will try tomorrow adding a member to test forum and see if it hides them, for that button

You sure come up with some great mods thanks DougieFresh for all the help.

SW
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on January 08, 2018, 10:47:16 AM
@SaltedWeb:  What mod are you experiencing a conflict with?  Maybe I can resolve the conflict between the two.....
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 08, 2018, 04:26:13 PM
@Dougiefresh
Hi Dougie it was Board-color-and-icons 1.1 it gave an error when I installed the Anonymous a mod, but found if removed Board-color-and-icons
then installed Anonymous there was no error so was my work around. I try and always check everything I can before bugging the developers.
I don't have any error codes just install or removal codes which seemed to fix it as installed.
Hope that made sense...
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 08, 2018, 05:45:39 PM
So I did find that the new version gives the error below when  Board-color-and-icons 1.1 is active.
If I remover the  Board-color-and-icons 1.1 first then Anonymous mod will uninstall just fine.
So something bewteen them tow hope the attached helps.

PS as mentioned before DougieFresh, I tested the other additions and they seem to work all as they should just the above conflict between
those two mods.  Let me know if you need anything else I am running them on a test board so it wont good up anything :-)

( edit forgot the error pic)
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on January 08, 2018, 11:44:22 PM
@SaltedWeb:  A mod I've found very useful while dealing with mods is Arantor's Sortable Packages (and Installed Time) (https://custom.simplemachines.org/mods/index.php?mod=2323) mod.  It allows you to sort the mods by installation order....  It's been quite helpful to me, and hopefully it will be to you as well....

Regarding the mod resolution, I've make a note for the next version about the mod installation order....
Title: Re: Post Anonymously In Topic
Post by: aegersz on January 09, 2018, 03:40:27 AM
 that Sortable Packages mod was recommended to me by SM and it's absolutely vital if you have lots of mods.

it's a beauty !
Title: Re: Post Anonymously In Topic
Post by: SaltedWeb on January 09, 2018, 11:05:05 AM
Installed today in 2.0.15 that Sortable Packages mod
Nice for testing mods as well to tell what order and times very nice thanks DF..


SW
Title: Re: Post Anonymously In Topic
Post by: Rock Lee on February 12, 2018, 08:25:39 PM
Here I leave the translation to Latin Spanish, although I swear I had done it ... in short, the only doubt I have is to translate "PAIT" I did not know how to interpret it ???


Regards!
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on February 13, 2018, 05:20:56 PM
Uploaded v2.9 - February 13th, 2018
o Added Spanish Lation translation, courtsey of Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597).
o Added LICENSE.txt file to satisfy licensing concerns.



@Rock Lee:  Thank you for the translation!  It's been added to this version!
Title: Re: Post Anonymously In Topic
Post by: becometa on March 15, 2018, 06:43:38 AM
@dougiefresh,

it seems that PAIT is causing unability to edit posts/topics by members with permission to "edit others posts and topics" - even having administrator role.

Both administrators and moderators receive You are not allowed to access this section error message after saving the edited post or topic.
To make things weirder even thought that error message is being displayed... the message body is being updated properly :o
Manual return to the topic reveals that post actually was edited and SMF act like everything is ok.

I've installed PAIT 2.9 on freshly created SMF 2.0.15 instance, created new user with mod priviliges, tried to edit other user/admin post and You are not allowed to access this section is being shown.

It's not a big thing but this message is just annoying when editing lots of messages at once.

Error log does not produce any output which might help to trace the issue origin.
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on March 15, 2018, 06:05:45 PM
@becometa:  Huh....  That's not good at all...  Let me look into the issue.
Title: Re: Post Anonymously In Topic
Post by: becometa on May 19, 2018, 04:44:56 AM
@becometa:  Huh....  That's not good at all...  Let me look into the issue.

have you encountered any progress in this matter?
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on May 21, 2018, 10:28:41 PM
@becometa:  Huh....  That's not good at all...  Let me look into the issue.

have you encountered any progress in this matter?
I'm sorry, I haven't even looked into the bug report yet.  I have been trying to rest the last two weeks or so, as I have gotten exhausted trying to keep up with everything....
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on October 25, 2018, 12:37:20 PM
Uploaded v2.10 - October 25th, 2018
o No functionality change.
o Updated documentation to point to new website.



Wow....  Really old bug reports....  ???
Title: Re: Post Anonymously In Topic
Post by: Magiktoaster on January 10, 2019, 03:27:02 PM
Hello @dougiefresh,

I've been trying your mod on my forum and I've got an issue.

So I'm trying to use the "Only Poster can see their anonymous post". Saved thoose settings and then tried to post with a normal user account on a random section. Select "Post Anonymously" and then log into "normaluser2". I can see the post even if "normaluser1" posted a message Anonymously.

Is this comming from my understanding of the option or is there a bug ?

Thank you !
Title: Re: Post Anonymously In Topic
Post by: Kindred on January 11, 2019, 03:37:19 AM
I believe that the meaning is not what you think...

Only Poster can see their anonymous post
means that only the poster can see that THEY are the poster... everyone else sees "Anonymous"
Title: Re: Post Anonymously In Topic
Post by: Magiktoaster on January 11, 2019, 08:37:11 AM
Aaah ok, that would make sens !

Ok thank you for your answer !

Title: Re: Post Anonymously In Topic
Post by: Vordewindt on May 08, 2019, 01:24:30 AM

Hei,


So I tried to install this mod on the site, and that gave one error in Sources/load.php. It is unable to find te following:


(https://i.gyazo.com/6964f5d95abfc33c789bf6ac5bd56e9b.png)


In load.php is 2 times the required part, but those are not found because it searches for the item with a large amount of spaces infront of it.
Quote
mem.warning' . (!empty($modSettings['titlesEnable']) ? ',   mem.usertitle' : '');
   
mem.karma_bad, mem.member_ip, mem.member_ip2, mem.lngfile, mem.id_group, mem.id_theme, mem.buddy_list,
mem.pm_ignore_list, mem.pm_email_notify, mem.pm_receive_from, mem.time_offset' . (!empty($modSettings['titlesEnable']) ? ', mem.usertitle' : '') . ',
So is that a bug, or do I miss one of the required items in the load.php? My guess is that I can just copy the new code after the 2nd time the required item shows up in load.php, but I'm not sure.


Any ideas?
         
Title: Re: Post Anonymously In Topic
Post by: dougiefresh on June 20, 2019, 11:28:49 AM
Uploaded v2.11 - June 20th, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 3.
o SMF 2.0: Fixed issue in Sources/Load.php with spacing issue, as reported in previous post.
o SMF 2.0: Added another operation to deal with reported missing operation, as reported in previous post.



@Vordewindt:  I've made a change to the SMF 2.0 portion of the mod, in the hopes that it resolves your bug report.  Let me know if this solves your issue.  Thanks!