How do i print 'PIC ID' wherever i want? How do i print 'PIC ID' wherever i want?
 

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

How do i print 'PIC ID' wherever i want?

Started by bit bit spears, February 03, 2004, 03:24:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

On the thumbnails.php page, i want it to show the PIC ID number under the image-how would i go about doing this?

For example:

THUMB

39847234 (pic id)

Thanks!

Joachim Müller

in include/functions.inc.php, look for // Set picture captionand modify it accordingly.

GauGau

bit bit spears

please be more specific as to what i edit it to-to make it appear under each thumbnail in an album...

bit bit spears

hey gaugau:

i know that you don't like double posting, but my old post never got solved:(

I want to show a thumbnail's pic id under it...

you told me what to edit-but i don't know what to put into it or anything, can someone just help me with the code?

Joachim Müller

post *bump* on your old posting then - will bring it back to the top of the thread list...

GauGau

bit bit spears


Joachim Müller

find$rowset[$key]['caption_text'] = $caption;and replace with$rowset[$key]['caption_text'] = $caption.$rowset[$key]['pid'];(or insert $rowset[$key]['pid'] wherever you want).

GauGau

P.S. You're missing all the fun if you don't try to find out some things on your own...
P.P.S. I merged your two postings into one...

bit bit spears

thanks-i'm sorry, it's just that i am horrible at coding, although i have found ways to get around it-thank you though, and i will try this!

bit bit spears

it works, but i want to make it to where when ever you put {PID} it will show the pic id. so i tried this in theme.php>
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2F1j.jpg&hash=4d7748329155e10a36fa72559559785e1c060551)

then i actually wrote {PID} in the html of a thumb cell like this>
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2F2j.jpg&hash=e25885b4676138f02f20bafdff58ffff27704470)
once i did that it didn't work, it showed up like this>
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2F3j.jpg&hash=14c37710bbe5b103388c187843572676f7f648a5)

(i've hilighted the pid text-i wanted it to show the pic)

How can i make it to where whenever i write {PID} it will show the pic id in the html part of the thumb cell?

Joachim Müller

omg, of course you can't have the result of a query you created on a distant planet appear on planet earth.
The coding you produced is just wishfull thinking - this will not become a lightbox feature...
Sorry, if you need a complex feature and you can't code, you'll have to hire a coder or ask on the "feature request" board for a mod with an in-detail description and hope someone will do it for you.

GauGau

bit bit spears

no no no

i just want the id to show up next to the view light box words-not coding...

bit bit spears

Quoteomg, of course you can't have the result of a query you created on a distant planet appear on planet earth.
The coding you produced is just wishfull thinking - this will not become a lightbox feature...
Sorry, if you need a complex feature and you can't code, you'll have to hire a coder or ask on the "feature request" board for a mod with an in-detail description and hope someone will do it for you.

i don't think you understand what i want to do. I want to create a {PID} tag like when you write {CAPTION} in the either theme.php or displayimage.php, it shows the image caption. How do i create my own one seperate from it-so that when ever i type {PID} it will show the pid id?

i am going to try and do some coding-then i will post back