Hi
I know this has been asked before(in one post i found) but I am looking for a contact module like the one that drupal.org uses. I'm trying to put together my first drupal site and I need to have a query/contact page where the user can specify what type of query he wants to post so that when he/she clicks submit his/her query gets emailed to the approriate person.
I did find a post that referred to this module:
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/contact.module?rev=1...
I installed that module, then enabled it but when I got to administer >> contact form I get this error:
user error: Table 'zdatadrip.contact' doesn't exist
query: SELECT subject, recipients FROM contact ORDER BY subject in /var/www/zdata/zdata/drip/includes/database.mysql.inc on line 66.
I then thought maybe i needed to update drupal as I am using 4.6.0. So i updated to 4.6.2, everything went soothly(I think) but I still get this error. Could anyone give me any idea as to what tables I need to set up in the drupal mysql database?
ANY help or pointers would be greatly appreciated!!
Thanks, drupal ownz!
Dave
Comments
Did you install the table
I have not used the module but it sounds like it should have a file ending in .mysql or .sql that needs to install before using the module.
Nope
Thats what I thought, I see it's complaining about not finding a table it needs. Unfortunately I can't seem to find a version of the contact.module that includes the .mysql file...
I'm going to carry on searching now, if I don't come right I'll have to look at maybe manually writing a contact form with the fields I need.
Thanks for the reply nevets
Dave
Link is to a patch (not whole module)
If you move up/back one level in the path to the node you reference you will find that is a patch to the contact module and not the whole module.
It appears to be a CivicSpace module, though you can find a version at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/contact/?hide... (probably not updated for 4.6 though)
Thanks!
Cool, ok now it makes sense. Thats for pointing that out.
I'm still new to drupal so this is all very new to me. Would you happen to know of a way I can get a contact form like drupal.org uses for my 4.6.2 drupal site?
Thanks again!
Do you mean the one under a user's account?
If you mean the one you see when you click a users name, goto administer -> modules and enable the contact module.
In these case I mean the contact module that is part of the default Drupal install, not the one from the node you mentioned.
You will probably need to (re)move the one you installed out of the module directory and restore the version that came with Drupal.
Is it not possible to...
I removed the module that I got from the previous node and added the origional drupal contact.module and enabled it. I then set up a couple users, one for support and one for general enquiries.
I then enabled their contact forms in the user configuration. Is it not possible for users who do not have an account and are not logged in to the site to access other user's contact pages? I logged out then tried to go to www.example.com/drupal/user/6/contact but got a Access Denied message.
Thanks for all your help by the way :)
I believe that is the current behaviour
As far as I can tell looking at the code that is the way it is meant to work and I can not find a permission that would change the behaviour.
Note while you could change the behaviour, the current code uses your email address from you profile so you would a) need to get a email address from an someone not logged in and b) it creates the ability for someone not logged in to spam others since there is not way to know the email address is valid.
Thanks
Thanks nevets, I wish I could just go in and start making changes to the module but my PHP and MySQL knowledge is VERY basic.
I found a temporary solution though. I managed to work out how to create a simple contact form and wrote a little php script to mail the contents of the form to a specific address. For now I'll just set up a couple of these for each department on the website so that each dept can get thier own contact messages.
Thanks for all the help, this whole thing has been a real learning curve.
Dave