<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: How to have contact form above content on contact page?</title>
		<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page</link>
		<description>Support Forum - Topic: How to have contact form above content on contact page?</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 16:12:47 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/how-to-have-contact-form-above-content-on-contact-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Beard on "How to have contact form above content on contact page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page#post-26854</link>
			<pubDate>Tue, 13 Sep 2011 11:45:30 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">26854@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;to do this you can do the following:&#60;br /&#62;
in your folder Framework&#38;gt;php&#38;gt;class-form-generator.php find :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
         * text
         *
         * The text method creates input elements with type text, and prefills them with $_POST values if available.
         * The method also checks against various input validation cases
         * @param string $id holds the key of the element
         * @param array $element data array of the element that should be created
         */
		function text($id, $element)
		{
			$p_class = $required = $element_class = $value = &#38;quot;&#38;quot;;

			if(!empty($element[&#38;#39;check&#38;#39;]))
			{
				$required = &#38;quot;*&#38;quot;;
				$element_class = $element[&#38;#39;check&#38;#39;];
				$p_class = $this-&#38;gt;check_element($id, $element);
			}

			if(!empty($_POST[$id])) $value = urldecode($_POST[$id]);

			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;p class=&#38;#39;&#38;quot;.$p_class.&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
			$this-&#38;gt;elements_html .= &#38;#39;    &#38;lt;input name=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; class=&#38;quot;text_input &#38;#39;.$element_class.&#38;#39;&#38;quot; type=&#38;quot;text&#38;quot; id=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; value=&#38;quot;&#38;#39;.$value.&#38;#39;&#38;quot;/&#38;gt;&#38;lt;label for=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot;&#38;gt;&#38;#39;.$element[&#38;#39;label&#38;#39;].$required.&#38;#39;&#38;lt;/label&#38;gt;&#38;#39;;
			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
		}

		/**
         * textarea
         *
         * The textarea method creates textarea elements, and prefills them with $_POST values if available.
         * The method also checks against various input validation cases
         * @param string $id holds the key of the element
         * @param array $element data array of the element that should be created
         */
		function textarea($id, $element)
		{
			$p_class = $required = $element_class = $value = &#38;quot;&#38;quot;;

			if(!empty($element[&#38;#39;check&#38;#39;]))
			{
				$element_class = $element[&#38;#39;check&#38;#39;];
				$p_class = $this-&#38;gt;check_element($id, $element);
			}

			if(!empty($_POST[$id])) $value = urldecode($_POST[$id]);

			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;p class=&#38;#39;&#38;quot;.$p_class.&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
			$this-&#38;gt;elements_html .= &#38;#39;	 &#38;lt;textarea name=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; class=&#38;quot;text_area &#38;#39;.$element_class.&#38;#39;&#38;quot; cols=&#38;quot;40&#38;quot; rows=&#38;quot;7&#38;quot; id=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; &#38;gt;&#38;#39;.$value.&#38;#39;&#38;lt;/textarea&#38;gt;&#38;#39;;
			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and replace it by :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
         * text
         *
         * The text method creates input elements with type text, and prefills them with $_POST values if available.
         * The method also checks against various input validation cases
         * @param string $id holds the key of the element
         * @param array $element data array of the element that should be created
         */
		function text($id, $element)
		{
			$p_class = $required = $element_class = $value = &#38;quot;&#38;quot;;

			if(!empty($element[&#38;#39;check&#38;#39;]))
			{
				$required = &#38;quot;*&#38;quot;;
				$element_class = $element[&#38;#39;check&#38;#39;];

				$p_class = $this-&#38;gt;check_element($id, $element);
			}

			if(!empty($_POST[$id])) $value = urldecode($_POST[$id]);
			$value = $element[&#38;#39;value&#38;#39;];
			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;p class=&#38;#39;&#38;quot;.$p_class.&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
			$this-&#38;gt;elements_html .= &#38;#39;    &#38;lt;input name=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; class=&#38;quot;text_input &#38;#39;.$element_class.&#38;#39;&#38;quot; type=&#38;quot;text&#38;quot; id=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; value=&#38;quot;&#38;#39;.$value.&#38;#39;&#38;quot;/&#38;gt;&#38;#39;;
			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
		}

		/**
         * textarea
         *
         * The textarea method creates textarea elements, and prefills them with $_POST values if available.
         * The method also checks against various input validation cases
         * @param string $id holds the key of the element
         * @param array $element data array of the element that should be created
         */
		function textarea($id, $element)
		{
			$p_class = $required = $element_class = $value = &#38;quot;&#38;quot;;
			$value = $element[&#38;#39;value&#38;#39;];

			if(!empty($element[&#38;#39;check&#38;#39;]))
			{
				$element_class = $element[&#38;#39;check&#38;#39;];
				$p_class = $this-&#38;gt;check_element($id, $element);
			}

			if(!empty($_POST[$id])) $value = urldecode($_POST[$id]);

			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;p class=&#38;#39;&#38;quot;.$p_class.&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
			$this-&#38;gt;elements_html .= &#38;#39;	 &#38;lt;textarea name=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; class=&#38;quot;text_area &#38;#39;.$element_class.&#38;#39;&#38;quot; cols=&#38;quot;40&#38;quot; rows=&#38;quot;7&#38;quot; id=&#38;quot;&#38;#39;.$id.&#38;#39;&#38;quot; &#38;gt;&#38;#39;.$value.&#38;#39;&#38;lt;/textarea&#38;gt;&#38;#39;;
			$this-&#38;gt;elements_html .= &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And in your contact-form.php, found in your includes folder, change this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$elements = array(

		&#38;#39;yourname&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Name&#38;#39;,&#38;#39;avia_framework&#38;#39;), 		&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//user name
		&#38;#39;email&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;E-Mail&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_email&#38;#39;),			//user email
		&#38;#39;website&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Website&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;),					//user website
		&#38;#39;subject&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Subject&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//subject
		&#38;#39;message&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;textarea&#38;#39;,&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Message&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//message
		&#38;#39;myemail&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;hidden&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt; avia_get_option(&#38;#39;avia, email&#38;#39;) ),		//email adress the form should be sent to
		&#38;#39;myblogname&#38;#39;=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;hidden&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt; get_option(&#38;#39;blogname&#38;#39;) ),				//name of the website, gets added to the subject line
		&#38;#39;username&#38;#39;	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;decoy&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;must_empty&#38;#39;),										//decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted

	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$elements = array(

		&#38;#39;yourname&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;,	&#38;#39;value&#38;#39;=&#38;gt;&#38;#39;Name*&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Name&#38;#39;,&#38;#39;avia_framework&#38;#39;), 		&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//user name
		&#38;#39;email&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;value&#38;#39;=&#38;gt;&#38;#39;E-Mail*&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;E-Mail&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_email&#38;#39;),			//user email
		&#38;#39;website&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;value&#38;#39;=&#38;gt;&#38;#39;Website&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Website&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;),					//user website
		&#38;#39;subject&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;text&#38;#39;, 	&#38;#39;value&#38;#39;=&#38;gt;&#38;#39;Subject*&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Subject&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//subject
		&#38;#39;message&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;textarea&#38;#39;,&#38;#39;value&#38;#39;=&#38;gt;&#38;#39;Your Message ..&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;__(&#38;#39;Message&#38;#39;,&#38;#39;avia_framework&#38;#39;), 	&#38;#39;check&#38;#39;=&#38;gt;&#38;#39;is_empty&#38;#39;),			//message
		&#38;#39;myemail&#38;#39; 	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;hidden&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt; avia_get_option(&#38;#39;avia, email&#38;#39;) ),		//email adress the form should be sent to
		&#38;#39;myblogname&#38;#39;=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;hidden&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt; get_option(&#38;#39;blogname&#38;#39;) ),				//name of the website, gets added to the subject line
		&#38;#39;username&#38;#39;	=&#38;gt; 	array(&#38;#39;type&#38;#39;=&#38;gt;&#38;#39;decoy&#38;#39;,	&#38;#39;label&#38;#39;=&#38;gt;&#38;#39;&#38;#39;, &#38;#39;check&#38;#39;=&#38;gt;&#38;#39;must_empty&#38;#39;),										//decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted

	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Excuse me for the delay. I hope this works for you. - Does for me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlah384 on "How to have contact form above content on contact page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page#post-26475</link>
			<pubDate>Tue, 06 Sep 2011 14:33:41 +0000</pubDate>
			<dc:creator>mlah384</dc:creator>
			<guid isPermaLink="false">26475@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This worked! Thanks! But how do I put text above the &#34;message&#34; field or in the message field... if it was in the message field is there a way to have the text disappear when someone clicks that field to type?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "How to have contact form above content on contact page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page#post-26387</link>
			<pubDate>Sun, 04 Sep 2011 23:39:18 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">26387@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
excuse me for the late response.&#60;br /&#62;
In your includes folder, your loop-page.php should contain this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//check if this is the contact form page, if so display the form
if(avia_get_option(&#38;#39;avia, email_page&#38;#39;) == $post-&#38;gt;ID) get_template_part( &#38;#39;includes/contact-form&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;cut it and put it in front of &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//display the actual post content
the_content(__(&#38;#39;Read more&#38;#39;,&#38;#39;avia_framework&#38;#39;));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This should do.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlah384 on "How to have contact form above content on contact page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page#post-26300</link>
			<pubDate>Fri, 02 Sep 2011 19:59:18 +0000</pubDate>
			<dc:creator>mlah384</dc:creator>
			<guid isPermaLink="false">26300@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Anyone know how to do this? &#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlah384 on "How to have contact form above content on contact page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-have-contact-form-above-content-on-contact-page#post-26219</link>
			<pubDate>Thu, 01 Sep 2011 19:27:13 +0000</pubDate>
			<dc:creator>mlah384</dc:creator>
			<guid isPermaLink="false">26219@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;How can i rearrange how the form displays on the contact page? I want to have it before the page content, not after... &#60;/p&#62;
&#60;p&#62;Also, how can I put text above the &#34;message&#34; field or in the message field... if it was in the message field is there a way to have the text disappear when someone clicks that field to type?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
