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: Display Extra fields  (Read 3254 times)

0 Members and 1 Guest are viewing this topic.

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Display Extra fields
« on: November 20, 2004, 11:06:27 am »

Quick Question,
     In the config, I've created a second field called New_Field. Currently, it displays the information contained in New_Field under "Picture Information" in the Intermediate view. I would like to be able to display the contents of New_Field directly under the image right below the {Title}. Can I get some assistence in extracting the contents of New_Field from the database and displaying it? I've determined where the code needs to go, I just can't seem to figure out what the code is. Any help would be appreciated..

--OmegaGOD
« Last Edit: December 01, 2004, 11:45:56 am by GauGau »
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display Extra fields
« Reply #1 on: November 21, 2004, 07:12:14 am »

You can use the var $CURRENT_PIC_DATA['user1']

Joachim
Logged

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: Display Extra fields
« Reply #2 on: November 24, 2004, 10:35:29 am »

Thanks GauGau! :-)
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: Display Extra fields
« Reply #3 on: December 04, 2004, 10:22:16 am »

Thank Gau Gau for the variable. Quick question. I tried to place that variable in the theme.php file under $template_display_picture. I then realized that all the text contained within that block was being assigned to $template_display_picture. Is there a way I can dereference the contents of $CURRENT_PIC_DATA['user1'] into block of text under $template_display_picture.

Basically I've created a second field in the config called "Add to Cart" and I've populated the fields with URL links... I'd like these links to appear directly below the intermediate images. In short. I'd like contents of an extra field defined in the config section to be placed directly under the intermediate image.

Any help would be appreciated.

Thanks
--OmegaGOD
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: Display Extra fields
« Reply #4 on: December 04, 2004, 11:00:41 pm »

YES! I figured it out :-) Thanks again.

--OmegaGOD
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.