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: How do i print 'PIC ID' wherever i want?  (Read 4255 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
How do i print 'PIC ID' wherever i want?
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do i print 'PIC ID' wherever i want?
« Reply #1 on: February 03, 2004, 09:05:14 am »

in include/functions.inc.php, look for
Code: [Select]
// Set picture captionand modify it accordingly.

GauGau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
?
« Reply #2 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...
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
to gaugau-hopefully you can help-or someone who is smart
« Reply #3 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do i print 'PIC ID' wherever i want?
« Reply #4 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
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
How do i print 'PIC ID' wherever i want?
« Reply #5 on: February 21, 2004, 10:18:24 am »

*bump*
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do i print 'PIC ID' wherever i want?
« Reply #6 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...
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
lol
« Reply #7 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!
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
How do i print 'PIC ID' wherever i want?
« Reply #8 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>
(http://tangiblebrit.com/1j.jpg)

then i actually wrote {PID} in the html of a thumb cell like this>
(http://tangiblebrit.com/2j.jpg)
once i did that it didn't work, it showed up like this>
(http://tangiblebrit.com/3j.jpg)

(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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How do i print 'PIC ID' wherever i want?
« Reply #9 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
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
How do i print 'PIC ID' wherever i want?
« Reply #10 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...
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
How do i print 'PIC ID' wherever i want?
« Reply #11 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
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.