<?xml version="1.0" encoding="UTF-8"?><!-- 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: integration</title>
<link>http://www.alex-hardy.co.uk/forums/</link>
<description>Alex's Support Forums Tag: integration</description>
<language>en</language>
<pubDate>Wed, 07 Jan 2009 16:59:06 +0000</pubDate>

<item>
<title>Alex on "Rename an existing contact form field (Lite)"</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 "Rename an existing contact form field (Lite)"</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 "Rename an existing contact form field (Lite)"</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 "Rename an existing contact form field (Lite)"</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>

</channel>
</rss>
