coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: altenae on November 27, 2011, 04:11:00 PM

Title: Switchable metalbum most viewed
Post by: altenae on November 27, 2011, 04:11:00 PM
Hi,

I have created in the functions.inc.php the following new cases:

topnd => most viewed today
topnw => most viewed last week
topnm => most viewed last month

These new metalbums are visible on the main screen bij adding these in the config.

So right now you see al three in the main page.

What I want is to see only one (let's say topnd as default) and that you can switch to topnw or topnm.
Maybe this can be done with tabs on the mostviewed block or another solution.

I know it can be switched with commands like this:

display_thumbnails('topnd', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
etc.

But I am unable to get this working.
Anyone with a solution ?
Title: Re: Switchable metalbum most viewed
Post by: altenae on November 27, 2011, 06:42:44 PM
Here an example how I want it to be/work
Title: Re: Switchable metalbum most viewed
Post by: ΑndrĂ© on November 28, 2011, 04:06:40 PM
I assume the most easiest solution would be to remove that meta albums from "The content of the main page", and add all functionality via the anycontent.php file with your already suggested code. Then you have to embed each meta album to a div block with a unique ID. The rest should be done with some JS / CSS code.
Title: Re: Switchable metalbum most viewed
Post by: altenae on November 28, 2011, 04:09:07 PM
Oke,

For me this to much...(not enough knowledge)
Let me know if you are interested for this mod.

The functions.inc already has all the special things.

Edward
Title: Re: Switchable metalbum most viewed
Post by: altenae on December 02, 2011, 11:06:56 PM
Thanks Andre...Works super....