Switchable metalbum most viewed Switchable metalbum most viewed
 

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]

Main Menu

Switchable metalbum most viewed

Started by altenae, November 27, 2011, 04:11:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

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 ?

altenae

Here an example how I want it to be/work

ΑndrĂ©

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.

altenae

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

altenae