forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: couvinkesin on December 04, 2004, 08:56:38 am

Title: last comments, a thumbnail displayed only once
Post by: couvinkesin on December 04, 2004, 08:56:38 am
Hi,

does anyone know how to avoid the same thumbnail beeing displayed
seleveral times in "last comments", when that picture
has been commented several times recently? If source code modification
ist required, has anyone done that before an can tell me what to
do (I think it should be in function display_thumbs in
functions.inc.php)?

Thanks a lot in adcance!
Title: Re: last comments, a thumbnail displayed only once
Post by: Joachim Müller on December 05, 2004, 12:36:27 pm
has been asked before (not sure if an answer with working code bits has been replied), search the board.

Joachim
Title: Re: last comments, a thumbnail displayed only once
Post by: e-m on December 05, 2004, 01:00:51 pm
couvinkesin, if you find something, please post it here.
I promise I will do the same ... if I find something.
So far I have not.  :-[
Title: Re: last comments, a thumbnail displayed only once
Post by: Tranz on December 05, 2004, 01:09:24 pm
How do you want this to work? You don't want the pertinent thumbnail to display next to the comment? How would you know what the comment is about?
Title: Re: last comments, a thumbnail displayed only once
Post by: chtito on December 05, 2004, 01:35:58 pm
What (i suppose) he means is to display only the last comment per picture + the thumbnail of this picture (once per picture), in the the last comment view.
Title: Re: last comments, a thumbnail displayed only once
Post by: couvinkesin on December 05, 2004, 04:40:07 pm
What (i suppose) he means is to display only the last comment per picture + the thumbnail of this picture (once per picture), in the the last comment view.

yes that't right. I run a galerie, where a newly uploaded pictures often gets many comments soon after the upload. Thus "last comments" shows a long series of this particular picture, once for each comment. I will check the board and let you know if I find something. Thanks for your replies!
Title: Re: last comments, a thumbnail displayed only once
Post by: Hein Traag on December 05, 2004, 05:42:16 pm
So the idea basicly would mean to have coppermine display all comments for a particular thumb up to a set number of times, say 5. And if there are more then 5 comments coppermine only displays the thumbs one time with a COMMENTS button underneath which opens a new page with the thumbnail on top and then underneath all comments posted on that one thumbnail.

Something like that ?
Title: Re: last comments, a thumbnail displayed only once
Post by: couvinkesin on December 05, 2004, 06:52:23 pm
well, no, the basic idea would be to select *disctinct* on picture (id) for the
list for "last comments". So that a picture thumbnail is only displayed once in
"last comments", regardless of how many comments is has.

I will give an example:

Lets say the last comments were for (sortet by time)

pic_b
pic_a
pic_a
pic_a
pic_a
pic_a
pic_a
pic_a
pic_a
pic_b
pic_b
pic_a
pic_a
pic_c
pic_a
pic_a
pic_d
pic_a

them this would also be the order of the displayes pictures in last comments.

What I would prefere would be only that list of thumbnails:

pic_b
pic_a
pic_c
pic_d

Each picture thumbnail only once and with its last comment. But displayed
on the same "last comments" page as now.

(sorry for my poor english)
Title: Re: last comments, a thumbnail displayed only once
Post by: Hein Traag on December 05, 2004, 07:05:14 pm
Got it. Instead of displaying a thumb each time a comment has been made you want it to be displayed only once and with the last comment added. Would it be a idea to also insert the number of comments made ? And an option to open a page with the whole list of comments on that thumb, making it easier to either view them as a visitor or edit them if you would happen to be the admin  :D
Title: Re: last comments, a thumbnail displayed only once
Post by: couvinkesin on December 05, 2004, 07:12:56 pm
Got it. Instead of displaying a thumb each time a comment has been made you want it to be displayed only once and with the last comment added. Would it be a idea to also insert the number of comments made ?

That would be cool of course!
Title: Re: last comments, a thumbnail displayed only once
Post by: e-m on December 09, 2004, 01:53:55 pm
So ... is this possible or not.
Title: Re: last comments, a thumbnail displayed only once
Post by: Joachim Müller on December 09, 2004, 03:56:07 pm
possible: yes.
available: no.

In other words: although it would be possible to code this, no one has come up with this so far. If you're a coder, your mod would be most welcome. If you are no coder, you'll have to wait untill someone comes along and codes it for you (and the others who are requesting this feature).

Joachim