Author |
Message |
danicasati
Joined: 22 Feb 2006
Posts: 5
|
Posted: Wed Feb 22, 2006 10:38 am |

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

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 653
|
Posted: Wed Feb 22, 2006 11:39 am |

|
|
 
|
 |
danicasati
Joined: 22 Feb 2006
Posts: 5
|
Posted: Wed Feb 22, 2006 4:40 pm |

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

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 653
|
Posted: Wed Feb 22, 2006 4:46 pm |

|
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
|
|
|
 
|
 |
danicasati
Joined: 22 Feb 2006
Posts: 5
|
Posted: Wed Feb 22, 2006 5:16 pm |

|
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.
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 653
|
Posted: Wed Feb 22, 2006 5:20 pm |

|
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
|
|
|
 
|
 |
danicasati
Joined: 22 Feb 2006
Posts: 5
|
Posted: Wed Feb 22, 2006 5:25 pm |

|
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?
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 653
|
Posted: Wed Feb 22, 2006 5:31 pm |

|
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.
|
|
|
 
|
 |
danicasati
Joined: 22 Feb 2006
Posts: 5
|
Posted: Wed Feb 22, 2006 6:14 pm |

|
Ok.
I've modified the file.
It works.
Thank you.
|
|
|

|
 |
|