PEAK XOOPS - <{$block.items[i].content:encoded}> Throwing error in englishin japanese

<{$block.items[i].content:encoded}> Throwing error

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/11/4 4:40
Nobelium  ¸àĹ   Posts: 47


I've upgraded from 3.02 (xoops version 2.2.4) to 3.07 (xoops version 2.0.15) - but the templates from 3.02 are not working with 3.07 - in particular the content:encoded tag is crashing Smarty_Compiler - see below.

----------------------
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:xhld_block_mixed.html line 8]: syntax error: unrecognized tag: $block.items[i].content:encoded (Smarty_Compiler.class.php, line 436)
---------------------------

I'm trying to use this template (works on 3.02):

<script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script>
<ul>
<{section name=i loop=$block.items max=$block.maxitem}>
<{if $block.items[i].title != ""}>
<li>
<a href="<{$block.items[i].link}>" target="_blank"><{$block.items[i].title}></a>
<br>
<{$block.items[i].content:encoded}></a>
</li>
<{/if}>
<{/section}>
</ul>

Any way around this? This template shows only title and the encoded content of the RSS - very useful.

Thanks.
Votes:13 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/11/4 5:54
GIJOE  ÀèǤ·³Áâ   Posts: 4110
You can access "content:encoded" field by "content".
Votes:7 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/11/18 4:54
Nobelium  ¸àĹ   Posts: 47
Thanks for the reply, but nope. Doesn't work.

Here's what I'm using for MIXED Template:

<script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script>
<ul>
<{section name=i loop=$block.items max=$block.maxitem}>
  <{if $block.items[i].title != ""}>
  <li>
    <a href="<{$block.items[i].link}>" target="_blank"><{$block.items[i].title}></a>
    <br> 
    <{$block.items[i].content}></a>    
  </li>
  <{/if}>
<{/section}>
</ul>


Here's the RSS that I'm pulling:


	<item>
		<title>Reincarnation - Trailer</title>
		<link>http://www.apple.com/trailers/independent/reincarnation/trailer/</link>
		<description>From the director of &amp;#x201C;The Grudge&amp;#x201D; comes Reincarnation. A grisly murder, an
ill-fated film, and a young actress are joined in this suspenseful, psychological horror in the tradition of The Shining.</description>

		<pubDate>Thu, 16 Nov 2006 00:00:00 PST</pubDate>
<content:encoded><![CDATA[<table><tr valign="top"><td width="67"><a href="http://www.apple.com/trailers/independent/reincarnation/trailer/"><img src="http://images.apple.com/moviesxml/s/independent/posters/reincarnation_m200611151625.jpg" width="65" height="97" border="0"></a></td><td> &nbsp; </td><td><a href="http://www.apple.com/trailers/independent/reincarnation/trailer/"><span style="font-size: 16px; font-weight: 900; text-decoration: underline;">Reincarnation - Trailer</span></a><br /><span style="font-size: 12px;">From the director of &#x201C;The Grudge&#x201D; comes Reincarnation. A grisly murder, an
ill-fated film, and a young actress are joined in this suspenseful, psychological horror in the tradition of The Shining.<br /><b>Directed by:</b> Takashi Shimizu<br /><b>Starring:</b> Yuka, Karina, Kippei Shiina</span></td></tr></table>]]></content:encoded>
	</item>

Using CONTENT only pulls nothing from the <content:encoded> field.

Maybe another name for it?

Thanks
Votes:5 Average:2.00
Previous post - Next post | Parent - No child | Posted on 2006/11/21 5:01
GIJOE  ÀèǤ·³Áâ   Posts: 4110
mixed block?

xhld does not assign content field into mixed block.
If you want it, insert a line for assigning into 165 of blocks/headline.php

Of course, I don't know the hack can achive that or not.
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!