last comments, a thumbnail displayed only once last comments, a thumbnail displayed only once
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

last comments, a thumbnail displayed only once

Started by couvinkesin, December 04, 2004, 08:56:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

couvinkesin

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!

Joachim Müller

has been asked before (not sure if an answer with working code bits has been replied), search the board.

Joachim

e-m

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.  :-[

Tranz

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?

chtito

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.
Vous pouvez poser vos questions en français sur le forum francophone !

couvinkesin

Quote from: 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.

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!

Hein Traag

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 ?

couvinkesin

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)

Hein Traag

#8
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

couvinkesin

Quote from: Hein 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 ?

That would be cool of course!

e-m


Joachim Müller

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