GetSimple Support Forum

Full Version: Forms Management
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you would modify the \admin\inc\theme_functions.php
from:
Code:
function set_contact_page() {
  global $EMAIL;
  $style='<style>.pot {display:none;}</style>';
  echo $style;
  include('contactform.php');
}
to
Code:
function set_contact_page($page = 'contactform.php') {
  global $EMAIL;
  $style='<style>.pot {display:none;}</style>';
  echo $style;
  include_once($page);
}
We could then specify our own form back-end (saved in /data/other for example) without having to worry about updates wiping out our new form backend code by calling set_contact_page('../../data/myform.php'); in our template.
I like this idea. I will add it to the SVN now for the next release. Just to be completely honest though, I think we will be splitting out the contact form into a plugin soon. This should allow for others to make/improve upon the contact form. Right now as it sits, it is functional, but doesn't have the necessary features and SPAM protection like a good contact form should.
yep - I alluded to this issue here: http://get-simple.info/forum/viewtopic.p...2282#p2282 The core GS stuff needs to sit separate from user generated/uploaded content.