Fork me on GitHub






Correctif du module Extcal 2.2.2
Admin Frxoops
Inscrit: 16/03/2009 16:40
De Tende (06)
Messages: 3528
Pour ceux qui avaient le soucis avec Extcal :

This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [in db:extcal_block_minical.html line 8]: syntax error: unclosed tag {if} (opened line 5). (Smarty_Compiler.class.php, line 326)


J'ai trouvé la solution.

Il s'agissait en fait d'un problème d'accent dans le fichier :

extcal_block_minical.html

qui empêchait le chargement complet de la page et se stoppait à :

<table class="outer" style="width:100%; text-align:center; vertical-align:middle;"> <tr> <td colspan="7" style="font-weight:bold;"><a href="<{$xoops_url}>/modules/extcal/calendar-month.php?<{$block.navig.uri}>"><{$block.navig.name}></a></td> </tr> <{if $block.imageParam.displayImage}> <tr> <td colspan="7"> <script src="<{$xoops_url}>/modules/extcal/include/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript"> if (AC_FL_RunContent == 0) { alert("Cette page n


Voici donc le code complet de la page à mettre :

<table class="outer" style="width:100%; text-align:center; vertical-align:middle;">
    <
tr>
        <
td colspan="7" style="font-weight:bold;"><a href="<{$xoops_url}>/modules/extcal/calendar-month.php?<{$block.navig.uri}>"><{$block.navig.name}></a></td>
    </
tr>
    <{if 
$block.imageParam.displayImage}>
    <
tr>
        <
td colspan="7">
        <
script src="<{$xoops_url}>/modules/extcal/include/AC_RunActiveContent.js" type="text/javascript"></script>

        <script type="text/javascript">
            if (AC_FL_RunContent == 0) {
                alert("Cette page necessite le fichier AC_RunActiveContent.js.");
            } else {
                AC_FL_RunContent(
                    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                    'width', '<{$block.imageParam.frameWidth}>',
                    'height', '<{$block.imageParam.frameHeight}>',
                    'src', 'SlideShow',
                    'FlashVars', 'confFile=<{$xoops_url}>/cache/extcalSlideShowParam.xml',
                    'quality', 'high',
                    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                    'align', 'middle',
                    'play', 'true',
                    'loop', 'true',
                    'scale', 'showall',
                    'wmode', 'transparent',
                    'devicefont', 'false',
                    'id', 'SlideShow',
                    'bgcolor', '#91a67e',
                    'name', 'SlideShow',
                    'menu', 'true',
                    'allowFullScreen', 'false',
                    'allowScriptAccess','sameDomain',
                    'movie', '<{$xoops_url}>/modules/extcal/include/SlideShow',
                    'salign', ''
                    ); //end AC code
            }
        </script>
        <noscript>
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="150" height="225" id="Slideshow" align="middle">
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="false" />
                <param name="movie" value="<{$xoops_url}>/modules/extcal/include/SlideShow.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#91a67e" />
                <param name="FlashVars" value="confFile=<{$xoops_url}>/cache/extcalSlideShowParam.xml" />
                <embed src="<{$xoops_url}>/modules/extcal/include/SlideShow.swf" quality="high" bgcolor="#91a67e" width="<{$block.imageParam.frameWidth}>" height="<{$block.imageParam.frameHeight}>" name="SlideShow" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
            </object>
        </noscript>
        
        </td>
    </tr>
    <{/if}>
    <{if $block.displayLink}>
    <tr>
        <td colspan="7"><img src="<{$xoops_url}>/modules/extcal/images/addevent.gif" alt="Add event" /> <a href="<{$xoops_url}>/modules/extcal/new_event.php"><{$block.submitText}></a></td>
    </tr>
    <{/if}>
    <tr style="font-weight:bold;">
        <{foreach item=day from=$block.weekdayNames}>
        <td><{$day}></td>
        <{/foreach}>
    </tr>
    <{foreach item=weeks from=$block.tableRows}>
    <tr>
        <{foreach item=day from=$weeks.week}>
        <td<{if $day.isSelected}> style="border:1px solid #0099FF;"<{/if}>>
            <{if !$day.isEmpty}>
                <{if $day.haveEvents}>
                    <a href="<{$xoops_url}>/modules/extcal/day.php?year=<{$weeks.weekInfo.year}>&month=<{$weeks.weekInfo.month}>&day=<{$day.number}>" style="color:red; font-weight:bold;">
                <{/if}>
                <{$day.number}>
                <{if $day.isEvent}>
                    </a>
                <{/if}>
            <{else}>
                &nbsp;
            <{/if}>
        </td>
        <{/foreach}>
    </tr>
    <{/foreach}>
</table>


ou téléchargez la correction ici :

http://tootiny.net/pizhpb

Open in new window


Chez moi il fonctionne avec Xoops 2.3.3, je n'ai pas testé avec le nouveau Xoops 2.4.4

Posté le : 01/02/2010 19:43
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

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