PDA

View Full Version : First mod, be gentle. :)


ecrist
04-21-2011, 12:06 AM
I'm trying to modify the Contact Us page and build some logic into the options available to our users. The logic is simply going to change the destination email address. I *think* I'm doing this right, but here's my method, thus far:


Setup replacement variables for my email addresses in the admin cp.
Need to write a bit of PHP and tie it to hook 'sendmessage_contactus_option'
write PHP and apply it to hook 'sendmessage_docontactus_complete' to overwrite the $destemail variable before the mail goes out the door


Does this seem correct to begin?

Lynne
04-21-2011, 02:41 AM
This may help a bit - it's from the Help popup for the Contact Us option in the vBulletin Options:
Contact Us Options If you are using the built-in contact form at sendmessage.php you can specify subjects for users to pick from. An "other" option will be added to any options you specify here.

Each subject must be placed one per line, meaning that you need to enter a carriage return between subject (press <Enter>). If you wish to direct the email from a subject to a particular user, you can either specify the user's userid on the forum or their email address. You do this by placing the item in brackets at the start of the subject.

Example:

{1} Site Feedback
{example@example.com} Help
Registration

Feedback sent to the first option "Site Feedback" would be directed to the email address of Userid #1. Feedback sent to the second option "Help" would be directed to the email address "example@example.com". Feedback sent to the third option "Registration" would be directed to the Webmaster's email address.

ecrist
04-21-2011, 11:41 AM
Wow! I didn't even see that! Thanks a ton, Lynne!