Fork me on GitHub




« 1 (2)


Re: News 1.67
Admin Frxoops
Inscrit: 16/03/2009 16:40
De Tende (06)
Messages: 3528
Voilà, j'ai corrigé, merci Kris !

Posté le : 24/06/2012 13:56

Open in new window

Xoopseuse Mai 2012 | Responsable équipe internationale | Recherche avancée en bas de page !
Partager Twitter Partagez cette article sur GG+
Re: News 1.67
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Si vous voulez gagner un peu de place, vous pouvez également retirer le dossier "js" de ce module (500 ko de gagné) car il ne sert plus à rien dans cette version

Posté le : 24/06/2012 16:45

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: News 1.67
Aspirant
Inscrit: 29/03/2008 14:20
Messages: 58
Bonsoir,

Pour ma part, j'ai modifié le fichier news/templates/blocks/news_block_top.html à partir de la ligne 852 car j'avais des décalages (genre poupée russe) avec les articles affichés en mode spotlight.Apparament le pb était dû à des balises <li>. J'ai créé à la place un tableau pour afficher mes articles et rajouter un lien en savoir à chaque article affiché.


<{* ************************************** Tabs creation ************************************** *}>
<
ul id="tabNavigation">
<{foreach 
item=onetab from=$block.tabs}>
    <{if 
$block.current_tab == $onetab.id}>
    <
li class="selectedTab"><a href='#'><{$onetab.title}></a></li>
    <{else}>
    <
li><a href="<{$block.url}>NewsTab=<{$onetab.id}>"><{$onetab.title}></a></li>
    <{/if}>
<{/foreach}>
    <
li class="fixTabsIE"><a href="javascript:void(0);">&nbsp;</a></li>
</
ul>

<{if 
$block.current_is_spotlight}>
    <
div style="border-top: 1px solid rgb(0, 0, 0); background: <{$block.color1}> none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><{$block.spotlight.author}> <{$block.lang_on}> <{$block.spotlight.date}> <{if $block.use_rating}> - <{$block.spotlight.rating}>/10 (<{$block.spotlight.number_votes}>)<{/if}>, <{$block.spotlight.hits}> <{$block.lang_reads}><br /></div>
<{else}>
    <
div style="border-top: 1px solid rgb(0, 0, 0); background: <{$block.color1}> none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;">
    <{foreach 
item=onesummary from=$block.smallheader}>
        <{
$onesummary}>&nbsp;
    <{/foreach}>
    <
br /></div>
<{/if}>
    <{* ************************************** 
Body of the current tab ************************************** *}>
<
div id="fullSupport">
    <{if 
$block.current_is_spotlight && $block.tabs.id==0}>
        <
table border='0'>
        <
tr>
            <
td colspan='2'>
                <
table border='0'>
                <
tr><td><img src='<{$block.spotlight.topic_image}>' border='0' alt='' /></td><td align='left'><{$block.spotlight.topic_description}></td></tr>
                </
table>
            <
div class="itemBody"><ul><li><{$block.spotlight.title_with_link}></li></ul></div></td>
        </
tr>
        <
tr>
            <
td><{$block.spotlight.image}>&nbsp;</td><td><class="note"><{$block.spotlight.text}></p></td>
        </
tr>
        </
table>
        <
br /><center><hr width='85%' /></center>
        <
ul>
            <{foreach 
item=onenews from=$block.spotlight.news}>
                <
li><{$onenews.date}> - <{$onenews.title_with_link}></li>
            <{/foreach}>
        </
ul>
    <{else}>
        <
table border='0'>
        <
tr><td><img src='<{$block.topic_image}>' border='0' alt='' /></td><td align='left'><{$block.topic_description}></td></tr>
        </
table>
        <{foreach 
item=onenews from=$block.news}>
            <
div class="itemBody"><ul><li><{$onenews.title}></li></ul><span class="itemStats">&nbsp;&nbsp;<{$onenews.author}> <{$block.lang_on}> <{$onenews.date}> - <{if $block.use_rating}> <{$onenews.rating}>/10 (<{$onenews.number_votes}>)<{/if}>, <{$onenews.hits}> <{$block.lang_reads}></span></div>
            <
class="note"><{$onenews.text}></p>
        <{/foreach}>
    <{/if}>
</
div>
<{else}>    <{* ************************************** 
Classical view ************************************** *}>
<
table>
    <{if 
$block.spotlight}>
    <
tr>
        <
td><table>
        <
tr>
            <
td colspan='2'>
                <
table border='0'>
                <
tr><td><img src='<{$block.spotlight.topic_image}>' border='0' alt='<{$block.spotlight.title}>' /></td><td align='left'><{$block.spotlight.topic_description}></td></tr>
                </
table>
                <
font color="#FF6600"><b><{$block.spotlight.title}></b></font> <{$block.spotlight.author}>
            <{if 
$block.sort=='counter'}>
                (<{
$block.spotlight.hits}>)
            <{elseif 
$block.sort=='published'}>
                (<{
$block.spotlight.date}>)
            <{else}>
                (<{
$block.spotlight.rating}>)
            <{/if}>
            </
td>
        </
tr>
        <
tr>
            <
td><{$block.spotlight.image}></td><td><{$block.spotlight.text}></td>
        </
tr>
        <
tr>
            <
td colspan='2'>
            <{if 
$block.spotlight.read_more}>
                <
hr width='98%' />
                <
div align='right'><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>"><{$block.lang_read_more}></a> &nbsp;&nbsp;&nbsp;</div>
                <
hr width='98%' />
            <{/if}>
            </
td>
        </
tr>
        </
table></td>
    </
tr>
    <{/if}>
    <
tr>
        <
td>

            <
table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
                <
tbody>
                <{foreach 
item=news from=$block.stories}>
                    <
tr>
                    <
td style="vertical-align: top;">
                        <{if 
$news.id != $block.spotlight.id}>
                            <!-- 
modification xoosp -->
                            <!-- <
li> -->
                            <
h2>
                               <
span>
                                <{if 
$block.sort=='counter'}>
                                    [<{
$news.hits}>]
                                <{elseif 
$block.sort=='published'}>
                                    <!-- [<{
$news.date}>] -->
                                <{else}>
                                    [<{
$news.rating}>]
                                <{/if}>
                                </
span>
                                <
a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><{$news.title}></a>
                            </
h2>
                            <{if 
$news.teaser}><p><{$news.teaser}></p><{/if}>
                            <!-- 
modification xoops -->
                            <!-- </
li> -->
                        <{/if}>
                        <
div align='right'><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$block.lang_read_more}></a> &nbsp;&nbsp;&nbsp;</div>
                    </
td>
                    </
tr>
                <{/foreach}>
                </
tbody>
            </
table>    

        </
td>
    </
tr>
</
table>
<{/if}>

*/


EDIT Cesag : mise sous code et non sous quote

Posté le : 24/06/2012 20:36
Partager Twitter Partagez cette article sur GG+
Re: News 1.67
Admin Frxoops
Inscrit: 16/03/2009 16:40
De Tende (06)
Messages: 3528
Merci pour l'info

Je leur parle du changement ici.

EDIT :
mtriclin,
Peux-tu nous dire avec quel thème tu as eut ce problème ?
Peux-tu nous faire une capture d'écran du bogue que tu as eut ?
Je te demande cela car Mamba souhaite mieux cibler ton problème et peut-être le résoudre autrement que d'utiliser des tables.

Posté le : 24/06/2012 20:51

Open in new window

Xoopseuse Mai 2012 | Responsable équipe internationale | Recherche avancée en bas de page !
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 (2)



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

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