Module: LatestUpdates

rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2009-07-08 20:39

I've just finished up a new module, LatestUpdates. This module will put two links into your sidebar. The first link will lead to a page that will display all the photos/videos in your Gallery in chronological order with the most recently uploaded items on page one and the oldest stuff on the last page. The second link will do the same thing, but limits its self to the current album and its sub-albums.

If this sounds like something you'd want, see the attached file or my github account at http://github.com/rWatcher/gallery3-contrib/tree/master

I've also set up a Wiki page for it here:
http://codex.gallery2.org/Gallery3:Modules:latestupdates

---
Report Problems/Suggestions Here | Get latest version | Documentation | Coffee Fund | My Library | My GitHub

AttachmentSize
latestupdates.zip18.06 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-07-08 23:46

Super COOL!
Thanks for the continued contribution(s).

Ain't building modules cool?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-07-12 15:57

Sweet!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Wed, 2009-11-04 02:46

I have thousands of pictures so seeing the latest uploads was a great concept.

After enabling the module no links are added to my sidebar. I tried using the latest "latestupdates" module from both gallery-contrib and rWatcher/gallery-contrib. I restarted the browser and tried Firefox and IE. Lastly there was no messages in /var/logs/. I also uploaded a new picture and did not find a sidebar link?

My sidebar setup contains Album info (EXIF data) and Popular Tags in case that is relevant.

Thanks,

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2009-11-04 06:27

It should work fine as Gallery 3, Beta 3. If you're using the latest version of Gallery from git then the sidebar won't work (I still need to update the module for the new sidebar code, as soon as I have the time), although you can probably manually access the module at www.domain.com/gallery3/index.php/latestupdates/updates

 
estetico

Joined: 2009-10-30
Posts: 8
Posted: Wed, 2009-11-04 09:08

rWatcher
thanks for module!
any way how to put "latestupdates" on main page of gallery?

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Wed, 2009-11-04 16:36

I haven't grabbed this yet (but I will).
As far as the 'order' the photos are shown in, is that when they were uploaded or when created?

I would like to do this in reverse chronological order by capture date/time, as an option of each album. Would that seem to be a straight forward thing to do? With a little guidance, I'll give it a try.

Martyn T. Griffin

 
thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Wed, 2009-11-04 21:20

Very good, I will subscribe to this thread to know when updates occur. It did work when I went directly to ../latestupdates/updates as you described.

Another request if you don't mind:) Generally an upload consist of adding a new album. It would be nice for the user to see the latest albums listed (Example "Pumpkin Patch 10/2009", "John Wedding 11/2009"). Currently I see all my 7000 pictures sorted by date. While this is nice it does not give a good feel for the latest events. Also without the associated album it gives an overwhelming feeling of not understanding the picture's context (ie. "Pumpkin Patch") or when to stop scrolling.

This may be pushing it but what if the albums were not only sorted but a horizontal line distinguished sections by months and years. I know it is easy to make suggestions so take from it what you like.

Thanks,

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Wed, 2009-11-04 23:48

I was looking for the larest updates, but the site at domain.com no longer exists.

Martyn T. Griffin

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-11-05 00:34
Quote:
but the site at domain.com no longer exists.

You would put your domain name in that location. Sort of like if you give you http://example.com/

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Thu, 2009-11-05 00:45

:) OOPS, guess I was off in lulu land.
Martyn T. Griffin

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-11-06 13:15

How do I subscribe to this post - by writing here?

Looking forward to the update for the latest git.-...

Looks fine in the direct link, but no sidebar :-)

all the best
HB

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-11-07 01:29
Quote:
How do I subscribe to this post - by writing here?

Yes if you have that set up in your profile. Also the first post on any thread has a link.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2009-11-09 14:24

Is there any news to an update for sidebar in the latest git for this module?

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Tue, 2009-11-10 16:11

Rwatcher - I had an idea for his one. How about extending the engine that grabs latest added. The idea is to grab photos based on Exif. Probably a form where you can check within a set of criteria...

Latest added
Earliest added
Year 2009, 2010
Month jan - dec Drop down with option to select more
Day 1 - 31 Interval option 1 to 15 fx
Aperture 2,8 .. to .. 11 16 Interval option
Shutter 30 sec 1/4000sec Interval option
ISO 80 - 10.000 Interval option

That way tags like 2009 are not needed because you use Exif already there. Beeing able to search for a tag within given criteria could also be cool ex:

2007
May to June
Shutter above 1/1000
ISO 100
Search: Baghdad

all the best
HB

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-02-25 22:12

I've updated this module to work properly against the current version of Gallery 3 git. This version will NOT work with Gallery 3 Beta 3 so if you're not using Git, don't upgrade the module yet. After updating, you may need to manually add LatestUpdates to the sidebar via the "Admin->Appearance->Manage sidebar" menu.

The new module can be downloaded from this post, or from my github at:
http://github.com/rWatcher/gallery3-contrib/tree/master/modules/latestupdates/

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-11-13 10:41

Links in the menubar are now visible, but the images are not loading when a link is clicked. Goes to the page and loads header, but no images and no menu.

This goes for both entire and album link

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-11-13 19:42

Correction - the module works, but not using the 3nids theme???

all the best
HB - http://www.image.agentura.dk

 
estetico

Joined: 2009-10-30
Posts: 8
Posted: Tue, 2009-12-01 17:54

bug? pagination not working in latestupdates/updates, showing only last 9 pictures :(

 
nkinkade

Joined: 2009-12-05
Posts: 37
Posted: Thu, 2009-12-24 03:27

It looks like some of the recent changes to pagination broke pagination for this module. The attached patch for controllers/latestupdates.php should fix it.

rWatcher: thanks for this great module!

Nathan

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-01-24 10:52

Was the patch added to latest code

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Mon, 2010-01-25 05:14
hebhansen wrote:
Was the patch added to latest code

Yes. This module should work fine if you're using a recent Git version of Gallery 3.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2010-02-26 19:21

Here's an updated version of LatestUpdates. The sidebar will now be displayed on all pages, not just albums, photos and videos although the link for updates to the current album will be hidden for all other types of pages. These changes have also been pushed to my github account.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-02-25 22:22

Thanks

Most appreciated is it possible to create: Latest tags as well? Present a list of latest tags that link to a view of all images within that tag...

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-02-25 22:37

Works fine :-)

Thanks for your brilliant modules

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-02-25 23:23
hebhansen wrote:
Most appreciated is it possible to create: Latest tags as well? Present a list of latest tags that link to a view of all images within that tag...

Probably, if I could picture how it would work...
Would this be like a tag-cloud, like the one the tags module has in the sidebar, but with the tags sorted by "newest tag" first, or "most recently used tag" first? Or would this be like a LatestUpdates view, but instead of sorting by upload date, it would display photos that had been recently tagged first?

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2010-02-26 10:05

Maybe displayed in a sortable table including all tags

Initial view alphabetic and displayed with heavier font depending on tags

Sortable by alphabet also reverse order
date added reverse order
number of tags (weight) also reverse order (displayed in numbers)

Maybe even searcability as in your calenderview

all the best
HB - http://www.image.agentura.dk

 
Velociped
Velociped's picture

Joined: 2009-12-25
Posts: 58
Posted: Fri, 2010-02-26 14:24

Cool stuff! Thank's rWatcher!

Just something I noticed...
There is a difference in the number of pictures between "whole Gallery" and "this album" in the Gallery root directory. If I choose "this album" it want's to show more pictures than available so the last page ist empty. Does this option also count the deleted pictures?

(I haven't got RC1 yet. My installation is still one or two weeks older)

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2010-02-26 19:22
Velociped wrote:
Cool stuff! Thank's rWatcher!

Just something I noticed...
There is a difference in the number of pictures between "whole Gallery" and "this album" in the Gallery root directory. If I choose "this album" it want's to show more pictures than available so the last page ist empty. Does this option also count the deleted pictures?

(I haven't got RC1 yet. My installation is still one or two weeks older)

It might have been counting albums or something, I'm not sure. It's fixed now though :)

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2010-02-26 19:32
hebhansen wrote:
Maybe displayed in a sortable table including all tags

Initial view alphabetic and displayed with heavier font depending on tags

Sortable by alphabet also reverse order
date added reverse order
number of tags (weight) also reverse order (displayed in numbers)

Maybe even searcability as in your calenderview

all the best
HB - http://www.image.agentura.dk

If I understand correctly, if should be like a full page tags-cloud that displays every tag in gallery. There should then be options to sort the cloud by alphebet, date added, etc?

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-02-27 19:06

Not a tag cloud, the cloud shows fine in blocks

a table where each row includes cells such as:
Tag - no of images tag'ed by this (display as number 2, 45, 702 etc) - date for first tag creation - created by...

The table can be sorted by column:
col 1 alphabetic also in reverse order
col 2 higher or lower order
col 3 sort by date also reverse order
col 4 alphabetic aqlso in reverse order

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-02-27 19:12

the idea was if one tag catch your interest, access to more tags from same date may give you more content of interest. fx a fotball match or olympic games

If you wish to view more from photographer rwatcher it might come in handy as well.... Take a look at this table for inspiration, This is for Drupal though:
http://www.image.agentura.dk/products

Sortable by title,serial and weight and price in this case, but different for Gallery

all the best
HB - http://www.image.agentura.dk

 
Velociped
Velociped's picture

Joined: 2009-12-25
Posts: 58
Posted: Sun, 2010-02-28 11:51
rWatcher wrote:
It's fixed now though

Great! Thanks :-)

Since I installed "latestupdates" the admin-menue seems to react a bit reluctant. It mostly happens if the cache is empty, i.e. after the first login. I often have to reload a page to have it displayed properly, as if the CSS Files are not being loaded?!

Of course, it might have another reason but maybe somebody else has noticed the same?

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Tue, 2010-03-02 14:55

I've added the latest latest_updates module but so far nothing new shows up in the sidebar or in the appearance>manage sidebar options. Am I missing something? I do get latest as an RSS feed showing up but no photos or anything.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 02:47
Velociped wrote:
Since I installed "latestupdates" the admin-menue seems to react a bit reluctant. It mostly happens if the cache is empty, i.e. after the first login. I often have to reload a page to have it displayed properly, as if the CSS Files are not being loaded?!

Of course, it might have another reason but maybe somebody else has noticed the same?

I haven't noticed anything like that on my server. This module doesn't interact with the admin menu at all, and doesn't have any CSS files of its own, so I'm not sure how it could cause an issue like this.

davert wrote:
I've added the latest latest_updates module but so far nothing new shows up in the sidebar or in the appearance>manage sidebar options. Am I missing something? I do get latest as an RSS feed showing up but no photos or anything.

To Install --
Copy latestupdates to your modules folder.
Log in as an admin and activate the module on the Admin->Modules screen.
Select Appearance->Manage Sidebar and position the module where you want it.

Did you do all three steps? Also, make sure you're using RC1 as it won't work properly with Beta 3 and older.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Thu, 2010-03-04 14:09

I've tried doing that. Nothing shows up in Appearance -> Manage Sidebar. Well, it does show up under "Available Rss feeds" but there's no image block or anything, which is what I think should appear?

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 14:51

This text should appear in your sidebar:

LATEST UPDATES
Entire Gallery
This Album

and yes it should appear in manage sidebar

all the best
HB - http://www.image.agentura.dk

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Thu, 2010-03-04 15:10

Strange. Well, maybe it'll show up when I go to RC2...

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 18:20
davert wrote:
I've tried doing that. Nothing shows up in Appearance -> Manage Sidebar. Well, it does show up under "Available Rss feeds" but there's no image block or anything, which is what I think should appear?

You should see an option for Latest Updates on the sidebar screen:
[img]http://gallery.menalto.com/files/managesidebar.jpg[/img]
And then once everything is activated, you should see two links under Latest Updates on your sidebar when viewing an album or photo (and just one link when on a dynamic page):
[img]http://gallery.menalto.com/files/latestupdatessidebar.jpg[/img]
It doesn't put an image or anything in the sidebar, just the two links.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Thu, 2010-03-04 20:48

Not getting that... just the RSS feed...
http://www.allpar.com/gallery3/

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 20:55
davert wrote:
Not getting that... just the RSS feed...
http://www.allpar.com/gallery3/

That's weird. It's definitely installed:
http://www.allpar.com/gallery3/index.php/latestupdates/updates

Is it possible that some of the files didn't upload properly? The sidebar is controlled by the following files:
modules\latestupdates\views\latestupdates_block.html.php
modules\latestupdates\helpers\latestupdates_block.php

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Fri, 2010-03-05 21:02

That was the problem! I reuploaded. SORRY! Haven't had an upload problem in a long time!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Sat, 2010-03-06 07:16

It's always the simple stuff that causes problems :)

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-07 12:06

Rwatcher - sent you PM

all the best
HB - http://www.image.agentura.dk

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Thu, 2010-07-15 12:09

Some ideas (sorted according to their priorities):
(1) Adding the username of the uploader beside the new item.
(2) Displaying the new items page as a list rather than thumbnails, similar to Facebook way.
(3) Finally, adding the ability to add the updates page as link in the main menu-bar. Maybe beside the Home link (However, this could be implemented using another 3rd party module.)

Those simple modifications would make Gallery so suitable for social network site. And would make the experience of following Gallery updates far more better and more exciting process.

 
glodakan
glodakan's picture

Joined: 2010-06-13
Posts: 51
Posted: Wed, 2010-07-21 20:04

How to create Title Header in LatestUpdates module ?
and Meta Description / Meta Tag Gallery3:Modules:metadescription cannot work in LatestUpdate pages..

Same missing title and meta desc/tag in Most Viewed pages.
Thank You :)

 
netprince

Joined: 2010-10-09
Posts: 2
Posted: Sat, 2010-10-09 23:50

I am new to gallery, but I am experienced with LAMP and drupal, etc...

I am having problems getting this module to work with gallery3 final. I have a fresh install, and the index.php/latestupdates/updates page is throwing an error...

  ErrorException [ Strict Mode Error ]:   Creating default object from empty value

   1. MODPATH/latestupdates/controllers/latestupdates.php[ 128 ] 

Line 128 is:

$view->next_page_link = url::site("latestupdates/updates?page={$next_page}"); 

Platform information:

    *  Operating system: FreeBSD 8.1-RELEASE
    * Apache: Apache/2.2.16 (FreeBSD) mod_ssl/2.2.16 OpenSSL/0.9.8n DAV/2 PHP/5.3.3 with Suhosin-Patch
    * PHP: 5.3.3
    * MySQL: 5.5.5-m3
    * Server load: Unavailable
    * Graphics toolkit: imagemagick

Gallery stats

    * Version: 3.0 (Santa Fe)
    * Albums: 78
    * Photos: 2202

Any suggestions what I am doing wrong?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-05-13 12:32

Comments are now permitted for this topic.

 
dn3

Joined: 2012-03-31
Posts: 16
Posted: Sun, 2012-05-13 15:45

I've been using this module for awhile now, and it has become integral to the kind of site I'm doing. It works great, and thanks so much for it.

One detail that it's missing, and that I'm not sure how to handle myself, is that when viewing an image reached via the latest updates, the next/prev buttons don't stay within the latest updates list, they point to the next image in whatever album the current image is in. I noticed this has been overcome in the tag albums module, and it's got me wondering if something similar could be done here.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2012-06-13 22:55
dn3 wrote:
I've been using this module for awhile now, and it has become integral to the kind of site I'm doing. It works great, and thanks so much for it.

One detail that it's missing, and that I'm not sure how to handle myself, is that when viewing an image reached via the latest updates, the next/prev buttons don't stay within the latest updates list, they point to the next image in whatever album the current image is in. I noticed this has been overcome in the tag albums module, and it's got me wondering if something similar could be done here.

I've updated this module.

I've fixed the above request to have latest updates pages act like albums instead of search results. I've also added a few tabs to the user profiles pages:
[img]http://gallery.menalto.com/files/latestupdates-profiletabs.png[/img]
Updated .zip file is attached to the first post.

 
dn3

Joined: 2012-03-31
Posts: 16
Posted: Mon, 2012-07-02 08:06
Quote:
I've updated this module.

I've fixed the above request to have latest updates pages act like albums instead of search results.

Oh wow, did you ever. Awesome work, thanks so much! I particularly like that it sorts them properly without changing the urls, so there aren't two urls for each photo. You might consider trying to work that into Tag Albums, just as a refinement of it. Tag Albums is another great module, but it would be better SEO-wise to only have one url per page/photo.

In any case, I'm blown away by your contributions here. Keep up the good work, and thanks again.