forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on February 03, 2004, 03:24:12 am

Title: How do i print 'PIC ID' wherever i want?
Post by: bit bit spears on February 03, 2004, 03:24:12 am
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!
Title: How do i print 'PIC ID' wherever i want?
Post by: Joachim Müller on February 03, 2004, 09:05:14 am
in include/functions.inc.php, look for
Code: [Select]
// Set picture captionand modify it accordingly.

GauGau
Title: ?
Post by: bit bit spears on February 03, 2004, 02:01:22 pm
please be more specific as to what i edit it to-to make it appear under each thumbnail in an album...
Title: to gaugau-hopefully you can help-or someone who is smart
Post by: bit bit spears on February 21, 2004, 04:44:44 am
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?
Title: How do i print 'PIC ID' wherever i want?
Post by: Joachim Müller on February 21, 2004, 08:35:04 am
post *bump* on your old posting then - will bring it back to the top of the thread list...

GauGau
Title: How do i print 'PIC ID' wherever i want?
Post by: bit bit spears on February 21, 2004, 10:18:24 am
*bump*
Title: How do i print 'PIC ID' wherever i want?
Post by: Joachim Müller on February 21, 2004, 10:56:27 am
find
Code: [Select]
$rowset[$key]['caption_text'] = $caption;and replace with
Code: [Select]
$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...
Title: lol
Post by: bit bit spears on February 21, 2004, 09:10:20 pm
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!
Title: How do i print 'PIC ID' wherever i want?
Post by: bit bit spears on February 21, 2004, 09:29:30 pm
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://forum.coppermine-gallery.net/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://forum.coppermine-gallery.net/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://forum.coppermine-gallery.net/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?
Title: How do i print 'PIC ID' wherever i want?
Post by: Joachim Müller on February 22, 2004, 10:22:58 am
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
Title: How do i print 'PIC ID' wherever i want?
Post by: bit bit spears on February 22, 2004, 07:56:55 pm
no no no

i just want the id to show up next to the view light box words-not coding...
Title: How do i print 'PIC ID' wherever i want?
Post by: bit bit spears on February 24, 2004, 06:38:16 am
Quote
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.


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