xml.php creation of Media RSS feed from Gallery2 albums

nutsnbolts

Joined: 2004-12-15
Posts: 71
Posted: Fri, 2008-02-15 02:45

Ok I got this to work using the original xml.php file and added the following to the theme.tpl

Quote:
<link rel="alternate" type="application/rss+xml" title="MediaRSS:{$theme.item.title}"
href="/gallery2/xml.php?g2_itemId={$theme.item.id}" />

I will test it on other machines to see if this works flawlessly. it is slow nonetheless.
----
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt

 
gbo
gbo's picture

Joined: 2005-10-06
Posts: 24
Posted: Sun, 2008-02-17 13:33
ingimundurn wrote:
After trying almost every combo in these threads the thing that finally worked for me was Natec's first xml.php file and Malandro95's edit of the theme.tpl.

Thanks to all I have been able to make it works in five minutes in following the tutorial of ingimundurn.

http://mesphotos.fontismedia.com/

---
FF 2.0.0.12
PicLens 1.6.1.1029

Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.2-1build1 apache2handler
Webserver = Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1
Database = mysql 4.1.15-Debian_1ubuntu5-log, lock.system=flock
---
_________________
Gil
My Gallery http://mesphotos.fontismedia.com/

 
Etrange
Etrange's picture

Joined: 2006-04-26
Posts: 26
Posted: Tue, 2008-02-19 14:50

For me too !
Just modifiying theme.tpl (for Matrix) and adding xml.php at root of Gallery2.
Nice !
==================
FF 2.0.0.12
PicLens 1.6.1.1029

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.1.2 apache2handler
Webserver = Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.2 mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 mod_perl/2.0.2 Perl/v5.8.7
Database = mysql 5.0.22-Debian_0ubuntu6.06.6-log, lock.system=database
Toolkits = ArchiveUpload, Dcraw, Ffmpeg, ImageMagick, NetPBM, Getid3, Gd, LinkItemToolkit, Thumbnail, jpegtran, Exif
Acceleration = none/86400, none/1800
Operating system = Linux ubuntu 2.6.15-51-686 #1 SMP PREEMPT Thu Dec 6 20:46:02 UTC 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

-----------
P.

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Sun, 2008-03-02 19:06

Same player play again ;-)!! It's works fine for me too!!! Thanks!

There's only one thing that I would like to change :
The image which is loaded by Piclens to be seen in fullscreen mode is the original one. For my gallery it's about 2-3 Mb one image. So it's a bit too long to download and to show.
So I would like to have Piclens loading the intermediate size which I use in Gallery (800x600 image). But I don't know how to do that.

I think it's only a call to a function to change in the xml.php... But which exactly?
Any help welcomed ;-).

tom

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2008-03-02 21:37

I posted a further update to my original xml.php which natec did an excellent job modifying for use with Piclens.
picLensRss.php is used exactly the same way as xml.php and works perfectly.

  • As usual just edit line 30 to reflect your setup.
  • Edit theme.tpl add these lines:
    {if $theme.pageType == 'album'}
        <link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/gallery2/picLensRss.php?g2_itemId={$theme.item.id}" id="picLensGallery"/>
        <script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
    {/if}
    
  • Edit album.tpl add these lines (I put them next to the original slideshow button):
    <td class="gsActionIcon">
        <div class="buttonViewSlideshow"><a href="javascript:PicLensLite.start();"></a></div>
    </td>
    

Works per image in an embedded G2.(meaning the arrow that shows on the images)
Works full featured in Standalone G2 Browser button, secondary slideshow button and per image as well.

This picLensRss.php has many more functions than xml.php for easier customization.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
natec

Joined: 2007-06-21
Posts: 13
Posted: Sun, 2008-03-02 22:05

Hey supersidr!

Haven't downloaded and tried your latest picLensRss.php yet, but I did hop over to your gallery, and the PicLens arrow wasn't showing up on your image thumbnails for me in Safari 2.x with PicLens 1.5

The secondary slideshow button with the javascript command to start PicLensLite worked in your StandaloneG2, but the embedded G2 secondary slideshow brought up a blank slideshow with no images.

This is the first I've seen of the PicLensLite thing though, and it looks sweet, so I'll probably try and get it going on my website. Full-screen slideshows without a browser plugin requirement are where it's at!

-natec

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2008-03-02 22:19

natec, please update to piclens 1.6.1 for safari, my partner assures me it is working for safari now although its in beta still.

Quote:
The secondary slideshow button with the javascript command to start PicLensLite worked in your StandaloneG2, but the embedded G2 secondary slideshow brought up a blank slideshow with no images.

thats what I was referring to above.

Quote:
Works per image in an embedded G2.(meaning the arrow that shows on the images)
Works full featured in Standalone G2 Browser button, secondary slideshow button and per image as well.

When I have more time, I'll look into the embedded G2 issue.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Tue, 2008-03-04 01:06

Hello Suprsidr!

I've tried your version and it works fine too for my gallery embedded (always meaning with the arrow on the images) but :

- don't know where to put the lines for the album.tpl (not very important since I think it won't work with my embedded gallery)

- my problem is always the same : how to make piclens loading the medium size image and not the original ones? I don't really understand the gallery2 code :-(. Do you how to do that?

- I would like to test the 1.6.1 (beta?) for safari to confirm what says your partner but I didn't found it :-(. Do you know where to get it?

Hasta luego

Tom

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-03-04 01:41

there are 2 ways to get your "medium" image:

  1. Get the preferred image:
    function getPreferred($item) {
    	$id = $item->getId();
    	list ($ret, $preferred) = GalleryCoreApi::fetchPreferredsByItemIds(array($id));
    	if ($ret) {
    		return array($ret, null);
    	}
    	if (isset($preferred[$id])) {
    		return $preferred[$id];
    	} else {
    		return $item;
    	}
    }
    
  2. Get best fit by dimension contributed by Kirk(g2image)
    function getBestImageId($masterId) {
    	global $gallery;
    
    	if (isset ($_REQUEST['g2_maxImageHeight'])) {
    		$maxImageHeight = $_REQUEST['g2_maxImageHeight'];
    	}
    	if (isset ($_REQUEST['g2_maxImageWidth'])) {
    		$maxImageWidth = $_REQUEST['g2_maxImageWidth'];
    	}
    
    	$potentialImages = array();
    
    	//how about the original?
    	$ret = GalleryCoreApi::assertHasItemPermission($masterId,'core.viewSource');
    	if (!$ret) {
    		//is there a preferred derivative of the original?
    		list ($ret, $preferred) = GalleryCoreApi::fetchPreferredsByItemIds(array($masterId));
    		if ($ret) {
    			return array ($ret,null);
    		}
    		if (!empty($preferred[$masterId])) {
    			$potentialImages[] = $preferred[$masterId];
    		} else {
    		//if no preferred, use the original	original
    			list ($ret, $item) = GalleryCoreApi::loadEntitiesById($masterId);
    			if ($ret) {
    				return array ($ret,null);
    			}
    			$potentialImages[] = $item;
    		}
    	}
    	// If the user can see resized versions consider those too
    	$ret = GalleryCoreApi::assertHasItemPermission($masterId,'core.viewResizes');
    	if (!$ret) {
    		list ($ret, $resizes) = GalleryCoreApi::fetchResizesByItemIds(array($masterId));
    		if ($ret) {
    			return array($ret,null);
    		}
    		if (!empty($resizes)) {
    			foreach ($resizes[$masterId] as $resize) {
    				$potentialImages[] = $resize;
    			}
     		}
    	}
    	//can always use the thumbnail
    	list($ret,$thumbs) = GalleryCoreApi::fetchThumbnailsByItemIds( array($masterId) );
    	if ($ret) {
    		return array ($ret,null);
    	}
    	$potentialImages[] = $thumbs[$masterId];
    
    	//true if maxDimensions are taller/narrower than image, in which case width is the constraint:
    	$widthbound = ( !$maxImageHeight || $potentialImages[0]->height * $maxImageWidth < $potentialImages[0]->width * $maxImageHeight ) ? 1 : 0;
    
    	usort($potentialImages, "byWidth");
    
    	if ( $maxImageWidth &&  $widthbound ) {
    		foreach ($potentialImages as $potentialImage) {
    		if ($potentialImage->width >= $maxImageWidth) {
    			return array ( null, $potentialImage);	//return the first one wider than $maxImageWidth
    		}
    			}
    	}
    	elseif ( $maxImageHeight ) {
    		foreach ($potentialImages as $potentialImage) {
    		if ($potentialImage->height >= $maxImageHeight) {
    			return array ( null, $potentialImage);	//return the first one taller than $maxImageHeight
    			}
    		}
    	}
    	$bestImage=array_pop($potentialImages);
    	return array( null,  $bestImage);			//none of them big enough - use the largest
    }
    
    function byWidth($a, $b) {
    	if ($a->width == $b->width) return 0;
    		return ($a->width < $b->width ) ? -1 : 1;
    }
    

    this one you would need to pass 2 more vars in your request g2_maxImageHeight, and g2_maxImageWidth.

Quote:
don't know where to put the lines for the album.tpl

Not necessary until I get a chance to look into the embedded gallery issue.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
josh@speedbump.ws (not verified)

Posted: Sun, 2008-03-09 00:37

I followed your directions and they worked perfectly. I was hoping you could elaborate on the image size settings in your last post. I attempted to put the code for best fit by dimension into the picLensRss.php but I must have done something wrong.

suprsidr wrote:
I posted a further update to my original xml.php which natec did an excellent job modifying for use with Piclens.
picLensRss.php is used exactly the same way as xml.php and works perfectly.

  • As usual just edit line 30 to reflect your setup.
  • Edit theme.tpl add these lines:
    {if $theme.pageType == 'album'}
        <link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/gallery2/picLensRss.php?g2_itemId={$theme.item.id}" id="picLensGallery"/>
        <script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
    {/if}
    
  • Edit album.tpl add these lines (I put them next to the original slideshow button):
    <td class="gsActionIcon">
        <div class="buttonViewSlideshow"><a href="javascript:PicLensLite.start();"></a></div>
    </td>
    

Works per image in an embedded G2.(meaning the arrow that shows on the images)
Works full featured in Standalone G2 Browser button, secondary slideshow button and per image as well.

This picLensRss.php has many more functions than xml.php for easier customization.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2008-03-09 15:20

ok I've added the bestFit mod.
edit line 30....
one small change to theme.tpl

<link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/gallery2/picLensRss.php?g2_itemId={$theme.item.id}&g2_maxImageHeight=600&g2_maxImageWidth=600" id="picLensGallery"/>

Add your maxImageHeight & maxImageWidth
this will still function as normal if you leave them out.

I also fixed something I omitted from function getPreferred in the original. So that should work as well.

Edit 3/9/08
Fixed some script errors - thanks Gernot ;)
I updated the zip on mysite so get it there.(removing the one here)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
me-g33k
me-g33k's picture

Joined: 2006-04-13
Posts: 4
Posted: Mon, 2008-03-10 16:44

Ok... Concerning the placement of the lines into theme.tpl and album.tpl. I've been puzzling this out for 30 minutes or so and I am still a bit confused. Assuming that the album template is matix; there is a section in theme.tpl (line 52) that reads:

Quote:
{* Include the appropriate content type for the page we want to draw. *}
{if $theme.pageType == 'album'}
{g->theme include="album.tpl"}
<link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/picLensRss.php?g2_itemId={$theme.item.id}" id="picLensGallery"/>
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
{elseif $theme.pageType == 'photo'}
{g->theme include="photo.tpl"}
{elseif $theme.pageType == 'admin'}
{g->theme include="admin.tpl"}
{elseif $theme.pageType == 'module'}
{g->theme include="module.tpl"}
{/if}

I added the modification into the area that already references the 'album' entity. Was that right?

As for the album.tpl... That's really confusing since it looks like its reading them from an array and then generating the entries on the fly (line 118):

Quote:
{g->block type="core.ItemLinks" item=$child links=$child.itemLinks}

{if !empty($child.title)}
<p class="giTitle">
{if $child.canContainChildren && (!isset($theme.params.albumFrame)
|| $theme.params.albumFrame == $theme.params.itemFrame)}
{* Add prefix for albums unless imageframe will differentiate *}
{g->text text="Album: %s" arg1=$child.title|markup}
{else}
{$child.title|markup}
{/if}
</p>
{/if}

I looked into the DOM browser for where the slideshow link was and that's how I figured out that it lived in the class:

class="gbAdminLink gbAdminLink gbLink-slideshow_Slideshow"

So I am not sure how to go about adding that revision since this is automatically generated.

Any more hints? Also once I get through this I think I'll re-summarize this entire series of posts into one single instruction set for others... BTW I am running the Debian Gallery Package 2.2.4-1. Thanks for the help and the efforts everyone.

cat user_complain.msg > /dev/nul

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2008-03-11 10:35

FYI, I just committed a change today to add PicLens (and LyteBox as a fallback) to the slideshow module in 2.3. Get the latest nightly download and you'll get a nice full-screen PicLens slideshow when you click the "View Slideshow" link. Enjoy!

 
me-g33k
me-g33k's picture

Joined: 2006-04-13
Posts: 4
Posted: Tue, 2008-03-11 11:31

WOW! Much better! I'm gonna go grab that! Thanks bharat!

* Edit * Drat. I just found out that I am on 2.2.4-2 in a Debian package... Will the module work backwards in 2.2.4 or it is founded on only 2.3?

cat user_complain.msg > /dev/nul

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2008-03-11 12:38

@All:

I guess* xml.php is not needed anymore. With G2.3's slideshow module you'll get a MediaRSS feed right out of the box.
You can try the current nightly snapshot of G2.3.

*) I don't know xml.php and its applications very well. But I assume that its just a MediaRSS feed.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2008-03-11 12:40

@me-g33k:
there's no debian package for development versions of gallery 2. you'll need to use the latest nightly snapshot or svn to get the latest development version of g2.3.

> Will the module work backwards in 2.2.4 or it is founded on only 2.3?

it only works with g2.3.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2008-03-11 18:15

PicLens Demo: http://www.menalto.com/gallery/family/Disneyland2007/ and click on "View Slideshow"

LyteBox fallback demo: http://www.menalto.com/gallery/main.php?g2_view=slideshow.Slideshow&g2_itemId=54009

Looks to me like the LyteBox version needs to have a longer delay. What do you guys think?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-03-12 00:07

Same problem as with my picLensRss.php it only partially works embedded.

Works per image in an embedded G2.(meaning the arrow that shows on the images)
Works full featured in Standalone G2 Browser button, secondary slideshow button and per image as well.
example
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Banta

Joined: 2006-04-18
Posts: 35
Posted: Thu, 2008-03-13 16:49

Hello Suprsidr,

I am using your mediaRSS.php to pull the feed from my gallery2. LOVE IT!
I do have a quick question. What I want to do is create an album in gallery2 that is a "Best Of.." so to speak.
However, I want the album to be Hidden. In other words I am only using it for the feed, visitors to my Galler2
cannot see it. The problem is that when it is set to 'hidden' IE7 & FireFox is not returning the feed, while
IE6 does return it.

So, I guess the question is, is there a flag I can set in the mediaRSS.php that will still return the hidden
gallery album feeds? Or, do albums have to be visible to get the feed?

Thanks for your time and I appreciate your hard work.

Banta

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2008-03-13 20:05

@suprsidr:
can you elaborate on what's not working with the official slideshow module of g2 in the current nightly snapshot?
or what's wrong with its media rss feed?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-03-14 00:10

@valiant

Quote:
can you elaborate on what's not working with the official slideshow module of g2 in the current nightly snapshot?

  • When embedded PicLens only works via the icons that appear on each image. Not via the browser button.
  • When embedded LyteBox appears about 2 feet down the page... keep scrolling its there.

Confirmed in firefox 2.x and IE7
Both work perfectly standalone - Great work :)

Quote:
what's wrong with its media rss feed?

I was actually hoping you guys had more advanced info on this as I spent a couple hours trying to figure out where the problem lies while embedded.
(most likely the image src does not match the link)
The PicLens problems are the same I ran into, the LyteBox issue is new to me.

@Banta Hidden albums change the view permissions. You need Everybody [core] View all versions.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2008-03-14 11:16

> When embedded LyteBox appears about 2 feet down the page... keep scrolling its there.

that was a bug we fixed 1.5 days ago. but it didn't affect embedded only.

can you please confirm that all of your issues with the slideshow are still present in the current nightly snapshot?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-03-15 00:39

@valiant
I updated the slideshow module only - same issue
found a clue in my errorlog:

Quote:
[Fri Mar 14 17:56:51 2008] [error] [client 98.212.134.52] File does not exist: /usr/local/www/vhosts/flashyourweb.com/httpdocs/media/modules, referer: http://www.flashyourweb.com/media/index.php?g2_view=slideshow.Slideshow&g2_itemId=32

looks like the slideshow is trying to include something from the modules directory but not detecting the embed correctly as it should be /gallery2/modules

If you would like me to do aother complete upgrade let me know.

On another note. I noticed when using Matrix theme I get PicLens when I click the slideshow link, but with Carbon I get LyteBox even though the view is the same:
g2_view=slideshow.Slideshow&g2_itemId=32
Should'nt I always get PicLens?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-03-15 03:03
Quote:
On another note. I noticed when using Matrix theme I get PicLens when I click the slideshow link, but with Carbon I get LyteBox even though the view is the same:
g2_view=slideshow.Slideshow&g2_itemId=32
Should'nt I always get PicLens?

you mean carbon's own icons? yes, they don't use the correct item-links which have javascript (onclick). use the item-action menu in the sidebar and it works.
i have a patch ready for the carbon mini icons and will commit it soon.

i can't reproduce your problem with the embedded mode though. works fine for me locally when testing with the embedded carbon theme.

the problem is that your core module isn't up to date. you need to upgrade core as well.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-03-15 03:13

the piclens flash slideshow works fine in YOUR embedded gallery, just use the slideshow link from the sidebar. i'll fix carbon's mini icon link as soon as i got it reviewed.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-03-15 04:37

My core is from Tuesday but I'll update again tonight.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-03-15 04:53

> My core is from Tuesday

that's too old. as i said above, the fix was from Wednesday.

the fix for the carbon theme is in now too (requires a core and carbon upgrade).

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-03-15 05:21
 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Mon, 2008-03-24 19:58

@Suprsidr
THANKS!!
It works fine now! Great!
I'm just a bit confused since my integration Wordpress+iTheme for WP+Gallery2+WPG2+Piclens seems not being very stable. That's frustrating because I had a problem (not able to open the gallery part...) that I only solved with a complete desactivation and re-activation of all that (don't know how to analyze and point out the problem). But for now it works fine

@Bharat
I see your work in action on your site. It's GREAT to know that it will be integrated in the next release of gallery.
For the reason mention above, I will not begin with the nightly compiled version( I don't even know how to do that ;-) ) for the moment ;-).

THANKS
Tom

 
feef

Joined: 2006-09-12
Posts: 1
Posted: Wed, 2008-03-26 16:15

I'm getting this error on the xml.php file

i'm using a multi-site install

Quote:
Error loading Entity:Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 39 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
* in xml.php at line 43 (GalleryCoreApi::loadEntitiesById)
* in xml.php at line 222
* in xml.php at line 228

Error finding child item ids:Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 146 (GalleryCoreApi::error)
* in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 80 (GalleryChildEntityHelper_simple::_fetchChildItemIds)
* in modules/core/classes/GalleryCoreApi.class at line 2344 (GalleryChildEntityHelper_simple::fetchChildItemIds)
* in xml.php at line 49 (GalleryCoreApi::fetchChildItemIds)
* in xml.php at line 222
* in xml.php at line 228

http://www.missmissysatine.co.uk/main.php Dynamic Media RSS Feed for Gallery2 en_GB 4WiseGuys RSS Generator version 1.5.3 Wed, 26 Mar 2008 16:13:15 +0000 120

Any suggestions?

Have modified the theme.tpl as suggested, and there's no folder as such, so have modified all the paths accordingly.

a

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-03-26 21:00

This one works better.
But if you read the rest of this thread, this feature is now available in a nightly build of Gallery ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
gernot.hueller

Joined: 2006-04-26
Posts: 10
Posted: Fri, 2008-03-28 07:32

Hello all!
I've been using suprsidr's hack and am really glad to head this feature will make it into the next release of gallery!

My problem is: With suprsidr's hack, some images work greatly and some are not displayed (ie not generated in the RSS feed).
So sometimes I have only half of the folder's images in the RSS feed, sometimes I get an empty RSS feed although the gallery folder contains 100+ images!

I have not figured out yet why some images are not added to the RSS feed.
Is that something either of you are aware of?
Or should I get a nightly build and try it on my gallery database to see if the problem persists?

regards,

Gernot

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-03-28 11:00

@Gernot, check your webserver's errorlog for clues.
But I must say the latest nightlies are superb ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Sat, 2008-03-29 12:18

Hola todos!!

I know that it becomes a little "out of the subject" (don't know how to say that in english) but, since it seems to be really great ;-) and not need the visitors to get the piclens plugin, I'm looking for some informations about the 'nightly builds'.
How can I test it and what does it involved?
--> I just get the file, overwrite my install and? I will have to re-configure all no?
--> Generally it works fine or I will have to pass hours on newer problems with fewer persons concerned ;-) ?
--> Suprsidr, when you talk about 'core' or 'slideshow module' what does it mean exactly? You get the entire nightly build install but only overwrite a directory or another?

And a good news, if somebody got same issues, when I said "I'm just a bit confused since my integration Wordpress+iTheme for WP+Gallery2+WPG2+Piclens seems not being very stable. That's frustrating because I had a problem (not able to open the gallery part...) that I only solved with a complete desactivation and re-activation of all that (don't know how to analyze and point out the problem). But for now it works fine"
==> I get this problem a second time and I found the problem : I was using .mo files for traduction of wordpress in french. Don't know exactly why but for now with wordpress in english ALL is fine.

Tom

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-03-29 12:36

@tomtomgoo:
you don't need piclens. you can use the media-rss feed of the new slideshow module with other slideshow tools as well. i guess you can use it with flash4web's slideshow tool as well.

> I'm looking for some informations about the 'nightly builds'.

you can get the nightly snapshot from the downloads page, we call it "latest experimental code" there.
it's like any other upgrade. see: FAQ: How to upgrade Gallery2?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Wed, 2008-04-02 11:17

picLensRss and mediaRss both work for me in my Gallery version = 2.2.4 core 1.2.0.6,
but in Gallery version = 2.1.1 core 1.1.0.1, I get:
Fatal error: Call to undefined static function: gallerycoreapi::getmapentry() in /hsphere/local/home/.........mysite.com/gallery2/picLensRss.php on line 481

Not compatibe with 2.1.1?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-04-02 11:28

Apparently not.
Its checking to see if the imageBlock disabled flag is set for each album.
You can set that function(function getDisabledFlag) to always return false.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Wed, 2008-04-02 11:37

Can you please tell me how to do this?
I'm just a simple user, and know nothing about programming...:)

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-04-02 11:45
function getDisabledFlag($itemId) {
    return false;
}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Wed, 2008-04-02 12:03

Thanx suprsidr, this works :)

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Fri, 2008-04-04 15:24
Quote:
<td class="gsActionIcon">
<div class="buttonViewSlideshow"><a href="javascript:PicLensLite.start();"></a></div>
</td>

Can someone please tell me exactly where to put this in album.tpl? (X_treme)

Thanx

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-04-04 15:40

There should be one similar for the stock slideshow button. And this is only important if you are including <script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script> in theme.tpl as described above.

I'm assuming you are not willing to upgrade to a nightly build which has PicLens natively :)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Fri, 2008-04-04 16:04

I've already included

Quote:
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>

in theme.tpl.
My problem is, I can't find the stock slideshow button in album.tpl...going crazy....

Where do I download nightly build?

Thanx

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-04-04 16:30
 
gernot.hueller

Joined: 2006-04-26
Posts: 10
Posted: Sun, 2008-04-06 08:40

Hi all!
I now successfully tried the latest (well, 1 week old) nightly build and does work superbly, just as suprsidr said! I really see all the pictures in what seems to be the best available resolution, and none of them are skipped (with the manual mediaRss.php hack, some were skipped)
So I will lean back now and joyously await the 2.3 release of gallery!
I'll go now see if I can contribute to the 2.3 release...
thanks to all!

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Sun, 2008-04-20 22:05

Finally I'm not sure it was a good idea :-( ==> http://gallery.menalto.com/node/76881.
My site is completely broken for now. I'm sad :-(.

valiant wrote:
@tomtomgoo:
you don't need piclens. you can use the media-rss feed of the new slideshow module with other slideshow tools as well. i guess you can use it with flash4web's slideshow tool as well.

> I'm looking for some informations about the 'nightly builds'.

you can get the nightly snapshot from the downloads page, we call it "latest experimental code" there.
it's like any other upgrade. see: FAQ: How to upgrade Gallery2?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Tue, 2008-04-29 02:35

Finally and thanks to bharat my wordpress-gallery site is back ;-).
I've just tried to erase my Piclens.rss file and the corresponding lines in the theme.tpl file and have to say that I'm disappointed (a little) :-( :
- the button which appeared directly on the images is no longer present (don't know if it's normal)
- Don't succeed to get the slideshow button on the sidebar (I have to go in 'operations' and choose slideshow; maybe that's due to the wordpressembebed theme but I'm sure I have seen it before...)
- seems not to get the 800x600 images (don't know how to be sure but the time to get a detail picture is much longer)
- the 3D wall only appears when all the little pictures are downloaded (we could see it directly, pictures dowloading)
- The client needs to get the plugin to be able to see the 3D wall (= was what I was wondering)

Tom

 
totem

Joined: 2008-03-04
Posts: 25
Posted: Sat, 2008-05-03 02:21

Hi all,

I'm looking into getting the PicLens support into my Gallery2 site:

--------------
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.7 cgi
Webserver = Apache
--------------

I know I should be able to get it working by skimming through the posts, but I was wondering if there is a compiled "how to" guide that someone put together.

Also, do you recommend following the instructions to get your 2.2.3 site to work with PicLens or to just upgrade to the nightly 2.3 builds? (I'm just concern about the stability of 2.3 at this stage)

Thanks for a great product, and the support.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-05-03 03:57

The latest nightly is very stable no worries there.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
totem

Joined: 2008-03-04
Posts: 25
Posted: Sun, 2008-05-04 05:13

I'm testing 2.3 on a separate server right now, and it all seems to be pretty nice.

One question so far (and it may not be the right forum), why doesn't all the themes I have on the server show up in the site admin settings? I've got a number (9 to be specific) of themes under the "themes" directory, but only "Matrix" is available from the settings? I'm most interested in "carbon"

thanks