Use token from one function in another function? Use token from one function in another function?
 

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

Main Menu

Use token from one function in another function?

Started by allvip, February 03, 2014, 08:08:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

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

ΑndrĂ©

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.