<?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>Ruben Sargsyan &#187; bugfix</title>
	<atom:link href="http://rubensargsyan.com/tag/bugfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubensargsyan.com</link>
	<description>Personal Website</description>
	<lastBuildDate>Fri, 27 Aug 2010 07:08:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress Plugin NextGEN Gallery Sorting Bugfix</title>
		<link>http://rubensargsyan.com/wordpress-plugin-nextgen-gallery-sorting-bugfix/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-nextgen-gallery-sorting-bugfix/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:55:54 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[NextGEN]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=129</guid>
		<description><![CDATA[The changing the sort options of WordPress plugin &#8220;NextGEN Gallery&#8221; doesn&#8217;t affect on the images of the gallery sorted by tags. To fix the bug, do the following changes in nextgen-gallery\lib\ngg-db.php set // Check for the exclude setting &#160; $ngg_options = get_option&#40;'ngg_options'&#41;; $gal_sort = $ngg_options&#91;'galSort'&#93;; $gal_sort_dir = $ngg_options&#91;'galSortDir'&#93;; &#160; if &#40; $gal_sort_dir == 'RAND' &#41; [...]]]></description>
			<content:encoded><![CDATA[<p>The changing the sort options of WordPress plugin &#8220;NextGEN Gallery&#8221; doesn&#8217;t affect on the images of the gallery sorted by tags. To fix the bug, do the following changes in nextgen-gallery\lib\ngg-db.php<span id="more-129"></span></p>
<p>set</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Check for the exclude setting</span>
&nbsp;
<span style="color: #000088;">$ngg_options</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ngg_options'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gal_sort</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$ngg_options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'galSort'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gal_sort_dir</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$ngg_options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'galSortDir'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$gal_sort_dir</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'RAND'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$order_clause</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ORDER BY rand() '</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$gal_sort_dir</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'DESC'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$order_clause</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' ORDER BY t.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$gal_sort</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' DESC'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$order_clause</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' ORDER BY t.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$gal_sort</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' ASC'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>instead of</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Check for the exclude setting</span>
&nbsp;
<span style="color: #000088;">$order_clause</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$order</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'RAND'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'ORDER BY rand() '</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">' ORDER BY t.pid ASC'</span> <span style="color: #339933;">;</span></pre></div></div>

<p>in the function <span style="color: #993300;">find_images_in_list</span>.</p>
<p>Getting the sort options from the database that is set in this function for not affecting on the work of other functions.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-nextgen-gallery-sorting-bugfix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lightbox 2 bugfix</title>
		<link>http://rubensargsyan.com/lightbox-2-bugfix/</link>
		<comments>http://rubensargsyan.com/lightbox-2-bugfix/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 19:07:47 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[lightbox 2]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=64</guid>
		<description><![CDATA[There is a bug in Lightbox 2 slideshow. When an image has no title during slideshow it shows the title of previous or next image title. To fix this problem add in lightbox.js else&#123; this.caption.update&#40;&#34;&#34;&#41;.show&#40;&#41;; &#125; after // if caption is not null if &#40;this.imageArray&#91;this.activeImage&#93;&#91;1&#93; != &#34;&#34;&#41;&#123; this.caption.update&#40;this.imageArray&#91;this.activeImage&#93;&#91;1&#93;&#41;.show&#40;&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>There is a bug in Lightbox 2 slideshow. When an image has no title during slideshow it shows the title of previous or next image title. To fix this problem add in lightbox.js<span id="more-64"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">caption</span>.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>after</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// if caption is not null</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">imageArray</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">activeImage</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">caption</span>.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">imageArray</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">activeImage</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/lightbox-2-bugfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress theme &#8220;Cherry Dreams&#8221; sidebar problem for IE6</title>
		<link>http://rubensargsyan.com/wordpress-theme-cherry-dreams-sidebar-problem-for-ie6/</link>
		<comments>http://rubensargsyan.com/wordpress-theme-cherry-dreams-sidebar-problem-for-ie6/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 13:05:11 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/en/?p=7</guid>
		<description><![CDATA[To fix the problem add in header.php &#60;!–&#91;if IE 6&#93;&#62; &#60;link rel=&#34;stylesheet&#34; href=&#34;&#60;?php bloginfo('template_directory'); ?&#62;/iestyle.css&#34; type=&#34;text/css&#34; media=&#34;screen&#34; /&#62; &#60;!&#91;endif&#93;–&#62; after &#60;link rel=&#8221;stylesheet&#8221; href=&#8221;&#60;?php bloginfo(&#8216;stylesheet_url&#8217;); ?&#62;&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&#62; then create file &#8220;iestyle.css&#8221; in theme folder and add #sidebar&#123; margin:0 9px 0 0; width:226px; float:right; text-align:left; &#125;]]></description>
			<content:encoded><![CDATA[<p>To fix the problem add in header.php<span id="more-7"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;!–<span style="color: #66cc66;">&#91;</span>if IE <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/iestyle.css&quot;  type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>endif<span style="color: #66cc66;">&#93;</span>–&gt;</span></pre></div></div>

<p>after</p>
<p><span style="color: #993300;">&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;?php bloginfo(&#8216;stylesheet_url&#8217;); ?&gt;&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</span></p>
<p>then create file &#8220;iestyle.css&#8221; in theme folder and add</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sidebar</span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">9px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">226px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-theme-cherry-dreams-sidebar-problem-for-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
