I just tried a clean install without seeing it ... are you sure you have a clean copy of the code? Try downloading a fresh nightly (or use CVS).
Martin Dougiamas
Posts made by Martin Dougiamas
It's a good thought ... it might be overkill to actually use Smarty right now but we could still use the basic syntax already and integrate Smarty more easily later if needed.
Just a search and replace would do. For example, the example above in Smarty format would be:
<center>
{$field1}
<br />
<strong>{$field2}</strong>
</center>
Where {$field1} gets replaced with all the other information to identify the image and display it properly:
<img src="http://moodle.org/mod/data/image.php?id=332&name=4321.jpg" height="560" width="600" />
And {$field2} gets replaced with:
My cool picture which I took myself (from a web site I found in Google).
Just a search and replace would do. For example, the example above in Smarty format would be:
<center>
{$field1}
<br />
<strong>{$field2}</strong>
</center>
Where {$field1} gets replaced with all the other information to identify the image and display it properly:
<img src="http://moodle.org/mod/data/image.php?id=332&name=4321.jpg" height="560" width="600" />
And {$field2} gets replaced with:
My cool picture which I took myself (from a web site I found in Google).
Forgot to delete your original code after I rewrote it.
Excellent, thanks! I'll put that straight into 1.5 with a message to tell people what the problem is.