Moderators Kyle Posted April 14, 2010 Moderators Report Posted April 14, 2010 Hi, I'm looking for a link to contact us page but i don't know what is the codes for the navagation. Also i want to add one feild that so someone can chose to selece to contact to who like IT/Human Res./Support. Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 Link to contact page: <a href="<? echo url('/contact'); ?>">Contact</a> And the choice of email recipient was brought up a while back and I answered it. Do a quick search. Quote
Moderators mark1million Posted April 14, 2010 Moderators Report Posted April 14, 2010 Hi, the code is here somewhere, im at work at the moment and cant look but its on here somewhere as i done it the other day on my site. You just need to modify the contact.tpl and the contact.php in the core modules if i remember right. Its a real easy mod to do just finding the post seems to be the hard bit Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 Meh I searched it: http://forum.phpvms.net/topic/1317-request-contact-form-mod/page__view__findpost__p__8116 Quote
Moderators joeri Posted April 14, 2010 Moderators Report Posted April 14, 2010 Meh are you trying to do a goat sorry hope you don't find it offensive. i just found it funny Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 Haha no Never seen it like that, but true.. when said as read it sounds like a goat I meant it as: http://www.urbandictionary.com/define.php?term=meh Quote
Moderators joeri Posted April 14, 2010 Moderators Report Posted April 14, 2010 Haha no Never seen it like that, but true.. when said as read it sounds like a goat I meant it as: http://www.urbandictionary.com/define.php?term=meh yeah i know what you mean. but it sounded funny as i am from belgium and mostly need to read all 2 times so nothing gets lost in translation Quote
Moderators mark1million Posted April 14, 2010 Moderators Report Posted April 14, 2010 Give me 5 and i will post the edits and code needed Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 Give me 5 and i will post the edits and code needed Meh I searched it: http://forum.phpvms.net/topic/1317-request-contact-form-mod/page__p__8116entry8116 's all there. Quote
Moderators mark1million Posted April 14, 2010 Moderators Report Posted April 14, 2010 contact_form.tpl Add this where you want the dropdown, <td><strong>To whom:</strong></td> <td><select name="recipient"> <option value="your email" selected="selected">Please select</option> <option value="your email">Flight Operations</option> <option value="your email">IT Support</option> <option value="your email">Human Resources</option> <option value="your email">Events</option> <option value="your email">CEO</option> </select> </td> Edit, core/modules/contact/contact.php Find this Util::SendEmail(ADMIN_EMAIL, $subject, $message); Replace with this, Util::SendEmail($this->post->recipient, $subject, $message); i started so ill finish 1 Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 Remember, whenever you update core/modules/contact/contact.php will be replaced so the code will need changing again. Quote
Moderators mark1million Posted April 14, 2010 Moderators Report Posted April 14, 2010 Renamed file already in the folder for such an occurrence Quote
Tom Posted April 14, 2010 Report Posted April 14, 2010 I was just reminding everyone else who probably don't Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.