Joomla module char length..

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
bi0dileet
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Fri Jan 25, 2008 5:44 pm

Joomla module char length..

Post by bi0dileet » Sat Mar 31, 2012 7:07 am

I used this

Code: Select all

        $item->introtext = JHtml::_('content.prepare', $item->introtext);
        $item->introtext = strip_tags($item->introtext);
        $item->introtext = substr($item->introtext, 0, 50);
But then only plain text appears without image.. I want to count characters after the img tag, but still have the img tag in text after counting.

Locked

Return to “Joomla! 2.5 Coding”