<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Alex's Support Forums Tag: labels</title>
<link>http://www.alex-hardy.co.uk/forums/</link>
<description>Alex's Support Forums Tag: labels</description>
<language>en</language>
<pubDate>Wed, 19 Nov 2008 21:33:36 +0000</pubDate>

<item>
<title>Alex on "HELP! Need to add a form element!"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/help-need-to-add-a-form-element#post-47</link>
<pubDate>Sat, 23 Aug 2008 18:31:30 +0000</pubDate>
<dc:creator>Alex</dc:creator>
<guid isPermaLink="false">47@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Thanks, but I have to confess that I missed a couple of points :*)&#60;/p&#62;
&#60;p&#62;This workaround is straightforward, but this is the first time I've outlined it in a forum post so please forgive the omissions. I'll look at gathering it into a help document when I have the time. Moving on...&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;The form must post to itself&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Open your index.php file, and change the action value on the form tag from contact.php to index.php&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Fixing the validation message&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Open &#60;em&#62;sc_admin/includes/contact/posted.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Find where it says &#60;code&#62;Please enter your company&#60;/code&#62; and replace it with &#60;code&#62;Please enter your birth date&#60;/code&#62;. This makes the form show an appropriate message if the user doesn't complete the field.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Styling the form&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;I can see by viewing the source of your index.php page that you are familiar with CSS. I forgot to mention that you need to paste a link to simpleContact's CSS file into your head.&#60;/p&#62;
&#60;p&#62;Open contact.php and look in the head. Find where it says:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot; href=&#38;quot;screen.css&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Paste that into your index.php before the closing &#60;code&#62;&#38;lt;/head&#38;gt;&#60;/code&#62; tag. Make sure that the CSS file is uploaded.&#60;/p&#62;
&#60;p&#62;You will probably want to remove the CSS instructions that are making the form background white. Since you're using a blue background I'd recommend making the labels white and the error messages yellow (removing the arrows too).&#60;/p&#62;
&#60;p&#62;You can now remove contact.php from your web server - you don't need it.&#60;/p&#62;
&#60;p&#62;Hope this helps.
&#60;/p&#62;</description>
</item>
<item>
<title>maskingshadows on "HELP! Need to add a form element!"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/help-need-to-add-a-form-element#post-46</link>
<pubDate>Fri, 22 Aug 2008 19:33:17 +0000</pubDate>
<dc:creator>maskingshadows</dc:creator>
<guid isPermaLink="false">46@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Okay, first of all... THANKS FOR THE INSTANT REPLY! You really know what you're doing and you're very helpful! So thank you! Okay, I got the PHP form on the index page and renamed company to birth date. Now, I can't figure out how to change the look of the contact form now that it is integrated with index.php. Take a look, &#60;a href=&#34;http://www.LearnMagicEasy.com,&#34; rel=&#34;nofollow&#34;&#62;www.LearnMagicEasy.com,&#60;/a&#62; how can I change the color, text and format of the form? I really appreciate your help.&#60;/p&#62;
&#60;p&#62;-Ken
&#60;/p&#62;</description>
</item>
<item>
<title>Alex on "HELP! Need to add a form element!"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/help-need-to-add-a-form-element#post-45</link>
<pubDate>Fri, 22 Aug 2008 08:21:35 +0000</pubDate>
<dc:creator>Alex</dc:creator>
<guid isPermaLink="false">45@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Hi Ken,&#60;/p&#62;
&#60;p&#62;simpleContact 1.2 does not support custom fields, but there is a workaround you could do. You could take a field that you don't use (e.g. company) and change its label. That will give you a text field labeled 'Birth date':&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Changing to Birth date&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Open &#60;em&#62;sc_admin/includes/contact/build.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;On line 50, find where it says &#60;code&#62;Company&#38;lt;/label&#38;gt;&#60;/code&#62; and replace it with &#60;code&#62;Birth date&#38;lt;/label&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Open &#60;em&#62;sc_admin/message.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;On line 65, find &#60;code&#62;&#38;lt;strong&#38;gt;Company:&#38;lt;/strong&#38;gt;&#60;/code&#62; and replace it with &#60;code&#62;&#38;lt;strong&#38;gt;Birth date:&#38;lt;/strong&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That should do it. Obviously, your database and form code will still refer to a company field, but unless the user goes poking around in your HTML code they will never know.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Integrating the form into your site&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Firstly, you need to rename your index.html page to index.php (this is so the code will execute). You may need to fix some links around your website after doing this.&#60;/p&#62;
&#60;p&#62;Open &#60;em&#62;contact.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;You will see some PHP code at the top of the page. Copy this into your page, making sure the paths are correct.&#60;/p&#62;
&#60;p&#62;Copy the form into your page, from the opening &#60;code&#62;&#38;lt;form&#38;gt;&#60;/code&#62; tag to the closing &#60;code&#62;&#38;lt;/form&#38;gt;&#60;/code&#62; tag.&#60;/p&#62;
&#60;p&#62;Now try looking at the page on your website. You should see your form.
&#60;/p&#62;</description>
</item>
<item>
<title>maskingshadows on "HELP! Need to add a form element!"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/help-need-to-add-a-form-element#post-44</link>
<pubDate>Fri, 22 Aug 2008 04:49:27 +0000</pubDate>
<dc:creator>maskingshadows</dc:creator>
<guid isPermaLink="false">44@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Hello, I am very new to PHP, and I need to add a form element called &#34;Birth Date&#34;. I have absolutely no idea how to do this, and I would appreciate any help. I also have another question. I am trying to add this form to a website for my father... The website is &#60;a href=&#34;http://www.LearnMagicEasy.com,&#34; rel=&#34;nofollow&#34;&#62;www.LearnMagicEasy.com,&#60;/a&#62; as you see I want to integrate it on the home page, index.html. I was wondering how I go about doing this. All thanks goes to Alex for this free form creator!&#60;/p&#62;
&#60;p&#62;-Ken
&#60;/p&#62;</description>
</item>
<item>
<title>nortongulch on "Simple User Trick - Recipient's email"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/simple-user-trick-recipients-email#post-30</link>
<pubDate>Thu, 08 May 2008 17:39:35 +0000</pubDate>
<dc:creator>nortongulch</dc:creator>
<guid isPermaLink="false">30@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Amen to your Note!&#60;/p&#62;
&#60;p&#62;Reminds me of an ages old backup program or drive,   can't remember which that had a sign &#34;Blessed are the pessimists as they hath made backups.&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>Alex on "Simple User Trick - Recipient's email"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/simple-user-trick-recipients-email#post-27</link>
<pubDate>Thu, 08 May 2008 09:21:36 +0000</pubDate>
<dc:creator>Alex</dc:creator>
<guid isPermaLink="false">27@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Thanks for this!&#60;/p&#62;
&#60;p&#62;Note to all users: If you modify the simpleContact code to suit your particular needs, please do post on these forums. Not only does it help other users, but if there is evidence of significant demand I may decide to roll a feature into the mainstream release.&#60;/p&#62;
&#60;p&#62;Please also take care when upgrading from a customised copy. Be sure to back up your files so that your changes can be reinstated.
&#60;/p&#62;</description>
</item>
<item>
<title>nortongulch on "Simple User Trick - Recipient's email"</title>
<link>http://www.alex-hardy.co.uk/forums/topic/simple-user-trick-recipients-email#post-26</link>
<pubDate>Wed, 07 May 2008 18:51:56 +0000</pubDate>
<dc:creator>nortongulch</dc:creator>
<guid isPermaLink="false">26@http://www.alex-hardy.co.uk/forums/</guid>
<description>&#60;p&#62;Client wanted to cut and paste address information from his email received when user visits site to create mailing label.   &#60;/p&#62;
&#60;p&#62;As written,  SimpleContact includes a label (ie., Address Line 1:) before each field.  This can easily be modified in sc_admin\include\contact\posted.php.   Instead of deleting labels from existing code  (always a pain in the neck when dealing with code that will be updated periodically by the developer --  1.0, 1.1, 1.2, etc.), I have chosen to add some values to the $notify_body variable.&#60;/p&#62;
&#60;p&#62;At then end of $notify_body --  just before the end quote and semi-colon (&#34;;), add the following:&#60;/p&#62;
&#60;p&#62;\n----------------------------------------------\nInfo for Address Label:\n\n$label_name$label_position$label_company$label_addr1$label_addr2$label_town$label_country&#60;/p&#62;
&#60;p&#62;To support these new values which adds a new line (\n) if there is field is not blank, add the following definitions just below:&#60;br /&#62;
 if ($pcode != &#34;&#34;) {$show_pcode = &#34;Post / ZIP code: $pcode\n&#34;;} else {$show_pcode = &#34;&#34;;}&#60;/p&#62;
&#60;p&#62;Add:&#60;br /&#62;
if ($name_full != &#34;&#34;) {$label_name = &#34;$name_full\n&#34;;} else {$label_name = &#34;&#34;;}&#60;br /&#62;
if ($position != &#34;&#34;) {$label_position = &#34;$position\n&#34;;} else {$label_position = &#34;&#34;;}&#60;br /&#62;
if ($company != &#34;&#34;) {$label_company = &#34;$company\n&#34;;} else {$label_company = &#34;&#34;;}&#60;br /&#62;
if ($addr1 != &#34;&#34;) {$label_addr1 = &#34;$addr1\n&#34;;} else {$label_addr1 = &#34;&#34;;}&#60;br /&#62;
if ($addr2 != &#34;&#34;) {$label_addr2 = &#34;$addr2\n&#34;;} else {$label_addr2 = &#34;&#34;;}&#60;br /&#62;
if ($town != &#34;&#34;) {$label_town = &#34;$town $pcode\n&#34;;} else {$label_town = &#34;&#34;;}&#60;br /&#62;
if ($country != &#34;&#34;) {$label_country = &#34;$country\n&#34;;} else {$label_country = &#34;&#34;;}
&#60;/p&#62;</description>
</item>

</channel>
</rss>
