Elcan Software

Small software, big solutions.

Home arrow Support Forum
Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Fix intro and main text being the same (1 viewing) (1) Guest
Help for feed2post
Go to bottom Post Reply Favoured: 0
TOPIC: Fix intro and main text being the same
#779
patrickegan (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Fix intro and main text being the same 5 Months, 1 Week ago Karma: 0  
Thanks for the information. I have added a bit to the code you mentioned.

The problem was that some blogs were not getting the intro shortened, so that the intro text was the same length as the main text. This only happen on blogs from blogspot, and blogger. So I wrote code to check and see if the intro text is less than 1200 characters. If it is larger than that, then it did not get shortened, and so I shortened it to 1000 characters.

Joomla! 1.0.13 Stable
Feed2post: 1.5
line 450 in admin.feedpost.php
Code:

$introTxt = str_replace( '<br>', '<br />', $introText ); if (strlen($introTxt) > 1200) { $introTxt = substr($introTxt,0,1000); $row->introtext = $introTxt . "[...]"; } else { $row->introtext = $introTxt; }
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/08/12 16:11 By patrickegan.
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Customisations
bbox 2008/03/18 06:17
    thread link
thread linkthread link Re:Customisations
admin 2008/03/18 14:06
    thread link
thread linkthread linkthread link Fix intro and main text being the same
patrickegan 2008/08/01 11:57
    thread link
thread linkthread linkthread linkthread link Re:Fix intro and main text being the same
movilla 2008/08/05 12:23
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Sponsors

Your Ad Here
Joomla Templates by Joomlashack