Hi all,
i extended the existing forums package to support an anonymous mode. Depending on the selected mode either only the screen name of a user is visible or the full name with a link to the user information page is offered.
The admin can change this setting on a forum level in the forum admin page.
I added a new function in /packages/acs-kernel/sql/postgresqlcommunity-core-create.sql to return the screen name of a user
Most of the changes are in user-history.*, forum-edit.*, forum-view.*, forum-procs.*, message-chunk.*
I can create a diff for these changes but there is an upgrade script required for the forums_forums table.
But at the moment a requirement is that each user must have a screen name or the field where the name of the user should be displayed is left blank which is bad. Jeff Lu suggested to serve an entry page in those cases where the screen name is empty (as is done in lars-blogger). I will integrate this feature next.
In the meantime I used this
update users set screen_name = (select first_names from persons p where p.person_id = user_id) || user_id;
to fill the screen_name field. A better solution would be to fill only those instances where the screen name is empty :)
So by now I only have one problem in the instance that a user posts in multiple different forums that have different modes. A clever person could navigate to the users history page and from there to a non-anonymous forum to figure out who this person was :( But I don't think that this is a difficult problem to solve.
Now my question is: Shall I post a patch or commit the work to HEAD? The reason why I as is because it seams that noone is maintaining the forums package.
Greetings,
Nima