<?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: ELEMENTIA 4 IN 1 - Blog Entries</title>
		<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries</link>
		<description>Support Forum - Topic: ELEMENTIA 4 IN 1 - Blog Entries</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 21:58:48 +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/elementia-4-in-1-blog-entries" rel="self" type="application/rss+xml" />

		<item>
			<title>James Morrison on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-21009</link>
			<pubDate>Tue, 14 Jun 2011 12:42:01 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">21009@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;Glad you got this figured out, let us know if you have any other questions.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artispot on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20984</link>
			<pubDate>Tue, 14 Jun 2011 04:01:04 +0000</pubDate>
			<dc:creator>artispot</dc:creator>
			<guid isPermaLink="false">20984@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Okay, I got the form to submit, now I just need it to refresh the page and reset the form to its default settings.&#60;/p&#62;
&#60;p&#62;I just realized I'm supporting myself on this one! LOL.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artispot on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20981</link>
			<pubDate>Tue, 14 Jun 2011 01:51:14 +0000</pubDate>
			<dc:creator>artispot</dc:creator>
			<guid isPermaLink="false">20981@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Okay, I realized that the problem was that the ajax function I'm calling isn't made to work with the comments section. After opening up custom.js, I see it's strictly for the contact page. I'm seeing if I can tweak some things now, but any pointers?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artispot on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20973</link>
			<pubDate>Mon, 13 Jun 2011 19:26:30 +0000</pubDate>
			<dc:creator>artispot</dc:creator>
			<guid isPermaLink="false">20973@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Interestingly enough, I got everything to work, except the comments section. I'm forwarding the link to my blog page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.artispot.com/main/blog.php&#34; rel=&#34;nofollow&#34;&#62;http://www.artispot.com/main/blog.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you click on any of the blog entries, it'll take you to the post page, where I'm having an issue.&#60;/p&#62;
&#60;p&#62;As you can see, validation works just fine. However, when I try to submit a new post, the button disappears and nothing happens.&#60;/p&#62;
&#60;p&#62;I'm posting some code so you can see how I'm trying to acheive it. Form code first. I've altered the original to allow ajax:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;form id=&#34;commentform&#34; method=&#34;post&#34; action=&#34;&#34; class=&#34;ajax_form&#34;&#38;gt;&#60;br /&#62;
&#38;lt;div class=&#34;personal_data&#34;&#38;gt;&#38;lt;?php if (!isset($errorC) &#124;&#124; $errorC == true){ ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;p class=&#34;&#38;lt;?php if (isset($the_nameclass)) echo $the_nameclass; ?&#38;gt;&#34; &#38;gt;&#38;lt;label for=&#34;author&#34;&#38;gt;&#38;lt;small&#38;gt;Name (required)&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;input type=&#34;text&#34; tabindex=&#34;1&#34; size=&#34;22&#34; value='&#38;lt;?php if (isset($the_name)) { echo $the_name; } else { echo &#34;Name&#34;; }  ?&#38;gt;' id=&#34;author&#34; class=&#34;text_input is_name&#34; name=&#34;author&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;p class=&#34;&#38;lt;?php if (isset($the_emailclass)) echo $the_emailclass; ?&#38;gt;&#34;&#38;gt;&#38;lt;label for=&#34;email&#34;&#38;gt;&#38;lt;small&#38;gt;Mail (will not be published) (required)&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;input type=&#34;text&#34; tabindex=&#34;2&#34; size=&#34;22&#34; value='&#38;lt;?php if (isset($the_email)) { echo $the_email; } else { echo &#34;Email&#34;; } ?&#38;gt;' id=&#34;email&#34; class=&#34;text_input is_email&#34; name=&#34;email&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;p&#38;gt;&#38;lt;label for=&#34;url&#34;&#38;gt;&#38;lt;small&#38;gt;Website&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;input type=&#34;text&#34; tabindex=&#34;3&#34; size=&#34;22&#34;value=&#34;&#38;lt;?php if (isset($the_website)) { echo $the_website; } else { echo &#34;Website URL&#34;; }?&#38;gt;&#34; id=&#34;url&#34; class=&#34;text_input&#34; name=&#34;url&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div class=&#34;message_data&#34;&#38;gt;&#60;br /&#62;
&#38;lt;p class=&#34;&#38;lt;?php if (isset($the_messageclass)) echo $the_messageclass; ?&#38;gt;&#34;&#38;gt;&#38;lt;textarea style=&#34;width: 589px !important&#34; tabindex=&#34;4&#34; class=&#34;text_area is_empty&#34; rows=&#34;10&#34; cols=&#34;100%&#34; id=&#34;comment&#34; name=&#34;comment&#34;&#38;gt;&#38;lt;?php  if (isset($the_message)) echo $the_message ?&#38;gt;&#38;lt;/textarea&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;input type=&#34;hidden&#34; id=&#34;postID&#34; name=&#34;postID&#34; value=&#34;&#38;lt;?php echo $postID; ?&#38;gt;&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;p&#38;gt;&#38;lt;input type=&#34;submit&#34; value=&#34;Submit&#34; tabindex=&#34;5&#34; id=&#34;submit&#34; class=&#34;button&#34; name=&#34;submit&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;?php } else { ?&#38;gt; &#60;/p&#62;
&#60;p&#62;&#38;lt;?php } ?&#38;gt;&#60;br /&#62;
&#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;/form&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Now for the actual submission code. I've just re-used the Contact.php code and changed some things:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
if(isset($_POST['Submit']) &#124;&#124; isset($_POST['ajax'])){&#60;/p&#62;
&#60;p&#62;		$errorC = false;&#60;br /&#62;
		$postID = $_POST['postID'];&#60;br /&#62;
		$the_name = $_POST['author'];&#60;br /&#62;
		$the_email = $_POST['email'];&#60;/p&#62;
&#60;p&#62;		date_default_timezone_set('America/New_York');&#60;/p&#62;
&#60;p&#62;		$time = time();&#60;/p&#62;
&#60;p&#62;		function makeClickableWebsite($the_website) {&#60;br /&#62;
		  $the_website = eregi_replace('(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&#38;amp;//=]+)',&#60;br /&#62;
		    '&#60;a href=&#34;\\1&#34;&#62;\\1&#60;/a&#62;', $the_website);&#60;br /&#62;
		  $the_website = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&#38;amp;//=]+)',&#60;br /&#62;
		    '\\1&#60;a href=&#34;http://\\2&#34;&#62;\\2&#60;/a&#62;', $the_website);&#60;br /&#62;
		  $the_website = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',&#60;br /&#62;
		    '&#60;a href=&#34;mailto:\\1&#34;&#62;\\1&#60;/a&#62;', $the_website);&#60;br /&#62;
		return $the_website;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$the_website = makeClickableWebsite(stripslashes($_POST['website']));&#60;/p&#62;
&#60;p&#62;		function makeClickableLinks($the_message) {&#60;br /&#62;
		  $the_message = eregi_replace('(((f&#124;ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&#38;amp;//=]+)',&#60;br /&#62;
		    '&#60;a href=&#34;\\1&#34;&#62;\\1&#60;/a&#62;', $the_message);&#60;br /&#62;
		  $the_message = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&#38;amp;//=]+)',&#60;br /&#62;
		    '\\1&#60;a href=&#34;http://\\2&#34;&#62;\\2&#60;/a&#62;', $the_message);&#60;br /&#62;
		  $the_message = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',&#60;br /&#62;
		    '&#60;a href=&#34;mailto:\\1&#34;&#62;\\1&#60;/a&#62;', $the_message);&#60;br /&#62;
		return $the_message;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$the_message = makeClickableLinks(str_replace(array(&#34;\\r\\n&#34;, &#34;\\r&#34;, &#34;\\n&#34;), &#34;&#60;br /&#62;&#34;, stripslashes($_POST['comment'])));&#60;/p&#62;
&#60;p&#62;		if(!checkmymail($the_email))&#60;br /&#62;
		{&#60;br /&#62;
			$errorC = true;&#60;br /&#62;
			$the_emailclass = &#34;error&#34;;&#60;br /&#62;
		}else{&#60;br /&#62;
			$the_emailclass = &#34;valid&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		if($the_name == &#34;&#34; &#124;&#124; $the_name == &#34;Name&#34;)&#60;br /&#62;
		{&#60;br /&#62;
			$errorC = true;&#60;br /&#62;
			$the_nameclass = &#34;error&#34;;&#60;br /&#62;
		}else{&#60;br /&#62;
			$the_nameclass = &#34;valid&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		if($the_message == &#34;&#34;)&#60;br /&#62;
		{&#60;br /&#62;
			$errorC = true;&#60;br /&#62;
			$the_messageclass = &#34;error&#34;;&#60;br /&#62;
		}else{&#60;br /&#62;
			$the_messageclass = &#34;valid&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		if($errorC == false)&#60;br /&#62;
		{&#60;br /&#62;
			$newcomment = mysql_query(&#34;INSERT into $table24 (postID, commentDate, author, email, website, comment) VALUES ('$postID', '$time', '$the_name', '$the_email', '$the_website', '$message')&#34;) or die (mysql_error());&#60;/p&#62;
&#60;p&#62;			if(isset($_POST['ajax'])){&#60;br /&#62;
			echo&#34;&#38;lt;p&#38;gt;Thank you for your comment!&#38;lt;/p&#38;gt;&#34;;&#60;br /&#62;
			}&#60;/p&#62;
&#60;p&#62;			getcount($table24, $postID);&#60;br /&#62;
			getcomments($table24, $postID);&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;}	&#60;/p&#62;
&#60;p&#62;function checkmymail($the_email){&#60;br /&#62;
	$email_flag=preg_match(&#34;!^\w[\w&#124;\.&#124;\-]+@\w[\w&#124;\.&#124;\-]+\.[a-zA-Z]{2,4}$!&#34;,$the_email);&#60;br /&#62;
	return $email_flag;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I'm calling in the script using this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
if(isset($_POST['Submit']))&#60;br /&#62;
{&#60;br /&#62;
	include('../phpf/submitcomment.php');&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Same as on the contact page. Calling in the script once the form is set. Can you help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20639</link>
			<pubDate>Tue, 07 Jun 2011 18:49:28 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">20639@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
yes - if you build your website with a custom php framework you need to write everything from scratch or you can use functions which are provided by the framework (i.e. cake, codigniter, etc.).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artispot on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20558</link>
			<pubDate>Mon, 06 Jun 2011 13:53:17 +0000</pubDate>
			<dc:creator>artispot</dc:creator>
			<guid isPermaLink="false">20558@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, James for the quick response. I didn't get an email, and so I figured I'd check the site to see if there were any responses. I'm not using WP for this, I'm just customizing the html and php to suit my needs. But I figured out how to do it manually, so thanks for your help.&#60;/p&#62;
&#60;p&#62;One other thing, though, I guess I have to do the same for the comments as well, then, eh? Customize the function to also include a mysql update whenever someone submits a comment and then loop through them to display them on the page.&#60;/p&#62;
&#60;p&#62;This is such a great theme, I'm really impressed with it. Thanks for everything!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20187</link>
			<pubDate>Tue, 31 May 2011 09:21:09 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">20187@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;The number of posts appearing on a blog page is controlled through WP Admin, you can find the option under Settings &#38;gt; Reading and change the number from the default of 10 to a number of your choosing. By the sounds of it, yours is set to 2.&#60;/p&#62;
&#60;p&#62;Please post the site URL if you need further help.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artispot on "ELEMENTIA 4 IN 1 - Blog Entries"</title>
			<link>http://www.kriesi.at/support/topic/elementia-4-in-1-blog-entries#post-20150</link>
			<pubDate>Mon, 30 May 2011 13:07:27 +0000</pubDate>
			<dc:creator>artispot</dc:creator>
			<guid isPermaLink="false">20150@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi, Kriesi,&#60;/p&#62;
&#60;p&#62;Thanks for a great theme! I downloaded and deployed it with no problem. Now, I'm customizing it and I was wondering about the blog section. So, I want to create a while loop to pull blog entries from a database, and I was wondering about pagination, because it looks like the Blog page limits it to 2 entries per page. Is that an automatic function or do I have to do something to create more tabs at the bottom where it says 1, 2, 3, 4, 5, etc.&#60;/p&#62;
&#60;p&#62;I'm really excited about using this theme. I've been looking forward to it for months! Way to go, Kriesi!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
