Advanced search  

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]

Pages: [1]   Go Down

Author Topic: last comments, a thumbnail displayed only once  (Read 7906 times)

0 Members and 1 Guest are viewing this topic.

couvinkesin

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
last comments, a thumbnail displayed only once
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: last comments, a thumbnail displayed only once
« Reply #1 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
Logged

e-m

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: last comments, a thumbnail displayed only once
« Reply #2 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.  :-[
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: last comments, a thumbnail displayed only once
« Reply #3 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?
Logged

chtito

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 186
  • I run Mac OS X, despite the penguin ;)
Re: last comments, a thumbnail displayed only once
« Reply #4 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.
Logged
Vous pouvez poser vos questions en français sur le forum francophone !

couvinkesin

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: last comments, a thumbnail displayed only once
« Reply #5 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!
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: last comments, a thumbnail displayed only once
« Reply #6 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 ?
Logged

couvinkesin

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: last comments, a thumbnail displayed only once
« Reply #7 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)
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: last comments, a thumbnail displayed only once
« Reply #8 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
« Last Edit: December 05, 2004, 07:20:44 pm by Hein »
Logged

couvinkesin

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: last comments, a thumbnail displayed only once
« Reply #9 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!
Logged

e-m

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: last comments, a thumbnail displayed only once
« Reply #10 on: December 09, 2004, 01:53:55 pm »

So ... is this possible or not.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: last comments, a thumbnail displayed only once
« Reply #11 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.