1
Red_Bee
Contact Us Form
  • 2004/9/27 13:53

  • Red_Bee

  • Just popping in

  • Posts: 98

  • Since: 2004/5/12


Somebody is sending a mail via Contact Us Form from my website, although I only allow registered users to access Contact Us Form. They send some annoying messages because they can edit their name and email address inside the form. Is there a way/hack that will not allow my users to edit the Name and Email field?

Regards

2
Red_Bee
Re:Contact Us Form
  • 2004/10/7 13:08

  • Red_Bee

  • Just popping in

  • Posts: 98

  • Since: 2004/5/12


Please help. Anybody?

3
Dave_L
Re:Contact Us Form
  • 2004/10/7 14:31

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


This is untested.

modules/contact/contactform.php

Change:


$name_text = new XoopsFormText(_CT_NAME"usersName"50100$name_v);

$email_text = new XoopsFormText(_CT_EMAIL"usersEmail"50100$email_v);



To:


$name_text = new XoopsFormLabel(_CT_NAME$name_v);

$email_text = new XoopsFormLabel(_CT_EMAIL$email_v);



modules/contact/index.php

Change:


$usersEmail $myts->stripSlashesGPC($usersEmail);



To:


$usersEmail = !empty($xoopsUser) ? $xoopsUser->getVar("email""E") : "";



Change:


$usersName $myts->stripSlashesGPC($usersName);



To:


$usersName = !empty($xoopsUser) ? $xoopsUser->getVar("uname""E") : "";


4
Mithrandir
Re:Contact Us Form

Or use a module such as Liaise, which sends the submitter's IP with the email.

5
drummond
Re:Contact Us Form
  • 2005/1/23 21:05

  • drummond

  • Just popping in

  • Posts: 36

  • Since: 2004/6/19


I have a question that is very similar to this but I didn't see anything in the forums that addressed it.

Whenever I get an email from someone who sent a message using the "Contact Us" module and was not logged in, the email that I get says in the 'From' field "The name of MY company" instead of saying it is from John Doe or jdoe@whatever.com.

If I read the email it shows the address and name of the person though. This makes it hard to go through old emails and find what I am looking for because they all show up in my email program as coming from "My Company Name" with a message of "My comany name - Contact Us Form."

The subject isn't so bad, but is their an easy hack to make the person sending the email's name or even email address show up in the From field?

Thanks!

6
drummond
Re:Contact Us Form
  • 2005/1/28 20:59

  • drummond

  • Just popping in

  • Posts: 36

  • Since: 2004/6/19


Anyone know how to set the person's name or return address as the subject instead of the name of your own company?

Thank you for your help!

Login

Who's Online

202 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits