Hello,

Thank you very much for porting this module to D6.
I installed it and set the permissions to allow anonymous users to access users contact form. I also activated the checkboxes for the personal contact form and 'Anonymous contact form' on users profile settings page but unfortunately I still can't access users contact form as anonymous user. Am I missing something?

Could this error be the reason?
warning: Missing argument 1 for contact_anon_menu() in D:\DEVELOPMENT\xampp\www\mysite\sites\all\modules\contact_anon\contact_anon.module on line 6.

It would also be great if anonymous users could access the checkbox "Send yourself a copy" and send a copy of the mail to their e-mail address.

Every help is much appreciated.

Kind regards,
Stefan

Comments

dave reid’s picture

Status: Active » Fixed

It's still in active development. I know this is fixed locally, I just need to finish a few things and commit.

design.er’s picture

OK, it sounds great. I'd like to use this module for my current project so I'd be glad to help you to test it and report everything back.

Thank you for your work. :)

design.er’s picture

Hi Dave, any news? It would be great to have this bug fixed asap.

Should I open a new feature request for the "Send yourself a copy" checkbox?

Thank you for your work. :)

Stefan

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

design.er’s picture

Status: Closed (fixed) » Active

If this is locally fixed already for about 1,5 months, it would be great if you could upload this to CVS.
Thank you very much.

mparker17’s picture

Agreed. It would be really helpful if you could commit this change.

brunodbo’s picture

@Dave Reid: Anything we can do to help finish this port?

iamba’s picture

Any progress here?

iamba’s picture

I have no idea if this is right, but just looking at the error message, contact_anon_menu shouldn't be taking the $may_cache argument. I just changed

function contact_anon_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array(
'path' => 'contact_anon',
'title' => t('Contact'),
'callback' => 'contact_anon_mail_user',
'type' => MENU_LOCAL_TASK,
'access' => user_access('access the anonymous contact form'),
);
}

return $items;
}

to this:

function contact_anon_menu() {
$items = array();
$items[] = array(
'path' => 'contact_anon',
'title' => t('Contact'),
'callback' => 'contact_anon_mail_user',
'type' => MENU_LOCAL_TASK,
'access' => user_access('access the anonymous contact form'),
);
return $items;
}

and no more error message. Now I say this, but I know nothing about the structure of drupal modules, particularly the way cacheing works so what I am doing may be some form of blasphemy... My concern is that I might be creating an array that should only be created under certain circumstances and I'm creating extra junk. I looked around at some other modules and the changed doesn't seem to be horrible... If this is bad, could someone please let me know?

I'm putting this here in case this error is driving other people crazy and they just want it to go away. :)

Thanks!