Fork me on GitHub






Le module planet
Newbie
Inscrit: 27/11/2003 17:16
Messages: 2
Salut à tous!
Je teste la Version 2.0.18 fr en local. Je peine à adapter le module Planet "xoops2-mod_planet_2.02fr" à mon goût. Je m´explique:j´ai utilisé ce module pour intégrer un flux RSS d´informations de Yahoo. Mais voilà que je ne sais comment me débarrasser des options au bas des articles
1. Accueil | Blogs | Blog Toolkit| PDF| Bookmark | Print
WordPress | Forum RSS | RDF | ATOM et ne garder que "poster un commentaire", à la limite "imprimer l´article".

2. J´ai beau bidouiller, l´option sur Yahoo "lire la suite..." est inexistante.
Quand je clique sur le hyperlink d´un article, je n´ai pas les infos en entier mais juste comme en page d´accueil.
Je vous serai reconnaissant de m´aider. :-o

Posté le : 12/12/2008 06:41
Partager Twitter Partagez cette article sur GG+
Re: Le module planet
Guest_
b'jour,

Si le module dispose d'un répertoire /templates regardes le fichier planet_index.html.

Dans la version 2.0.2 (ici), tu as ces lignes qui semblent correspondre :
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>rss/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_RSS")<{/php}></a>
| <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>rdf/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_RDF")<{/php}></a>
| <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>atom/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_ATOM")<{/php}></a>
<
br /><a href="http://xoopsforge.com" target="_blank" title="Powered by Xoops Planet v<{$version}>"><img src="<{$xoops_url}>/modules/planet/images/planet.png" alt="Powered by Xoops Planet v<{$version}>" title="Powered by Xoops Planet v<{$version}>" /></a>



S'agissant du lien qui ne fonctionne pas, actives le mode Debug. As-tu le Framework qui va avec le module ? Quelle est ta version de Xoops ?

Posté le : 12/12/2008 10:11
Partager Twitter Partagez cette article sur GG+
Re: Le module planet
Newbie
Inscrit: 27/11/2003 17:16
Messages: 2
Citation :

Burning a écrit:
b'jour,

Si le module dispose d'un répertoire /templates regardes le fichier planet_index.html.

Dans la version 2.0.2 (ici), tu as ces lignes qui semblent correspondre :
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>rss/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_RSS")<{/php}></a>
| <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>rdf/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_RDF")<{/php}></a>
| <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/xml.php<{$smarty.const.URL_DELIMITER}>atom/c<{$category.id}>/u<{$user.uid}>/b<{$blog.id}>" target="api"><{php}>echo planet_constant("MD_ATOM")<{/php}></a>
<
br /><a href="http://xoopsforge.com" target="_blank" title="Powered by Xoops Planet v<{$version}>"><img src="<{$xoops_url}>/modules/planet/images/planet.png" alt="Powered by Xoops Planet v<{$version}>" title="Powered by Xoops Planet v<{$version}>" /></a>



S'agissant du lien qui ne fonctionne pas, actives le mode Debug. As-tu le Framework qui va avec le module ? Quelle est ta version de Xoops ?

Salut Burning,
j´ai la version 2.0.18 fr et j´ai aussi installé frameworks.
Dans le répertoire/templates le seul fichier qui corresponde à index s´appelle: default-exnews^%%1D^1D2^1D2792A6%%db%3Aplanet_index.html. Dont, d´ailleurs, voici le contenu:
<?php /* Smarty version 2.6.18, created on 2008-12-10 02:37:18
compiled from db:planet_index.html */ ?>
<!-- phppp (D.J.): http://xoopsforge.com; http://xoops.org.cn -->
<div id="top"></div>
<div class="itemHead">
<h2>
<span class="itemTitle">
<?php if ($this->_tpl_vars['category']): ?>
<?php echo planet_constant("MD_CATEGORY") ?>: <?php echo $this->_tpl_vars['category']['title']; ?>

<?php elseif ($this->_tpl_vars['user']): ?>
<?php echo planet_constant("MD_BOOKMARKS") ?>: <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/userinfo.php?uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
"><?php echo $this->_tpl_vars['user']['name']; ?>
</a> (<?php echo $this->_tpl_vars['user']['marks']; ?>
)
<?php elseif ($this->_tpl_vars['blog']): ?>
<?php echo planet_constant("MD_BLOG") ?>: <?php echo $this->_tpl_vars['blog']['title']; ?>

<?php else: ?>
<?php echo $this->_tpl_vars['pagetitle']; ?>

<?php endif; ?>
</span>
</h2>
</div>

<?php if ($this->_tpl_vars['blog']): ?>
<div class="itemInfo">
<?php if ($this->_tpl_vars['blog']['image']): ?><div class="image"><img src="<?php echo $this->_tpl_vars['blog']['image']; ?>
"></div><?php endif; ?>
<?php if ($this->_tpl_vars['blog']['desc']): ?><?php echo $this->_tpl_vars['blog']['desc']; ?>
| <?php endif; ?>
<a href="<?php echo $this->_tpl_vars['blog']['link']; ?>
" target="_blank"><?php echo planet_constant("MD_URL") ?></a> |
<a href="<?php echo $this->_tpl_vars['blog']['feed']; ?>
" target="_blank"><?php echo planet_constant("MD_FEED") ?></a>
<?php if ($this->_tpl_vars['user_level'] > 1): ?>| <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/action.blog.php?blog=<?php echo $this->_tpl_vars['blog']['id']; ?>
"><?php echo @_EDIT; ?>
</a><?php endif; ?>
<br />
<?php echo planet_constant("MD_LASTUPDATE") ?>: <?php echo $this->_tpl_vars['blog']['time']; ?>

(<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/update.php?blog=<?php echo $this->_tpl_vars['blog']['id']; ?>
"><?php echo planet_constant("MD_UPDATE") ?></a>)
<br />
<?php if ($this->_tpl_vars['blog']['marks'] || $this->_tpl_vars['user_level'] > 0): ?>
<?php echo planet_constant("MD_BOOKMARKS") ?>: <?php echo $this->_tpl_vars['blog']['marks']; ?>
<?php if ($this->_tpl_vars['user_level'] > 0): ?>( <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/action.bookmark.php?blog=<?php echo $this->_tpl_vars['blog']['id']; ?>
"><?php echo planet_constant("MD_BOOKMARK") ?></a> )<?php endif; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['blog']['rates'] || $this->_tpl_vars['canrate']): ?>
| <?php echo planet_constant("MD_RATE") ?>:
<?php if ($this->_tpl_vars['blog']['rates']): ?>
<?php echo $this->_tpl_vars['blog']['star']; ?>
/<?php echo $this->_tpl_vars['blog']['rates']; ?>

<?php endif; ?>
<?php if ($this->_tpl_vars['canrate']): ?> (
<?php unset($this->_sections['rate']);
$this->_sections['rate']['name'] = 'rate';
$this->_sections['rate']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['rate']['max'] = (int)5;
$this->_sections['rate']['step'] = ((int)-1) == 0 ? 1 : (int)-1;
$this->_sections['rate']['show'] = true;
if ($this->_sections['rate']['max'] < 0)
$this->_sections['rate']['max'] = $this->_sections['rate']['loop'];
$this->_sections['rate']['start'] = $this->_sections['rate']['step'] > 0 ? 0 : $this->_sections['rate']['loop']-1;
if ($this->_sections['rate']['show']) {
$this->_sections['rate']['total'] = min(ceil(($this->_sections['rate']['step'] > 0 ? $this->_sections['rate']['loop'] - $this->_sections['rate']['start'] : $this->_sections['rate']['start']+1)/abs($this->_sections['rate']['step'])), $this->_sections['rate']['max']);
if ($this->_sections['rate']['total'] == 0)
$this->_sections['rate']['show'] = false;
} else
$this->_sections['rate']['total'] = 0;
if ($this->_sections['rate']['show']):

for ($this->_sections['rate']['index'] = $this->_sections['rate']['start'], $this->_sections['rate']['iteration'] = 1;
$this->_sections['rate']['iteration'] <= $this->_sections['rate']['total'];
$this->_sections['rate']['index'] += $this->_sections['rate']['step'], $this->_sections['rate']['iteration']++):
$this->_sections['rate']['rownum'] = $this->_sections['rate']['iteration'];
$this->_sections['rate']['index_prev'] = $this->_sections['rate']['index'] - $this->_sections['rate']['step'];
$this->_sections['rate']['index_next'] = $this->_sections['rate']['index'] + $this->_sections['rate']['step'];
$this->_sections['rate']['first'] = ($this->_sections['rate']['iteration'] == 1);
$this->_sections['rate']['last'] = ($this->_sections['rate']['iteration'] == $this->_sections['rate']['total']);
?>
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/action.rate.php?blog=<?php echo $this->_tpl_vars['blog']['id']; ?>
&rate=<?php echo $this->_sections['rate']['index']; ?>
"><?php echo $this->_sections['rate']['index']; ?>
</a>
<?php endfor; endif; ?>
)<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>

<br style="clear:both" />

<?php $_from = $this->_tpl_vars['articles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['article']):
?>
<div class="itemHead">
<span class="itemTitle">
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/view.article.php<?php echo @URL_DELIMITER; ?>
<?php echo $this->_tpl_vars['article']['id']; ?>
/b<?php echo $this->_tpl_vars['blog']['id']; ?>
" title="<?php echo $this->_tpl_vars['article']['title']; ?>
"><?php echo $this->_tpl_vars['article']['title']; ?>
</a>
</span>
</div>

<?php if ($this->_tpl_vars['is_list'] == 0): ?>
<div class="itemInfo">
<?php if ($this->_tpl_vars['article']['author']): ?><span class="itemPoster"><?php echo $this->_tpl_vars['article']['author']; ?>
</span> | <?php endif; ?>
<span class="itemPostDate"><?php echo $this->_tpl_vars['article']['time']; ?>
</span>
<?php if ($this->_tpl_vars['article']['views']): ?> | <?php echo $this->_tpl_vars['article']['views']; ?>
<?php echo @_READS; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['article']['rates']): ?> | <?php echo $this->_tpl_vars['article']['star']; ?>
/<?php echo $this->_tpl_vars['article']['rates']; ?>
<?php endif; ?>
</div>

<?php if ($this->_tpl_vars['article']['content']): ?>
<div class="itemBody"><p class="itemText"><?php echo $this->_tpl_vars['article']['content']; ?>
</p></div>
<?php endif; ?>

<div class="itemFoot">
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/index.php<?php echo @URL_DELIMITER; ?>
b<?php echo $this->_tpl_vars['article']['blog']['id']; ?>
" title="<?php echo $this->_tpl_vars['article']['blog']['title']; ?>
"><?php echo $this->_tpl_vars['article']['blog']['title']; ?>
</a> |
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/view.article.php<?php echo @URL_DELIMITER; ?>
<?php echo $this->_tpl_vars['article']['id']; ?>
#comments" title="<?php echo planet_constant("MD_COMMENTS") ?>"><?php echo planet_constant("MD_COMMENTS") ?> (<?php echo $this->_tpl_vars['article']['comments']; ?>
)</a> |
<a href="#top" title="Top">T</a> : <a href="#page_footer" title="Bottom">B</a>
</div>

<br style="clear:both" />

<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>

<?php if ($this->_tpl_vars['pagenav']): ?>
<div id="pagenav">
<?php echo $this->_tpl_vars['pagenav']; ?>

</div>
<br style="clear:both" />
<?php endif; ?>

<div id="page_footer">
<div style="text-align: left; float: left;">
<?php echo planet_constant("MD_SORT") ?>: <?php echo $this->_tpl_vars['link_sort']; ?>

<br />
<?php echo $this->_tpl_vars['link_switch']; ?>
|
<?php echo $this->_tpl_vars['link_blogs']; ?>

<?php if ($this->_tpl_vars['link_index']): ?> | <?php echo $this->_tpl_vars['link_index']; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['link_bookmark']): ?> | <?php echo $this->_tpl_vars['link_bookmark']; ?>
<?php endif; ?>
</div>
<div style="text-align: right; float: right;">
<?php if ($this->_tpl_vars['link_submit']): ?><?php echo $this->_tpl_vars['link_submit']; ?>
<br /><?php endif; ?>
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/xml.php<?php echo @URL_DELIMITER; ?>
rss/c<?php echo $this->_tpl_vars['category']['id']; ?>
/u<?php echo $this->_tpl_vars['user']['uid']; ?>
/b<?php echo $this->_tpl_vars['blog']['id']; ?>
" target="api"><?php echo planet_constant("MD_RSS") ?></a>
| <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/xml.php<?php echo @URL_DELIMITER; ?>
rdf/c<?php echo $this->_tpl_vars['category']['id']; ?>
/u<?php echo $this->_tpl_vars['user']['uid']; ?>
/b<?php echo $this->_tpl_vars['blog']['id']; ?>
" target="api"><?php echo planet_constant("MD_RDF") ?></a>
| <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/xml.php<?php echo @URL_DELIMITER; ?>
atom/c<?php echo $this->_tpl_vars['category']['id']; ?>
/u<?php echo $this->_tpl_vars['user']['uid']; ?>
/b<?php echo $this->_tpl_vars['blog']['id']; ?>
" target="api"><?php echo planet_constant("MD_ATOM") ?></a>
<br /><a href="http://xoopsforge.com" target="_blank" title="Powered by Xoops Planet v<?php echo $this->_tpl_vars['version']; ?>
"><img src="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/planet/images/planet.png" alt="Powered by Xoops Planet v<?php echo $this->_tpl_vars['version']; ?>
" title="Powered by Xoops Planet v<?php echo $this->_tpl_vars['version']; ?>
" /></a>
</div>
</div>
<br style="clear:both" />

<?php if ($this->_tpl_vars['xoops_notification']): ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_notification_select.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php endif; ?>

<?php if ($this->_tpl_vars['do_pseudocron']): ?>
<img src="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['xoops_dirname']; ?>
/update.php" alt="" width="1px" height="1px" />
<?php endif; ?>
Peux-tu me dire où se trouvent les lignes à supprimer et surtout comment?
Big up!

Posté le : 12/12/2008 17:25
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

141 Personne(s) en ligne (127 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 141 | Plus ...