New module: Show updates to your gallery
wayneb
Joined: 2006-06-11
Posts: 6 |
![]() |
Thanks for the tip earlier, Mindless. My next question/request concerns posting the updates as larger images instead of the thumbnails... The code in the ShowUpdates.tpl is: By messing around I ended up with: |
|
joemonster
![]()
Joined: 2006-04-12
Posts: 236 |
![]() |
Hi, i'm searching for a way to integrate the module more into my gallery without changing any other things than the module itself. I don't know if some of the things are possible but it would be really nice. 1.) show "Gallery / Updates" instead of only "Gallery" in the breadcrumb I tried to do it myself but for the first and second point i have no idea how to do it. Around line 192 i changed the paging system code into Quote:
$theme = array(); Around line 234 i deleted the line Quote:
$result['body'] = 'modules/updates/templates/' . ($raw ? 'Raw' : 'Show') . 'Updates.tpl'; and added Quote:
$theme['children'] = $itemData; You have to replace "sirux" with the theme you are using e.g. matrix. For the sirux theme it works quite well. Unfortunately i encountered problems with the matrix theme because the left side was shown twice. Now i'm searching help to achieve point 1 and 2. And i think it would we nice if point 3 works with nearly all themes. Thanks in advance |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
wayneb, looks for example code using fetchResizesByItemIds. joemonster, 2) alter the query to check for entityType = 'GalleryAlbumItem' |
|
wayneb
Joined: 2006-06-11
Posts: 6 |
![]() |
Thanks for the tip, Mindless. Have a great day! |
|
joemonster
![]()
Joined: 2006-04-12
Posts: 236 |
![]() |
Thanks Mindless, it works very well. I also had to remove the DataItem table from the query. |
|
Eka_Mei
Joined: 2006-01-03
Posts: 132 |
![]() |
Thanks for answering that mindless! Question: Anyone know ho to display the name of the owner to each item in the display page? I am investiaging it right now, but I would appreciate if someone know the best and fastest way to handle this! |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
in the php code you'll need to make a map of owner ids to owner data. |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
Hi. First thanks for providing a very much appreciated module. Long question - but I rather be as precise as can be - and I think Thanks |
|
Eka_Mei
Joined: 2006-01-03
Posts: 132 |
![]() |
a) Query just one album and the item underneath that album, is possible. But just the user's album is pretty much not possible. I have not invesigate how user ownership will work with this yet. b) I'm not sure what duplication means. As long as you don't upload duplication, the update module should not display the same item twice. c) Yes, I believe Mindless already responded to this one, try check the previous post by him. d) Those are not implanted at the moment. Try the statistic module for most viewed item. That module is not under development at the moment though, sadly. e) Depends, there are a couple of switches, I also made it possible to display the number of items displayed at once base on the url. however, any further query will need to be added. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
(Eka_Mei.. (b) above it says they upload an image and then "create link" twice into other albums, so that's where the "duplicates" come from.. I guess if the updates query only looks in one of those album trees then you won't get dups) |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
To a) that's just what I try to achieve. There is not a permission problem - in the way (as I understood you concern) that you query the viewers permission and the select his album. No it's just to point to the general Album "User Galleries" and show the images that users have recently uploaded to everyone. b) Mindless explained that right. I'm looking for how to query the albums, excluding linked images. c) I didn't find a post that explains how to exclude an album. for d and e - well was just a question with no urgency attached. So as I suspected - perform update on a specific album and it's subalbums is possible. Thanks for answering. |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
Anyone? No suggestion on how to display just one album and it's subalbums? |
|
Steel Rat
![]()
Joined: 2006-06-24
Posts: 100 |
![]() |
Installed this into my Drupal 4.7/G2 setup, and it works great. Had to add the custom CSS by Mindless to get the different orientated thumbnails to play nice, but worked fine. But I did notice that the link in the Gallery Nav is only visible if you're registered and logged in. Maybe I missed that in the thread, but is there a way to make that visible to guests as well? all my albums are visible to anyone. Steel Rat |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
i'm confused.. i thought the changes Eka_Mei made does this.. just add g2_itemId={id of album} in the updates URL. Edit: this^ response is for kjpweb.. Steel Rat, I see "view latest updates" in the sidebar when I visit your site as guest. |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
Thanks Mindless, |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
I'm not sure, what the syntax is. Where and how do I have to add g2_itemId={id of album} ? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
That was fast! Thanks! Here's the general structure Topic albums To avoid seeing linked images I want to show just the content updates of User albums and subalbums. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
seems to work to me. please try the URL I posted above again, with itemId 279 and 302.. I just fixed a bug in the forum software in how the URL was displayed. |
|
kjpweb
Joined: 2006-06-17
Posts: 8 |
![]() |
It works - it apparently was the & in the URL, that corrected the issue. Thank you sooo much! This thing |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
Hi there! So what's the status of this module? I'm currently running v2.0 core 1.0.0 -- is it compatible with it? Where can I pick up the latest release of the code? Thanks much, //craig |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
click documentation above, then User Contributions, find the modules section. |
|
antisa33
Joined: 2006-06-26
Posts: 30 |
![]() |
The module is working fine on my G2 gallery. Thanks. |
|
Steel Rat
![]()
Joined: 2006-06-24
Posts: 100 |
![]() |
Mindless, it seems to be kind of hit or miss. Of course I finally got the cookie and fullname settings straightened out, so perhaps one of those fixed it. Steel Rat |
|
HorsePunchKid
![]()
Joined: 2005-05-04
Posts: 89 |
![]() |
Howdy, all. I'm glad to see people have been getting some use out of this module. Thank you, Alan, for providing some much-needed enhancements! I'm trying to merge my local changes (e.g.) into the latest version (0.2.6, posted 2006-01-18 according to the README). However, I have some questions about the current behavior. In particular, it seems that the "raw" option no longer functions how I intended: Instead of simply producing an unadorned div of the updates, it's an entire HTML page. The idea was that this output could be embedded in other applications without any processing (except perhaps applying some CSS to format it). My RSS view of the updates was based on the code I had for the "raw" view (which used "immediate" mode to avoid the extra HTML), so I'd like to figure this out before I go ahead integrating the RSS feed. |
|
kylehase
![]()
Joined: 2005-09-15
Posts: 38 |
![]() |
First of all, great module. This is always the first thing my users check on my site. |
|
HorsePunchKid
![]()
Joined: 2005-05-04
Posts: 89 |
![]() |
antisa33 wrote:
I see it in english, how can i do to see it in french and others langages? There's a guide to creating new localisations here on the Gallery wiki. It's not a trivial process, but it shouldn't be hard. As soon as I can get my new host to rebuild PHP with gettext, I can start on at least the English and Russian localisations. In the meantime, you can always just edit the template files and change the wording where appropriate. |
|
radek.kaba
Joined: 2006-08-10
Posts: 1 |
![]() |
Hi, I'm installing updates module 0.3.7 on Gallery 2.1.1, Quote:
Error (ERROR_BAD_PARAMETER) : xxxx/www/galeria/modules/core/classes/helpers/../../../../modules/updates/UpdatesSiteAdmin.inc Pls help. |
|
Tulkin
Joined: 2006-08-14
Posts: 1 |
![]() |
Hello. Big thanks for this module! I have installed this module( 0.2.6) successfully and was able to see updates via url: main.php?g2_view=updates.ShowUpdates |
|
HorsePunchKid
![]()
Joined: 2005-05-04
Posts: 89 |
![]() |
Tulkin wrote:
Can anybody tell me how to integrate this module on the bottom of the front page. This is an example of the kind of thing I'd expect people to do with the "raw" output, which is now impossible (or at least quite a bit harder) with the current version that surrounds the raw output with all of the tags to make it a full (X)HTML document. I'll tally this as a vote to revert to the original behavior. So what you could do if the raw output were working (give me a day or two to do that) is just include the raw output in some way and apply appropriate CSS to make it look right in your front page. It'd be a little roundabout, but it'd work. (Of course, it would make more sense when embedding in something outside of the Gallery2 framework.) {php} $ch=curl_init('http://yoursite/main.php?g2_view=updates.RawUpdates'); $foo=curl_exec($ch); curl_close($ch); print($foo); {/php} ...or something like that. |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
So I'm in Colombia, at an Internet café, slightly overwhelmed at the customization work ahead to put this module into production. I'm using Gallery 2.0, with the corresponding Update module. Freshly installed, I have some questions right out of the gate... I'd very much like to match the look and feel of the updates page to the pages currently in production. Update page: http://snapshots.travelvice.com/updates/ Idea's as to how I can properly format the page (fix top row spacing, three columns, shadowed thumbnails, etc)? Thanks so much for your thoughts -- it's rather difficult doing this in a developing country! Best, - Craig |
|
mikeage
![]()
Joined: 2005-01-23
Posts: 138 |
![]() |
Nice work! I made one changes for my own use, which you might want to merge in. I removed the full image block display. As soon as I turned on any piece of information ("caption" in the module's vocab), I got all the blocks that I display on an image page (EXIF, etc). Perhaps this should be a configurable option? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
can you describe your configuration and what you see in more detail.. can't figure out what you mean. |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
Is there an simple way to match the look of the /updates/ page with the theme of the site? |
|
robert070612
Joined: 2003-08-05
Posts: 565 |
![]() |
CSS |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
Hi icpix, I was thinking more along the lines properly formating the page (fix top row spacing, three columns, shadowed thumbnails, etc). Update page: http://snapshots.travelvice.com/updates/ Also, anyone figure out how to append a little text to the breadcrumb? |
|
robert070612
Joined: 2003-08-05
Posts: 565 |
![]() |
travelvice---- So was I... when you've worked out why the div statements As for the 'figuring out' I could question your ability It's 2:30am here, I've had a very long day...g'nite. ----best wishes, Robert |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
Thanks for the thoughts Robert, Modifying the presentation of the page (rows and columns + shadow effects for the thumbnails) is done (for a Gallery novice such as myself) within the Admin panel (adjusting the specifics of the theme). This is where I'm left scratching my head. Thanks! //craig |
|
swordfish
![]()
Joined: 2004-10-01
Posts: 388 |
![]() |
I'm running Updates 0.3.7 which works fine however, in Site Admin panel when clicking on Updates I get the below error.
|
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
that code has moved in current svn, so the module must be updated. sorry, don't recall offhand where it moved to. travelvice, another option (involving some coding) is changing this module into a dynamic album view instead of its own custom view. when this module was created it had to be its own view, but current svn would allow a theme to render the set of recent items.. |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
Quote:
travelvice, another option (involving some coding) is changing this module into a dynamic album view instead of its own custom view. when this module was created it had to be its own view, but current svn would allow a theme to render the set of recent items.. Alright, I'm game! How do we do this? Currently running 2.0.0 |
|
LadySaiyajin
Joined: 2002-12-25
Posts: 1 |
![]() |
Ok... I feel stupid... how do you set up an RSS feed for the latest updates album? T_T |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
travelvice, keyablum and rating modules each have an example of a dynamic album view. LadySaiyajin, this module does do any rss.. not sure what the rss module offers. |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
mindless wrote:
travelvice, keyablum and rating modules each have an example of a dynamic album view. Thanks for the suggestion mindless. I know you're a busy guy, but this is a little hard for me to wrap my head around in an Internet cafe in Ecuador! Do you have a suggestion as to how I can begin this process? Best, //craig |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
hummm... I suppose it would help to understand how a dynamic album view is different than a traditional module. ? Still have no idea where to start on this one. Have others not had this same problem with thumbnail frames and row/column alignment with this module? Best, //craig |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
modules/keyalbum/KeywordAlbum.inc and modules/rating/RatingAlbum.inc are the two dynamic album views. A "dynamic album view" means the view provides the set of items to show, but the theme actually displays it like an album. |
|
travelvice
![]()
Joined: 2005-07-16
Posts: 112 |
![]() |
mindless wrote:
modules/keyalbum/KeywordAlbum.inc and modules/rating/RatingAlbum.inc are the two dynamic album views. Now it'll be more complicated than just swaping out the code with that found in the KeywordAlbum.inc file, won't it? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
i'm considering totally reworking this module to use dynamic albums. hopefully i'll find some time to work on it. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
there are pros/cons of the dynamic album approach.. feedback welcome on how to put together a module that will be useful to most people. Module view (what the module has now): Dynamic album: |
|
joe7rocks
![]()
Joined: 2004-10-07
Posts: 560 |
![]() |
mindless wrote:
.. I feel this one a big con. Could we give a simple workaround for this? |
|