I faced the same issues you talked about on this post. I spent some time digging around in code, and I have found the solution!
I am using:
Joomla! 1.0.13 Stable
Feed2post: 1.5
First I wrote code that limited the intro text to 1100 Characters. This prevents the intro text from being to long.
Then I set the variable to hide intro text from the Full text. (introtext = 0)
I also set the variable to show the authors name. (author=1)
I edited the file administrator/components/com_feedpost/admin.feedpost.php
line 450
| Code: |
// Modification by Richard.Hilton at CMCMedia.com
// This code determines if the intro text was cut correctly.
// if no, then cut the intro text at a given character count (1100)
// Origonal Codes is just this:
// $row->introtext = str_replace( '<br>', '<br />', $introText );
$introTxt = str_replace( '<br>', '<br />', $introText );
$introTxt = str_replace( '<pre>', '', $introText );
if (strlen($introTxt) > 1300)
{
$introTxt = substr($introTxt,0,1100);
$row->introtext = $introTxt . "[...]";
}
else
{
$row->introtext = $introTxt;
}
// also make so Intro Text Doesnt display where Full Text Displays:
$row->attribs = "introtext=0
author=1";
// End Modification by Richard
|