boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Affichage d'une seul categorie sur index

 
Post new topic   Reply to topic    boardom Forum Index -> Aide en français
View previous topic :: View next topic  
Author Message
Juan



Joined: 30 Oct 2003
Posts: 5

PostPosted: Thu Oct 30, 2003 11:59 pm    Post subject: Affichage d'une seul categorie sur index Reply with quote

Bonjour, comme le dit le titre, jai chercher pour mettre une seule catégorie dans l'index. Je veux que les visiteurs tombe directement dans une catégorie et que les autres soient qu'accessoire.

J'ai essayer les redirections etc... ya pas quelque chose de plus simple qui me fasse pas planter .

merci
Back to top
View user's profile Send private message Visit poster's website
moose



Joined: 04 May 2003
Posts: 196
Location: Winnipeg Canada

PostPosted: Fri Oct 31, 2003 12:41 am    Post subject: Reply with quote

je croix que tu peut juste inclu:

Code:
$cat = #;


dans ton index.php, avant l'inclu de blog.header.php

essayez ca Smile
Back to top
View user's profile Send private message Visit poster's website
Juan



Joined: 30 Oct 2003
Posts: 5

PostPosted: Fri Oct 31, 2003 1:37 am    Post subject: Reply with quote

ca marche bien mais les autres catégories ne s'affichent pas si on clic dessus ca reste sur la premiere catégorie
Back to top
View user's profile Send private message Visit poster's website
archiguy



Joined: 05 Mar 2003
Posts: 47

PostPosted: Fri Oct 31, 2003 3:17 pm    Post subject: Reply with quote

pensez a donner des liens vers vos site sinon on ne peux pas voir ce qui cloche... (et dans mon cas, je n'ai pas le temps d'essayer sur mon blog)
_________________
Archiguy
http://www.archiguy.com
Mais qu'est ce qu'il m'arrive?
Back to top
View user's profile Send private message Visit poster's website
Juan



Joined: 30 Oct 2003
Posts: 5

PostPosted: Fri Oct 31, 2003 6:09 pm    Post subject: Reply with quote

voila ya mon WWW maintenant.

le code de mon index.php donc la premiere ligne :

Code:
<?php /*  Don't remove this line, it calls the b2 function files ! */ $cat=1; $blog=1; include ("blog.header.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Back to top
View user's profile Send private message Visit poster's website
Juan



Joined: 30 Oct 2003
Posts: 5

PostPosted: Mon Nov 03, 2003 9:34 pm    Post subject: Reply with quote

un pti up
Back to top
View user's profile Send private message Visit poster's website
archiguy



Joined: 05 Mar 2003
Posts: 47

PostPosted: Wed Nov 05, 2003 12:36 pm    Post subject: Reply with quote

Code:

if (!$cat)$cat=1;

au lieu de $cat=1;
_________________
Archiguy
http://www.archiguy.com
Mais qu'est ce qu'il m'arrive?
Back to top
View user's profile Send private message Visit poster's website
Juan



Joined: 30 Oct 2003
Posts: 5

PostPosted: Wed Nov 05, 2003 8:32 pm    Post subject: Reply with quote

Merci beaucoup, d'un coup ca marche nickel Smile
Back to top
View user's profile Send private message Visit poster's website
archiguy



Joined: 05 Mar 2003
Posts: 47

PostPosted: Mon Dec 01, 2003 5:03 pm    Post subject: Reply with quote

correction d'une erreur, qui empeche de mettre des commentaires sur les post qui ne sont pas dans la categorie principale (1 dans mon exemple)
Code:

if (!$cat && !$p)$cat=1;

toujours a mettre avant include blog.header.php
_________________
Archiguy
http://www.archiguy.com
Mais qu'est ce qu'il m'arrive?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Aide en français All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group