Skip to main content
deleted 45 characters in body; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Allow anonymous users to load site contact form without granting admin privileges (Drupal 7)

I'm including the site contact form on a page with these 2 lines.

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users cangive the "Administer contact forms and contact form settings" permission to anonymous users, then the page will load for anonymous users. I gave the "Use the site-wide contact form" permissions to anonymous users, but they still get an access denied error.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

Edit:

I do have "Use the site-wide contact form" checked for anonymous users and still get these symptoms.

Allow anonymous users to load site contact form without granting admin privileges (Drupal 7)

I'm including the site contact form on a page with these 2 lines

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users can "Administer contact forms and contact form settings" then the page will load for anonymous users.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

Edit:

I do have "Use the site-wide contact form" checked for anonymous users and still get these symptoms.

Allow anonymous users to load site contact form without granting admin privileges

I'm including the site contact form on a page with these 2 lines.

  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I give the "Administer contact forms and contact form settings" permission to anonymous users, then the page will load for anonymous users. I gave the "Use the site-wide contact form" permissions to anonymous users, but they still get an access denied error.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

clarified settings. corrected spelling.
Source Link
nrw
  • 113
  • 5

Allow anonymous users to load site contact form without granting admin priviledgesprivileges (Drupal 7)

I'm including the site contact form on a page with these 2 lines

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users can "Administer contact forms and contact form settings" then the page will load for anonymous users.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

Edit:

I do have "Use the site-wide contact form" checked for anonymous users and still get these symptoms.

Allow anonymous users to load site contact form without granting admin priviledges (Drupal 7)

I'm including the site contact form on a page with these 2 lines

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users can "Administer contact forms and contact form settings" then the page will load for anonymous users.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

Allow anonymous users to load site contact form without granting admin privileges (Drupal 7)

I'm including the site contact form on a page with these 2 lines

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users can "Administer contact forms and contact form settings" then the page will load for anonymous users.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?

Edit:

I do have "Use the site-wide contact form" checked for anonymous users and still get these symptoms.

Source Link
nrw
  • 113
  • 5

Allow anonymous users to load site contact form without granting admin priviledges (Drupal 7)

I'm including the site contact form on a page with these 2 lines

<?php
  module_load_include('inc', 'contact', 'contact.pages');
  print render(drupal_get_form('contact_site_form'));
?>

The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.

If I set permissions so anonymous users can "Administer contact forms and contact form settings" then the page will load for anonymous users.

Is there a way to allow the form to load for anonymous uses without giving them admin privileges?