FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Memberlist ?????Register ?????Profile? ????Log in
?How can I truncate the itemDescription? View next topic
View previous topic
Post new topicReply to topic
Author Message
danicasati



Joined: 22 Feb 2006
Posts: 5

PostPosted: Wed Feb 22, 2006 10:38 am Reply with quoteBack to top

Hello.
What can I edit into html2rss.php in order to limit characters into program description string?
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 653

PostPosted: Wed Feb 22, 2006 11:39 am Reply with quoteBack to top

danicasati wrote:
Hello.
What can I edit into html2rss.php in order to limit characters into program description string?


Yes you can. This post is one of many talking about how to do that, http://www.feedforall.com/forum/viewtopic.php?t=1033

Jim
View user's profileSend private messageVisit poster's website
danicasati



Joined: 22 Feb 2006
Posts: 5

PostPosted: Wed Feb 22, 2006 4:40 pm Reply with quoteBack to top

But this topic talks about truncate the TITLE of the feed.
Please, send us detailed instructions about truncate the DESCRIPTION item!
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 653

PostPosted: Wed Feb 22, 2006 4:46 pm Reply with quoteBack to top

danicasati wrote:
But this topic talks about truncate the TITLE of the feed.
Please, send us detailed instructions about truncate the DESCRIPTION item!


Just change the references to the right variables.

Jim
View user's profileSend private messageVisit poster's website
danicasati



Joined: 22 Feb 2006
Posts: 5

PostPosted: Wed Feb 22, 2006 5:16 pm Reply with quoteBack to top

I'm sorry, but could you post a more detailed instructions for newbies?

For exemple, in which line I must add the function limit_text( $text, $limit ) ?

Which lines I must replace with:
Code:
$item = str_replace("~~~ItemDescription~~~", limit_text($rss_parser->ItemDescription[$x], 45), $block1);


I have found 4 or 5 lines with
Code:
$item = str_replace("~~~ItemDescription~~~", $rss_parser->ItemDescription[$x], $item);

and I don't know which lines I have to change.

Thank you in advance.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 653

PostPosted: Wed Feb 22, 2006 5:20 pm Reply with quoteBack to top

danicasati wrote:
I'm sorry, but could you post a more detailed instructions for newbies?

For exemple, in which line I must add the function limit_text( $text, $limit ) ?

Which lines I must replace with:
Code:
$item = str_replace("~~~ItemDescription~~~", limit_text($rss_parser->ItemDescription[$x], 45), $block1);


I have found 4 or 5 lines with
Code:
$item = str_replace("~~~ItemDescription~~~", $rss_parser->ItemDescription[$x], $item);

and I don't know which lines I have to change.

Thank you in advance.


That is exactly right.

Jim
View user's profileSend private messageVisit poster's website
danicasati



Joined: 22 Feb 2006
Posts: 5

PostPosted: Wed Feb 22, 2006 5:25 pm Reply with quoteBack to top

But I've replaced all this strings and the script doesn't work.

I've found other similar lines, lihe these:
Code:
? ? ? ? ? $swapTemp = $rss_parser->ItemDescription[$x]; limit_text($rss_parser->ItemDescription[$x], 5) = $rss_parser->ItemDescription[$y]; $rss_parser->ItemDescription[$y] = $swapTemp;


Code:
? $template = str_replace("~~~FeedDescription~~~", $rss_parser->FeedDescription, $template);


but you haven't explain what we do with these.
Could you post a complete solution, like an osCommerce contribution in order to help all the community?
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 653

PostPosted: Wed Feb 22, 2006 5:31 pm Reply with quoteBack to top

danicasati wrote:
But I've replaced all this strings and the script doesn't work.

I've found other similar lines, lihe these:
Code:
? ? ? ? ? $swapTemp = $rss_parser->ItemDescription[$x]; limit_text($rss_parser->ItemDescription[$x], 5) = $rss_parser->ItemDescription[$y]; $rss_parser->ItemDescription[$y] = $swapTemp;


Code:
? $template = str_replace("~~~FeedDescription~~~", $rss_parser->FeedDescription, $template);


but you haven't explain what we do with these.
Could you post a complete solution, like an osCommerce contribution in order to help all the community?


These don't get replaced, just the ones in your previous post.
View user's profileSend private messageVisit poster's website
danicasati



Joined: 22 Feb 2006
Posts: 5

PostPosted: Wed Feb 22, 2006 6:14 pm Reply with quoteBack to top

Ok.
I've modified the file.
It works.
Thank you.
View user's profileSend private message
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme