New module: Show updates to your gallery

rob2701

Joined: 2007-07-21
Posts: 10
Posted: Mon, 2007-08-06 08:49

Looking to get the updates module to use the shadow frame on the updates page, but I'm not smart enough to know how or where to change this in the code. Fiddling didn't help... :-)

If someone can give me some pointers, I'd be thankful.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-08-06 15:00

activate image frame module, go to site admin / updates and pick which image frame you want in the settings there.

 
rob2701

Joined: 2007-07-21
Posts: 10
Posted: Mon, 2007-08-06 16:25

Thanks for the quick answer, but my mistake, should have mentioned:
Running Gallery version = 2.1.2 core 1.1.0.2
ImageFrame 1.0.3 is activated

In that version of the updates module I only see the following options:

Items To Show:
Show Titles:
Show Album Links:
Show Date Created:
Show Item Summaries:
Show Item Descriptions:
Custom CSS:

So I need to change it somewhere in the code I think.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-08-07 00:36

get the latest G2.1.x version of updates module (0.3.7)
or why not upgrade to G2.2.2 and get updates 0.3.8..

 
rob2701

Joined: 2007-07-21
Posts: 10
Posted: Tue, 2007-08-07 05:40

Thanks for the help and advice, will give it a try. G2.2.2 is not an option for me yet, I have gallery embedded and there are some crappy issues bridged.

 
standers67

Joined: 2007-08-20
Posts: 15
Posted: Mon, 2007-09-03 07:37

Would it be possible to use this module to just list the latest added albums. Not all the updated pictures, just on the albums level...
Thanks!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-09-03 15:12

try replacing 3 instances of GalleryDataItem with GalleryAlbumItem in ShowUpdates.inc
i didn't test it, but I think that might work.

 
standers67

Joined: 2007-08-20
Posts: 15
Posted: Tue, 2007-09-04 07:30

mindless:
Yes, that worked fine - great support!

But I ran into a new problem, maybe you know the fix? I was about to customize the number of items to show on the updates page from the admin settings. When I changed the settings I received an error from Gallery. Now, when I try to view the page with the latest updates I also receive an error. Somehow the configuration of the updates module must have been changed in a bad way from the adminpage.

Do you have an idea what this might be?

Quote:
Item not found.
Back to the Gallery

Error Detail -
Error (ERROR_MISSING_OBJECT) : Missing object for 0
in modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 2075 (GalleryCoreApi::error)
in modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 98 (GalleryStorageExtras::_identifyEntities)
in modules\core\classes\GalleryStorage.class at line 298 (GalleryStorageExtras::loadEntities)
in modules\core\classes\helpers\GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
in modules\core\classes\GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
in modules\updates\ShowUpdates.inc at line 154 (GalleryCoreApi::loadEntitiesById)
in modules\core\classes\GalleryView.class at line 300 (ShowUpdatesView::loadTemplate)
in main.php at line 441 (GalleryView::doLoadTemplate)
in main.php at line 94
in main.php at line 83

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-09-04 14:32

when the module loaded only items, every item had to have a parent. now the query could return the root album, which has no parent. in the admin settings make sure you do NOT check "show album links".

 
joemonster
joemonster's picture

Joined: 2006-04-12
Posts: 236
Posted: Tue, 2008-03-18 20:34

I haven't read through this huge thread, but is there a way to add an album that links to this updates page?

 
morton

Joined: 2005-09-19
Posts: 52
Posted: Thu, 2008-10-23 01:02

mindless:
I just updated to 2.3 and am attempting to configure Updates.

Gallery URL = http://lbba.org/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.3.11 apache
Webserver = Apache
Database = mysql 4.1.20-max-log, lock.system=flock
Toolkits = Gd, Exif, Thumbnail, ImageMagick, Ffmpeg, ArchiveUpload, jpegtran
Acceleration = none, none/900
Operating system = Linux web137.opentransfer.com 2.6.26.2 #5 Sun Aug 17 14:40:30 CDT 2008 i686
Default theme = lbba
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322)
Rows in GalleryAccessMap table = 152
Rows in GalleryAccessSubscriberMap table = 21545
Rows in GalleryUser table = 122
Rows in GalleryItem table = 18774
Rows in GalleryAlbumItem table = 253
Rows in GalleryCacheMap table = 0

When I go to add a Block in the Updates configuration page it will show the item, but when I click on Save the page will update and the Block Selected list will disapear indicating that there are no items added. I had thought that I had read that you could add the item list to the Updates page so that you could select the item to purchase it. The only way I can get the Item List to show is to click on a photo to bring up the photo. This action carries you to the album.

I guess the question is - is there a way to get the Purchase Item to show on the Updates thumbnail page such that you can select a photo directly from the Updates page.

Cheers,
Steve

 
ForestCat

Joined: 2007-04-27
Posts: 29
Posted: Mon, 2008-12-29 14:38

Hi,
I realize this is an older thread, and that there hasn't been much developer activity here in a long time. That said, I'm hoping someone can verify something for me. I'm running Gallery 2.3, Updates 0.3.8. The module returns a page of recent thumbnails, in descending order of Date Added, which is EXACTLY what I needed. The glitch is that clicking a thumbnail navigates into the parent album of the thumbnail, rather than into a virtual album of most recent photos. I did read this entire thread, and the impression I get is that at least at some points in the development, navigation was within the virtual "updates" album/view. My hope is to have an album of most recently added photos that visitors can browse sequentially, backward in time, until they see something they recognize from their last visit, etc. Sort of a poor man's "Photos Added Since Last Visit" functionality. Something sorely lacking in an otherwise stellar script ( that, and reliable boolean/date search capability...)

Is what I'm seeing now the way this has always worked, or did something break w/ 2.3?

BTW, I've tried the Dynamic Album/Updates Album. Same behavior, navigates into the thumbnails parent album. I'm stuck.

Thanks for any help.

******** EDIT: The problem, at least w/ Dynamic Albums, is the x_treme theme. If anyone can shed any light on where I might look in the template code to isolate the bug, I'd be grateful. My PHP skills, well, suck. But I'm willing to try.

___
Neil

http://www.wildsuburbia.com

(under heavy construction as of 12/28/08)

 
morton

Joined: 2005-09-19
Posts: 52
Posted: Mon, 2008-12-29 17:46

Neil,
Not sure this module is being developed much currently. I think I read somewhere the original author is MIA. I'm by no means an expert with Gallery although I've used it for several years and done some mods here and there on my installations. The Update module is a very good module in theory. I have it active on my larger installation with over 60,000 photos and new ones being added every year. I too needed a place where my members could go and see the latest added photos. I'm not real sure it is doing this. If I understood what you want is a module to keep track of where a visitor leaves off looking at an Album. I believe you would have to store this information in the database. Update module does not do that I don't think. You would also like the visitor to be logged in as a registered user otherwise when the session data is deleted Gallery will not know who the visitor is when he/she comes back.
I beleive the original intent of Update was to just scan your albums for recently added photos and present them by last added order. As for it working as it was intended to is a real question. I was going to take a few days to review the code and see if I can reconstruct the the intended functionality. I'll try to report back here in a few days.

Cheers and Happy New Year!
Steve

 
Vampyre
Vampyre's picture

Joined: 2004-05-01
Posts: 6
Posted: Sat, 2009-01-10 19:33

Thanks for http://gallery.menalto.com/files/updates_038.zip for Gallery 2.2.x .
I'll give it a try with Gallery 2.3 . :)

 
galinf
galinf's picture

Joined: 2009-06-18
Posts: 1
Posted: Thu, 2009-06-18 17:00

I things thanslate to spanish, where I cant tu put the translation files?

thanks for all,

Dr. Adrián Gómez Collantes
Editor de Dmoz
http://galeria.sld.cu