<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Pods Framework for WordPress  &#187;  Topic: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)</title>
		<atom:link href="http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/feed/" rel="self" type="application/rss+xml" />
		<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/feed/</link>
		<description></description>
		<pubDate>Sat, 18 May 2013 06:02:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.3.2</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164392</guid>
					<title><![CDATA[Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164392</link>
					<pubDate>Wed, 13 Oct 2010 18:29:45 +0000</pubDate>
					<dc:creator>Ben Petersen</dc:creator>

					<description>
						<![CDATA[
						<p>Greetings!</p>
<p>I love how much can be done with PODs.  I am wondering though if it is possible to work with Helpers, Pages, Roles and all in PHP.  The idea would be to have a fully installable PODs plugin as a zipped file, like most WordPress Plugins.  The only catch would be that it would require PODs/PODs-UI already installed.</p>
<p>I don&#8217;t mind the package manager built in, its handy as well. I&#8217;m just looking for the most portable possibilities for making a PODs plugin installable (and not need extra configuration steps&#8230; like setting up a pods page in admin, or setting up a helper).</p>
<p>So hopefully that is clear.  Good examples again:</p>
<ul>
<li>Create &amp; package helpers as PHP files in your plugin folder</li>
<li>Create POD page defaults in a php file&#8230;. though probably good if can be edited later</li>
<li>etc.</li>
</ul>
<p>Thanks!&#8212;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164393</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164393</link>
					<pubDate>Wed, 13 Oct 2010 20:08:45 +0000</pubDate>
					<dc:creator>chriscarvache</dc:creator>

					<description>
						<![CDATA[
						<p>if you install the PODS UI plugin and look at the sample, you&#8217;ll find that creating a PODs plugin is pretty easy.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164394</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164394</link>
					<pubDate>Thu, 14 Oct 2010 02:19:50 +0000</pubDate>
					<dc:creator>Ben Petersen</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks, I&#8217;m in that, and a ways past actually.  I&#8217;ve got a pretty good plugin going after checking out the PODs-UI sample code.  In the code though, there is no reference of helper functions in the php file.  </p>
<p>Ive installed some of the packages here (the thumbnail image is really handy) but these all go into the PODs admin area (database).  I&#8217;m looking for docs on the same kind of functionality, but that could simply be implemented though the php files in my plugin.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164395</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164395</link>
					<pubDate>Thu, 14 Oct 2010 12:34:31 +0000</pubDate>
					<dc:creator>Ben Petersen</dc:creator>

					<description>
						<![CDATA[
						<p>Preface &#8212; Pods is awesome.  I&#8217;m definitely not knocking or assuming any thoughts here are &quot;improvements&quot;.  Just probing beyond documentation to see what is possible.</p>
<p>My pretend code below is purely theoretical, nothing below actually works, but helps clarify my question.  Hopefully WordPress won&#8217;t reformat it too much after I hit submit.</p>
<p>/// my php plugin file /////////////////</p>
<p>// setup my helper in code&#8230;<br />
function my&#95;helper() {<br />
   // do helper stuff<br />
}</p>
<p>// now register the helper for use (by any pod)</p>
<p>register&#95;pods&#95;helper(<br />
array(<br />
  &#8216;name&#8217; =&gt; &#8216;my&#95;helper&#8217;,<br />
  &#8216;type&#8217; =&gt; &#8216;display&#95;helper&#8217;<br />
)<br />
);</p>
<p>// then later when I use pods-ui, I&#8217;d like to pass it into the array</p>
<p>function members&#95;profiles&#95;page()<br />
{<br />
  $object = new Pod(&#8216;members&#8217;);<br />
  $object-&gt;ui = array(<br />
                    &#8216;title&#8217;   =&gt; &#8216;Members&#8217;,<br />
                    &#8216;columns&#8217; =&gt; array(<br />
                    &#8216;image&#95;mug&#95;shot&#8217;=&gt; array(&#8216;label&#8217;=&gt;&#8217;Mug Shot&#8217;,'display&#95;helper&#8217;=&gt;&#8217;my&#95;helper&#8217; ),</p>
<p>}</p>
<p>Perhaps that provides some clarity.  I know for &#8216;columns&#8217; you can define &#8216;display&#95;helper&#8217; as I did above, but I don&#8217;t know yet if there is a way to register the helper first in php world.  That would make the pod plugin extra portable.  </p>
<p>Another example would be to define default urls, or templates&#8230; again this doesn&#8217;t exist, I&#8217;m just using it to outline what I&#8217;d like to do.</p>
<p>$object = new Pod(&#8216;members&#8217;);</p>
<p>$add&#95;pods&#95;page = &quot;members/*&quot;;  // default pods page for this plugin?</p>
<p>$add&#95;pods&#95;template = &quot;path/to/templates/members&#95;list.php&quot; // a default php file with a list template defined<br />
$add&#95;pods&#95;template&#95;single = &quot;path/to/template/member&#95;single.php&quot; // a default for viewing a single item</p>
<p>The idea again would be to provide users with default templates&#8230;.  savvy users would probably go into the code &amp; copy it into their theme file to tweak to their own likings.</p>
<p>I don&#8217;t know if that is really helpful or not, but there is the goal.  I&#8217;m going to dig through the code and if I answer my own questions I will post back here.  I&#8217;m guessing there are others looking for the same or similar things!</p>
<p>Thanks again guys.  Pods is sweet.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164396</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164396</link>
					<pubDate>Thu, 14 Oct 2010 13:59:47 +0000</pubDate>
					<dc:creator>chriscarvache</dc:creator>

					<description>
						<![CDATA[
						<p>Ben,</p>
<p>There is definitely a way to do this using what is available now.  Once again refer back to the PODS ui sample plugin.  You&#8217;ll notice that when the plugin installs itself it creates a whole bunch of PODS.  This is accomplished by having the plugin do a package import.  With that said, you can do a package import of any POD type item including pages, templates and helpers.  This way, you&#8217;ll be able to register your helper in the PHP world first.</p>
<p>at the bottom of the sample plugin, you notice this code</p>

<link rel="stylesheet" type="text/css" href="http://podsframework.org/wp-content/blogs.dir/7/files/crayon-syntax-highlighter/themes/pods/pods.css" />
<link rel="stylesheet" type="text/css" href="http://podsframework.org/wp-content/plugins/crayon-syntax-highlighter/fonts/monaco.css" />

		<div id="crayon-51975fc11017e" class="crayon-syntax crayon-theme-pods crayon-font-monaco crayon-os-pc print-yes" data-settings=" no-popup scroll-mouseover wrap" style=" margin-top: 12px; margin-bottom: 12px; float: none; clear: both; font-size: 13px !important; line-height: 16.25px !important;">
		
			<div class="crayon-toolbar" data-settings=" show" style="height: 19.5px !important; line-height: 19.5px !important;">
			<div class="crayon-tools"><a class="crayon-copy-button crayon-button" data-text="Press %s to Copy, %s to Paste" title="Copy Plain Code"></a><a class="crayon-plain-button crayon-button" title="Toggle Plain Code"></a><span class="crayon-language">PHP</span></div></div>
			<div class="crayon-info" style="min-height: 16.25px !important; line-height: 16.25px !important;"></div>
			<div class="crayon-plain-wrap"><textarea  class="crayon-plain print-no" data-settings="" readonly style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 13px !important; line-height: 16.25px !important;">
$package = file_get_contents(dirname(__FILE__).'/package.txt');
        $package = addslashes(trim($package));
        $validate = $api-&gt;validate_package($package);
        if(!is_bool($validate))
        {
            pods_ui_message('Package failed validation: '.$validate,2);
            return false;
        }
        $imported = $api-&gt;import_package($package);</textarea></div>
			<div class="crayon-main" style="">
				<table class="crayon-table">
					<tr class="crayon-row">
				<td class="crayon-nums " data-settings="show" style="font-size: 13px !important; line-height: 16.25px !important;">
					<div class="crayon-nums-content"><div class="crayon-num" data-line="crayon-51975fc11017e-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-51975fc11017e-2">2</div><div class="crayon-num" data-line="crayon-51975fc11017e-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-51975fc11017e-4">4</div><div class="crayon-num" data-line="crayon-51975fc11017e-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-51975fc11017e-6">6</div><div class="crayon-num" data-line="crayon-51975fc11017e-7">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-51975fc11017e-8">8</div><div class="crayon-num" data-line="crayon-51975fc11017e-9">9</div></div>
				</td>
						<td class="crayon-code"><div class="crayon-pre" style="font-size: 13px !important; line-height: 16.25px !important;"><div class="crayon-line" id="crayon-51975fc11017e-1"><span class="v">$package</span><span class="h"> </span><span class="o">=</span><span class="h"> </span><span class="e">file_get_contents</span><span class="sy">(</span><span class="e">dirname</span><span class="sy">(</span><span class="k ">__FILE__</span><span class="sy">)</span><span class="sy">.</span><span class="s">'/package.txt'</span><span class="sy">)</span><span class="sy">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-51975fc11017e-2"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="v">$package</span><span class="h"> </span><span class="o">=</span><span class="h"> </span><span class="e">addslashes</span><span class="sy">(</span><span class="e">trim</span><span class="sy">(</span><span class="v">$package</span><span class="sy">)</span><span class="sy">)</span><span class="sy">;</span></div><div class="crayon-line" id="crayon-51975fc11017e-3"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="v">$validate</span><span class="h"> </span><span class="o">=</span><span class="h"> </span><span class="v">$api</span><span class="o">-&gt;</span><span class="e">validate_package</span><span class="sy">(</span><span class="v">$package</span><span class="sy">)</span><span class="sy">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-51975fc11017e-4"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="st">if</span><span class="sy">(</span><span class="o">!</span><span class="e">is_bool</span><span class="sy">(</span><span class="v">$validate</span><span class="sy">)</span><span class="sy">)</span></div><div class="crayon-line" id="crayon-51975fc11017e-5"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="sy">{</span></div><div class="crayon-line crayon-striped-line" id="crayon-51975fc11017e-6"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="e">pods_ui_message</span><span class="sy">(</span><span class="s">'Package failed validation: '</span><span class="sy">.</span><span class="v">$validate</span><span class="sy">,</span><span class="cn">2</span><span class="sy">)</span><span class="sy">;</span></div><div class="crayon-line" id="crayon-51975fc11017e-7"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="k ">return</span><span class="h"> </span><span class="t">false</span><span class="sy">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-51975fc11017e-8"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="sy">}</span></div><div class="crayon-line" id="crayon-51975fc11017e-9"><span class="h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="v">$imported</span><span class="h"> </span><span class="o">=</span><span class="h"> </span><span class="v">$api</span><span class="o">-&gt;</span><span class="e">import_package</span><span class="sy">(</span><span class="v">$package</span><span class="sy">)</span><span class="sy">;</span></div></div></td>
					</tr>
				</table>
			</div>
		</div>


<p>And there it is!!  Everything you need!  Hope you find this helpful!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164397</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164397</link>
					<pubDate>Thu, 14 Oct 2010 14:29:59 +0000</pubDate>
					<dc:creator>sc0ttkclark</dc:creator>

					<description>
						<![CDATA[
						<p>We&#8217;re hoping to get a bit more Package functionality into Pods 2.0, but if not 2.0 then the version right after. The new functionality would include the ability to import packages and overwrite the existing helpers / pages / etc &#8211; and the ability to upgrade your package and uninstall it. Lots of cool stuff, keep your eyes peeled!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164398</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164398</link>
					<pubDate>Fri, 15 Oct 2010 02:51:21 +0000</pubDate>
					<dc:creator>benfavre</dc:creator>

					<description>
						<![CDATA[
						<p>I have done such a thing for <a href="http://www.armen.net/gps/" rel="nofollow">http://www.armen.net/gps/</a> (pretty involved) basically on activation i import the pods and helpers like chriscarvache suggested. But then all the rewrites are registered by my plugin without going through pods. This is done verry easily with a bit of php. This allowed me to have all my php pod pages sit in a directory in my plugin dir. This worked really well for me and i would be willing to share the code with you if you really wanna go down that route.</p>
<p>In the end: I wanted to do it, so i figured out a way &#8230; But now i wonder if it was really necessary. I does help to be able to edit the files in your php editor with syntax higlighting and maybe it feels more like a plugin by having code other than the podsui code in the dir <img src='http://podsframework.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  . But appart from that at the end of the day pods has a (sort of) nice way of dealling with imports etc. </p>
<p>If you put in a bit of effort like chriscarvache said : the way it is now works.<br />
And as sc0ttkclark said it&#8217;s gonna be improved.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164399</guid>
					<title><![CDATA[Re: Will there be docs to do a full PODs plugin in PHP? (a zip file like typical WP plugins&#8230;)]]></title>
					<link>http://podsframework.org/forums/topic/will-there-be-docs-to-do-a-full-pods-plugin-in-php-a-zip-file-like-typical-wp-plugins/#post-164399</link>
					<pubDate>Sat, 16 Oct 2010 17:58:13 +0000</pubDate>
					<dc:creator>Ben Petersen</dc:creator>

					<description>
						<![CDATA[
						<p>Excellent!<br />
Thanks Chris for your answer&#8230; I did miss that chunk of code at the bottom, which is exactly what i am looking for.  Scott, I&#8217;ve been reading what you guys have coming in 2.0 (&amp; beyond) and am quite excited.  And thanks for your help as well gr0b1.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

