Module: LatestUpdates
rWatcher
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: ---
|
||||
Posts: 27300
Super COOL!
Thanks for the continued contribution(s).
Ain't building modules cool?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7994
Sweet!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 28
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,
Posts: 722
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
Posts: 8
rWatcher
thanks for module!
any way how to put "latestupdates" on main page of gallery?
Posts: 128
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
Posts: 28
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,
Posts: 128
I was looking for the larest updates, but the site at domain.com no longer exists.
Martyn T. Griffin
Posts: 27300
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
Posts: 128
OOPS, guess I was off in lulu land.
Martyn T. Griffin
Posts: 573
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
Posts: 27300
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
Posts: 573
Is there any news to an update for sidebar in the latest git for this module?
all the best
HB
Posts: 573
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
Posts: 722
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/
Posts: 573
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
Posts: 573
Correction - the module works, but not using the 3nids theme???
all the best
HB - http://www.image.agentura.dk
Posts: 8
bug? pagination not working in latestupdates/updates, showing only last 9 pictures
Posts: 37
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
Posts: 573
Was the patch added to latest code
all the best
HB - http://www.image.agentura.dk
Posts: 722
Yes. This module should work fine if you're using a recent Git version of Gallery 3.
Posts: 722
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.
Posts: 573
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
Posts: 573
Works fine
Thanks for your brilliant modules
all the best
HB - http://www.image.agentura.dk
Posts: 722
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?
Posts: 573
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
Posts: 58
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)
Posts: 722
It might have been counting albums or something, I'm not sure. It's fixed now though
Posts: 722
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?
Posts: 573
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
Posts: 573
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
Posts: 58
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?
Posts: 81
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.
Posts: 722
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.
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.
Posts: 81
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?
Posts: 573
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
Posts: 81
Strange. Well, maybe it'll show up when I go to RC2...
Posts: 722
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.
Posts: 81
Not getting that... just the RSS feed...
http://www.allpar.com/gallery3/
Posts: 722
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
Posts: 81
That was the problem! I reuploaded. SORRY! Haven't had an upload problem in a long time!
Posts: 722
It's always the simple stuff that causes problems
Posts: 573
Rwatcher - sent you PM
all the best
HB - http://www.image.agentura.dk
Posts: 337
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.
Posts: 51
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
Posts: 2
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...
Line 128 is:
Platform information:
Any suggestions what I am doing wrong?
Posts: 8339
Comments are now permitted for this topic.
Posts: 16
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.
Posts: 722
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.
Posts: 16
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.