<?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>Web Programming Answers &#187; Joomla Programmer</title>
	<atom:link href="http://www.bogartcomputing.com/web-programming-answers/category/joomla-programmer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bogartcomputing.com/web-programming-answers</link>
	<description>Joomla Programmer, PHP, Joomla, Zen-Cart, osCommerce, MySQL, CSS, XHTML, Ecommerce, Search Engine Marketing, Web Programming answers, often in their rawest form</description>
	<lastBuildDate>Sun, 20 Jun 2010 19:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Joomla Programmer: Joomla 1.5 Sobi2 Clone for Windows</title>
		<link>http://www.bogartcomputing.com/web-programming-answers/155/joomla-programmer-joomla-15-sobi2-clone-for-windows/</link>
		<comments>http://www.bogartcomputing.com/web-programming-answers/155/joomla-programmer-joomla-15-sobi2-clone-for-windows/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 14:45:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla Programmer]]></category>
		<category><![CDATA[sobi]]></category>
		<category><![CDATA[clone]]></category>

		<guid isPermaLink="false">http://www.bogartcomputing.com/web-programming-answers/?p=155</guid>
		<description><![CDATA[Joomla Programmer: Clone Sobi Using Windows Sobi2 business index is a powerful database program for Joomla programmers and hobbyists. Recently I used Sobi2 to create a Pet Lost and Found database.Â  This worked well but got confusing when I wanted to add an Adoptable Pets database. The tool provides one form with customizable fields, but [...]]]></description>
			<content:encoded><![CDATA[<p></p><h1>Joomla Programmer: Clone Sobi Using Windows</h1>
<p><a title="Sobi2 business index for joomla programmers" href="http://extensions.joomla.org/extensions/1113/details" target="_self">Sobi2 business index</a> is a powerful database program for Joomla programmers and hobbyists. Recently I used Sobi2 to create a Pet Lost and Found database.Â  This worked well but got confusing when I wanted to add an Adoptable Pets database. The tool provides one form with customizable fields, but some fields are not the same across Lost Pets and Adoptable Pets. I needed two forms. The only way to get that is to clone Sobi2.</p>
<p>Sigsiu wrote a <a title="sobi2 clone tool for Joomla Programmers" href="http://extensions.joomla.org/extensions/extension-specific/sobi2-extensions/6565/details">Sobi2 cloning tool</a> for Unix. Short of downloading cygwin, this tool doesn&#8217;t help Windows people.</p>
<p>Following, then, are instructions for how to clone the Sobi2 component for multiple installations using a Windows machine. The original <a title="Windows clone for sobi2" href="http://www.sigsiu.net/forum/index.php/topic,9747.msg52729.html#msg52729" target="_blank">forum post on Windows Cloning is here</a>.</p>
<p>Unzip the com_sobi2 installation into a fresh directory com_sobi2. Copy that to the target directory, com_sobi2lost.</p>
<p><a title="Sobi2 business index for joomla programmers" href="http://extensions.joomla.org/extensions/1113/details" target="_self"><img class="alignnone size-full wp-image-161" title="copy the sobi directory to a new target name" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/1copy_com_sobi2.gif" alt="copy the sobi directory to a new target name" width="225" height="55" /></a></p>
<p>Using a bulk file renamer like File and MP3 renamer, rename all files in com_sobi2lost so that any instance of &#8220;sobi&#8221; is replaced with &#8220;sobilost.&#8221; You are editing file names in this step, not the contents of the files.</p>
<p><img class="alignnone size-full wp-image-162" title="rename" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/2rename_files.gif" alt="rename" width="593" height="463" /></p>
<p>Using a grep search and replace tool like Actual Search &amp; Replace:</p>
<p>Find all instances of &#8220;sobi&#8221; lowercase in com_sobi2lost contents. Change those instances to &#8220;sobilost&#8221;</p>
<p><img class="alignnone size-full wp-image-163" title="grep_options" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/3grep_options.gif" alt="grep_options" width="607" height="628" /></p>
<p>Find all instances of &#8220;SOBI&#8221; uppercase in com_sobi2lost contents. Change those instances to &#8220;SOBILOST&#8221;</p>
<p><img class="alignnone size-full wp-image-164" title="grep lowercase" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/4grep_lowercase.gif" alt="grep lowercase" width="556" height="404" /></p>
<p><img class="alignnone size-full wp-image-165" title="grep uppercase" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/5grep_uppercase.gif" alt="grep uppercase" width="618" height="646" /></p>
<p>Edit the installation xml file sobilost2.xml</p>
<p><img class="alignnone size-full wp-image-166" title="edit xml" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/6edit_xml.gif" alt="edit xml" width="196" height="30" /></p>
<p>Find the administration/menu node.</p>
<p><img class="alignnone size-full wp-image-167" title="find description" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/7edit_description.gif" alt="find description" width="704" height="118" /></p>
<p>Change the node&#8217;s value to a unique value such as Lost Animals</p>
<p><img class="alignnone size-full wp-image-168" title="edit description" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/8edit_description.gif" alt="edit description" width="671" height="160" /></p>
<p>ZIP the com_sobi2lost directory to com_sobi2lost.zip</p>
<p><img class="alignnone size-full wp-image-169" title="zip" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/9zip.gif" alt="zip" width="522" height="540" /></p>
<p>Install the com_sobi2lost.zip</p>
<p><img class="alignnone size-full wp-image-170" title="install clone" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/10install.gif" alt="install clone" width="596" height="248" /></p>
<p>The new description shows up as your menu item under components.</p>
<p><img class="alignnone size-full wp-image-171" title="installed" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/11installed.gif" alt="installed" width="468" height="528" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bogartcomputing.com/web-programming-answers/155/joomla-programmer-joomla-15-sobi2-clone-for-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Joomla Programmer 1.5: chronoforms and mod_php automatic form submit to paypal</title>
		<link>http://www.bogartcomputing.com/web-programming-answers/143/joomla-programmer-15-chronoforms-and-mod_php-automatic-form-submit-to-paypal/</link>
		<comments>http://www.bogartcomputing.com/web-programming-answers/143/joomla-programmer-15-chronoforms-and-mod_php-automatic-form-submit-to-paypal/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 05:14:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla Programmer]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[chronoforms]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[mod_php]]></category>

		<guid isPermaLink="false">http://www.bogartcomputing.com/web-programming-answers/?p=143</guid>
		<description><![CDATA[Joomla Programmer Getting a chronoforms form submission land on a paypal page which then automatically submits to paypal. Chronoforms form membership includes field mtype. mtype contains a donation value for paypal. Submit the chronoforms membership mype to mod_php paypal form. Fill in the mod_php paypal form amount field with the mtype value. Automatically submit the [...]]]></description>
			<content:encoded><![CDATA[<p></p><h2>Joomla Programmer</h2>
<h3>Getting a chronoforms form submission land on a paypal page which then automatically submits to paypal.</h3>
<p>Chronoforms form membership includes field mtype. mtype contains a donation value for paypal. Submit the chronoforms membership mype to mod_php paypal form. Fill in the mod_php paypal form amount field with the mtype value. Automatically submit the mod_php paypal form to paypal. Automatically return to a thank you page.</p>
<ol>
<li><strong>System cache</strong> settings must be off to garner $_POST['value']s. Otherwise you get cached values from previous submissions of chronoforms to mod_php.</li>
<li>Create the mod_php paypal form. Place it in user position<strong> &#8220;membership_dues&#8221;<br />
</strong></li>
<li>create a content article, the text of which is: <strong>{loadposition membership_dues}</strong></li>
<li>In a dummy menu, create an Article layout <strong>menu item pointing to the membership_dues content</strong>. In this example the resultant address is index.php?option=com_content&amp;view=article&amp;id=31</li>
<li>Chronoform membership form method must be <strong>POST</strong>. GET will screw up SEF links.</li>
<li>Set the chronoforms FORM URL<strong> submit URL </strong>to:</li>
<p>http://fulldomainhere/index.php?option=com_content&amp;view=article&amp;id=31</p>
<li><strong>Do NOT have a form target</strong> (the default is target=&#8221;paypal&#8221;) in mod_php paypal form. This creates a popup condition which is quietly suppressed by any browser with popup blocker. It looks like the form submit is not working. Test in IE to see a better error message than in Firefox:<br />
&lt;form action=&#8221;https://www.paypal.com/en/cgi-bin/webscr&#8221; method=&#8221;post&#8221; name=&#8221;mform&#8221; id=&#8221;mform&#8221;&gt;</li>
<li>Return the donator to your thank you page. Whether or not you tell PayPal to return a Post, it will return a GET. So create an HTML page for the return/thank you. If you put a Joomla page as the return, PayPal will send back garbage to index.php, and it will not redirect to the page you specify.<br />
&lt;<strong>input type=&#8221;hidden&#8221; name=&#8221;return&#8221;</strong> value=&#8221;http://fulldomainhere/thankyou.htm&#8221; /&gt;</li>
<li><strong>Fill in the PayPal amount</strong> from the submitted form via a POST variable in mod_php paypal form.:</li>
<p>&lt;img src=&#8221;http://www.animalallies.org//images/stories/pawani.gif&#8221;&gt;&lt;br&gt;Amount $: &lt;input type=&#8221;text&#8221; name=&#8221;amount&#8221; size=&#8221;4&#8243; maxlength=&#8221;10&#8243;<strong> value=&#8221;&lt;?php echo $_POST['mtype']; ?&gt;&#8221;</strong> style=&#8221;text-align:left;&#8221; /&gt;</p>
<li><strong>Do NOT name the submit button </strong>&#8220;submit&#8221; in mod_php paypal form.Â  It clashes with the javascript form submit.</li>
<p>&lt;input class=&#8221;paybutton&#8221; type=&#8221;image&#8221; src=&#8221;http://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif&#8221; <strong>name=&#8221;submitb&#8221;</strong> alt=&#8221;PayPal secure payments.&#8221; /&gt;</p>
<li>auto submit the mod_php paypal form<br />
&lt;script language=&#8221;javaScript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
<strong>document.mform.submit();</strong><br />
&lt;/script&gt;</li>
</ol>
<p>chronoforms membership application:</p>
<pre>&lt;h1&gt;YourWebsite Membership Application&lt;/h1&gt;
&lt;table&gt;
lots of other form values omitted for this example...
&lt;tr&gt;&lt;td valign=top nowrap&gt;Membership Type&lt;/td&gt;&lt;td&gt;&lt;table&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=radio name=mtype value="15"&gt;Individual&lt;/td&gt;&lt;td align=right&gt;$15&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=radio name=mtype checked value="25"&gt;Friend&lt;/td&gt;&lt;td align=right&gt;$25&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=radio name=mtype value="50"&gt;Sponsor &lt;/td&gt;&lt;td align=right&gt;$50&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=radio name=mtype value="100"&gt;Patron&lt;/td&gt; &lt;td align=right&gt;$100&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=radio name=mtype value="500"&gt;Benefactor&lt;/td&gt; &lt;td align=right&gt;$500&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=2&gt;&lt;input type="submit" value="Â  SubmitÂ  "&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>mod_php paypal form is positioned at membership_dues user position and assigned to &#8220;all&#8221; menus</p>
<pre>&lt;div style="text-align:left"&gt;
&lt;h4&gt;Thank You for Joining YourWebsite&lt;/h4&gt;
&lt;strong&gt;Please complete your membership payment here&lt;/strong&gt;
&lt;form action="https://www.paypal.com/en/cgi-bin/webscr" method="post" name="mform" id="mform"&gt;
&lt;input type="hidden" name="image_url" value="http://www.fulldomainhere/templates/rhuk_milkyway/images/logo.gif" /&gt;
&lt;input type="hidden" name="cmd" value="_donations" /&gt;
&lt;input type="hidden" name="business" value="yourpaypalemailhere" /&gt;
&lt;input type="hidden" name="return" value="http://www.fulldomainhere/thankyou.htm" /&gt;
&lt;input type="hidden" name="undefined_quantity" value="0" /&gt;
&lt;input type="hidden" name="item_name" value="YourWebsite Membership" /&gt;
&lt;input type="hidden" name="currency_code" value="USD" /&gt;
&lt;input type="hidden" name="charset" value="utf-8" /&gt;
&lt;input type="hidden" name="no_shipping" value="1" /&gt;
&lt;input type="hidden" name="cancel_return" value="http://www.fulldomainhere/" /&gt;
&lt;input type="hidden" name="no_note" value="0" /&gt;
&lt;img src="http://www.fulldomainhere//images/stories/pawani.gif"&gt;&lt;br&gt;Amount $: &lt;input type="text" name="amount" size="4" maxlength="10" value="&lt;?php echo $_POST['mtype']; ?&gt;" style="text-align:left;" /&gt;
&lt;input class="paybutton" type="image" src="http://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" name="submitb" alt="PayPal secure payments." /&gt;
&lt;/form&gt;&lt;/div&gt;
&lt;script language="javaScript" type="text/javascript"&gt;
document.mform.submit();
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bogartcomputing.com/web-programming-answers/143/joomla-programmer-15-chronoforms-and-mod_php-automatic-form-submit-to-paypal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla Programmer: Joomla 1.5 Control Menu Web Links Category Display Number Select Dropdown</title>
		<link>http://www.bogartcomputing.com/web-programming-answers/126/joomla-15-control-menu-web-links-category-display-number-select-dropdown/</link>
		<comments>http://www.bogartcomputing.com/web-programming-answers/126/joomla-15-control-menu-web-links-category-display-number-select-dropdown/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 04:08:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Joomla Programmer]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[counts]]></category>
		<category><![CDATA[web links]]></category>

		<guid isPermaLink="false">http://www.bogartcomputing.com/web-programming-answers/?p=126</guid>
		<description><![CDATA[Joomla Programmer Removing Joomla 1.5 Web Link Category and Hit Counts Joomla 1.5.9 leaves out a control parameter to avoid showing the &#8220;how many do you want to display&#8221; select dropdown when displaying a Web Link category. To get rid of the Display # dropdown: Go to components/com_weblink/category/tmpl/default_items.php Remove echo JText::_(&#8216;Display Num&#8217;) .&#8217;&#38;nbsp;&#8217;; echo $this-&#62;pagination-&#62;getLimitBox(); [...]]]></description>
			<content:encoded><![CDATA[<p></p><h1>Joomla Programmer</h1>
<h2>Removing Joomla 1.5 Web Link Category and Hit Counts</h2>
<p>Joomla 1.5.9 leaves out a control parameter to avoid showing the &#8220;how many do you want to display&#8221; select dropdown when displaying a Web Link category.</p>
<p><img class="alignnone size-full wp-image-131" title="Joomla Programmer. Web links category information" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/weblink_catinfo.gif" alt="Joomla Programmer. Web links category information" width="280" height="308" /></p>
<p>To get rid of the Display # dropdown:</p>
<p>Go to components/com_weblink/category/tmpl/default_items.php</p>
<p>Remove</p>
<p>echo JText::_(&#8216;Display Num&#8217;) .&#8217;&amp;nbsp;&#8217;;<br />
echo $this-&gt;pagination-&gt;getLimitBox();</p>
<p>To get rid of the category counts:</p>
<p>Go to components/com_weblinks/views/category/tmpl/default.php</p>
<p>Remove</p>
<p>&amp;nbsp;<br />
&lt;span class=&#8221;small&#8221;&gt;<br />
(&lt;?php echo $category-&gt;numlinks;?&gt;)<br />
&lt;/span&gt;<br />
<img class="alignnone size-full wp-image-132" title="Joomla Programmer. Web link cateogry display showing other categories but no category count." src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/weblink_catnocount2.gif" alt="Joomla Programmer. Web link cateogry display showing other categories but no category count." width="274" height="278" /></p>
<p>There&#8217;s also no way to remove the category counts from the Web Link category listing.</p>
<p><img class="alignnone size-full wp-image-128" title="Web Link Category Count" src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/weblink_catcount.gif" alt="Web Link Category Count" width="282" height="156" /></p>
<p>To remove the category counts:</p>
<p>In components/com_weblinks/views/categories/tmpl/default.php</p>
<p>Find</p>
<p>&lt;a href=&#8221;&lt;?php echo $category-&gt;link; ?&gt;&#8221; class=&#8221;category&lt;?php echo $this-&gt;params-&gt;get( &#8216;pageclass_sfx&#8217; ); ?&gt;&#8221;&gt;<br />
&lt;?php echo $this-&gt;escape($category-&gt;title);?&gt;&lt;/a&gt;</p>
<p>After that remove:</p>
<p>&amp;nbsp;<br />
&lt;span class=&#8221;small&#8221;&gt;<br />
(&lt;?php echo $category-&gt;numlinks;?&gt;)<br />
&lt;/span&gt;</p>
<p><img class="alignnone size-full wp-image-130" title="Joomla Programmer web link no count." src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/weblink_catnocount.gif" alt="Joomla Programmer web link no count." width="270" height="166" /></p>
<p>Even if you turn off hits in the menu item pointing to the Web Links the hits will display anyway. Perhaps due to cache, I&#8217;m not sure, the system ignores the Table Headings set to Hide parameter in the menu item pointing to the Web Link category.</p>
<p>To remove the table permanently (the administrator menu parameters will now not work at all though):</p>
<p>Go to Go to components/com_weblink/category/tmpl/default_items.php:</p>
<p>Find:</p>
<p>&lt;?php if ( $this-&gt;params-&gt;def( &#8216;show_headings&#8217;, 1 ) ) : ?&gt;</p>
<p>Change this to:</p>
<p>&lt;?php if (false) : ?&gt;</p>
<p>Find:</p>
<p>&lt;?php if ( $this-&gt;params-&gt;get( &#8216;show_link_hits&#8217; ) ) : ?&gt;<br />
Change this to:</p>
<p>&lt;?php if (false) : ?&gt;</p>
<p><img class="alignnone size-full wp-image-135" title="Joomla Programmer. Web Links Modified." src="http://www.bogartcomputing.com/web-programming-answers/wp-content/uploads/2009/03/weblinks_done.gif" alt="Joomla Programmer. Web Links Modified." width="258" height="270" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bogartcomputing.com/web-programming-answers/126/joomla-15-control-menu-web-links-category-display-number-select-dropdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
