GetSimple Support Forum
Forms Management - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: Forms Management (/showthread.php?tid=402)



Forms Management - jdonth - 2010-02-16

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.


Forms Management - ccagle8 - 2010-02-16

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.


Forms Management - badcat - 2010-02-16

yep - I alluded to this issue here: http://get-simple.info/forum/viewtopic.php?pid=2282#p2282 The core GS stuff needs to sit separate from user generated/uploaded content.