A big fault showing a little table

A big fault showing a little table

by luciano biondo -
Number of replies: 4
Moodle 1.9.7. Module lesson.

I add a question page - multiple choice.

in "Response 1" I set "use editor" and I click redisplay page

I click on  <>.

I write this code (a simple table):

-------------

<div align="center">
  <table cellspacing="2" cellpadding="0" bordercolor="#666600" border="4" bgcolor="#ffffff" class="tinyText"> <tbody>
    <tr height="22" bgcolor="#ffff99">
      <td width="20"><br />
      </td>
      <td width="230">AAAAAA
      </td>
      <td width="230">BBBBBB
      </td>
      <td width="130">CCCCCC
      </td>
    </tr>
    <tr height="40" bgcolor="#ffcc66">
      <td align="center">1
      </td>
      <td>xxxxxx
      </td>
      <td><br />
      </td>
      <td><br />
      </td>
    </tr>
    <tr height="40" bgcolor="#ffcc66">
      <td align="center">1
      </td>
      <td>yyyyyy.
      </td>
      <td><br />
      </td>
      <td><br />
      </td>
    </tr> </tbody>
  </table> </div>

---------

I click on <>
I see my table regularly.
I save the page.
I look at the lesson / "edit" / expanded.
My table has changed.
I look at browser / page source
The code has changed. Now it is (www.unipocle.org is my website):

---------


<div align="center"><table cellspacing="2" cellpadding="0" bordercolor="#666600" border="4" bgcolor="#ffffff" class="tinyText"><tbody><tr height="22" bgcolor="#ffff99"><td width="20"><br /></td><td width="230">AAAAAA<br />
      </td><td width="230">BBBBBB<br />
      </td><td width="130">CCCCCC<br />
      </td><%<a class="resource autolink" title="10" href="http://www.unipocle.org/mod/resource/view.php?r=19" >10</a>-%-16%><tr height="40" bgcolor="#ffcc66"><td align="center">1<br />
      </td><td>xxxxxx<br />
      </td><td><br /></td><td><br /></td><%<a class="resource autolink" title="10" href="http://www.unipocle.org/mod/resource/view.php?r=19" >10</a>-%-16%><tr height="40" bgcolor="#ffcc66"><td align="center">1<br />
      </td><td>yyyyyy.<br />
      </td><td><br /></td><td><br /></td><%<a class="resource autolink" title="10" href="http://www.unipocle.org/mod/resource/view.php?r=19" >10</a>-%-16%></tbody></table></div>



-------------

What is it happening? What I am doing wrong?

Luciano
Average of ratings: -
In reply to luciano biondo

Re: A big fault showing a little table

by luciano biondo -
If I join a new lesson activity in the course, the fault is always present.

I tried with a lesson in a different course: here everything works well.

So the problem is in the course. Of course, I can't absolutely guess what should be the problem. Anybody has any suggestion?
In reply to luciano biondo

Re: A big fault showing a little table

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Luciano,

1. I tried your code, it works exactly as expected (see attached screenshot).

2. From the "modified code" that you get it seems probable that the problem comes from the Resource Names Auto-linking setting. Try to turn it off to see if it solves the problem. It's here:

Administration ► Modules ► Filters ► Manage filters
Resource Names Auto-linking (click on the Eye to disable it).

Joseph

Attachment image00.jpg
In reply to Joseph Rézeau

Re: A big fault showing a little table

by luciano biondo -
Fine! It was really that! THANKSSSSSSS! No more need to copy and paste all the pages of 21 long lessons!

By the way... what that "silly" smile filter should do?

Luciano