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 to call list_albums() outside of index.php  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

ausdlk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
how to call list_albums() outside of index.php
« on: January 02, 2007, 12:02:19 am »

I have added a menu button to my modified theme named Galleries.

I want to add some code in 'themes.inc.php' like the following:

    $param = array(
        '{GALLERIES_TGT}' => "???",
        '{GALLERIES_TITLE}' => $lang_main_menu['galleries_title'],
        '{GALLERIES_LNK}' => $lang_main_menu['galleries_lnk'],
       ...

But I cannot figure out how to effectively call the list_albums() function or something similar (perhaps in functions.inc.php) so that I can move the "list albums" functionality off of the home page and into an interior page.

Or perhaps there is another way to accomplish this.

Can someone out there suggest what to do -- or better yet provide some sample code.

Dave.
« Last Edit: January 02, 2007, 06:59:07 am by GauGau »
Logged

ausdlk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: how to call list_albums() outside of index.php
« Reply #1 on: January 02, 2007, 04:39:00 am »

Not sure how to close this.

Solved matter my copying all catlist() and alblist() functions from index.php into a new php module and calling it from the menu button.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.