Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Zsolt Piros
-2 points
Beginner
Hello,
I tried to set the submission form to show the map only if the membership id is a specific value to show as a required field but is doesn’t work.
I worked with the tpl-add.php and my code is:
[code title=””]
[MEMBERSHIP ID=”3″]
<div id=”showmapbox”>
Hello,
I tried to set the submission form to show the map only if the membership id is a specific value to show as a required field but is doesn’t work.
I worked with the tpl-add.php and my code is:
[code title=””]
[MEMBERSHIP ID=”3″]
<div id=”showmapbox”>
<input name=”custom[map_location]” id=”form_map_location” class=”controls” type=”text” placeholder=”<?php echo $CORE->_e(array(‘add’,’54’,’flag_noedit’)); ?>” value=”<?php if(isset($_GET[‘eid’])){ echo get_post_meta($_GET[‘eid’],’map_location’,true); } ?>”>
<div id=”wlt_map_location” style=”height:300px;width:100%;”></div>
<div class=”well well-sm”>
<b><?php echo $CORE->_e(array(‘add’,’46’)); ?></b>
<?php echo $CORE->_e(array(‘add’,’47’)); ?>: <span id=”wlt_dcountry” class=”label label-primary”><?php if(isset($_GET[‘eid’]) && get_post_meta($_GET[‘eid’],’map-country’,true) != “”){ echo get_post_meta($_GET[‘eid’],’map-country’,true); }else{ echo ‘<i class=”glyphicon glyphicon-remove”></i>’; } ?></span>
<?php echo $CORE->_e(array(‘add’,’48’)); ?>: <span id=”wlt_dstate” class=”label label-primary”><?php if(isset($_GET[‘eid’]) && get_post_meta($_GET[‘eid’],’map-state’,true) != “”){ echo get_post_meta($_GET[‘eid’],’map-state’,true); }else{ echo ‘<i class=”glyphicon glyphicon-remove”></i>’; } ?></span>
<?php echo $CORE->_e(array(‘add’,’49’)); ?>: <span id=”wlt_dcity” class=”label label-primary”><?php if(isset($_GET[‘eid’]) && get_post_meta($_GET[‘eid’],’map-city’,true) != “”){ echo get_post_meta($_GET[‘eid’],’map-city’,true); }else{ echo ‘<i class=”glyphicon glyphicon-remove”></i>’; } ?></span>
</div>
</div> [/MEMBERSHIP]
[/code]
Why it doesn’t work?
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now