1
ghia
No error on template compiling
  • 2009/6/29 11:03

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


XOOPS 2.3.3 UTF-8(!) and ExtCal 2.22

Install (I think) and update show no problems for the blocks:
Quote:
Rebuilding blocks...
Block Minical updated. Block ID: 28
Template extcal_block_minical.html updated.
Template extcal_block_minical.html recompiled
Block Upcoming event updated. Block ID: 29
Template extcal_block_upcoming.html updated.
Template extcal_block_upcoming.html recompiled
Block This day event updated. Block ID: 30
Template extcal_block_day.html updated.
Template extcal_block_day.html recompiled
Block New Event updated. Block ID: 31
Template extcal_block_new.html updated.
Template extcal_block_new.html recompiled
Block Random events updated. Block ID: 32
Template extcal_block_random.html updated.
Template extcal_block_random.html recompiled

But the template /modules/extcal/templates/blocks/extcal_block_minical.html contains an accented character,
<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Ă©cessite le fichier AC_RunActiveContent.js.");
            } else {
                
AC_FL_RunContent(
... 
snipped ...
which makes that the copy of the template in the DB gets truncated.
<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

When you clone this template set, no problem.
When you try to set this template set for use, then you get an error saying that there is no terminating if for the one started in line 5. The template set is not switched.

It seems a bug to me that this broken half template in the db is not detected during updating the module. Check the broken template with viewing db templates with admin - tools - templates - list - view (or edit if cloned) (/modules/system/admin.php?fct=tplsets&op=edittpl&id=12)

The solution is to open the template and change it with Notepad++ from format ansi to UTF-8 without BOM. After that it comes complete in the db.
Of course, it is not XOOPS fault that some rubbish in templates is used, but I don't think the result (incomplete template) should go unnoticed.


Login

Who's Online

253 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits