Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Use token from one function in another function?  (Read 2760 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
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: 15764
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

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
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.039 seconds with 19 queries.