news.tpl [Réglé]
insertion des echo flux
Support des Modules
z0rglub Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre z0rglub
- Inscrit le : 24/07/2009
- Site internet
Je souhaite insérer uniquement des flux scindés sur la page des news car si l'insertion se fait dans header ou footer.tpl, cela fait buger le design au niveau du forum.
J'ai essayé sur le header.tpl et footer.tpl et tout marche nickel mais du moment que je l'insère dans news.tpl cela ne montre plus les 10 dernier news/posts/fichiers. Pourtant ça devrai prendre les echo php, non?
Voici ce que j'insère:
Code TPL :
<div class="news_container"> <div class="news_top_l"></div> <div class="news_top_r"></div> <div class="news_top"></div> <div class="news_global"> <div class="news_middle"> <div class="news_content"> <TABLE> <TR> <TD width=333px valign=top><h5 class="sub_title"><a href="http://teamdaf.verygames.net/phpboost/syndication.php?m=news&cat=0"><img src="/phpboost/templates/FFXIII_Versus/images/rss.png" alt="" style="vertical-align: middle;"></a> Flux News</h5><br> <?php echo Feed::get_parsed('news', DEFAULT_FEED_NAME, 0, false, 10); ?><br><div style="text-align: center;"><a href="http://teamdaf.verygames.net/phpboost/news/news.php" class="small_link">Plus de news...</a></div></TD> <TD width=333px valign=top><h5 class="sub_title"><a href="http://teamdaf.verygames.net/phpboost/syndication.php?m=forum&cat=0"><img src="/phpboost/templates/FFXIII_Versus/images/rss.png" alt="" style="vertical-align: middle;"></a> Flux Forum</h5><br> <?php echo Feed::get_parsed('forum', DEFAULT_FEED_NAME, 0, false, 10); ?><br><div style="text-align: center;"><a href="http://teamdaf.verygames.net/phpboost/forum/index.php" class="small_link">Plus de sujets...</a></div></TD> <TD width=333px valign=top><h5 class="sub_title"><a href="http://teamdaf.verygames.net/phpboost/syndication.php?m=download&cat=0"><img src="/phpboost/templates/FFXIII_Versus/images/rss.png" alt="" style="vertical-align: middle;"></a> Flux Ressources</h5><br> <?php echo Feed::get_parsed('download', DEFAULT_FEED_NAME, 0, false, 10); ?><br><div style="text-align: center;"><a href="http://teamdaf.verygames.net/phpboost/download/download.php" class="small_link">Plus de fichiers...</a></div></TD> </TR> </TABLE> </div> </div> </div> <div class="news_bottom_l"></div> <div class="news_bottom_r"></div> <div class="news_bottom"></div> </div>
si vous pouviez m'orienter
Édité par z0rglub Le 22/09/2009 à 16h27
Visiteur
Boosteur Inactif

Code TPL :
<TD width=333px valign=top><h5 class="sub_title"><a href="http://teamdaf.verygames.net/phpboost/syndication.php?m=news&cat=0"><img src="/phpboost/templates/FFXIII_Versus/images/rss.png" alt="" style="vertical-align: middle;"></a> Flux News</h5><br> <?php echo Feed::get_parsed('news', DEFAULT_FEED_NAME, 0, false, 10); ?>
essai de voir pour les " et la ligne complete de php
Code TPL :
horn Membre non connecté
-
Modérateur
- Voir le profil du membre horn
- Inscrit le : 31/12/2007
- Site internet
- Groupes :
-
Equipe Historique
Par contre, tu dois rajouter
import('content/syndication/feed');(de tête, ça doit être ça) avant ton tout premier appel à
Feed::get_parsed()sinon, t'auras une jolie petite erreur
Soyez polis, pas de langage SMS et soignez votre orthographe, merci.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
