<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Russell and Associates - Forum &#187; html</title>
	<atom:link href="http://www.randaweb.com/forum/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randaweb.com/forum</link>
	<description>Marketing, Management, Software Development Opinions and Advice</description>
	<lastBuildDate>Mon, 27 Jun 2011 00:12:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>PyroCMS Widget Creation for Affiliate Marketing &#8211; Section 1</title>
		<link>http://www.randaweb.com/forum/programming/pyrocms-widget-for-affiliate-marketing/</link>
		<comments>http://www.randaweb.com/forum/programming/pyrocms-widget-for-affiliate-marketing/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 12:51:35 +0000</pubDate>
		<dc:creator>Vic Russell</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[PyroCMS]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.randaweb.com/forum/?p=331</guid>
		<description><![CDATA[This tutorial should help you understand and create PyroCMS widgets using Codeigniter syntax, jQuery JavaScript library, and the PyroCMS framework.]]></description>
			<content:encoded><![CDATA[<div style="float: left; position: relative;"><a href="http://www.randaweb.com/forum/programming/pyrocms-widget-creation-for-affiliate-marketing-section-2/" target="_top"> <button>Section 2 &#8211; form.php</button></a></div>
<div style="float: left; position: relative;"><a href="http://www.randaweb.com/forum/programming/pyrocms-widget-creation-for-affiliate-marketing-section-3/" target="_top"> <button>Section 3 &#8211; display.php</button></a></div>
<div style="float: left; position: relative;"><a href="http://www.randaweb.com/forum/" target="_top"><button>Back To Forum</button></a></div>
<div style="float: left; position: relative;"><a href="http://www.randaweb.com/" target="_top"><button>Russell &amp; Associates Website</button></a></div>
<div style='clear: both'>
<hr /></div>
<p><a title="PyroCMS" href="http://pyrocms.com/" target="_blank">PyroCMS </a>is a very powerful and capable PHP-based CMS.  It is authored on top of the <a title="Codeigniter" href="http://codeigniter.com/" target="_blank">Codeigniter framework</a>.  It is very fast, and scalable and very promising as a powerful PHP framework.</p>
<p><a title="PyroCMS Affiliate Widget Download" href="http://www.randaweb.com/download_files/pyrocms_widget_affiliate/affiliate.zip" target="_blank">Download the affiliate.zip file here</a></p>
<p><em><span style="color: #003366;">Caveat: The documentation for PyroCMS (PCMS) is very sparse.  Any answer to any question can be exceedingly  difficult to find.  Check back often for additional links to developing documentation.</span></em></p>
<p>One of the new and useful features of PyroCMS is the addition of <strong>Widgets</strong>.  Now, we all know what a widget is, right?  Actually, in the PCMS world, the concept of widget is very accurate &#8211; <em>it is a discrete entity (in this case, a class) that can be added to a page, section of a page (right sidebar, left sidebar, header, footer, content, etc) that can access the database as well as execute custom code and present content that you create, in a format you define. </em> You can use this to display images, text, and any other content you decide is needed &#8211; EXCEPT for JavaScript.</p>
<p>Let me clarify the javascript problem: if you want to create a widget that allows you to enter javascript snippets, it will not work &#8211; the &lt;script&gt; tags as well as any document.write() methods are stripped out for security reasons and replaced with <strong>[removed]</strong>.  I am searching for a workaround, but given the above statement regarding documentation, this might take some time.  [ note: The feature within the Codeigniter (CI) form_helper class that sanitizes strings is <kbd><strong>xss_clean and prep_for_form ]</strong>. Until then, I am adding the needed JavaScript in the class and view files.</kbd></p>
<p>There are adequate <strong>installation documentation</strong> and install examples on the web for installing PyroCMS and Codeigniter.  Here are a couple.</p>
<p><a title="PyroCMS Installation" href="http://pyrocms.com/documentation/general/installation" target="_blank">PyroCMS Installation</a></p>
<p><a title="Codeigniter Installation" href="http://codeigniter.com/user_guide/installation/index.html" target="_blank">Installing Codeigniter</a> <em>(this is link is provided only for reference - you do not need to download and install CI as PyroCMS is built on top of CI)</em></p>
<p><em>It is critical that you define your database connection accurately, and remember your default user name and password. </em></p>
<h2>Our Platform</h2>
<p>I am using a Dell laptop with 2 GB of RAM and a dual core Athlon X2 processor (circa 2006) with <a title="WAMP server download" href="http://www.wampserver.com/en/download.php" target="_blank">WAMP (Windows Apache MySQL PHP) </a>installed for development, <a title="PHP Designer 7 link" href="http://www.mpsoftware.dk/downloads.php" target="_blank">PHP Designer 7</a> as the IDE (Eclipse is too heavy, but would work with a more powerful machine).  WAMP is a very easy install.</p>
<p>All of my web files are under <span style="color: #0000ff;">C:\wamp\www\ </span>- which is the default web root for a typical WAMP installation.</p>
<p><strong>Lets create a widget in PyroCMS - 'affiliate'</strong></p>
<p><em>There is no widget named affiliate that comes with your installation.  Therefore, any reference to a file or folder/directory implies you have added it or should add it.</em></p>
<p><strong>Navigate to the widgets directory </strong>under the application directory</p>
<ul>
<li><span style="color: #000080;">(note: I am a Linux developer first - some of my paths will have the forward Unix-style slash ( / ) rather than the backwards Windows-style slash ( \ ).  Make adjustments where needed if I forget to use Windows style slashes)</span></li>
</ul>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; color: #000080; white-space: pre;">C:\wamp\www\pyrocms_directory\application\widgets\<em>affiliate</em></span></p>
<p>First, <strong>create the directory</strong> within the ...\widgets\ path called <em>affiliate</em>.</p>
<div id="attachment_338" class="wp-caption alignright" style="width: 138px"><a rel="attachment wp-att-338" href="http://www.randaweb.com/forum/programming/pyrocms-widget-for-affiliate-marketing/attachment/pyrocms_widget_dir_struct/"><img class="size-medium wp-image-338 " title="pyrocms_widget_dir_struct" src="http://www.randaweb.com/forum/wp-content/uploads/2010/10/pyrocms_widget_dir_struct-128x300.gif" alt="PyroCMS Widget Directory Structure - randaweb" width="128" height="300" /></a><p class="wp-caption-text">Widget Directory Structure</p></div>
<p><strong>Copy the code</strong> from this link into a download folder, extract the files, then copy the the files into the above path.  You will copy the 'views' directory and the affiliate.php file into the <em>affiliate </em>directory (see folder screenshot).</p>
<p><a title="PyroCMS Affiliate Widget Download" href="http://www.randaweb.com/download_files/pyrocms_widget_affiliate/affiliate.zip" target="_blank">Download the affiliate.zip file here</a></p>
<p>Within the 'views' directory, you will have <strong>two files:  display.php and form.php.</strong> These files, and the containing 'views' folder, will be  present in every PyroCMS widget you create - <em>these files are required and necessary</em>.</p>
<ul>
<li>The first file you edit (or create, depending on your need) is the class file.  Remember to <strong>capitalize the name of the class - which must be the same name as the file </strong>(less the .php extension <img src='http://www.randaweb.com/forum/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ).</li>
</ul>
<p>Here is a bare affiliate.php file after editing to add the fields needed for the new widget:</p>
<pre>&lt;?php</pre>
<pre>if(!defined('BASEPATH')) exit('No direct script access permitted');</pre>
<pre>class Affiliate extends Widgets</pre>
<pre>{</pre>
<pre>// This section will appear when you click on the widget on the 'widgets' page of the admin</pre>
<pre>// interface (aka dashboard).  You access the admin interface using the following URL:</pre>
<pre>// <a href="http://localhost/pyrocms2/pyrocms/admin">http://your-host/your-pyrocms-base-dir/<strong><em>admin</em></strong></a></pre>
<pre>public $title = 'Affiliate Widget';</pre>
<pre>public $description = 'Add Affiliate Links and Images';</pre>
<pre>public $author = 'Vic Russell';</pre>
<pre>public $website = 'http://www.randaweb.com';</pre>
<pre>public $version = '0.3';</pre>
<pre>// Now you define the fields that you will use in your widget.</pre>
<pre>// The widgets class will contain a 'name' field, so it is optional here</pre>
<pre>public $fields = array(</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_title',</pre>
<pre>'label' =&gt; 'Product Title',</pre>
<pre>'rules' =&gt; 'trim|max_length[254]'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_order',</pre>
<pre>'label' =&gt; 'Add Order - 1 = new line',</pre>
<pre>'rules' =&gt; 'trim|max_length[3]|integer'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_link',</pre>
<pre>'label' =&gt; 'Affiliate Link',</pre>
<pre>'rules' =&gt; 'required|trim'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_alt',</pre>
<pre>'label' =&gt; 'Affiliate Alt Text',</pre>
<pre>'rules' =&gt; 'trim|prep_url|max_length[254]'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_class',</pre>
<pre>'label' =&gt; 'CSS Class',</pre>
<pre>'rules' =&gt; 'trim|max_length[254]'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_style',</pre>
<pre>'label' =&gt; 'CSS Style',</pre>
<pre>'rules' =&gt; 'trim'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_source',</pre>
<pre>'label' =&gt; 'Affiliate Source)',</pre>
<pre>'rules' =&gt; 'trim|max_length[254]'</pre>
<pre>),</pre>
<pre>array(</pre>
<pre>'field' =&gt; 'aff_company',</pre>
<pre>'label' =&gt; 'Company Source for add',</pre>
<pre>'rules' =&gt; 'trim|max_length[254]'</pre>
<pre>)</pre>
<pre>);</pre>
<pre>public function <strong>run</strong>($options)</pre>
<pre>{</pre>
<pre>// The requisite 'run()' method that returns the data in the $output[] array //</pre>
<pre>if(empty($options['aff_title']))</pre>
<pre>{</pre>
<pre>return array('output' =&gt; '');</pre>
<pre>}</pre>
<pre>return array('output' =&gt; array($options['aff_title'], $options['aff_link'],</pre>
<pre>$options['aff_alt'], $options['aff_class'], $options['aff_style'],</pre>
<pre>$options['aff_source'], $options['aff_company'] ) );</pre>
<pre>}</pre>
<pre>}</pre>
<pre>/* Close class Affiliate */</pre>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: 19px; white-space: normal;"><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;">
<div style="float: left; position: relative;">
<a href="http://www.randaweb.com/forum/programming/pyrocms-widget-creation-for-affiliate-marketing-section-2/" target="_top"> <button>Section 2 - form.php</button></a></div>
<div style="float: left; position: relative;">
<a href="http://www.randaweb.com/forum/programming/pyrocms-widget-creation-for-affiliate-marketing-section-3/" target="_top"> <button>Section 3 - display.php</button></a></div>
<div style="float: left; position: relative;">
<a href="http://www.randaweb.com/forum/" target="_top"><button>Back To Forum</button></a></div>
<div style="float: left; position: relative;">
<a href="http://www.randaweb.com/" target="_top"><button>Russell &amp; Associates Website</button></a></div>

</span></span></span></span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.randaweb.com/forum/programming/pyrocms-widget-for-affiliate-marketing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New Domain &#8211; jqueryform.info</title>
		<link>http://www.randaweb.com/forum/programming/new-domain-jqueryform-info/</link>
		<comments>http://www.randaweb.com/forum/programming/new-domain-jqueryform-info/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 18:43:35 +0000</pubDate>
		<dc:creator>Vic Russell</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jqueryform.info]]></category>

		<guid isPermaLink="false">http://www.randaweb.com/forum/?p=266</guid>
		<description><![CDATA[new domain - jqueryform.info - dedicated to information on jQuery forms...]]></description>
			<content:encoded><![CDATA[<h3>jqueryform.info is a domain I just purchased to use for dedicated jQuery forms blogging.  The jQuery &#8216;forms&#8217; topic is huge, as anyone who uses jQuery knows.</h3>
<h4>Sample topics:</h4>
<ul>
<li>validation (client and server side handling/callbacks/etc)</li>
<li> AJAXifying forms</li>
<li> processing select, checkbox, and radio button tags</li>
<li>presenting error information elegantly</li>
<li>Myriad of plugings related to forms and form processing</li>
</ul>
<p>I am going to try <strong>GoDaddy </strong>for hosting this site round.  I am not being critical of Hostmonster, I just have to test another hosting solution before I pony-up for a dedicated server or VM.</p>
<p><strong><em>If anyone has a suggestion re: a hosting provider &#8211; and I mean direct experience &#8211; feel free to reply to this post. </em></strong>Please include the reason(s) why you like or do not like the provider &#8211; submissions with only a link and sales text will be removed.</p>
<p>Til Tomorrow&#8230;</p>
<p>Vic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randaweb.com/forum/programming/new-domain-jqueryform-info/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Design and Development Links</title>
		<link>http://www.randaweb.com/forum/programming/web-design-and-development-links/</link>
		<comments>http://www.randaweb.com/forum/programming/web-design-and-development-links/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:18:06 +0000</pubDate>
		<dc:creator>vrussell</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.randaweb.com/forum/?p=86</guid>
		<description><![CDATA[Site Links I have found useful when designing, developing, and managing web sites and personnel over the years.]]></description>
			<content:encoded><![CDATA[<h1>Links to very interesting and useful sites that will help inspire, teach, and inform.</h1>
<h2>Design:</h2>
<p><strong><a title="smashinglink" href="http://www.smashingmagazine.com/" target="_blank">Smashing Magazine</a></strong> &#8211; User Interface concepts:  <a title="smashing" href="http://www.smashingmagazine.com/" target="_blank">http://www.smashingmagazine.com/</a></p>
<p><strong><a title="ZenGardenLink" href="http://www.csszengarden.com/" target="_blank">Zen Garden</a></strong> &#8211; examples of how CSS can be beautiful:  <a title="ZenGarden" href="http://www.csszengarden.com/" target="_blank">http://www.csszengarden.com/</a></p>
<h2>Design and Development:</h2>
<p><strong><a title="sitepointlink" href="http://www.sitepoint.com/" target="_blank">SitePoint </a></strong>- amazing JavaScript and CSS references : <a title="sitepoint" href="http://www.sitepoint.com/" target="_blank">http://www.sitepoint.com/</a></p>
<p><span id="more-86"></span></p>
<h2>Development:</h2>
<p><strong><a title="tizagLink" href="http://www.tizag.com/" target="_blank">Tizag </a></strong>- PHP, Java, Javascript, tutorials in easy to follow format: <a title="tizag" href="http://www.tizag.com/" target="_blank">http://www.tizag.com/</a></p>
<p><strong><a title="w3schoolslink" href="http://www.w3schools.com/" target="_blank">W3Schools </a></strong>- PHP, JavaScript, Python, HTML, CSS tutorials &#8211; great quick and easy guides to simple to moderately complex topics: <a href="http://www.w3schools.com/">http://www.w3schools.com/</a></p>
<h2>Tools</h2>
<p><a title="Eclipse" href="http://www.eclipse.org/downloads/" target="_blank">Eclipse IDE</a> &#8211; The standard for Java developers can be useful for PHP developers also &#8211; with the optional PHP extension pack.</p>
<p><a title="phpdesigner7" href="http://www.mpsoftware.dk/" target="_blank">PHPDesigner7 </a>- a comprehensive PHP, Python, JavaScript IDE that contains project as well as file management tools.  Very customizable.  Lightweight (as compared to Eclipse).</p>
<h2>Language Downloads</h2>
<p><a title="wampserver" href="http://www.wampserver.com/en/" target="_blank">WAMP Server</a> &#8211; Windows, Apache2, MySQL, PHP &#8211; for Windows XP/Server platforms.  FAST install for a robust development environment.  Will make testing using Eclipse or PHPDesigner7 very effective.</p>
<div class="wp-caption alignnone" style="width: 221px"><a title="pythonimage" href="http://www.python.org/download/" target="_blank"><img title="pythonLogo" src="http://www.python.org/images/python-logo.gif" alt="Click here to download Python" width="211" height="71" /></a><p class="wp-caption-text">Click here to download Python</p></div>
<p><a title="python_base" href="http://www.python.org/download/" target="_blank">Python </a>- the language base for the powerful and intuitive Python language.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randaweb.com/forum/programming/web-design-and-development-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

