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
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.
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
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
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.
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.
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
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.
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
Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-03-04 01:41
there are 2 ways to get your "medium" image:
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;
}
}
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.
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.
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.
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):
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
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
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.
@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?
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?
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.
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?
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.
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.
@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
* 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
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
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 ;)
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?
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
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.
Can someone please tell me exactly where to put this in album.tpl? (X_treme)
Thanx
suprsidr
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
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:
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?
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
Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-05-03 03:57
The latest nightly is very stable no worries there.
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"
Posts: 71
Ok I got this to work using the original xml.php file and added the following to the theme.tpl
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
Posts: 24
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/
Posts: 26
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.
Posts: 38
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
Posts: 8339
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.
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
Posts: 13
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
Posts: 8339
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.
thats what I was referring to above.
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
Posts: 38
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
Posts: 8339
there are 2 ways to get your "medium" image:
this one you would need to pass 2 more vars in your request g2_maxImageHeight, and g2_maxImageWidth.
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
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.
Posts: 8339
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
Posts: 4
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:
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):
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
Posts: 7994
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!
Posts: 4
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
Posts: 32509
@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
Posts: 32509
@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
Posts: 7994
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?
Posts: 8339
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
Posts: 35
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
Posts: 32509
@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
Posts: 8339
@valiant
Confirmed in firefox 2.x and IE7
Both work perfectly standalone - Great work
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
Posts: 32509
> 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
Posts: 8339
@valiant
I updated the slideshow module only - same issue
found a clue in my errorlog:
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
Posts: 32509
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
Posts: 32509
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
Posts: 8339
My core is from Tuesday but I'll update again tonight.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32509
> 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
Posts: 8339
That fixed it, nice job ;)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 38
@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
Posts: 1
I'm getting this error on the xml.php file
i'm using a multi-site install
Any suggestions?
Have modified the theme.tpl as suggested, and there's no folder as such, so have modified all the paths accordingly.
a
Posts: 8339
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
Posts: 10
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
Posts: 8339
@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
Posts: 38
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
Posts: 32509
@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
Posts: 108
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?
Posts: 8339
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
Posts: 108
Can you please tell me how to do this?
I'm just a simple user, and know nothing about programming...
Thanks
Posts: 8339
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 108
Thanx suprsidr, this works
Posts: 108
Can someone please tell me exactly where to put this in album.tpl? (X_treme)
Thanx
Posts: 8339
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
Posts: 108
I've already included
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
Posts: 8339
http://codex.gallery2.org/Downloads
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 10
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!
Posts: 38
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 .
Posts: 38
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
Posts: 25
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.
Posts: 8339
The latest nightly is very stable no worries there.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 25
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