March 21, 2010, 03:27:39 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.4.26 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.4.25 or older update to this latest version as soon as possible.
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Control Meta-Album Blocks  (Read 5368 times)
0 Members and 1 Guest are viewing this topic.
Paver Topic starter
Dev Team member
****
Gender: Male
United States United States

Posts: 1606


Paul Van Rompay


« on: October 04, 2006, 11:23:42 pm »

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.

* cpg1.4_plugin_control_metas_1.0.zip (1.83 KB - downloaded 339 times.)
Logged
tutone
Coppermine regular visitor
**
Posts: 64


« Reply #1 on: October 09, 2006, 07: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
*
Posts: 40


« Reply #2 on: March 05, 2007, 09: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
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.046 seconds with 18 queries.