News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Last 5 comments on my site

Started by lasa, September 27, 2003, 01:02:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lasa

I want to display the last 5 comments on my site, not in coppermine.
How can you do that?

Tarique Sani

A query like
SELECT * FROM `cpg_comments` ORDER BY `msg_date` DESC  LIMIT 0 , 5
Will return the last 5 comments, write a small PHP script to PRINT where ever
SANIsoft PHP applications for E Biz

lasa

Thnx!
But how can I add also a link to that photo?

Tarique Sani

Quote from: "lasa"But how can I add also a link to that photo?
The pid column returned is the picture ID to link to the picture use URL like
http://www.tariquesani.net/displayimage.php?pos=-56

The last number in the above URL is the pid and don't forget the minus sign(-) before the pid number

Of Course link it to your domain not mine ;)
SANIsoft PHP applications for E Biz

lasa

Can you make that small php script for me, please?

Tarique Sani

Quote from: "lasa"Can you make that small php script for me, please?
:lol:  :lol:  :lol:  :lol: NO!
SANIsoft PHP applications for E Biz

lasa

Grrr... I can't get it how to echo the query... Grrr

Joachim Müller


Tarique Sani

SANIsoft PHP applications for E Biz

lasa

Quote from: "tarique"
Quote from: "gaugau"take a look at http://prdownloads.sourceforge.net/coppermine/ssi.zip?download
Oh Great! You rescued that one!! :D

Even as the FAQ...

Joachim Müller

rescuing it was easy - always has been on my hard-drive (I coded it :wink: ). But as I mentioned on the old board: you're not encouraged to use it, as it doesn't give a damn about permissions - it has to be redone (someday).

GauGau