Anycontent.php enhancements??? Anycontent.php enhancements???
 

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

Anycontent.php enhancements???

Started by DefenceTalk.com, August 15, 2004, 05:16:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

It seems that "anycontent.php" is for main (index.php) page only.

There are a lot of things on my CPG's main page which I want to have appear on "inner" categories as well but they won't unless i duplicate the anycontent file. And when you have like 250+ categories its really pain in the neck.

For example say I have this:

case 'ads':
if ($cat == 0) {
include('ads.php');
}
flush();
break;

That is fine as far as main page is concerned... but if you were to include the ads in all categories (over 200 of them) you would have to create a code similar to that over 200 times plus change the case, cat, and include lines, ads.php page duplicate file over 200 times.... you get the point?

IS there an easier way to include anycontent page on all categories and maybe when in albums too?

Any look into that would be helpful.

Thank you
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)