Slide Out "Contact Us" (no plugin, no additional PHP) - Printable Version +- MyBB Codes (http://www.mybbcodes.com) +-- Forum: Mods Database (/forumdisplay.php?fid=4) +--- Forum: Plugins for 1.4.x and 1.6.x (/forumdisplay.php?fid=5) +--- Thread: Slide Out "Contact Us" (no plugin, no additional PHP) (/showthread.php?tid=6626) |
Slide Out "Contact Us" (no plugin, no additional PHP) - bitsbb01 - 09-11-2017 09:51 PM Slide Out "Contact Us" (no plugin, no additional PHP) 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: Code: Code:[Highlight] <script type="text/javascript"> Now in the same template locate the code: Code: Code:[Highlight] <a name="top" id="top"></a> and add after that: Code: Code:[Highlight] <div id="contactFormContainer"> Now the CSS Part. Put this at the bottom of your global.css: Code: Code:[Highlight] #contactFormContainer { 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). |