Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forms Management
#1
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.
Reply


Messages In This Thread
Forms Management - by jdonth - 2010-02-16, 02:21:34
Forms Management - by ccagle8 - 2010-02-16, 03:30:26
Forms Management - by badcat - 2010-02-16, 15:26:26



Users browsing this thread: 1 Guest(s)