1 rlyeh Apr 03, 2008 09:56
3 rlyeh Apr 08, 2008 00:27
¥åßßå wrote:
yes ;)
You'd need to get $Item out of $MainList and then remove all tags and cut the content at the length that you want
¥
Thanks for your reply (I've been away for the weekend, sorry for the delay), but this seems like quite a job, removing all tags and so on, and I'm not sure how to go about doing it.
If it's easier than I assume, I'd really love some hints on how to do it, but if it is as complicated as it seems, then it's really no big deal -- I'll manage without :)
By the way, I guess you can never get this often enough; b2evolution is a great -- fantastic -- piece of software, and time and time again I'm impressed by the community here on the forums. So thanks anyhow -- you're all doing a great job!
4 beano Jul 31, 2008 19:51
¥åßßå wrote:
yes ;)
You'd need to get $Item out of $MainList and then remove all tags and cut the content at the length that you want
¥
I've just been trying to do this exact same thing.
$sfItem = & mainlist_get_item();
$description = $sfItem->get_excerpt( 'entityencoded' );
The problem I'm having is that if I add the above to _html_header.inc.php it looks like that's iterating something* that means when the main code calls it (where it's supposed to be) it misses the first one (so if it's a one-post display there is no post! :( )
Is there some way of preventing this?
* I'm guessing because that "$Item = mainlist_get_item()" call is used as the condition in a while loop in the main body.
BTW rlyeh, the PHP function [url=http://www.php.net/strip_tags]strip_tags[/url] should get you in the right direction if you can solve the issue I'm having.
yes ;)
You'd need to get $Item out of $MainList and then remove all tags and cut the content at the length that you want
¥