Forum Replies Created
- AuthorPosts
josef777
ParticipantJohn
I understand that many don’t want to post their homepage but without seeing your form it’s hard to give exact solution , try the following :
p.iphorm-description {
position: relative;
top: -5em;
}
you need to adjust the label margin-bottom to make it nicely fit under it !
I hope this helps !
- This reply was modified 11 years, 4 months ago by
josef777.
josef777
Participant1- it’s up to you but it doesn’t matter how many sections or fields you have or whether they have conditional logic or not , the above files will hide empty fields and email what been selected .
2- (#7985) You have to wait for Ally , my php is very limited 🙂
josef777
Participantread this Guide
josef777
ParticipantYes , it is possible with checkboxes !
josef777
ParticipantYaniv
Do the following because you are doing it the hard way :
see the following guides
1-open autoreply-content.php and Modify iphorm_1_2 and iphorm_1_1 to the ids from your form (those are Title and Name in my form ) and edit the text at the top to whatever you wish , do not do anything to the rest of the code (it’s from email-html.php, just changed the style).
2- Follow the guides above for the functions.php
Now go and test it !
autoreply-content.php
Dear <?php echo $form->getValueHtml('iphorm_1_2'); ?> <?php echo $form->getValueHtml('iphorm_1_1'); ?><br /><br />
below is your submission to your company , thank you in advance and we will get in touch with you shortly .<br /><br />
Best Regards<br />
Your Company<br /><br />Phone : +43 000 000 000<br />
Email : office@yourdomain.com<br />
Website: http://yourdomain.com<br />
--------------------------------------<br /><table width="600" cellpadding="0" cellspacing="0" border="0" style="font: 14px Helvetica, Arial, sans-serif;">
<tr>
<td valign="top" style="font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: bold; color: #282828; padding-bottom: 10px;"><?php echo esc_html($mailer->Subject); ?></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" style="border-collapse:collapse;">
<?php
$elements = $form->getElements();
foreach ($elements as $element) : ?>
<?php if (!$element->isHidden() && (!$element->isEmpty() || ($element->isEmpty() && $form->getNotificationShowEmptyFields()))) : ?>
<?php if ($element instanceof iPhorm_Element_Groupstart) : ?>
<?php if ($element->getShowNameInEmail() && strlen($adminTitle = $element->getAdminTitle())) : ?>
<tr>
<td colspan="2" valign="top" style="border: 1px solid #F0F0F0;font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; color: #282828; padding-top: 15px; padding-bottom: 10px;"><?php echo esc_html($adminTitle); ?></td>
</tr>
<?php endif; ?>
<?php else : ?>
<tr>
<th scope="row" style="font-size: 12px;border: 1px solid #F0F0F0;padding: 10px;text-align: left;vertical-align: top;width: 150px;"><?php echo esc_html($element->getAdminLabel()); ?></th>
<td style="border: 1px solid #F0F0F0;font-size: 12px;line-height: 20px;margin-bottom: 9px;padding: 8px 10px;">
<?php echo $element->getValueHtml(); ?>
</td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</table></td>
</tr>
</table>
email-content.php
<?php if (!defined('IPHORM_VERSION')) exit; ?><html>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="600" cellpadding="0" cellspacing="0" border="0" style="font: 14px Helvetica, Arial, sans-serif;">
<tr>
<td valign="top" style="font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: bold; color: #282828; padding-bottom: 10px;"><?php echo esc_html($mailer->Subject); ?></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" style="border-collapse:collapse;">
<?php
$elements = $form->getElements();
foreach ($elements as $element) : ?>
<?php if (!$element->isHidden() && (!$element->isEmpty() || ($element->isEmpty() && $form->getNotificationShowEmptyFields()))) : ?>
<?php if ($element instanceof iPhorm_Element_Groupstart) : ?>
<?php if ($element->getShowNameInEmail() && strlen($adminTitle = $element->getAdminTitle())) : ?>
<tr>
<td colspan="2" valign="top" style="border: 1px solid #F0F0F0;font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; color: #282828; padding-top: 15px; padding-bottom: 10px;"><?php echo esc_html($adminTitle); ?></td>
</tr>
<?php endif; ?>
<?php else : ?>
<tr>
<th scope="row" style="font-size: 12px;border: 1px solid #F0F0F0;padding: 10px;text-align: left;vertical-align: top;width: 150px;"><?php echo esc_html($element->getAdminLabel()); ?></th>
<td style="border: 1px solid #F0F0F0;font-size: 12px;line-height: 20px;margin-bottom: 9px;padding: 8px 10px;">
<?php echo $element->getValueHtml(); ?>
</td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</table></td>
</tr>
</table>
</body>
</html>
- This reply was modified 11 years, 4 months ago by
josef777.
josef777
ParticipantLooks like you fixed it , right ? because both look the same now in firefox and chrome .
josef777
ParticipantThe CSS that controls the field is iphorm-error change or add to the following whatever you like , but without seeing your form it won’t be much Help .
.iphorm-error {
background:none!important;
color:#f00!important;
background-color:#efefef!important;
}
josef777
ParticipantSam
post a url will give you the exact solutionjosef777
ParticipantPut the following in your CSS file and play with the colors
input[type=text]:focus {
background: none!important;
background-color: #f00!important;
color: #fff!important;
}
josef777
Participant2 minutes too late 🙂
josef777
ParticipantGo to your form >settings>email and look what you have in the email subject , this variable must be there , remove it
November 4, 2013 at 11:28 am in reply to: Help for making a form like Light, Rounded as in your example. #7199josef777
ParticipantSettings > Style > add a Style at the bottom
Form outer wrapper
background-color:#e9e9e9;
padding:20px;
element label
text-shadow: 1px 1px 0 #fff;
josef777
Participant.iphorm-submit-input-wrap {
margin-left: 25px;
}josef777
Participantput this in your custom style sheet and play with numbers
.iphorm-inner {padding-left:10px;max-width:210px;}
josef777
ParticipantTry this first and if it does not help use the search box and search for session_start there are few topics on the subject
- This reply was modified 11 years, 4 months ago by
- AuthorPosts