Advanced search  

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

Pages: [1]   Go Down

Author Topic: Anycontent.php enhancements???  (Read 3983 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Anycontent.php enhancements???
« on: August 15, 2004, 05:16:54 am »

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
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.