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: Control Meta-Album Blocks  (Read 24052 times)

0 Members and 1 Guest are viewing this topic.

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Control Meta-Album Blocks
« on: October 05, 2006, 12:23:42 am »

This plugin is called "control meta-album blocks" but all it does right now is control the 'lastup' meta-album block and it only stops its display on the index page.  So put 'lastup' on your "content of the main page", and it will show up on sub-category pages, but it won't show up on the main index page (which has a category of "0").

You can modify codebase.php as desired to control other meta-album blocks and add other logic.  Submit contributions on this thread so they can be added to this currently very, very simple plugin.

If you want to remove certain albums from the meta-albums, use the Unwanted_Metas Plugin.
Logged

tutone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Re: Control Meta-Album Blocks
« Reply #1 on: October 09, 2006, 08:36:19 pm »

Great plugin. Thanks for your work.

I added the following to remove the random block and the lastup and kept the other code the same:

if (($matches[1] == 'random') && ($cat == 0)) { return ''; }

I am sure there is an easier way. But it worked.
Logged

Rallemann

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Control Meta-Album Blocks
« Reply #2 on: March 05, 2007, 10:01:54 pm »

Thanks for this plugin.
Can I modify the source so that the random pics and the last albums are shown in the category 0 but not in the several categories?
Sorry, I don't know how to manage...

ralf
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.