Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Montrer catégorie dans index.php  (Read 3164 times)

0 Members and 1 Guest are viewing this topic.

starb

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Montrer catégorie dans index.php
« on: July 06, 2006, 05:48:38 pm »

Salut,

Je suis un débutant en php, mais je voudrais savoir s'il y a un moyen pour afficher une catégorie spécifique dans la première page qui s'ouvre au tout début. J'ai pensé faire une page .php dans ce genre pour tester:

<?php
include("index.php?cat=10001");
?>


Mais ça me faisais cette erreur:
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


Y a-t'il une manière de faire afficher une certaine catégorie (une galerie spécifique) dans l'index au tout début avec php ou une config dans l'admin?

Que faire?

Merci!
« Last Edit: July 10, 2006, 10:03:55 am by PYAP »
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9096
  • aka Frantz
    • Ma galerie
Re: Montrer catégorie dans index.php
« Reply #1 on: July 06, 2006, 05:55:03 pm »

Bonjour,

si votre site à une page d'acceuil autre que coppermine, le lien pointant vers la galerie pourrait être du genre
http://www.monsite/moncoppermine/index.php?cat=1001
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

starb

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Montrer catégorie dans index.php
« Reply #2 on: July 07, 2006, 01:05:00 am »

Merci bcp pour l'idée!
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.