Changeset 2965990
- Timestamp:
- 09/12/2023 03:46:16 PM (2 years ago)
- Location:
- registerone-event-forms/trunk
- Files:
-
- 3 edited
-
admin/classes/RegisteroneShortcodes.php (modified) (10 diffs)
-
readme.txt (modified) (3 diffs)
-
registerone-wordpress-client.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
registerone-event-forms/trunk/admin/classes/RegisteroneShortcodes.php
r2944905 r2965990 523 523 } 524 524 525 if(1 == 2 || $_SERVER['REMOTE_ADDR'] == '72.107.108.236x') {525 if(1 == 2 && $_SERVER['REMOTE_ADDR'] == '') { 526 526 echo "<pre>"; 527 527 // print_r($this->event_attributes); … … 533 533 $responses = wp_remote_retrieve_body( wp_remote_request( $request_url, $request_args ) ); 534 534 535 if(1 == 2 && $_SERVER['REMOTE_ADDR'] == ' 72.104.155.107') {535 if(1 == 2 && $_SERVER['REMOTE_ADDR'] == '') { 536 536 // die($this->current_screen); 537 537 … … 1775 1775 1776 1776 if(isset($data['amenity_extra'])){ 1777 // print_r($responses); die;1778 1777 } 1779 1778 1780 1779 $redirect_url = $root; 1781 1780 1782 if($responses['code'] == 202 || 1781 if($responses['code'] == 203) { 1782 // redirect to badge page if duplicate found 1783 1784 if(isset($responses['add_extra_fields'])){ 1785 $extra_amenity_id = $responses['next_step'][2]; 1786 $redirect_url .= "?badges&extra={$extra_amenity_id}"; 1787 // dupflag 1788 } 1789 1790 $dup_id_a = []; 1791 if(isset($responses['duplicates'])){ 1792 if(is_array($responses['duplicates'])){ 1793 foreach($responses['duplicates'] AS $dup_id => $email){ 1794 $dup_id_a[] .= $dup_id; 1795 } 1796 } 1797 $dup_id_uri = implode("_", $dup_id_a); 1798 $redirect_url .= "&dupflag=".$dup_id_uri; 1799 } 1800 1801 }elseif($responses['code'] == 202 || 1783 1802 $responses['code'] == 201 || 1784 1803 $responses['code'] == 200) { … … 2368 2387 2369 2388 if(isset($data['amenity_extra'])) { 2370 // print_r($responses); die;2389 //print_r($responses); die; 2371 2390 } 2372 2391 … … 4875 4894 swal({ 4876 4895 title: "Error: " + status['code'], 4877 text: "Detail: Could not be added.",4896 text: "Detail: " + status['detail'], 4878 4897 type: "error", 4879 4898 showCancelButton: true, … … 6251 6270 } 6252 6271 6272 if(isset($_GET['dupflag']) && $_GET['dupflag'] != ''){ 6273 // inject inline styles for badge blocks 6274 $dup_css_tenpl = '<style>#block-aid-set { border: 2px solid #ffb8b8; background-color: #ffe9e9;}</style>'; 6275 $dup_uri = $_GET['dupflag']; 6276 $dups_a = explode("_", $dup_uri); 6277 foreach($dups_a AS $dup_a){ 6278 $dup_block_id_css = $dup_css_tenpl; 6279 $dup_block_id_css = str_replace('aid-set', $dup_a, $dup_block_id_css); 6280 echo $dup_block_id_css; 6281 } 6282 } 6283 6253 6284 /* 6254 6285 * <input data-inputmask="'mask': '<?= $input_data['input_mask']; ?>'" type="tel" id="clients-<?= $input_data['model_field']; ?>" class="telephone form-control" name="<?= $input_data['model_label']; ?>[<?= $input_data['model_field']; ?>]" maxlength="255" value="<?= $input_data['value']; ?>" style="max-width: <?= $max_width; ?>" <?= $required; ?>> … … 6295 6326 while($extra_qty > $c) { 6296 6327 $c++; 6328 if(in_array("{$amenity_id}-{$c}", $dups_a)){ 6329 echo "<h4>Duplicate e-mail found for this badge! Use a different e-mail address.</h4>"; 6330 } 6297 6331 ?> 6298 6332 6299 <div class="badge_block">6333 <div id="block-<?= $amenity_id ?>-<?= $c ?>" class="badge_block"> 6300 6334 6301 6335 <div class="amenity-title" style="float: left;"> … … 6305 6339 <?php if($formData['amenity_badge_am_type_a'][$amenity_id] == 2): ?> 6306 6340 <?php if(isset($formData['amenity_badge_short_url_a'][$amenity_id][$c])): ?> 6307 <div style="float:right"><strong> ProfileForm:</strong> <a target="_blank" href="<?php echo esc_url($formData['amenity_badge_short_url_a'][$amenity_id][$c]) ?>"><?= $formData['amenity_badge_short_url_a'][$amenity_id][$c] ?></a></div>6341 <div style="float:right"><strong>Badge Details Form:</strong> <a target="_blank" href="<?php echo esc_url($formData['amenity_badge_short_url_a'][$amenity_id][$c]) ?>"><?= $formData['amenity_badge_short_url_a'][$amenity_id][$c] ?></a></div> 6308 6342 <?php else: ?> 6309 <div style="float:right"><strong> ProfileForm:</strong> <span class="red-alert"><strong>New or Incomplete</strong></span></div>6343 <div style="float:right"><strong>Badge Details Form:</strong> <span class="red-alert"><strong>New or Incomplete</strong></span></div> 6310 6344 <?php endif; ?> 6311 6345 <?php endif; ?> … … 6490 6524 </div> 6491 6525 </div> 6526 6527 <script type="text/javascript"> 6528 /* remember field data and return on duplicate email catch */ 6529 var $ = jQuery.noConflict(); 6530 6531 $(document).on("change", ".form-control", e => { 6532 if (!e.target.id) return; 6533 localStorage.setItem(e.target.id, $(e.target).val()); 6534 }); 6535 6536 <?php if(isset($dup_block_id_css)): ?> 6537 $(() => $(".form-control").each(function() { 6538 if (!this.id) return; 6539 let val = localStorage.getItem(this.id); 6540 if (val) $(this).val(val); 6541 })); 6542 <?php endif; ?> 6543 </script> 6492 6544 <?php 6493 6545 … … 10093 10145 } 10094 10146 ?> 10095 v3.6.1 210147 v3.6.13 10096 10148 : <a href="https://app.registerone.com/privacy-policy" target="_blank">Privacy Policy</a> 10097 10149 <?php -
registerone-event-forms/trunk/readme.txt
r2944905 r2965990 7 7 Requires at least: 5 8 8 Tested up to: 6.2 9 Version 3.6.1 210 Stable tag: 3.6.1 29 Version 3.6.13 10 Stable tag: 3.6.13 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 138 138 == Changelog == 139 139 140 = 3.6.13 = 141 * NEW: Badge design can be customized based on ticket type purchased. Multiple ticket types can be sold from one form. 142 * NEW: Badge profiles now warn user if a duplicate email is detected for the same event. 143 140 144 = 3.6.12 = 141 145 * NEW: setting to limit or disable keyword selections … … 447 451 == Upgrade Notice == 448 452 449 = 3.6.12 = 450 * NEW: setting to limit or disable keyword selections 453 = 3.6.13 = 454 * NEW: Badge design can be customized based on ticket type purchased. Multiple ticket types can be sold from one form. 455 * NEW: Badge profiles now warn user if a duplicate email is detected for the same event. -
registerone-event-forms/trunk/registerone-wordpress-client.php
r2944905 r2965990 4 4 Plugin URI: https://www.registerone.com 5 5 Description: RegisterONE – Exhibitor & Speaker Registration, Advanced Booth Mapping, Ticketing 6 Version: 3.6.1 26 Version: 3.6.13 7 7 Author: RegisterONE 8 8 Author URI: http://www.registerone.com
Note: See TracChangeset
for help on using the changeset viewer.