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

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

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)