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: Use token from one function in another function?  (Read 1619 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Use token from one function in another function?
« on: February 03, 2014, 08:08:36 am »

I want to use {ALB_LINK_PIC} and '{ALB_LINK_TGT} from function album list in function filmstrip.

Is it possible?
Any sugestions how to do that?

I want to do an albums fimstrip on displayimage.php
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15757
Re: Use token from one function in another function?
« Reply #1 on: February 03, 2014, 04:13:10 pm »

Tokens are just plain text placeholders which will be replaced later by more complex code. If you follow the code backwards you'll see that the tokens are replaced inside the function theme_display_album_list respectibely theme_display_album_list_cat, which get their important data from index.php's functions list_albums respectively list_cat_albums.

However, as you said you want to create a filmstrip with album thumbnails, it's probably easier to get the data directly from the database.
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Use token from one function in another function?
« Reply #2 on: February 03, 2014, 04:22:07 pm »

Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.