Firefox PHP

An option for registered users to post anonymously?

Posted by hkbb 
Re: An option for registered users to post anonymously?
February 21, 2006 11:31PM
OK, so here it is.

Create a new user. Name it "Anonymous", make its password very hard to guess or random (it will never be logged in). Make all of its details anonymous as well (anonymous.user@yoursite.com is a good e-mail). If you have required e-mail address confirmation, you could use one of the many anonymous one-use e-mail address services out there.

Now is the slightly annoying part. You will need to go into your database structure. Go to the table phorum_users, find the Anonymous user, and edit that entry. Change its user_id to 0.

All you need to do now is install and activate this mod:
[filer.case.edu]

And finally, there is a small addition to the template posting_messageform.tpl.
After:
{! Show signature =========================================================== }

{IF POST->user_id}
<tr>
  <td colspan="2">
    <input type="checkbox" name="show_signature" value="1"
     {IF POST->show_signature} checked="checked"{/IF} />
        {LANG->AddSig}
  </td>
</tr>
{/IF}

Add:
{! Anon Post Mod ============================================================= }
{IF mod_anon_post->enabled}
  {IF POST->user_id}
  <tr>
    <td colspan="2">
      <input type="checkbox" name="post_anonymously" value="1"
       {IF POST->post_anonymously} checked="checked"{/IF} />
          {LANG->mod_anon_post->PostAnon}
    </td>
  </tr>
  {/IF}
{/IF}

EDIT: Forgot the template change. Sorry :p

--bsiegel



Edited 2 time(s). Last edit at 03/06/2006 06:34AM by bsiegel.
Re: An option for registered users to post anonymously?
February 21, 2006 11:37PM
I miss the part in the mod where an option is added to the post form where the user can specify that the posting should be done anonymously.

This can be done by changing the templates, but there are also some hooks in the posting editor templates that you can use to extend that form from the module.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: An option for registered users to post anonymously?
February 22, 2006 12:32AM
I'll look into hooking it in, as that's always better than modifying the template. For now, I'll just leave the template change there, as I know it works fine and I don't have time today to play around with the module.

--bsiegel
Sorry, only registered users may post in this forum.

Click here to login