Slide Out "Contact Us" (no plugin, no additional PHP) - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: Slide Out "Contact Us" (no plugin, no additional PHP) (/thread-132213.html) |
Slide Out "Contact Us" (no plugin, no additional PHP) - effone - 2013-01-05 So here is the contact form specifically for those users who use hosted services and don't have FTP access or access to core files. No plugin, no additional PHP. It will send a mail with the content to the admin of the site (UID 1). I'm using the 'send mail to member' feature of MyBB. Its a very basic tutorial just to demonstrate the functionality. You can further modify and reprogram it as per your requirement. Open your header template and add at the very beginning:
Now in the same template locate the code:
and add after that:
Now the CSS Part. Put this at the bottom of your global.css:
You are done. Now you have a jQuery slide-out contact form in your board. Known issue: After successful submission of the form the page will be redirected to the profile of the administrator (UID 1). RE: Slide Out "Contact Us" (no plugin, no additional PHP) - Yaldaram - 2013-01-05 Its very good, but I personally like to add a Captcha so it shouldn't attract bots to contact us. And for Captcha you've to use PHP then. RE: Slide Out "Contact Us" (no plugin, no additional PHP) - effone - 2013-01-05 Yes Sultan. As I said its specifically for hosted board users. I'll try to make another tut using same jQ with mailsend php including custom validation and CAPTCHA for general. RE: Slide Out "Contact Us" (no plugin, no additional PHP) - terzier - 2013-01-05 agree with yaldi btw, bookmark first |