<?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>Oracle of ONE1 &#187; joomla</title>
	<atom:link href="http://dvector.com/oracle/category/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://dvector.com/oracle</link>
	<description>Obscure words of unity</description>
	<lastBuildDate>Wed, 31 Aug 2011 21:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remository Inline Direct Download</title>
		<link>http://dvector.com/oracle/2009/09/20/remository-inline-direct-download/</link>
		<comments>http://dvector.com/oracle/2009/09/20/remository-inline-direct-download/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 21:53:46 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[remository]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=323</guid>
		<description><![CDATA[A number of my clients use Remository within Joomla for document management. The QuickDown plugin, available from the same site, is used to insert document information within an article. While I have been very satified with Remository, I have not found that QuickDown matches my clients&#8217; needs.
QuickDown basically creates a link to the Remository page [...]]]></description>
			<content:encoded><![CDATA[<p>A number of my clients use <a href="http://remository.com/">Remository</a> within Joomla for document management. The QuickDown plugin, available from the same site, is used to insert document information within an article. While I have been very satified with Remository, I have not found that QuickDown matches my clients&#8217; needs.</p>
<p>QuickDown basically creates a link to the Remository page along with a variety of document information formatted within a table. Instead, I am usually interested in having a direct download link inserted inline with the article&#8217;s content.</p>
<p><span id="more-323"></span></p>
<p>There are 2 files that need to be modified in order to get this working properly. One of them is the Remository core file <em>p-classes/remositoryRepository.php</em>. The other is the plugin file <em>quickdown.php</em>.</p>
<h3>Remository core change</h3>
<p>The function makeCheck() is the one needing changes in remositoryRepository.php. Below are the original function and the updated function.</p>
<pre>// ORIGINAL
function makeCheck ($id, $func) {
  $interface =&amp; remositoryInterface::getInstance();
  return md5($this-&gt;Time_Stamp.$interface-&gt;getCfg('absolute_path').date('md').$id.$func);
}

// MODIFIED
function makeCheck ($id, $func) {
  $interface =&amp; remositoryInterface::getInstance();
  return md5($interface-&gt;getCfg('absolute_path').date('md').$id.$func);
}</pre>
<p>Notice that the only change is the removal of a UNIX timestamp. makeCheck() is used in the creation of the direct download link creation and in its verification before allowing download. This is a bit different than the approach I would take but it is effective. If you wanted to make a permanent direct download link, you would remove all references to date or time in the obfuscated check code.</p>
<p>The download link created by the above modified code is good until the next day begins. Is this too long? For your situation perhaps but not for mine. Regardless, please note that the download link duration should outlive your cache.</p>
<h3>QuickDown plugin change</h3>
<p>Next, I wish to change the formatted output of the plugin and to have it include a proper direct download link. I have taken some shortcuts in order to make my changes to the original files easier to follow and not insert bunches of my code into the original code. All of these modifications are done to the file <em>quickdown.php</em>.</p>
<p>First, I added the makeCheck function.</p>
<pre>function makeCheck ($id, $func) {
  $absolute_path = '/my/absolute/path/remdocs';
  return ( $absolute_path . date('md') . $id . $func );
}</pre>
<p>Instead of creating a Remository instance, I simply added my absolute path to the remository documents (quick and dirty).</p>
<p>Next, I added a new plugin usage code {inlinedown:ID}. This completely separates my approach from the author&#8217;s and allows usage of the plugin as originally intended.</p>
<p>In the botQuickdown() function at line 57, I added:</p>
<pre>$row-&gt;text = preg_replace('/{inlinedown:.+?}/', '', $row-&gt;text);</pre>
<p>Then at line 86, I added:</p>
<pre>if (preg_match_all('/{inlinedown:.+?}/', $content, $matches, PREG_PATTERN_ORDER)) {
  //Get IDS
  foreach ($matches as $fmatch) {
    foreach ($fmatch as $match) {
      $match = str_replace("{inlinedown:", "", $match);
      $match = str_replace("}", "", $match);
      $output = $this-&gt;ggis_createLink($match, $this-&gt;params);
      $content = preg_replace("/{inlinedown:$match}/", $output, $content);
    }
  }
  unset($matches);
}</pre>
<p>Finally, I added my own create link function named ggis_createLink().</p>
<pre>function ggis_createLink($idparam, &amp;$param){
  $inline = TRUE;
  //Getting File-info from Database
  $database =&amp; JFactory::getDBO();
  $id = intval($idparam);
  $database-&gt;setQuery("SELECT * FROM #__downloads_files WHERE id=$id");
  $filelist = $database-&gt;loadObjectList();
  if ($filelist) {
    $file = $filelist[0];
    $url = 'index.php?option=com_remository&amp;';
    $func = 'download';
    $url .= 'func='.$func;
    $url .= '&amp;id='.$idparam;
    $url .= '&amp;chk=' . $this-&gt;makeCheck($idparam,$func) . '&amp;no_html=1';

    if ($inline){
      $output = '&lt;a href="'. $url .'"&gt;';
      $output .= '&lt;img src="components/com_remository/images/download_trans.gif" border="0" align="middle"&gt;';
      $output .= '&lt;b&gt;'. $file-&gt;filetitle .'&lt;/b&gt; (' . $file-&gt;filetype . ' ' . $file-&gt;filesize . ')&lt;/a&gt;';
    }else{
      $output = '&lt;table&gt;';
      $output .= '&lt;tr&gt;&lt;td&gt;&lt;a href="'. $url .'"&gt;';
      $output .= '&lt;img src="components/com_remository/images/download_trans.gif"border="0"&gt;&amp;nbsp;';
      $output .= '&lt;b&gt;'. _DOWNLOAD .'&amp;nbsp;'. $file-&gt;filetitle .'&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;';
      $output .= '&lt;/table&gt;';
    }
  }
  return ($output);
}</pre>
<h3>Final result</h3>
<p>The final result is an inline direct download link. This link shows the download image, the file title, the file type, and the file size. Depending on your styling, it should look similar to the image below.</p>
<p><img class="aligncenter size-full wp-image-339" src="http://dvector.com/oracle/files/2009/09/quickdown.gif" alt="quickdown" width="457" height="65" /></p>
<p>Hopefully, you may find this modification of Remository and QuickDown useful for your purposes.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2009/09/20/remository-inline-direct-download/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using the Joomla Lightbox</title>
		<link>http://dvector.com/oracle/2009/02/05/using-the-joomla-lightbox/</link>
		<comments>http://dvector.com/oracle/2009/02/05/using-the-joomla-lightbox/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 22:59:49 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=203</guid>
		<description><![CDATA[Joomla uses a MooTools lightbox in the administrative backend, called SqueezeBox. By default, SqueezeBox is not available to frontend sections, categories, and articles. It is a relatively simple matter to include squeezebox onto the frontend and improve your visitors&#8217; experiences.
It is not required to understand what MooTools and Squeezebox are nor how they work in [...]]]></description>
			<content:encoded><![CDATA[<p>Joomla uses a <a title="MooTools" href="http://mootools.net/">MooTools</a> <a title="Lightbox definition" href="http://en.wikipedia.org/wiki/Lightbox_(JavaScript)">lightbox</a> in the administrative backend, called <a title="SqueezeBox" href="http://digitarald.de/project/squeezebox/">SqueezeBox</a>. By default, SqueezeBox is not available to frontend sections, categories, and articles. It is a relatively simple matter to include squeezebox onto the frontend and improve your visitors&#8217; experiences.</p>
<p>It is not required to understand what MooTools and Squeezebox are nor how they work in order to successfully create a wonderful lightbox effect. A lightbox may be used to display a large picture from a thumbnail or any link. Additionally, any web page may be displayed within the lightbox (a great way to display a map or directions).</p>
<p>This article has three parts:</p>
<ol>
<li>Template setup (not required for GGIS clients)</li>
<li>Using SqueezeBox</li>
</ol>
<p>&nbsp;</p>
<h3>Update:</h3>
<p>See <a title="Patch modal.js" href="http://dvector.com/oracle/2009/02/05/using-the-joomla-lightbox/#comment-662">comment #6 and #7</a> for a patch to modal.js that makes this work for multiple images on the same page. Without the patch clicking on the next image displays the first image in the lightbox.</p>
<p><span id="more-203"></span></p>
<h2>Joomla template setup</h2>
<p>The easiest setup is to include the following code in your site&#8217;s main template. This makes SqueezeBox available to all pages based on the template.</p>
<p>Include this code within the &lt;head&gt;&lt;/head&gt; but after the &lt;jdoc:include type=&#8221;head&#8221; /&gt; tag.</p>
<pre>&lt;script type="text/javascript" src="&lt;?php echo $this-&gt;baseurl ?&gt;/media/system/js/modal.js"&gt; &lt;/script&gt;
&lt;link rel="stylesheet" href="&lt;?php echo $this-&gt;baseurl ?&gt;/media/system/css/modal.css" type="text/css" /&gt;
&lt;script type="text/javascript"&gt;
// &lt;!--
window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: 'false'}); });
// --&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;
// &lt;!--
window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
// --&gt;
&lt;/script&gt;</pre>
<h2>Using SqueezeBox</h2>
<p>Basically, you are creating a link and the link opens the lightbox content. A link may be created around a thumbnail image or text. For an image, the lightbox is automatically sized . Here are the steps:</p>
<ol>
<li>Open your selected content for editing in Joomla.</li>
<li>If you are using the WYSIWYG editor, then click the &#8216;Edit HTML content&#8217; icon.<img class="size-full wp-image-206 aligncenter" src="http://dvector.com/oracle/files/2009/02/edithtml.gif" alt="edithtml" width="263" height="59" /></li>
<li>In the HTML modal box, locate where you would like to insert the link for SqueezeBox. Let&#8217;s call this LINKTEXT.</li>
</ol>
<h3>Displaying an image</h3>
<p>Surround your LINKTEXT with the following anchor tag.</p>
<pre>&lt;a rel="SqueezeBox" href="LOCATION" title="CAPTION" class="modal"&gt;
LINKTEXT
&lt;/a&gt;</pre>
<p>Replace LOCATION with an absolute or relative URL to your image. Replace CAPTION with a caption for your image. Remember, LINKTEXT may be text or a thumbnailed image tag.</p>
<h3>Displaying a web page</h3>
<p>Surround your LINKTEXT with the following anchor tag.</p>
<pre>&lt;a rel="{handler: 'iframe', size: {x: WIDTH, y: HEIGHT}}" href="LOCATION" class="modal"&gt;
LINKTEXT
&lt;/a&gt;</pre>
<p>Replace WIDTH and HEIGHT with your chosen width and height of the lightbox. Replace LOCATION with an absolute or relative URL to web page you would like to display. This is an excellent way to display a Google map to your desired address.</p>
<h3>Save your changes</h3>
<p>Update your HTML and then save your changes. Finally, test your results.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2009/02/05/using-the-joomla-lightbox/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Donate to GGIS Plugins and Modules</title>
		<link>http://dvector.com/oracle/2008/11/04/donate-to-ggis-plugins-and-modules/</link>
		<comments>http://dvector.com/oracle/2008/11/04/donate-to-ggis-plugins-and-modules/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 16:40:52 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[nonprofit]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[donate]]></category>
		<category><![CDATA[Milwaukee Achiever]]></category>
		<category><![CDATA[red cross]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=160</guid>
		<description><![CDATA[I regularly develop GPL open source plugins, modules, and widgets for Joomla and WordPress. On ocassion, a users has asked if a donation would help support this development. The comment alone is a great compliment and incentive. Cash is always greatly appreciated but in this case, if you find one of my plugins useful please [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly develop GPL open source plugins, modules, and widgets for Joomla and WordPress. On ocassion, a users has asked if a donation would help support this development. The comment alone is a great compliment and incentive. Cash is always greatly appreciated but in this case, if you find one of my plugins useful please make a donation to one of these great organizations instead.</p>
<p><a title="Red Cross Donate" href="http://www.redcrossinsewis.org/donate"><strong>American Red Cross in Southeastern Wisconsin</strong></a> &#8211; Provides relief to victims of disasters and helps people prevent, prepare for, and respond to emergencies in Dodge, Kenosha, Milwaukee, Ozaukee, Racine, Walworth, and Waukesha Counties.</p>
<p><a title="Milwaukee Achiever Donate" href="http://milwaukeeachiever.org/donations/"><strong>Milwaukee Achiever Literacy Services</strong></a> &#8211; Inspires and empowers adult learners to gain the skills necessary to enrich their lives through education and training in an atmosphere of mutual acceptance and respect.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/11/04/donate-to-ggis-plugins-and-modules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plugin ggis-scdesc for Joomla</title>
		<link>http://dvector.com/oracle/2008/10/31/plugin-ggis_sc_desc-for-joomla/</link>
		<comments>http://dvector.com/oracle/2008/10/31/plugin-ggis_sc_desc-for-joomla/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 22:16:09 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[plg_ggis-sc-desc]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=128</guid>
		<description><![CDATA[A 1.5 native plugin enabling you to display section or category descriptions within content. This is a very simple, single purpose plugin that does only and exactly what it claims. On occassion, an article may wish to include the description from a section or category. Copying that description means it may need to be updated [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A 1.5 native plugin enabling you to display section or category descriptions within content.</strong> This is a very simple, single purpose plugin that does only and exactly what it claims. On occassion, an article may wish to include the description from a section or category. Copying that description means it may need to be updated in multiple places if changes are made. With this plugin, just update the section/category description and all of the articles remain current.</p>
<p><span id="more-128"></span></p>
<h3>Installation</h3>
<ol>
<li>Download the <a title="ggis-scdesc_latest.zip" href="https://www.gruffgoat.com/clients/ftp/joomla/ggis_scdesc/ggis_scdesc_latest.zip">latest version of the plugin here</a></li>
<li><a title="ggis-scdesc_latest.md5" href="https://www.gruffgoat.com/clients/ftp/ggis-scdesc/ggis-scdesc_latest.md5"></a></li>
<li>Install via the standard Joomla interface</li>
<li>Enable the plugin</li>
<li>Minimal parameters may be set by clicking the plugin in the Plugin Manager</li>
</ol>
<h3>Basic usage (either the catid or the secid, not both, is required)</h3>
<p>{ggis-scdesc catid=&#8221;10&#8243;} or<br />
{ggis-scdesc secid=&#8221;10&#8243;}</p>
<h3>Example of usage with parameters</h3>
<p>{ggis-scdesc catid=&#8221;10&#8243; showtitle=&#8221;0&#8243; showname=&#8221;0&#8243; showdesc=&#8221;1&#8243;}</p>
<h3>Parameters:</h3>
<ul>
<li>catid: id of category</li>
<li>secid: id of section</li>
<li>showtitle: Show the linked title(0/1, default=0)</li>
<li>showname: Show the name(0/1, default=0)</li>
<li>showdesc: Show the description(0/1, default=1)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/10/31/plugin-ggis_sc_desc-for-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Module ggis-tabnews for Joomla</title>
		<link>http://dvector.com/oracle/2008/10/31/module-ggis-tabnews-for-joomla/</link>
		<comments>http://dvector.com/oracle/2008/10/31/module-ggis-tabnews-for-joomla/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 21:57:29 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[mod_ggis-tabnews]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[ggis_tabnews]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=124</guid>
		<description><![CDATA[Module ggis-tabnews is a module developed for Joomla 1.5. Basically, it takes all articles in a category or section and outputs them to a tabbed box. It depends on the Joomla Works Tabs &#38; Slides plugin for the tabbing javascript. A future release may remove that dependency.
Where to get it?
This is currently not a public [...]]]></description>
			<content:encoded><![CDATA[<p>Module ggis-tabnews is a module developed for Joomla 1.5. Basically, it takes all articles in a category or section and outputs them to a tabbed box. It depends on the <a title="Joomla Works" href="http://www.joomlaworks.gr/">Joomla Works</a> Tabs &amp; Slides plugin for the tabbing javascript. A future release may remove that dependency.</p>
<h3>Where to get it?</h3>
<p>This is currently not a public release but if you are interested in it, please drop a comment on this article.</p>
<h3>Expected Usage</h3>
<p>This module was developed for a very specific usage and has not been developed or tested beyond that. I do however, see a wide variety of applications for this module. A client wished to display offsite class locations by county in a tabbed box. Additionally; the person editing the locations, while familiar with the basic editor interface on the front-end, was not expected to handle much complexity in layout.<br />
<span id="more-124"></span></p>
<h4>Structural setup</h4>
<ol>
<li>Create a section named Section Locations</li>
<li>Create categories under Section Locations for each class type, ie.
<ul>
<li>Category Lifeguarding Locations</li>
</ul>
<ul>
<li>Category Lifeguarding Instructor Locations</li>
</ul>
<ul>
<li>Category Water Safety Instructor Locations</li>
</ul>
</li>
<li>Under each category, create an article for each county listing that county&#8217;s offsite class locations, ie.
<ul>
<li>Article Dane County</li>
<li>Article Dodge County</li>
<li>Article Milwaukee County</li>
<li>Article Waukesha County</li>
</ul>
</li>
<li>Control the display of the county articles by setting the publish flag</li>
</ol>
<p>The outline of the above should be similar to:</p>
<ol>
<li>Section Locations
<ol>
<li>Category Lifeguarding Locations
<ol>
<li>Article Dane County</li>
<li>Article Dodge County</li>
<li>Article Milwaukee County</li>
<li>Article Waukesha County</li>
</ol>
</li>
<li>Category Lifeguarding Instructor Locations
<ol>
<li>Article Dane County</li>
<li>Article Dodge County</li>
<li>Article Milwaukee County</li>
<li>Article Waukesha County</li>
</ol>
</li>
<li>Category Water Safety Instructor Locations
<ol>
<li>Article Dane County</li>
<li>Article Dodge County</li>
<li>Article Milwaukee County</li>
<li>Article Waukesha County</li>
</ol>
</li>
</ol>
</li>
</ol>
<p></p>
<h4>Make it easy for the editor</h4>
<ol>
<li>Add a menu item to the user&#8217;s menu that links directly to Section Locations
<ul>
<li>This gives the editor easy access to the offsite class locations articles</li>
</ul>
</li>
</ol>
<p></p>
<h4>Using the module</h4>
<ol>
<li>Use the mod_ggis-tabnews module that pulls all articles in a category and properly formats and outputs them</li>
<li>Make a copy of the module for each category
<ul>
<li>For the example&#8217;s case, 3 copies</li>
</ul>
</li>
<li>Rename the copies
<ul>
<li>Tabbed Lifeguarding</li>
<li>Tabbed Lifeguard Instructor</li>
<li>Tabbed Water Safety Instructor</li>
</ul>
</li>
<li>Assign each copy a unique position. This is easily done by typing your unique position into the Postion dropdown when editing the module.
<ul>
<li>lifeguard_locations</li>
<li>lifeguardinstructor_locations</li>
<li>watersafetyinstructor_locations</li>
</ul>
</li>
<li>Set the module&#8217;s parameters as appropriate. Especially set either the Section ID or the Category ID.</li>
</ol>
<p></p>
<h4>Displaying the module</h4>
<p>For the example, the module is intended to display in an article. That is why a unique, non-templated position was used in step 4 above. Modules may displaye<br />
d in any article using Joomla&#8217;s <em>loadposition</em> plugin. In our example, there are 3 descriptive articles titled;</p>
<ul>
<li>Lifeguarding</li>
<li>Lifeguard Instructor</li>
<li>Water Safety Instructor</li>
</ul>
<p>To display the module in the Lifeguarding article, include the plugin text where you wish the module to appear.</p>
<ul>
<li>(loadposition lifeguard_locations}</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/10/31/module-ggis-tabnews-for-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla Images with Caption and Extra Style</title>
		<link>http://dvector.com/oracle/2008/10/21/joomla-images-with-caption-and-extra-style/</link>
		<comments>http://dvector.com/oracle/2008/10/21/joomla-images-with-caption-and-extra-style/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 03:18:25 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[TinyMCE]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=86</guid>
		<description><![CDATA[Problem statement: I have inserted an image using the TinyMCE editor in a Joomla 1.5 article. How do I get the image to display both a caption and a border? I do not want borders on all images but only those I specify.
At first glance, the solution seems as though it would be simple and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem statement:</strong> I have inserted an image using the TinyMCE editor in a Joomla 1.5 article. How do I get the image to display both a caption and a border? I do not want borders on all images but only those I specify.</p>
<p>At first glance, the solution seems as though it would be simple and straightforward but it actually requires some tricks. This article will approach the issue in a somewhat backward approach; starting with what is required of the end-user editor, then going to changes required of the administrator, and finally touching on a little of the why.</p>
<p><span id="more-86"></span></p>
<h2>For the Editor</h2>
<p>Simple steps:</p>
<ol>
<li>Create your article and insert your images using the standard methods.</li>
<li>Add a caption
<ol>
<li>Click on the image so that it is highlighted</li>
<li>Click on the &#8216;Insert/Edit Image&#8217; icon</li>
<li>In the &#8216;General&#8217; tab, enter a Title (the title is used to become the caption)</li>
<li>In the &#8216;Appearance&#8217; tab, set the class to caption</li>
</ol>
</li>
<li>Add a border
<ol>
<li>Click on the image so that it is highlighted</li>
<li>Click on the &#8216;Insert/Edit Attributes&#8217; icon</li>
<li>In the &#8216;Attributes&#8217; tab, set the class to (value)</li>
<li>Enter <strong><em>border </em></strong>as the class (this is border only, no caption)</li>
<li>Or, enter <strong><em>caption border</em></strong> as the class (the image will have a border and a caption)</li>
</ol>
</li>
<li>Save all of your changes</li>
</ol>
<p>Where is the &#8216;Insert/Edit Attributes&#8217; icon? Well, if your administrator has set up everything correctly, it should appear as in the image below.</p>
<div id="attachment_88" class="wp-caption aligncenter" style="width: 477px"><a href="http://dvector.com/oracle/files/2008/10/select_edit_attributes.gif"><img class="size-full wp-image-88" src="http://dvector.com/oracle/files/2008/10/select_edit_attributes.gif" alt="Insert/Edit Attributes" width="467" height="320" /></a><p class="wp-caption-text">Insert/Edit Attributes</p></div>
<h2>For the Administrator</h2>
<p>In the default installation of Joomla, the &#8216;Insert/Edit Attributes&#8217; icon does not appear in the TinyMCE toolbar. Additionally, the border style is not part of the default CSS. Both of these are easily fixed.</p>
<h3>TinyMCE Plugin</h3>
<p>The settings for the TinyMCE editor are available from its plugin. The steps are:</p>
<ol>
<li>Click &#8216;Editor &#8211; TinyMCE&#8217; from the Extensions &gt; Plugins Manager.</li>
<li>Make certain that &#8216;Functionality is set to <strong><em>Advanced </em></strong>in the Plugin Parameters</li>
<li>Select <strong><em>Show</em></strong> for XHTMLxtras in the Advanced Plugin Parameters</li>
<li>Save changes and the icon will appear in the TinyMCE toolbar</li>
</ol>
<h3>CSS for Caption and Border</h3>
<p>The CSS for captions are initially set in a system CSS file. These settings may be overridden in your stylesheet. Below is my caption CSS.</p>
<pre>/* Caption overrdies */
.img_caption.left {
float: left;
margin-right: 1em;
}

.img_caption.right {
float: right;
margin-left: 1em;
}

.img_caption.left p {
clear: left;
text-align: center;
color: #666;
}

.img_caption.right p {
clear: right;
text-align: center;
color: #666;
}</pre>
<p>l also add a short style to set the border around an image.</p>
<pre>img.border { border: 1px solid #000; }</pre>
<h2>Why?</h2>
<p>Joomla has taken an interesting and resonable approach for adding captions to images. Joomla simply takes the image&#8217;s title, processes it with some javascript, and outputs it with the image. The final display of the caption is controlled by the CSS. The files used are:</p>
<ul>
<li>/templates/system/css/general.css</li>
<li>/media/system/js/caption.js</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/10/21/joomla-images-with-caption-and-extra-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ggis Iframe Plugin</title>
		<link>http://dvector.com/oracle/2008/10/03/ggis-iframe-plugin/</link>
		<comments>http://dvector.com/oracle/2008/10/03/ggis-iframe-plugin/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 13:58:04 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[ggis Iframe]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[ggisIframe]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=58</guid>
		<description><![CDATA[What is it?
ggis Iframe gives authors an easy way to insert an iframe into a Joomla content item.
Features and Requirements

Joomla! 1.5 or greater

Setup
Using ggis_iframe is a very simple matter of performing a short setup and then inserting a simple code in your article.

Download and install plugin using standard means. Download here.
There are really no plugin [...]]]></description>
			<content:encoded><![CDATA[<h2>What is it?</h2>
<p>ggis Iframe gives authors an easy way to insert an iframe into a Joomla content item.</p>
<h2>Features and Requirements</h2>
<ul>
<li>Joomla! 1.5 or greater</li>
</ul>
<h2>Setup</h2>
<p>Using ggis_iframe is a very simple matter of performing a short setup and then inserting a simple code in your article.</p>
<ol>
<li>Download and install plugin using standard means. <a title="Download ggis_iframe" href="https://www.gruffgoat.com/clients/ftp/joomla/ggis_iframe/ggis_iframe_latest.zip">Download here</a>.</li>
<li>There are really no plugin options to set, everything is controlled by the insert tag.</li>
<li>Publish the ggis_iframe plugin</li>
</ol>
<h2>Usage</h2>
<p>The subscription form may be inserted on a post, page, or text widget by including the following code in your text.</p>
<pre>{ggis_iframe %param0="val" %param1="val"}

http://iframe.url{/ggis_iframe}</pre>
<p>The insert tag starts with {ggis_iframe} and ends with {/ggis_iframe}. A number of parameters may be set in the openning tag. The URL of the iframe to insert goes between the tags.</p>
<p>Another example with all parameters set:</p>
<pre>{ggis_iframe id="mine" width="100%" height="650"
frameborder="0" allowtransparency="true"
scrolling="auto"}http://mydomain.com/page{/ggis_iframe}</pre>
<h3>Parameters</h3>
<ul>
<li>id &#8211; identifies your iframe (text)
<ul>
<li>default = random number</li>
</ul>
</li>
<li>width -sets the iframe width (% or px)
<ul>
<li>default = 100%</li>
</ul>
</li>
<li>height &#8211; sets iframe height (% or px)
<ul>
<li>default = 650px</li>
</ul>
</li>
<li>frameborder &#8211; border width around iframe (low integer)
<ul>
<li>default = 0</li>
</ul>
</li>
<li>allowtransparency &#8211; iframe background transparency (true or false)
<ul>
<li>default = true</li>
</ul>
</li>
<li>scrolling &#8211; set iframe scrolling (auto, yes, or no)
<ul>
<li>default = auto</li>
</ul>
</li>
</ul>
<h2>To Do</h2>
<p style="padding-left: 30px">
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/10/03/ggis-iframe-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sweet Land</title>
		<link>http://dvector.com/oracle/2008/06/14/sweet-land/</link>
		<comments>http://dvector.com/oracle/2008/06/14/sweet-land/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 20:46:52 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[Privacy]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[literacy]]></category>
		<category><![CDATA[nonprofit]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[Milwaukee Achiever]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=45</guid>
		<description><![CDATA[Join me at the showing of the Sweet Land movie on July 21. This is a &#8216;Spotlight on Literacy&#8217; fundraiser for Milwaukee Achiever Literacy Services.
]]></description>
			<content:encoded><![CDATA[<p>Join me at the showing of the <a title="Sweet Land" href="https://www.milwaukeeachiever.org:442/support/ticket/ticket.php">Sweet Land movie on July 21</a>. This is a &#8216;Spotlight on Literacy&#8217; fundraiser for <a title="Milwaukee Achiever Literacy Services" href="http://milwaukeeachiever.org/">Milwaukee Achiever Literacy Services</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/06/14/sweet-land/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facile Forms Spam Hack</title>
		<link>http://dvector.com/oracle/2008/05/15/facile-forms-spam-hack/</link>
		<comments>http://dvector.com/oracle/2008/05/15/facile-forms-spam-hack/#comments</comments>
		<pubDate>Thu, 15 May 2008 16:35:48 +0000</pubDate>
		<dc:creator>oracle</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/2008/05/15/facile-forms-spam-hack/</guid>
		<description><![CDATA[Please see comments.
Some of my Joomla! sites use Facile Forms to manage their forms. This extension is getting a little aged and the developer has indicated he might not upgrade the code for new versions of Joomla!.
Recently, a Facile Forms user complained they were receiving form spam. (Form spam is similar to email spam only [...]]]></description>
			<content:encoded><![CDATA[<p>Please see comments.</p>
<p>Some of my Joomla! sites use Facile Forms to manage their forms. This extension is getting a little aged and the developer has indicated he might not upgrade the code for new versions of Joomla!.</p>
<p>Recently, a Facile Forms user complained they were receiving form spam. (Form spam is similar to email spam only the spammer uses website forms to insure delivery to real users.)  Facile Forms has a security code CAPTCHA to block form spam but obviously it was not working. So I removed the Facile Form CAPTCHA and implemented a different CAPTCHA.</p>
<p><span id="more-32"></span></p>
<p>This blocked a large portion of the form spam but a few were still trickling through. I found a <a title="Facile Form Hack" href="http://me.yer.ch/blog/2008/03/14/facileforms/facileform-anti-spam-hack">short post </a>indicating a hack that might help. It seems that Facile Forms does not do a check to ensure that the post is coming from a recently served page on your site and that the fields are validated only by javascript.</p>
<p>Short of replacing Facile Forms, which I shall do shortly, I hacked it. The hack  varies slightly from the Meyer hack above.</p>
<h2>Oracle Hack of Facile Forms</h2>
<p>Add a line to the file components/com_facileforms/facileforms.process.php (at line 3081)</p>
<pre>//hack to check referer; 1 line added
if(stripos($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST'])===false) $this-&gt;suicide();</pre>
<p>There are of course problems with this hack; referrer can be spoofed and not all clients send referrer headers. But it should cover my users until I get the extension replaced.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2008/05/15/facile-forms-spam-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

