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: Show specific category in index.php  (Read 3614 times)

0 Members and 1 Guest are viewing this topic.

starb

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Show specific category in index.php
« on: July 06, 2006, 05:42:22 pm »

Hi

I would like to show a specific category in the first page of my site (like index.php?cat=10001).
I tried this:
<?php
include("index.php?cat=10001");
?>

...in a .php file.
But it makes an error like this:

Warning: main(index.php?cat=10001): failed to open stream: No such file or directory in /home2/js2845/public_html/galerie/testing.php on line 2

Warning: main(): Failed opening 'index.php?cat=10001' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/js2845/public_html/galerie/testing.php on line 2


Is there an other way to do this in php or by the configuration page?

Thanks a lot!
« Last Edit: July 07, 2006, 01:04:08 am by Nibbler »
Logged

starb

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Show specific category in index.php
« Reply #1 on: July 06, 2006, 08:07:55 pm »

I will finally do what I wanted by another way.
Thanks
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Show specific category in index.php
« Reply #2 on: July 06, 2006, 08:33:41 pm »

Please post your solution for others
Logged
‍I don't answer to PM with support question
Please post your issue to related board

starb

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Show specific category in index.php
« Reply #3 on: July 07, 2006, 01:03:14 am »

It's simple:
In admin I go in Categories(in french) and then I create a category. Then I change the order to the top, in Operations (french version). And I just have to add some images to this category by adding different albums according to my galleries classifications.

The Result is that all my photos will be shown in the index.php, without any ?cat=10001.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show specific category in index.php
« Reply #4 on: July 07, 2006, 01:05:50 am »

 :o sorry, I didn't understand your instructions. Could you re-phrase?
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.