prefix . "ecards_settings"; /** * update ecards_settings table upon Save submit. */ if (isset($_POST['save_settings'])) { //$embedcode = $_POST['embedcode']; $width = $_POST['width']; $height = $_POST['height']; $feed = $_POST['feed']; $ecard = $_POST['ecard']; $confirm = $_POST['confirm']; $message = $_POST['message']; $recipients = $_POST['recipients']; $requirefrom = $_POST['requirefrom']; $validatefrom = $_POST['validatefrom']; $from = $_POST['from']; $domain = $_POST['domain']; $subject = $_POST['subject']; $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $width . "' WHERE name = 'width'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $height . "' WHERE name = 'height'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $feed . "' WHERE name = 'feed'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $ecard . "' WHERE name = 'ecard'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $confirm . "' WHERE name = 'confirm'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $message . "' WHERE name = 'message'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $recipients . "' WHERE name = 'recipients'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $requirefrom . "' WHERE name = 'requirefrom'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $validatefrom . "' WHERE name = 'validatefrom'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $from . "' WHERE name = 'from'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $domain . "' WHERE name = 'domain'" ); $results = $wpdb->query( "UPDATE " . $tbl_settings . " SET value='" . $subject . "' WHERE name = 'subject'" ); ?>
ECards settings saved.
This plugin uses ZetaPrints templates. Templates are processed by ZetaPrints back end. You only need to copy and paste data feeds for templates you like in the text box below. You can create and upload your own e-card templates to use with this plugin.
Insert shotcode [zp-e-cards] into a post where you want the plugin to appear.