Version Description
- custom-contact-forms-admin.php - Display changes, form submissions non-ajax delete fixed
Download this release
Release Info
Developer | tlovett1 |
Plugin | Custom Contact Forms |
Version | 4.5.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.5.1 to 4.5.1.1
- css/custom-contact-forms-admin.css +20 -1
- custom-contact-forms-admin.php +103 -31
- custom-contact-forms.php +1 -1
- lang/custom-contact-forms.mo +0 -0
- lang/custom-contact-forms.po +69 -79
- modules/db/custom-contact-forms-db.php +3 -1
- readme.txt +5 -1
css/custom-contact-forms-admin.css
CHANGED
@@ -79,7 +79,7 @@
|
|
79 |
#customcontactforms-admin #custom-html p { margin: 0; padding:0; }
|
80 |
#customcontactforms-admin #custom-html #custom_html_textarea {
|
81 |
width:495px;
|
82 |
-
height:
|
83 |
}
|
84 |
#customcontactforms-admin #contact-author form label {
|
85 |
display:block; font-weight:bold;
|
@@ -103,8 +103,27 @@
|
|
103 |
-webkit-border-radius:11px;
|
104 |
border-radius:11px;
|
105 |
}
|
|
|
106 |
#customcontactforms-admin .rate-me a { font-weight:bold; width:auto; margin-left:20px; display:block; float:left; text-decoration:none; margin:6px 0 10px 0; }
|
107 |
#customcontactforms-admin .rate-me input[type=image] { float:right; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
.ccf-tooltip {
|
109 |
background-color:#FFFEEB;
|
110 |
border:2px solid #666666;
|
79 |
#customcontactforms-admin #custom-html p { margin: 0; padding:0; }
|
80 |
#customcontactforms-admin #custom-html #custom_html_textarea {
|
81 |
width:495px;
|
82 |
+
height:250px;
|
83 |
}
|
84 |
#customcontactforms-admin #contact-author form label {
|
85 |
display:block; font-weight:bold;
|
103 |
-webkit-border-radius:11px;
|
104 |
border-radius:11px;
|
105 |
}
|
106 |
+
|
107 |
#customcontactforms-admin .rate-me a { font-weight:bold; width:auto; margin-left:20px; display:block; float:left; text-decoration:none; margin:6px 0 10px 0; }
|
108 |
#customcontactforms-admin .rate-me input[type=image] { float:right; }
|
109 |
+
|
110 |
+
#customcontactforms-admin .action-complete {
|
111 |
+
background-color:#2bd604;
|
112 |
+
width:920px;
|
113 |
+
border:1px solid #333;
|
114 |
+
padding:7px 7px 1px 7px;
|
115 |
+
display:block;
|
116 |
+
height:30px;
|
117 |
+
clear:both;
|
118 |
+
color:#000;
|
119 |
+
font-weight:bold;
|
120 |
+
text-align:center;
|
121 |
+
margin:.5em 0 .8em 5px;
|
122 |
+
-moz-border-radius:11px;
|
123 |
+
-webkit-border-radius:11px;
|
124 |
+
border-radius:11px;
|
125 |
+
}
|
126 |
+
|
127 |
.ccf-tooltip {
|
128 |
background-color:#FFFEEB;
|
129 |
border:2px solid #666666;
|
custom-contact-forms-admin.php
CHANGED
@@ -6,6 +6,8 @@
|
|
6 |
*/
|
7 |
if (!class_exists('CustomContactFormsAdmin')) {
|
8 |
class CustomContactFormsAdmin extends CustomContactForms {
|
|
|
|
|
9 |
function adminInit() {
|
10 |
$this->downloadExportFile();
|
11 |
$this->runImport();
|
@@ -58,7 +60,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
58 |
}
|
59 |
}
|
60 |
|
61 |
-
function contactAuthor($name, $email, $website, $message, $type) {
|
62 |
if (empty($message)) return false;
|
63 |
if (!class_exists('PHPMailer'))
|
64 |
require_once(ABSPATH . "wp-includes/class-phpmailer.php");
|
@@ -66,6 +68,9 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
66 |
$body = "Name: $name<br />\n";
|
67 |
$body .= "Email: $email<br />\n";
|
68 |
$body .= "Website: $website<br />\n";
|
|
|
|
|
|
|
69 |
$body .= "Message: $message<br />\n";
|
70 |
$body .= "Message Type: $type<br />\n";
|
71 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "<br />\n";
|
@@ -210,24 +215,40 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
210 |
function handleAdminPostRequests() {
|
211 |
$out = array('success' => true);
|
212 |
if ($_POST['object_create']) {
|
213 |
-
if ($_POST['object_type'] == 'form')
|
214 |
-
|
215 |
-
|
216 |
-
elseif ($_POST['object_type'] == '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
return $out;
|
218 |
}
|
219 |
|
220 |
if ($_POST['object_attach']) {
|
221 |
-
if ($_POST['object_type'] == 'form')
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
223 |
return $out;
|
224 |
}
|
225 |
|
226 |
if ($_POST['object_detach']) {
|
227 |
if ($_POST['object_type'] == 'form') {
|
228 |
-
parent::detachField($_POST['detach_object_id'], $_POST['object_id'])
|
|
|
229 |
} elseif ($_POST['object_type'] == 'field') {
|
230 |
-
parent::detachFieldOption($_POST['detach_object_id'], $_POST['object_id'])
|
|
|
231 |
}
|
232 |
return $out;
|
233 |
}
|
@@ -256,6 +277,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
256 |
$out['objects'][] = $obj;
|
257 |
}
|
258 |
}
|
|
|
259 |
}
|
260 |
|
261 |
elseif ($_POST['object_bulk_action'] == 'delete') {
|
@@ -265,10 +287,13 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
265 |
elseif ($obj['object_type'] == 'field') parent::deleteField($obj['object_id']);
|
266 |
elseif ($obj['object_type'] == 'field_option') parent::deleteFieldOption($obj['object_id']);
|
267 |
elseif ($obj['object_type'] == 'style') parent::deleteStyle($obj['object_id']);
|
268 |
-
elseif ($obj['object_type'] == 'form_submission')
|
|
|
|
|
269 |
$out['objects'][] = $obj;
|
270 |
}
|
271 |
}
|
|
|
272 |
}
|
273 |
}
|
274 |
return $out;
|
@@ -292,10 +317,12 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
292 |
//parent::serializeAllFieldOptions();
|
293 |
if ($_POST['insert_default_content']) {
|
294 |
ccf_utils::load_module('db/custom-contact-forms-default-db.php');
|
|
|
295 |
new CustomContactFormsDefaultDB();
|
296 |
} elseif ($_POST['contact_author']) {
|
|
|
297 |
$this_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $_SERVER['SERVER_NAME'];
|
298 |
-
$this->contactAuthor($_POST['name'], $_POST['email'], $this_url, $_POST['message'], $_POST['type']);
|
299 |
} elseif ($_GET['clear_tables'] == 1) {
|
300 |
parent::emptyAllTables();
|
301 |
}
|
@@ -340,6 +367,12 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
340 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
341 |
<input type="submit" value="Sign Up for Free" />
|
342 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
|
344 |
<a name="create-fields"></a>
|
345 |
<div id="create-fields" class="postbox">
|
@@ -557,7 +590,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
557 |
<input type="hidden" name="object_type" value="form" />
|
558 |
<input type="submit" class="create-button" value="<?php _e("Create Form", 'custom-contact-forms'); ?>" name="object_create" />
|
559 |
</li>
|
560 |
-
<li class="attach"><span class="ccf-red">*</span> <?php _e('You should
|
561 |
</ul>
|
562 |
</form>
|
563 |
</div>
|
@@ -706,10 +739,10 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
706 |
</tfoot>
|
707 |
</table>
|
708 |
<select class="bulk-dropdown" name="object_bulk_action">
|
709 |
-
<option value="0"
|
710 |
-
<option value="edit"
|
711 |
-
<option value="delete"
|
712 |
-
</select> <input type="submit" name="object_bulk_apply" class="bulk-apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
713 |
</form>
|
714 |
<a name="manage-fixed-fields"></a>
|
715 |
<h3 class="manage-h3">
|
@@ -818,9 +851,9 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
818 |
</tfoot>
|
819 |
</table>
|
820 |
<select class="bulk-dropdown" name="object_bulk_action">
|
821 |
-
<option value="0"
|
822 |
-
<option value="edit"
|
823 |
-
</select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
824 |
</form>
|
825 |
<a name="manage-field-options"></a>
|
826 |
<div id="manage-field-options" class="postbox">
|
@@ -880,7 +913,11 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
880 |
?>
|
881 |
</tbody>
|
882 |
</table>
|
883 |
-
<select class="bulk-dropdown" name="object_bulk_action"
|
|
|
|
|
|
|
|
|
884 |
</form>
|
885 |
</div>
|
886 |
</div>
|
@@ -1021,7 +1058,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
1021 |
<label for="objects[<?php echo $i; ?>][values][custom_code]"><?php _e("Custom Code:", 'custom-contact-forms'); ?></label>
|
1022 |
<input name="objects[<?php echo $i; ?>][values][custom_code]" type="text" value="<?php echo $forms[$i]->custom_code; ?>" /></td>
|
1023 |
<input name="objects[<?php echo $i; ?>][values][form_access_update]" type="hidden" value="1" /></td>
|
1024 |
-
<a href="javascript:void(0)" class="toollink" title="<?php _e("If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if
|
1025 |
<label for="form_access">Can View Form:</label>
|
1026 |
|
1027 |
<?php
|
@@ -1109,7 +1146,11 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
1109 |
|
1110 |
</tfoot>
|
1111 |
</table>
|
1112 |
-
<select class="bulk-dropdown" name="object_bulk_action"
|
|
|
|
|
|
|
|
|
1113 |
</form>
|
1114 |
|
1115 |
<a name="create-styles"></a>
|
@@ -1675,7 +1716,11 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
1675 |
</tr>
|
1676 |
</tfoot>
|
1677 |
</table>
|
1678 |
-
<select class="bulk-dropdown" name="object_bulk_action"
|
|
|
|
|
|
|
|
|
1679 |
</form>
|
1680 |
<a name="contact-author"></a>
|
1681 |
<div id="contact-author" class="postbox">
|
@@ -1725,6 +1770,18 @@ if (!class_exists('CustomContactFormsAdmin')) {
|
|
1725 |
</option>
|
1726 |
</select>
|
1727 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1728 |
</ul>
|
1729 |
<p>
|
1730 |
<input type="submit" name="contact_author" value="<?php _e("Send Message", 'custom-contact-forms'); ?>" />
|
@@ -1767,6 +1824,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1767 |
}
|
1768 |
|
1769 |
function printFormSubmissionsPage() {
|
|
|
1770 |
if ($admin_options['show_install_popover'] == 1) {
|
1771 |
$admin_options['show_install_popover'] = 0;
|
1772 |
?>
|
@@ -1777,9 +1835,10 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1777 |
</script>
|
1778 |
<?php
|
1779 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1780 |
-
} if ($_POST['form_submission_delete']) {
|
1781 |
-
parent::deleteUserData($_POST['uid'])
|
1782 |
-
|
|
|
1783 |
ccf_utils::load_module('export/custom-contact-forms-user-data.php');
|
1784 |
$user_data_array = parent::selectAllUserData();
|
1785 |
?>
|
@@ -1805,6 +1864,11 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1805 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
1806 |
<input type="submit" value="Sign Up for Free" />
|
1807 |
</form>
|
|
|
|
|
|
|
|
|
|
|
1808 |
<h3 class="hndle"><span>
|
1809 |
<?php _e("Saved Form Submissions", 'custom-contact-forms'); ?>
|
1810 |
</span></h3>
|
@@ -1875,9 +1939,9 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1875 |
</table>
|
1876 |
|
1877 |
<select class="bulk-dropdown" name="object_bulk_action">
|
1878 |
-
<option value="0"
|
1879 |
-
<option value="delete"
|
1880 |
-
</select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" class="loading-img" width="16" height="16" />
|
1881 |
|
1882 |
|
1883 |
|
@@ -1906,10 +1970,12 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1906 |
$admin_options[show_widget_pages] = $_POST['settings']['show_widget_pages'];
|
1907 |
$admin_options[show_widget_archives] = $_POST['settings']['show_widget_archives'];
|
1908 |
$admin_options[show_widget_home] = $_POST['settings']['show_widget_home'];
|
|
|
1909 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1910 |
} elseif ($_POST['configure_mail']) {
|
1911 |
$_POST['mail_config'] = array_map(array('ccf_utils', 'encodeOption'), $_POST['mail_config']);
|
1912 |
$admin_options = array_merge($admin_options, $_POST['mail_config']);
|
|
|
1913 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1914 |
}
|
1915 |
ccf_utils::load_module('export/custom-contact-forms-export.php');
|
@@ -1936,6 +2002,12 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1936 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
1937 |
<input type="submit" value="Sign Up for Free" />
|
1938 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
1939 |
<div id="general-settings" class="postbox">
|
1940 |
<h3 class="hndle"><span>
|
1941 |
<?php _e("General Settings", 'custom-contact-forms'); ?>
|
@@ -2019,7 +2091,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
2019 |
<option value="1">
|
2020 |
<?php _e("Enabled", 'custom-contact-forms'); ?>
|
2021 |
</option>
|
2022 |
-
<option <?php if ($admin_options['enable_dashboard_widget'] == 0) echo 'selected="selected"'; ?>>
|
2023 |
<?php _e("Disabled", 'custom-contact-forms'); ?>
|
2024 |
</option></select>
|
2025 |
</li>
|
@@ -2139,7 +2211,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
2139 |
</li>
|
2140 |
<li>
|
2141 |
<label for="enable_form_access_manager">
|
2142 |
-
<?php _e("
|
2143 |
</label>
|
2144 |
<select name="settings[enable_form_access_manager]">
|
2145 |
<option value="0">
|
6 |
*/
|
7 |
if (!class_exists('CustomContactFormsAdmin')) {
|
8 |
class CustomContactFormsAdmin extends CustomContactForms {
|
9 |
+
var $action_complete = '';
|
10 |
+
|
11 |
function adminInit() {
|
12 |
$this->downloadExportFile();
|
13 |
$this->runImport();
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function contactAuthor($name, $email, $website, $message, $type, $host, $ccf_version, $wp_version) {
|
64 |
if (empty($message)) return false;
|
65 |
if (!class_exists('PHPMailer'))
|
66 |
require_once(ABSPATH . "wp-includes/class-phpmailer.php");
|
68 |
$body = "Name: $name<br />\n";
|
69 |
$body .= "Email: $email<br />\n";
|
70 |
$body .= "Website: $website<br />\n";
|
71 |
+
$body .= "CCF Version: $ccf_version<br />\n";
|
72 |
+
$body .= "WP Version: $wp_version<br />\n";
|
73 |
+
$body .= "Host: $host<br />\n";
|
74 |
$body .= "Message: $message<br />\n";
|
75 |
$body .= "Message Type: $type<br />\n";
|
76 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "<br />\n";
|
215 |
function handleAdminPostRequests() {
|
216 |
$out = array('success' => true);
|
217 |
if ($_POST['object_create']) {
|
218 |
+
if ($_POST['object_type'] == 'form') {
|
219 |
+
if (parent::insertForm($_POST['object']) != false)
|
220 |
+
$this->action_complete = __('A new form was successfully created!', 'custom-contact-forms');
|
221 |
+
} elseif ($_POST['object_type'] == 'field') {
|
222 |
+
if (parent::insertField($_POST['object']) != false)
|
223 |
+
$this->action_complete = __('A new field was successful created!', 'custom-contact-forms');
|
224 |
+
} elseif ($_POST['object_type'] == 'field_option') {
|
225 |
+
if (parent::insertFieldOption($_POST['object']) != false)
|
226 |
+
$this->action_complete = __('A new field option was successful created!', 'custom-contact-forms');
|
227 |
+
} elseif ($_POST['object_type'] == 'style') {
|
228 |
+
if (parent::insertStyle($_POST['object']) != false)
|
229 |
+
$this->action_complete = __('A new style was successful created!', 'custom-contact-forms');
|
230 |
+
}
|
231 |
return $out;
|
232 |
}
|
233 |
|
234 |
if ($_POST['object_attach']) {
|
235 |
+
if ($_POST['object_type'] == 'form') {
|
236 |
+
if (parent::addFieldToForm($_POST['attach_object_id'], $_POST['object_id']) != false)
|
237 |
+
$this->action_complete = __('A field was successful attached!', 'custom-contact-forms');
|
238 |
+
} elseif ($_POST['object_type'] == 'field') {
|
239 |
+
if (parent::addFieldOptionToField($_POST['attach_object_id'], $_POST['object_id']) != false)
|
240 |
+
$this->action_complete = __('A field option was successful attached!', 'custom-contact-forms');
|
241 |
+
}
|
242 |
return $out;
|
243 |
}
|
244 |
|
245 |
if ($_POST['object_detach']) {
|
246 |
if ($_POST['object_type'] == 'form') {
|
247 |
+
if (parent::detachField($_POST['detach_object_id'], $_POST['object_id']) != false)
|
248 |
+
$this->action_complete = __('A field was successful detached!', 'custom-contact-forms');
|
249 |
} elseif ($_POST['object_type'] == 'field') {
|
250 |
+
if (parent::detachFieldOption($_POST['detach_object_id'], $_POST['object_id']) != false)
|
251 |
+
$this->action_complete = __('A field option was successful detached!', 'custom-contact-forms');
|
252 |
}
|
253 |
return $out;
|
254 |
}
|
277 |
$out['objects'][] = $obj;
|
278 |
}
|
279 |
}
|
280 |
+
$this->action_complete = __('Your bulk action has been completed!', 'custom-contact-forms');
|
281 |
}
|
282 |
|
283 |
elseif ($_POST['object_bulk_action'] == 'delete') {
|
287 |
elseif ($obj['object_type'] == 'field') parent::deleteField($obj['object_id']);
|
288 |
elseif ($obj['object_type'] == 'field_option') parent::deleteFieldOption($obj['object_id']);
|
289 |
elseif ($obj['object_type'] == 'style') parent::deleteStyle($obj['object_id']);
|
290 |
+
elseif ($obj['object_type'] == 'form_submission') {
|
291 |
+
parent::deleteUserData($obj['object_id']);
|
292 |
+
}
|
293 |
$out['objects'][] = $obj;
|
294 |
}
|
295 |
}
|
296 |
+
$this->action_complete = __('Your bulk action has been completed!', 'custom-contact-forms');
|
297 |
}
|
298 |
}
|
299 |
return $out;
|
317 |
//parent::serializeAllFieldOptions();
|
318 |
if ($_POST['insert_default_content']) {
|
319 |
ccf_utils::load_module('db/custom-contact-forms-default-db.php');
|
320 |
+
$this->action_complete = __('Default content has been inserted!', 'custom-contact-forms');
|
321 |
new CustomContactFormsDefaultDB();
|
322 |
} elseif ($_POST['contact_author']) {
|
323 |
+
$this->action_complete = __('Your message has been sent!', 'custom-contact-forms');
|
324 |
$this_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $_SERVER['SERVER_NAME'];
|
325 |
+
$this->contactAuthor($_POST['name'], $_POST['email'], $this_url, $_POST['message'], $_POST['type'], $_POST['host'], $_POST['ccf-version'], $_POST['wp-version']);
|
326 |
} elseif ($_GET['clear_tables'] == 1) {
|
327 |
parent::emptyAllTables();
|
328 |
}
|
367 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
368 |
<input type="submit" value="Sign Up for Free" />
|
369 |
</form>
|
370 |
+
|
371 |
+
<?php if (!empty($this->action_complete)) { ?>
|
372 |
+
<div class="action-complete">
|
373 |
+
<?php echo $this->action_complete; ?>
|
374 |
+
</div>
|
375 |
+
<?php } ?>
|
376 |
|
377 |
<a name="create-fields"></a>
|
378 |
<div id="create-fields" class="postbox">
|
590 |
<input type="hidden" name="object_type" value="form" />
|
591 |
<input type="submit" class="create-button" value="<?php _e("Create Form", 'custom-contact-forms'); ?>" name="object_create" />
|
592 |
</li>
|
593 |
+
<li class="attach"><span class="ccf-red">*</span> <?php _e('You should go to the form manager below to attach fields to this form after you create it.', 'custom-contact-forms'); ?></li>
|
594 |
</ul>
|
595 |
</form>
|
596 |
</div>
|
739 |
</tfoot>
|
740 |
</table>
|
741 |
<select class="bulk-dropdown" name="object_bulk_action">
|
742 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
743 |
+
<option value="edit"><?php _e('Save', 'custom-contact-forms'); ?></option>
|
744 |
+
<option value="delete"><?php _e('Delete', 'custom-contact-forms'); ?></option>
|
745 |
+
</select> <input type="submit" name="object_bulk_apply" class="bulk-apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
746 |
</form>
|
747 |
<a name="manage-fixed-fields"></a>
|
748 |
<h3 class="manage-h3">
|
851 |
</tfoot>
|
852 |
</table>
|
853 |
<select class="bulk-dropdown" name="object_bulk_action">
|
854 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
855 |
+
<option value="edit"><?php _e('Save', 'custom-contact-forms'); ?></option>
|
856 |
+
</select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
857 |
</form>
|
858 |
<a name="manage-field-options"></a>
|
859 |
<div id="manage-field-options" class="postbox">
|
913 |
?>
|
914 |
</tbody>
|
915 |
</table>
|
916 |
+
<select class="bulk-dropdown" name="object_bulk_action">
|
917 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
918 |
+
<option value="edit"><?php _e('Save', 'custom-contact-forms'); ?></option>
|
919 |
+
<option value="delete"><?php _e('Delete', 'custom-contact-forms'); ?></option></select>
|
920 |
+
<input type="submit" class="bulk-apply" name="object_bulk_apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
921 |
</form>
|
922 |
</div>
|
923 |
</div>
|
1058 |
<label for="objects[<?php echo $i; ?>][values][custom_code]"><?php _e("Custom Code:", 'custom-contact-forms'); ?></label>
|
1059 |
<input name="objects[<?php echo $i; ?>][values][custom_code]" type="text" value="<?php echo $forms[$i]->custom_code; ?>" /></td>
|
1060 |
<input name="objects[<?php echo $i; ?>][values][form_access_update]" type="hidden" value="1" /></td>
|
1061 |
+
<a href="javascript:void(0)" class="toollink" title="<?php _e("If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if 'Form Access Capabilities' is enabled in general settings.", 'custom-contact-forms'); ?>">(?)</a>
|
1062 |
<label for="form_access">Can View Form:</label>
|
1063 |
|
1064 |
<?php
|
1146 |
|
1147 |
</tfoot>
|
1148 |
</table>
|
1149 |
+
<select class="bulk-dropdown" name="object_bulk_action">
|
1150 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
1151 |
+
<option value="edit"><?php _e('Save', 'custom-contact-forms'); ?></option>
|
1152 |
+
<option value="delete"><?php _e('Delete', 'custom-contact-forms'); ?></option></select>
|
1153 |
+
<input type="submit" name="object_bulk_apply" class="bulk-apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
1154 |
</form>
|
1155 |
|
1156 |
<a name="create-styles"></a>
|
1716 |
</tr>
|
1717 |
</tfoot>
|
1718 |
</table>
|
1719 |
+
<select class="bulk-dropdown" name="object_bulk_action">
|
1720 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
1721 |
+
<option value="edit"><?php _e('Save', 'custom-contact-forms'); ?></option>
|
1722 |
+
<option value="delete"><?php _e('Delete', 'custom-contact-forms'); ?></option></select>
|
1723 |
+
<input type="submit" name="object_bulk_apply" class="bulk-apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
|
1724 |
</form>
|
1725 |
<a name="contact-author"></a>
|
1726 |
<div id="contact-author" class="postbox">
|
1770 |
</option>
|
1771 |
</select>
|
1772 |
</li>
|
1773 |
+
<li>
|
1774 |
+
<label for="ccf-version">
|
1775 |
+
<?php _e("Version of Custom Contact Forms?", 'custom-contact-forms'); ?>
|
1776 |
+
</label>
|
1777 |
+
<input id="ccf-version" type="text" name="ccf-version" maxlength="50" />
|
1778 |
+
</li>
|
1779 |
+
<li>
|
1780 |
+
<label for="wp-version">
|
1781 |
+
<?php _e("Version of WordPress?", 'custom-contact-forms'); ?>
|
1782 |
+
</label>
|
1783 |
+
<input id="wp-version" type="text" name="wp-version" maxlength="50" />
|
1784 |
+
</li>
|
1785 |
</ul>
|
1786 |
<p>
|
1787 |
<input type="submit" name="contact_author" value="<?php _e("Send Message", 'custom-contact-forms'); ?>" />
|
1824 |
}
|
1825 |
|
1826 |
function printFormSubmissionsPage() {
|
1827 |
+
$this->handleAdminPostRequests();
|
1828 |
if ($admin_options['show_install_popover'] == 1) {
|
1829 |
$admin_options['show_install_popover'] = 0;
|
1830 |
?>
|
1835 |
</script>
|
1836 |
<?php
|
1837 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1838 |
+
} /*if ($_POST['form_submission_delete']) {
|
1839 |
+
if (parent::deleteUserData($_POST['uid']) != false)
|
1840 |
+
$this->action_complete = __('A form submission has be successfully deleted!', 'custom-contact-forms');
|
1841 |
+
}*/
|
1842 |
ccf_utils::load_module('export/custom-contact-forms-user-data.php');
|
1843 |
$user_data_array = parent::selectAllUserData();
|
1844 |
?>
|
1864 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
1865 |
<input type="submit" value="Sign Up for Free" />
|
1866 |
</form>
|
1867 |
+
<?php if (!empty($this->action_complete)) { ?>
|
1868 |
+
<div class="action-complete">
|
1869 |
+
<?php echo $this->action_complete; ?>
|
1870 |
+
</div>
|
1871 |
+
<?php } ?>
|
1872 |
<h3 class="hndle"><span>
|
1873 |
<?php _e("Saved Form Submissions", 'custom-contact-forms'); ?>
|
1874 |
</span></h3>
|
1939 |
</table>
|
1940 |
|
1941 |
<select class="bulk-dropdown" name="object_bulk_action">
|
1942 |
+
<option value="0"><?php _e('Bulk Actions', 'custom-contact-forms'); ?></option>
|
1943 |
+
<option value="delete"><?php _e('Delete', 'custom-contact-forms'); ?></option>
|
1944 |
+
</select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="<?php _e('Apply', 'custom-contact-forms'); ?>" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" class="loading-img" width="16" height="16" />
|
1945 |
|
1946 |
|
1947 |
|
1970 |
$admin_options[show_widget_pages] = $_POST['settings']['show_widget_pages'];
|
1971 |
$admin_options[show_widget_archives] = $_POST['settings']['show_widget_archives'];
|
1972 |
$admin_options[show_widget_home] = $_POST['settings']['show_widget_home'];
|
1973 |
+
$this->action_complete = __('Your settings have been successfully saved!', 'custom-contact-forms');
|
1974 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1975 |
} elseif ($_POST['configure_mail']) {
|
1976 |
$_POST['mail_config'] = array_map(array('ccf_utils', 'encodeOption'), $_POST['mail_config']);
|
1977 |
$admin_options = array_merge($admin_options, $_POST['mail_config']);
|
1978 |
+
$this->action_complete = __('Your mail settings have been successfully saved!', 'custom-contact-forms');
|
1979 |
update_option(parent::getAdminOptionsName(), $admin_options);
|
1980 |
}
|
1981 |
ccf_utils::load_module('export/custom-contact-forms-export.php');
|
2002 |
<input type="text" name="email" value="Your Email" onclick="value=''" />
|
2003 |
<input type="submit" value="Sign Up for Free" />
|
2004 |
</form>
|
2005 |
+
<?php if (!empty($this->action_complete)) { ?>
|
2006 |
+
<div class="action-complete">
|
2007 |
+
<?php echo $this->action_complete; ?>
|
2008 |
+
</div>
|
2009 |
+
<?php } ?>
|
2010 |
+
|
2011 |
<div id="general-settings" class="postbox">
|
2012 |
<h3 class="hndle"><span>
|
2013 |
<?php _e("General Settings", 'custom-contact-forms'); ?>
|
2091 |
<option value="1">
|
2092 |
<?php _e("Enabled", 'custom-contact-forms'); ?>
|
2093 |
</option>
|
2094 |
+
<option value="0" <?php if ($admin_options['enable_dashboard_widget'] == 0) echo 'selected="selected"'; ?>>
|
2095 |
<?php _e("Disabled", 'custom-contact-forms'); ?>
|
2096 |
</option></select>
|
2097 |
</li>
|
2211 |
</li>
|
2212 |
<li>
|
2213 |
<label for="enable_form_access_manager">
|
2214 |
+
<?php _e("Form Access Capabilities:", 'custom-contact-forms'); ?>
|
2215 |
</label>
|
2216 |
<select name="settings[enable_form_access_manager]">
|
2217 |
<option value="0">
|
custom-contact-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
|
6 |
-
Version: 4.5.1
|
7 |
Author: Taylor Lovett
|
8 |
Author URI: http://www.taylorlovett.com
|
9 |
*/
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
|
6 |
+
Version: 4.5.1.1
|
7 |
Author: Taylor Lovett
|
8 |
Author URI: http://www.taylorlovett.com
|
9 |
*/
|
lang/custom-contact-forms.mo
CHANGED
Binary file
|
lang/custom-contact-forms.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: custom-contact-forms\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-01-24
|
6 |
-
"PO-Revision-Date: 2011-01-24
|
7 |
"Last-Translator: Taylor Lovett <sdfds@sfs.com>\n"
|
8 |
"Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -160,8 +160,8 @@ msgstr ""
|
|
160 |
#: ../custom-contact-forms-admin.php:868
|
161 |
#: ../custom-contact-forms-admin.php:921
|
162 |
#: ../custom-contact-forms-admin.php:1955
|
163 |
-
#: ../custom-contact-forms-admin.php:
|
164 |
-
#: ../custom-contact-forms-admin.php:
|
165 |
msgid "No"
|
166 |
msgstr ""
|
167 |
|
@@ -172,8 +172,8 @@ msgstr ""
|
|
172 |
#: ../custom-contact-forms-admin.php:868
|
173 |
#: ../custom-contact-forms-admin.php:921
|
174 |
#: ../custom-contact-forms-admin.php:1952
|
175 |
-
#: ../custom-contact-forms-admin.php:
|
176 |
-
#: ../custom-contact-forms-admin.php:
|
177 |
msgid "Yes"
|
178 |
msgstr ""
|
179 |
|
@@ -402,7 +402,7 @@ msgstr ""
|
|
402 |
|
403 |
#: ../custom-contact-forms-admin.php:744
|
404 |
#: ../custom-contact-forms-admin.php:775
|
405 |
-
#: ../custom-contact-forms-admin.php:
|
406 |
msgid "None"
|
407 |
msgstr ""
|
408 |
|
@@ -572,8 +572,8 @@ msgstr ""
|
|
572 |
msgid "Custom Code:"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: ../custom-contact-forms-admin.php:
|
576 |
-
msgid "If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes.
|
577 |
msgstr ""
|
578 |
|
579 |
#: ../custom-contact-forms-admin.php:1043
|
@@ -1072,17 +1072,15 @@ msgstr ""
|
|
1072 |
|
1073 |
#: ../custom-contact-forms-admin.php:1977
|
1074 |
#: ../custom-contact-forms-admin.php:2020
|
1075 |
-
#: ../custom-contact-forms-admin.php:
|
1076 |
#: ../custom-contact-forms-admin.php:2121
|
1077 |
-
#: ../custom-contact-forms-admin.php:2149
|
1078 |
msgid "Enabled"
|
1079 |
msgstr ""
|
1080 |
|
1081 |
#: ../custom-contact-forms-admin.php:1980
|
1082 |
#: ../custom-contact-forms-admin.php:2023
|
1083 |
-
#: ../custom-contact-forms-admin.php:
|
1084 |
#: ../custom-contact-forms-admin.php:2124
|
1085 |
-
#: ../custom-contact-forms-admin.php:2146
|
1086 |
msgid "Disabled"
|
1087 |
msgstr ""
|
1088 |
|
@@ -1131,50 +1129,50 @@ msgstr ""
|
|
1131 |
msgid "When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages."
|
1132 |
msgstr ""
|
1133 |
|
1134 |
-
#: ../custom-contact-forms-admin.php:
|
1135 |
-
msgid "Use Code Type:"
|
1136 |
-
msgstr ""
|
1137 |
-
|
1138 |
-
#: ../custom-contact-forms-admin.php:2048
|
1139 |
-
msgid "This lets you switch the form code between HTML and XHTML."
|
1140 |
-
msgstr ""
|
1141 |
-
|
1142 |
-
#: ../custom-contact-forms-admin.php:2054
|
1143 |
msgid "Default Form Success Message Title:"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
-
#: ../custom-contact-forms-admin.php:
|
1147 |
msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
|
1148 |
msgstr ""
|
1149 |
|
1150 |
-
#: ../custom-contact-forms-admin.php:
|
1151 |
msgid "Default Form Success Message:"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: ../custom-contact-forms-admin.php:
|
1155 |
msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: ../custom-contact-forms-admin.php:
|
1159 |
msgid "Remember Field Values:"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: ../custom-contact-forms-admin.php:
|
1163 |
msgid "Selecting yes will make form fields remember how they were last filled out."
|
1164 |
msgstr ""
|
1165 |
|
1166 |
-
#: ../custom-contact-forms-admin.php:
|
1167 |
msgid "Tooltips in Widget:"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
-
#: ../custom-contact-forms-admin.php:
|
1171 |
msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
|
1172 |
msgstr ""
|
1173 |
|
1174 |
-
#: ../custom-contact-forms-admin.php:
|
1175 |
msgid "Hide Plugin Author Link in Code:"
|
1176 |
msgstr ""
|
1177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
#: ../custom-contact-forms-admin.php:2117
|
1179 |
msgid "Fancy Admin AJAX Abilities:"
|
1180 |
msgstr ""
|
@@ -1188,182 +1186,174 @@ msgid "Default Permissions Error:"
|
|
1188 |
msgstr ""
|
1189 |
|
1190 |
#: ../custom-contact-forms-admin.php:2138
|
1191 |
-
msgid "When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form.
|
1192 |
-
msgstr ""
|
1193 |
-
|
1194 |
-
#: ../custom-contact-forms-admin.php:2142
|
1195 |
-
msgid "Enabled Form Access Manager:"
|
1196 |
-
msgstr ""
|
1197 |
-
|
1198 |
-
#: ../custom-contact-forms-admin.php:2154
|
1199 |
-
msgid "The form access manager within each form allows you to control who can view your form. However, that will take effect on any of your forms unless this is enabled."
|
1200 |
msgstr ""
|
1201 |
|
1202 |
-
#: ../custom-contact-forms-admin.php:
|
1203 |
msgid "Show Sidebar Widget:"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
-
#: ../custom-contact-forms-admin.php:
|
1207 |
msgid "On Homepage"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
-
#: ../custom-contact-forms-admin.php:
|
1211 |
msgid "On Pages"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
-
#: ../custom-contact-forms-admin.php:
|
1215 |
msgid "On Single Posts"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
-
#: ../custom-contact-forms-admin.php:
|
1219 |
msgid "On Categories"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
-
#: ../custom-contact-forms-admin.php:
|
1223 |
msgid "On Archives"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
#: ../custom-contact-forms-admin.php:
|
1227 |
msgid "Update"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
-
#: ../custom-contact-forms-admin.php:
|
1231 |
msgid "Mail Settings"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: ../custom-contact-forms-admin.php:
|
1235 |
msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: ../custom-contact-forms-admin.php:
|
1239 |
msgid "* Send My Emails Using the Following:"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: ../custom-contact-forms-admin.php:
|
1243 |
msgid "Wordpress Default"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
-
#: ../custom-contact-forms-admin.php:
|
1247 |
msgid "SMTP"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: ../custom-contact-forms-admin.php:
|
1251 |
msgid "(If mail isn't sending, try toggling this option.)"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
-
#: ../custom-contact-forms-admin.php:
|
1255 |
msgid "SMTP Host:"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
-
#: ../custom-contact-forms-admin.php:
|
1259 |
msgid "SMTP Port:"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
-
#: ../custom-contact-forms-admin.php:
|
1263 |
msgid "Encryption:"
|
1264 |
msgstr ""
|
1265 |
|
1266 |
-
#: ../custom-contact-forms-admin.php:
|
1267 |
msgid "SSL"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
-
#: ../custom-contact-forms-admin.php:
|
1271 |
msgid "TLS"
|
1272 |
msgstr ""
|
1273 |
|
1274 |
-
#: ../custom-contact-forms-admin.php:
|
1275 |
msgid "SMTP Authentication:"
|
1276 |
msgstr ""
|
1277 |
|
1278 |
-
#: ../custom-contact-forms-admin.php:
|
1279 |
msgid "None Needed"
|
1280 |
msgstr ""
|
1281 |
|
1282 |
-
#: ../custom-contact-forms-admin.php:
|
1283 |
msgid "Use SMTP Username/Password"
|
1284 |
msgstr ""
|
1285 |
|
1286 |
-
#: ../custom-contact-forms-admin.php:
|
1287 |
msgid "SMTP Username:"
|
1288 |
msgstr ""
|
1289 |
|
1290 |
-
#: ../custom-contact-forms-admin.php:
|
1291 |
msgid "SMTP Password:"
|
1292 |
msgstr ""
|
1293 |
|
1294 |
-
#: ../custom-contact-forms-admin.php:
|
1295 |
msgid "Save Mail Sending Options"
|
1296 |
msgstr ""
|
1297 |
|
1298 |
-
#: ../custom-contact-forms-admin.php:
|
1299 |
msgid "Export"
|
1300 |
msgstr ""
|
1301 |
|
1302 |
-
#: ../custom-contact-forms-admin.php:
|
1303 |
msgid ""
|
1304 |
"Preforming a Custom Contact Forms export will create a file of the form \n"
|
1305 |
"\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
|
1306 |
"\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
|
1307 |
msgstr ""
|
1308 |
|
1309 |
-
#: ../custom-contact-forms-admin.php:
|
1310 |
msgid "Export All CCF Plugin Content"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
-
#: ../custom-contact-forms-admin.php:
|
1314 |
msgid "Import"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
-
#: ../custom-contact-forms-admin.php:
|
1318 |
msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
|
1319 |
msgstr ""
|
1320 |
|
1321 |
-
#: ../custom-contact-forms-admin.php:
|
1322 |
msgid "Choose What You Want to Use from the Import File:"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
-
#: ../custom-contact-forms-admin.php:
|
1326 |
msgid "Use General Settings"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
-
#: ../custom-contact-forms-admin.php:
|
1330 |
-
#: ../custom-contact-forms-admin.php:
|
1331 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:8
|
1332 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:231
|
1333 |
msgid "Forms"
|
1334 |
msgstr ""
|
1335 |
|
1336 |
-
#: ../custom-contact-forms-admin.php:
|
1337 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:29
|
1338 |
msgid "Form Submissions"
|
1339 |
msgstr ""
|
1340 |
|
1341 |
-
#: ../custom-contact-forms-admin.php:
|
1342 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
|
1343 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:52
|
1344 |
msgid "Fields"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
-
#: ../custom-contact-forms-admin.php:
|
1348 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:17
|
1349 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:198
|
1350 |
msgid "Field Options"
|
1351 |
msgstr ""
|
1352 |
|
1353 |
-
#: ../custom-contact-forms-admin.php:
|
1354 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:20
|
1355 |
msgid "Styles"
|
1356 |
msgstr ""
|
1357 |
|
1358 |
-
#: ../custom-contact-forms-admin.php:
|
1359 |
msgid "Choose an Import File:"
|
1360 |
msgstr ""
|
1361 |
|
1362 |
-
#: ../custom-contact-forms-admin.php:
|
1363 |
msgid "Clear and Import"
|
1364 |
msgstr ""
|
1365 |
|
1366 |
-
#: ../custom-contact-forms-admin.php:
|
1367 |
msgid "Yes, I want to do this and have created a backup."
|
1368 |
msgstr ""
|
1369 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: custom-contact-forms\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-01-24 01:22-0500\n"
|
6 |
+
"PO-Revision-Date: 2011-01-24 01:22-0500\n"
|
7 |
"Last-Translator: Taylor Lovett <sdfds@sfs.com>\n"
|
8 |
"Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
160 |
#: ../custom-contact-forms-admin.php:868
|
161 |
#: ../custom-contact-forms-admin.php:921
|
162 |
#: ../custom-contact-forms-admin.php:1955
|
163 |
+
#: ../custom-contact-forms-admin.php:2067
|
164 |
+
#: ../custom-contact-forms-admin.php:2099
|
165 |
msgid "No"
|
166 |
msgstr ""
|
167 |
|
172 |
#: ../custom-contact-forms-admin.php:868
|
173 |
#: ../custom-contact-forms-admin.php:921
|
174 |
#: ../custom-contact-forms-admin.php:1952
|
175 |
+
#: ../custom-contact-forms-admin.php:2064
|
176 |
+
#: ../custom-contact-forms-admin.php:2096
|
177 |
msgid "Yes"
|
178 |
msgstr ""
|
179 |
|
402 |
|
403 |
#: ../custom-contact-forms-admin.php:744
|
404 |
#: ../custom-contact-forms-admin.php:775
|
405 |
+
#: ../custom-contact-forms-admin.php:2190
|
406 |
msgid "None"
|
407 |
msgstr ""
|
408 |
|
572 |
msgid "Custom Code:"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: ../custom-contact-forms-admin.php:1023
|
576 |
+
msgid "If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes."
|
577 |
msgstr ""
|
578 |
|
579 |
#: ../custom-contact-forms-admin.php:1043
|
1072 |
|
1073 |
#: ../custom-contact-forms-admin.php:1977
|
1074 |
#: ../custom-contact-forms-admin.php:2020
|
1075 |
+
#: ../custom-contact-forms-admin.php:2080
|
1076 |
#: ../custom-contact-forms-admin.php:2121
|
|
|
1077 |
msgid "Enabled"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
#: ../custom-contact-forms-admin.php:1980
|
1081 |
#: ../custom-contact-forms-admin.php:2023
|
1082 |
+
#: ../custom-contact-forms-admin.php:2083
|
1083 |
#: ../custom-contact-forms-admin.php:2124
|
|
|
1084 |
msgid "Disabled"
|
1085 |
msgstr ""
|
1086 |
|
1129 |
msgid "When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages."
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: ../custom-contact-forms-admin.php:2042
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1133 |
msgid "Default Form Success Message Title:"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: ../custom-contact-forms-admin.php:2047
|
1137 |
msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: ../custom-contact-forms-admin.php:2051
|
1141 |
msgid "Default Form Success Message:"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: ../custom-contact-forms-admin.php:2056
|
1145 |
msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: ../custom-contact-forms-admin.php:2060
|
1149 |
msgid "Remember Field Values:"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: ../custom-contact-forms-admin.php:2072
|
1153 |
msgid "Selecting yes will make form fields remember how they were last filled out."
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: ../custom-contact-forms-admin.php:2076
|
1157 |
msgid "Tooltips in Widget:"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
+
#: ../custom-contact-forms-admin.php:2088
|
1161 |
msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: ../custom-contact-forms-admin.php:2092
|
1165 |
msgid "Hide Plugin Author Link in Code:"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: ../custom-contact-forms-admin.php:2105
|
1169 |
+
msgid "Use Code Type:"
|
1170 |
+
msgstr ""
|
1171 |
+
|
1172 |
+
#: ../custom-contact-forms-admin.php:2113
|
1173 |
+
msgid "This lets you switch the form code between HTML and XHTML."
|
1174 |
+
msgstr ""
|
1175 |
+
|
1176 |
#: ../custom-contact-forms-admin.php:2117
|
1177 |
msgid "Fancy Admin AJAX Abilities:"
|
1178 |
msgstr ""
|
1186 |
msgstr ""
|
1187 |
|
1188 |
#: ../custom-contact-forms-admin.php:2138
|
1189 |
+
msgid "When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1190 |
msgstr ""
|
1191 |
|
1192 |
+
#: ../custom-contact-forms-admin.php:2141
|
1193 |
msgid "Show Sidebar Widget:"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
+
#: ../custom-contact-forms-admin.php:2146
|
1197 |
msgid "On Homepage"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
+
#: ../custom-contact-forms-admin.php:2150
|
1201 |
msgid "On Pages"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
+
#: ../custom-contact-forms-admin.php:2154
|
1205 |
msgid "On Single Posts"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
+
#: ../custom-contact-forms-admin.php:2159
|
1209 |
msgid "On Categories"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
+
#: ../custom-contact-forms-admin.php:2163
|
1213 |
msgid "On Archives"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
+
#: ../custom-contact-forms-admin.php:2167
|
1217 |
msgid "Update"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
+
#: ../custom-contact-forms-admin.php:2175
|
1221 |
msgid "Mail Settings"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
+
#: ../custom-contact-forms-admin.php:2179
|
1225 |
msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: ../custom-contact-forms-admin.php:2180
|
1229 |
msgid "* Send My Emails Using the Following:"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: ../custom-contact-forms-admin.php:2182
|
1233 |
msgid "Wordpress Default"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: ../custom-contact-forms-admin.php:2183
|
1237 |
msgid "SMTP"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: ../custom-contact-forms-admin.php:2184
|
1241 |
msgid "(If mail isn't sending, try toggling this option.)"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: ../custom-contact-forms-admin.php:2187
|
1245 |
msgid "SMTP Host:"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
+
#: ../custom-contact-forms-admin.php:2188
|
1249 |
msgid "SMTP Port:"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
+
#: ../custom-contact-forms-admin.php:2189
|
1253 |
msgid "Encryption:"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: ../custom-contact-forms-admin.php:2191
|
1257 |
msgid "SSL"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: ../custom-contact-forms-admin.php:2192
|
1261 |
msgid "TLS"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: ../custom-contact-forms-admin.php:2196
|
1265 |
msgid "SMTP Authentication:"
|
1266 |
msgstr ""
|
1267 |
|
1268 |
+
#: ../custom-contact-forms-admin.php:2196
|
1269 |
msgid "None Needed"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#: ../custom-contact-forms-admin.php:2196
|
1273 |
msgid "Use SMTP Username/Password"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: ../custom-contact-forms-admin.php:2197
|
1277 |
msgid "SMTP Username:"
|
1278 |
msgstr ""
|
1279 |
|
1280 |
+
#: ../custom-contact-forms-admin.php:2198
|
1281 |
msgid "SMTP Password:"
|
1282 |
msgstr ""
|
1283 |
|
1284 |
+
#: ../custom-contact-forms-admin.php:2201
|
1285 |
msgid "Save Mail Sending Options"
|
1286 |
msgstr ""
|
1287 |
|
1288 |
+
#: ../custom-contact-forms-admin.php:2208
|
1289 |
msgid "Export"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
+
#: ../custom-contact-forms-admin.php:2213
|
1293 |
msgid ""
|
1294 |
"Preforming a Custom Contact Forms export will create a file of the form \n"
|
1295 |
"\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
|
1296 |
"\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
|
1297 |
msgstr ""
|
1298 |
|
1299 |
+
#: ../custom-contact-forms-admin.php:2217
|
1300 |
msgid "Export All CCF Plugin Content"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
+
#: ../custom-contact-forms-admin.php:2223
|
1304 |
msgid "Import"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
+
#: ../custom-contact-forms-admin.php:2229
|
1308 |
msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: ../custom-contact-forms-admin.php:2232
|
1312 |
msgid "Choose What You Want to Use from the Import File:"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: ../custom-contact-forms-admin.php:2238
|
1316 |
msgid "Use General Settings"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: ../custom-contact-forms-admin.php:2244
|
1320 |
+
#: ../custom-contact-forms-admin.php:2262
|
1321 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:8
|
1322 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:231
|
1323 |
msgid "Forms"
|
1324 |
msgstr ""
|
1325 |
|
1326 |
+
#: ../custom-contact-forms-admin.php:2250
|
1327 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:29
|
1328 |
msgid "Form Submissions"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
+
#: ../custom-contact-forms-admin.php:2256
|
1332 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
|
1333 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:52
|
1334 |
msgid "Fields"
|
1335 |
msgstr ""
|
1336 |
|
1337 |
+
#: ../custom-contact-forms-admin.php:2268
|
1338 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:17
|
1339 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:198
|
1340 |
msgid "Field Options"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: ../custom-contact-forms-admin.php:2274
|
1344 |
#: ../modules/usage_popover/custom-contact-forms-usage-popover.php:20
|
1345 |
msgid "Styles"
|
1346 |
msgstr ""
|
1347 |
|
1348 |
+
#: ../custom-contact-forms-admin.php:2280
|
1349 |
msgid "Choose an Import File:"
|
1350 |
msgstr ""
|
1351 |
|
1352 |
+
#: ../custom-contact-forms-admin.php:2284
|
1353 |
msgid "Clear and Import"
|
1354 |
msgstr ""
|
1355 |
|
1356 |
+
#: ../custom-contact-forms-admin.php:2286
|
1357 |
msgid "Yes, I want to do this and have created a backup."
|
1358 |
msgstr ""
|
1359 |
|
modules/db/custom-contact-forms-db.php
CHANGED
@@ -179,7 +179,6 @@ if (!class_exists('CustomContactFormsDB')) {
|
|
179 |
|
180 |
function deleteUserData($uid) {
|
181 |
global $wpdb;
|
182 |
-
return true;
|
183 |
$wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
|
184 |
return true;
|
185 |
}
|
@@ -328,12 +327,14 @@ if (!class_exists('CustomContactFormsDB')) {
|
|
328 |
$forms = $this->selectAllForms();
|
329 |
foreach ($forms as $form)
|
330 |
$this->detachField($field_id, $form->id);
|
|
|
331 |
}
|
332 |
|
333 |
function detachFieldOptionAll($option_id) {
|
334 |
$fields = $this->selectAllFields();
|
335 |
foreach ($fields as $field)
|
336 |
$this->detachFieldOption($option_id, $field->id);
|
|
|
337 |
}
|
338 |
|
339 |
function detachStyleAll($style_id) {
|
@@ -343,6 +344,7 @@ if (!class_exists('CustomContactFormsDB')) {
|
|
343 |
$this->updateForm(array('form_style' => 0), $form->id);
|
344 |
}
|
345 |
}
|
|
|
346 |
}
|
347 |
|
348 |
function formatSlug($slug) {
|
179 |
|
180 |
function deleteUserData($uid) {
|
181 |
global $wpdb;
|
|
|
182 |
$wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
|
183 |
return true;
|
184 |
}
|
327 |
$forms = $this->selectAllForms();
|
328 |
foreach ($forms as $form)
|
329 |
$this->detachField($field_id, $form->id);
|
330 |
+
return true;
|
331 |
}
|
332 |
|
333 |
function detachFieldOptionAll($option_id) {
|
334 |
$fields = $this->selectAllFields();
|
335 |
foreach ($fields as $field)
|
336 |
$this->detachFieldOption($option_id, $field->id);
|
337 |
+
return true;
|
338 |
}
|
339 |
|
340 |
function detachStyleAll($style_id) {
|
344 |
$this->updateForm(array('form_style' => 0), $form->id);
|
345 |
}
|
346 |
}
|
347 |
+
return true;
|
348 |
}
|
349 |
|
350 |
function formatSlug($slug) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
|
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 4.5.1
|
8 |
|
9 |
Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
|
10 |
|
@@ -122,6 +122,10 @@ We are planning to add popover forms and file attachments soon.
|
|
122 |
Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
|
123 |
|
124 |
== Changelog ==
|
|
|
|
|
|
|
|
|
125 |
= 4.5.1 =
|
126 |
* custom-contact-forms.php - enable_form_access_manager option added and defaulted to disabled
|
127 |
* custom-contact-forms-admin.php - enable_form_access_manager option added and defaulted to disabled
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 4.5.1.1
|
8 |
|
9 |
Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
|
10 |
|
122 |
Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
|
123 |
|
124 |
== Changelog ==
|
125 |
+
= 4.5.1.1 =
|
126 |
+
* custom-contact-forms-admin.php - Display changes, form submissions non-ajax delete fixed
|
127 |
+
|
128 |
+
|
129 |
= 4.5.1 =
|
130 |
* custom-contact-forms.php - enable_form_access_manager option added and defaulted to disabled
|
131 |
* custom-contact-forms-admin.php - enable_form_access_manager option added and defaulted to disabled
|