<?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>Autarchy of the Private Cave &#187; gallery2</title> <atom:link href="https://bogdan.org.ua/tags/gallery2/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>Gallery2 with URL Rewrite and DHTML Album Select and Statistics module produces two forward slashes instead of the album select</title><link>https://bogdan.org.ua/2008/02/25/gallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html</link> <comments>https://bogdan.org.ua/2008/02/25/gallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html#comments</comments> <pubDate>Mon, 25 Feb 2008 13:47:22 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[album select]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[dhtml]]></category> <category><![CDATA[forward slash]]></category> <category><![CDATA[gallery2]]></category> <category><![CDATA[url rewrite]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2008/02/25/gallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html</guid> <description><![CDATA[Problem report at menalto forum. Another one, also with no solution. I can confirm &#8211; URL rewrite + DHTML Album Select produces two forward slashes in the Matrix theme, in my gallery 2.2.4 setup, after a single use of the Recalculate button in Disk statistics tab in Statistics plugin from Community repository. In my exact [&#8230;]]]></description> <content:encoded><![CDATA[<p><a
href="http://gallery.menalto.com/node/68957" class="broken_link" rel="nofollow">Problem report</a> at menalto forum. <a
href="http://gallery.menalto.com/node/69163" class="broken_link" rel="nofollow">Another one</a>, also with no solution.</p><p>I can confirm &#8211; URL rewrite + DHTML Album Select produces two forward slashes in the Matrix theme, in my gallery 2.2.4 setup, after a single use of the Recalculate button in Disk statistics tab in Statistics plugin from Community repository.<br
/> <span
id="more-264"></span><br
/> In my exact case, generating single gallery page with two forward slashes instead of Album Select produced this error:</p><blockquote><p>[25-Feb-2008 04:57:50] PHP Fatal error:  Call to a member function onLoad() on a non-object in /modules/core/classes/helpers/GalleryEntityHelper_simple.class on line 91</p></blockquote><p>I did run the <strong>integrity check</strong>&#8230; it had shown 7 missing files in the Notification module (all from the phpunit test framework), and 7 modified files (in publishxp, webcam, and flashvideo renderer; of those, I remember modifying only the last one).</p><p>PublishXP and webcam are not even installed &#8211; so I just manually deleted their folders. Then I reinstalled Notification module.<br
/> As expected, this didn&#8217;t help with the Album Select problem &#8211; though &#8220;modified files&#8221; verification problems are now gone (except for flashvideo, which I did modify). Notification must have some kind of internal trouble, as it still shows the phpunit files as missing.</p><p>Next, I tried <strong>disabling URL Rewrite</strong>, and having a look if that error is still generated: <strong>NO!!!</strong> This means, that the error is clearly associated with URL Rewrite being enabled. It&#8217;s only totally unclear, what kind of association it is.</p><p>It&#8217;s possible, that only some rules in URL Rewrite are causing problems. So I&#8217;ll disable all the rules first: <strong>now album select works</strong>.</p><p>Next, enabling rules one-by-one:</p><ul><li>add comment: still fine</li><li>view comments: still fine</li><li>updates album: still fine</li><li>popular album: still fine</li><li>random album: still fine</li><li>keyword album: still fine</li><li>permalinks: still fine</li><li>rating album: still fine (at this point I started thinking that it&#8217;ll just work after I enable all the rules; this way I&#8217;ll fix Album Select problem for some time, but won&#8217;t find the cause)</li><li><strong>show item: oops!</strong> Doesn&#8217;t work! Disabling: now works again! moving on to next rules for now.</li><li>download item: OK</li><li>site admin: OK</li><li>404: OK</li><li>Simple RSS feed and RSS feed: both OK</li><li>sitemap: OK</li><li>view slideshow: OK</li><li>tag cloud and tag virtual album: both OK</li><li>watermark hotlinked items: OK</li></ul><p><strong>Intermediate summary</strong>: problem is only with the <strong>show item</strong> rule. As suggested at the menalto forums, this might be due to the individual items names/filenames.</p><p>So, for now: if you want URL Rewrite in Gallery2 with Album Select, and you only get two forward slashes &#8211; disable the <strong>show item</strong> rule. It gives you functional Album Select at the cost of disabled rewrites for single items.</p><p>Next, I had a peek at the code around line 91:</p><div
id="ig-sh-1" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/* Let each entity do its post-load procedure */</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">foreach ($onLoad as $id) {</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; $ret = $cached[$id]-&gt;onLoad();</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; if ($ret) {</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; return array($ret, null);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; }</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; GalleryDataCache::put(&quot;GalleryEntityHelper::loadEntitiesById($id)&quot;, $cached[$id]);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li></ol></div></div><p>From what I understood, this line</p><div
id="ig-sh-2" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$ret = $cached[$id]-&gt;onLoad();</div></li></ol></div></div><p>in the code context calls the onLoad() function on each of the needed items, which are retrieved from the cache. So, as only one error is generated, it looks as if single item is either not in the &#8216;cached&#8217; array when it should be, or is not of the expected type. So far, I do not understand how this might be associated with item names/filenames.</p><p><ins
datetime="2008-02-26T14:03:34+00:00">Update:</ins> there was a plugin/module, which wasn&#8217;t present in the fresh and full G2 install: Statistics. After I installed Statistics onto a fresh Gallery2, and recalculated &#8216;disk usage&#8217;, I&#8217;m now seeing two slashes in that &#8220;freshly installed&#8221; G2!<br
/> Other symptoms are exactly the same: URL Rewrite&#8217;s &#8220;show item&#8221; rule switches two-slashes on and off. Thus, Statistics module might be the cause.<br
/> Strangely, but deactivating/uninstalling/deleting Statistics doesn&#8217;t fix the problem&#8230;</p><p><ins
datetime="2008-02-27T07:00:17+00:00">Update:</ins> here is the sequence of actions to reproduce the problem:</p><ul><li>install full gallery</li><li>during install, activate these plugins: album select, add items, integrity check, permalinks, url rewrite, gd</li><li>configure/activate URL rewrite module (apache mod_rewrite)</li><li>activate all url rewrite rules</li><li>edit root album->theme: add dhtml album select to &#8216;album pages&#8217;</li><li>tree doesn&#8217;t show: add album &#8216;test&#8217;. Now the album tree will be shown</li><li>install Statistics plugin (from Community repository)</li><li>go to Statistics menu in Site Admin, choose Disk statistics tab, press Recalculate</li><li>when recalculation is complete &#8211; two slashes will be seen</li></ul><p>I&#8217;ll keep looking for the solution. Comments from Gallery2 developers are highly appreciated.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&amp;linkname=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&amp;linkname=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&amp;linkname=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&amp;linkname=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&amp;linkname=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F25%2Fgallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html&#038;title=Gallery2%20with%20URL%20Rewrite%20and%20DHTML%20Album%20Select%20and%20Statistics%20module%20produces%20two%20forward%20slashes%20instead%20of%20the%20album%20select" data-a2a-url="https://bogdan.org.ua/2008/02/25/gallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html" data-a2a-title="Gallery2 with URL Rewrite and DHTML Album Select and Statistics module produces two forward slashes instead of the album select"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/02/25/gallery2-with-url-rewrite-and-dhtml-album-select-produces-two-forward-slashes-instead-of-the-album-select.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Updating everything</title><link>https://bogdan.org.ua/2008/02/03/updating-everything.html</link> <comments>https://bogdan.org.ua/2008/02/03/updating-everything.html#comments</comments> <pubDate>Sat, 02 Feb 2008 22:24:16 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[CMS]]></category> <category><![CDATA[Misc]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[WP PlugIns]]></category> <category><![CDATA[conflict]]></category> <category><![CDATA[gallery2]]></category> <category><![CDATA[sideblog]]></category> <category><![CDATA[update]]></category> <category><![CDATA[upgrade]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2008/02/03/updating-everything.html</guid> <description><![CDATA[Today I moved my blog and gallery into MySQL5 databases from an elderly MySQL4. Also, both WP and gallery are now updated to the latest versions. Soon I&#8217;ll change the WP and G2 themes &#8211; for the lighter, less cluttered &#8211; and will remove some ads&#8230; and will also add some others instead Update generally [&#8230;]]]></description> <content:encoded><![CDATA[<p>Today I moved my blog and gallery into MySQL5 databases from an elderly MySQL4. Also, both WP and gallery are now updated to the latest versions. Soon I&#8217;ll change the <abbr
title="wordpress">WP</abbr> and <abbr
title="gallery2">G2</abbr> themes &#8211; for the lighter, less cluttered &#8211; and will remove some ads&#8230; and will also add some others instead <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p><p>Update generally went well, except for the message I got on the main page:</p><p><strong>Sorry, but you are looking for something that isn&#8217;t here.</strong></p><p>It was quite easy to figure out that new WP conflicts with an elderly &#8220;Sideblog&#8221; plugin &#8211; so I had to deactivate that one, and will have to update all the active plugins to avoid some other less evident problems&#8230; (actually, just completed updating all the plugins&#8230; quite a time-eater, that was.)</p><p>Also, there will be a slight change to what and how I write. No other details for now &#8211; but stay tuned! All the changes with no exceptions are planned for the good of readers, and for the users&#8217; benefits!</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&amp;linkname=Updating%20everything" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&amp;linkname=Updating%20everything" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&amp;linkname=Updating%20everything" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&amp;linkname=Updating%20everything" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&amp;linkname=Updating%20everything" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F02%2F03%2Fupdating-everything.html&#038;title=Updating%20everything" data-a2a-url="https://bogdan.org.ua/2008/02/03/updating-everything.html" data-a2a-title="Updating everything"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/02/03/updating-everything.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Compiled linux ffmpeg binary for Gallery2: download</title><link>https://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html</link> <comments>https://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html#comments</comments> <pubDate>Thu, 28 Jun 2007 21:40:05 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[binary]]></category> <category><![CDATA[compiled]]></category> <category><![CDATA[download]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[g2]]></category> <category><![CDATA[gallery2]]></category> <category><![CDATA[linux]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html</guid> <description><![CDATA[Updated on Apr 8, 2008. Stimulated by the post of Eric Daniel (who used to have a blog at termitenshort.com), I compiled the most recent ffmpeg SVN source into Linux binary, which runs fine on my shared hosting (note: I&#8217;m using older ffmpeg binaries, which are at the end of the post). mini-FAQ: Q: Why [&#8230;]]]></description> <content:encoded><![CDATA[<p><ins
datetime="2007-10-28T21:43:07+00:00">Updated on Apr 8, 2008.</ins></p><p>Stimulated by the post of Eric Daniel (who used to have a blog at termitenshort.com), I compiled the <strong>most recent</strong> ffmpeg SVN source into <strong>Linux binary</strong>, which runs fine on my shared hosting (<em>note: I&#8217;m using older ffmpeg binaries, which are at the end of the post</em>).</p><p><strong>mini-FAQ:</strong><br
/> <em>Q: Why the title has &#8220;for Gallery2&#8243;?</em><br
/> A: Just because I avoided the inclusion of libraries, which were not found on my shared hosting server. I hope this will work for other shared hosting environments.</p><p>Configuration, version and date can be found in the output of ffmpeg.</p><p>Versions built on <strong>April, 8, 2008</strong>:<br
/> <a
href="/wp-content/uploads/2008/04/ffmpeg.no-lame">ffmpeg (no lame)</a> (checked: can be executed on godaddy shared hosting)</p><blockquote><p>FFmpeg version SVN-r12769, Copyright (c) 2000-2008 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-postproc &#8211;enable-swscale &#8211;enable-pthreads &#8211;disable-debug &#8211;enable-gray &#8211;disable-ffserver &#8211;disable-ffplay &#8211;enable-avfilter &#8211;disable-network &#8211;disable-ipv6<br
/> libavutil version: 49.6.0<br
/> libavcodec version: 51.54.0<br
/> libavformat version: 52.13.0<br
/> libavdevice version: 52.0.0<br
/> libavfilter version: 0.0.0<br
/> built on Apr  8 2008 15:13:14, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)<br
/> usage: ffmpeg [[infile options] -i infile]&#8230; {[outfile options] outfile}&#8230;</p></blockquote><p><a
href="/wp-content/uploads/2008/04/ffmpeg.lame">ffmpeg (with lame)</a>. For this one, grab <a
href="/wp-content/uploads/2008/04/libmp3lame.so">libmp3lame.so</a>.</p><blockquote><p>FFmpeg version SVN-r12769, Copyright (c) 2000-2008 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-postproc &#8211;enable-swscale &#8211;enable-pthreads &#8211;disable-debug &#8211;enable-gray &#8211;disable-ffserver &#8211;disable-ffplay &#8211;enable-avfilter &#8211;disable-network &#8211;disable-ipv6 &#8211;enable-libmp3lame<br
/> libavutil version: 49.6.0<br
/> libavcodec version: 51.54.0<br
/> libavformat version: 52.13.0<br
/> libavdevice version: 52.0.0<br
/> libavfilter version: 0.0.0<br
/> built on Apr  8 2008 15:44:31, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)</p></blockquote><p>Based on single request: <a
href="/wp-content/uploads/2008/04/ffmpeg.faad">ffmpeg (with lame <strong>and</strong> libfaac <strong>and</strong> libfaad)</a>. For this one, grab <a
href="/wp-content/uploads/2008/04/libfaac.so">libfaac.so</a> and <a
href="/wp-content/uploads/2008/04/libfaad.so">libfaad.so</a>.</p><blockquote><p>FFmpeg version SVN-r12769, Copyright (c) 2000-2008 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-postproc &#8211;enable-swscale &#8211;enable-pthreads &#8211;disable-debug &#8211;enable-gray &#8211;disable-ffserver &#8211;disable-ffplay &#8211;enable-avfilter &#8211;disable-network &#8211;disable-ipv6 &#8211;enable-libmp3lame &#8211;enable-libfaac &#8211;enable-libfaad<br
/> libavutil version: 49.6.0<br
/> libavcodec version: 51.54.0<br
/> libavformat version: 52.13.0<br
/> libavdevice version: 52.0.0<br
/> libavfilter version: 0.0.0<br
/> built on Apr  8 2008 23:53:57, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)</p></blockquote><p>As an experiment, here&#8217;s <a
href="/wp-content/uploads/2008/04/ffmpeg.freebsd.no-lame">ffmpeg freebsd binary without lame support</a>. Did ran on some FreeBSD 6.3 hosting.</p><blockquote><p>FFmpeg version SVN-r12769, Copyright (c) 2000-2008 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-postproc &#8211;enable-swscale &#8211;enable-pthreads &#8211;disable-debug &#8211;enable-gray &#8211;disable-ffserver &#8211;disable-ffplay &#8211;enable-avfilter &#8211;disable-network &#8211;disable-ipv6 &#8211;target-os=freebsd<br
/> libavutil version: 49.6.0<br
/> libavcodec version: 51.54.0<br
/> libavformat version: 52.13.0<br
/> libavdevice version: 52.0.0<br
/> libavfilter version: 0.0.0<br
/> built on Apr  8 2008 16:15:38, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)</p></blockquote><p>Versions built on <strong>Ocotber, 28, 2007</strong>:<br
/> <a
href="http://bogdan.org.ua/wp-content/uploads/2007/10/ffmpeg.2007-10-28.no-libmp3lame-support">download ffmpeg <strong>without</strong> libmp3lame support</a></p><blockquote><p>FFmpeg version SVN-r10867, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-pp &#8211;enable-swscaler &#8211;enable-pthreads</p><p>&#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-debug<br
/> libavutil version: 49.5.0<br
/> libavcodec version: 51.47.1<br
/> libavformat version: 51.17.0<br
/> built on Oct 28 2007 22:46:10, gcc: 3.4.6</p></blockquote><p><a
href="http://bogdan.org.ua/wp-content/uploads/2007/10/ffmpeg.2007-10-28.with-libmp3lame-support">download ffmpeg <strong>with</strong> libmp3lame support</a></p><blockquote><p>FFmpeg version SVN-r10867, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-pp &#8211;enable-swscaler &#8211;enable-libmp3lame</p><p>&#8211;enable-pthreads &#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-debug<br
/> libavutil version: 49.5.0<br
/> libavcodec version: 51.47.1<br
/> libavformat version: 51.17.0<br
/> built on Oct 28 2007 23:04:59, gcc: 3.4.6</p></blockquote><p>Shared hosting testing reports are welcome.</p><p>Below you can find <strong>even older versions of ffmpeg</strong>, which were tested and found functional on GoDaddy shared hosting.<br
/> <span
id="more-193"></span></p><p>Again, two versions are available &#8211; with libmp3lame support and without. Learn more about <a
href="http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html">using ffmpeg with libmp3lame support in shared hosting environment</a>.</p><p><a
href="http://bogdan.org.ua/wp-content/uploads/2007/06/ffmpeg">download ffmpeg without lame</a></p><blockquote><p>FFmpeg version SVN-r9447, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-pp &#8211;enable-swscaler &#8211;enable-pthreads &#8211;enable-libvorbis &#8211;disable-v4l &#8211;disable-v4l2 &#8211;disable-bktr &#8211;disable-dv1394 &#8211;disable-debug<br
/> libavutil version: 49.4.1<br
/> libavcodec version: 51.40.4<br
/> libavformat version: 51.12.1<br
/> built on Jun 28 2007 12:32:29, gcc: 3.4.6</p></blockquote><p>The second binary DID NOT work on my shared hosting due to the absence of libmp3lame.so.0 (see comments and <a
href="http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html">this post</a> on how to enable libmp3lame support).<br
/> It was built two days later, and has the following config:</p><p><a
href="http://bogdan.org.ua/wp-content/uploads/2007/06/ffmpeg.with.lame">download ffmpeg with lame</a></p><blockquote><p> FFmpeg version SVN-r9451, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br
/> configuration: &#8211;enable-gpl &#8211;enable-pp &#8211;enable-swscaler &#8211;enable-libmp3lame &#8211;enable-pthreads &#8211;enable-libvorbis &#8211;disable-v4l &#8211;disable-v4l2 &#8211;disable-bktr &#8211;disable-dv1394 &#8211;disable-debug<br
/> libavutil version: 49.4.1<br
/> libavcodec version: 51.40.4<br
/> libavformat version: 51.12.1<br
/> built on Jun 30 2007 11:51:23, gcc: 3.4.6</p></blockquote><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&amp;linkname=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&amp;linkname=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&amp;linkname=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&amp;linkname=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&amp;linkname=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2007%2F06%2F28%2Fcompiled-linux-ffmpeg-binary-for-gallery2-download.html&#038;title=Compiled%20linux%20ffmpeg%20binary%20for%20Gallery2%3A%20download" data-a2a-url="https://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html" data-a2a-title="Compiled linux ffmpeg binary for Gallery2: download"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html/feed</wfw:commentRss> <slash:comments>49</slash:comments> </item> <item><title>Gallery2 AdSense: no module?</title><link>https://bogdan.org.ua/2006/10/01/gallery2-adsense-no-module-how-to-insert.html</link> <comments>https://bogdan.org.ua/2006/10/01/gallery2-adsense-no-module-how-to-insert.html#comments</comments> <pubDate>Sun, 01 Oct 2006 14:35:49 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[CMS]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[AdSense]]></category> <category><![CDATA[gallery2]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[module]]></category> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/10/01/gallery2-adsense-no-module.html</guid> <description><![CDATA[If you ever need to add AdSense units to your Gallery2 installation, and find no module for this &#8211; try following the text below. I compiled it from several sources (primary menalto.com Gallery2 forum), and did everything written here myself here. Primary source of information was this post, but I recommend that you follow instructions [&#8230;]]]></description> <content:encoded><![CDATA[<p>If you ever need to add AdSense units to your Gallery2 installation, and find no module for this &#8211; try following the text below. I compiled it from several sources (primary menalto.com Gallery2 forum), and did everything written here myself <a
href="http://gallery.bogdan.org.ua/main.php">here</a>.</p><p>Primary source of information was this <a
href="http://galleryproject.org/node/51408" class="broken_link" rel="nofollow">post</a>, but I recommend that you follow instructions here.</p><p>To add AdSense to your Gallery2 sidebar (when using the Matrix theme as a sample):<span
id="more-39"></span></p><ol><li>copy themes/matrix/templates/sidebar.tpl to theme/matrix/templates/local/sidebar.tpl on your server. This is needed to preserve your modifications when the Matrix theme will be upgraded.</li><li>any further modifications should be done in your newly copied local/sidebar.tpl file.</li><li>create the file which will contain all your AdSense code &#8211; e.g., let it be adsense_160x600.tpl for the Wide Scyscraper format. Put all your AdSense code into that file, and upload the file to your theme/matrix/templates/local/ folder on the server.</li><li>now edit the sidebar.tpl file. My original file looked like this:[smarty]<div
id="gsSidebar" class="gcBorder1"> {* Show the sidebar blocks chosen for this theme *}<br
/> {foreach from=$theme.params.sidebarBlocks item=block}<br
/> {g->block type=$block.0 params=$block.1 class=&#8221;gbBlock&#8221;}<br
/> {/foreach}<br
/> {g->block type=&#8221;core.NavigationLinks&#8221; class=&#8221;gbBlock&#8221;}</div><p>[/smarty] I added [smarty]{if $user.isGuest == 1}<br
/> {* adsense code *}<br
/> {g->theme include=&#8221;adsense_160x600.tpl&#8221; class=&#8221;gbBlock&#8221;}<br
/> {/if}[/smarty] and final file looked like this:[smarty]{*<br
/> * $Revision: 1.2 $<br
/> * If you want to customize this file, do not edit it directly since future upgrades<br
/> * may overwrite it.  Instead, copy it into a new directory called &#8220;local&#8221; and edit that<br
/> * version.  Gallery will look for that file first and use it if it exists.<br
/> *}</p><div
id="gsSidebar" class="gcBorder1"> {* Show the sidebar blocks chosen for this theme *}<br
/> {foreach from=$theme.params.sidebarBlocks item=block}<br
/> {g->block type=$block.0 params=$block.1 class=&#8221;gbBlock&#8221;}<br
/> {/foreach}<br
/> {g->block type=&#8221;core.NavigationLinks&#8221; class=&#8221;gbBlock&#8221;}<br
/> {if $user.isGuest == 1}<br
/> {* adsense code *}<br
/> {g->theme include=&#8221;adsense_160x600.tpl&#8221; class=&#8221;gbBlock&#8221;}<br
/> {/if}</div><p>[/smarty]</li><li>well, basically you are done. If you need/want to, you can wrap the inserted code into some styled container, to define the look of the block, like:[smarty]<div
id="adBar" class="gcBorder1">{if $user.isGuest == 1}<br
/> {* adsense code *}<br
/> {g->theme include=&#8221;adsense_160x600.tpl&#8221; class=&#8221;gbBlock&#8221;}<br
/> {/if}</div><p>[/smarty]</li><li>you can use any AdSense format you like, but you must mind the width of the sidebar in your theme &#8211; so that site layout is not broken by too wide AdSense units.</li></ol><p>Finally, some more hints and explanations.</p><p>The smarty variables for users in Gallery2 are:</p><ul><li>$user.isGuest</li><li>$user.isRegisteredUser</li><li>$user.isAdmin</li></ul><p>As you might have noticed, in the code above AdSense unit is shown ONLY IF the page visitor is a Guest. Thus ads will not be shown to Registered Users and Admin. I did not manage to find this condition in Google&#8217;s AdSense Policy, but the source post author states that showing Google Ads in password-protected areas is a violation of Google&#8217;s Terms Of Service (TOS). Again &#8211; I did not find that, but in good faith I provide the code which limits ads to guest-only users. If you want to show ads to any user class &#8211; just remove the first {if} and last {/if} lines from the code. Any knowledgeable comments on this (preferrably with URLs) are very welcome, as personally I see nothing bad in putting AdSense onto password-protected pages in the case of the Gallery, where photos are the main type of content.</p><p>To add multiple ad units &#8211; create a single file for each distinct ad format/type you want to use, and include it using the code shown above. Just keep in mind limitations imposed by Google on the number of ad units of different types on a single page.</p><p>Hope this helps, and good luck to you.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&amp;linkname=Gallery2%20AdSense%3A%20no%20module%3F" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&amp;linkname=Gallery2%20AdSense%3A%20no%20module%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&amp;linkname=Gallery2%20AdSense%3A%20no%20module%3F" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&amp;linkname=Gallery2%20AdSense%3A%20no%20module%3F" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&amp;linkname=Gallery2%20AdSense%3A%20no%20module%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2006%2F10%2F01%2Fgallery2-adsense-no-module-how-to-insert.html&#038;title=Gallery2%20AdSense%3A%20no%20module%3F" data-a2a-url="https://bogdan.org.ua/2006/10/01/gallery2-adsense-no-module-how-to-insert.html" data-a2a-title="Gallery2 AdSense: no module?"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2006/10/01/gallery2-adsense-no-module-how-to-insert.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>