Minor change to blog display (blogout() )

2008-11-12
2013-03-06
  • Francis Turner

    Francis Turner - 2008-11-12

    I'm not interested in joining the developer community but I enclose the following short change.

    The change means that a page that includes the blog will not be overwhelmed by long blog posts.

    1) Add a new global pagevars member "blogmaxlines" with default value 9

    2) in blogout() approx line 390 change
                        // original line $raw=implode("", $filem );

                        $raw=implode("", (count($filem)>$pagevars["blogmaxlines"])?array_slice($filem,0,$pagevars["blogmaxlines"]) :$filem );

    and then a few lines later
                        // original line $content .=$raw;

                        $content .=$raw.((count($filem)>$pagevars["blogmaxlines"])?" <a href=\&quot;index.php?$wiki_get=$page\&quot;>(more...)</a>":'');

     
    • Francis Turner

      Francis Turner - 2008-11-12

      PS similar changes (but remove the A href=) can be made in approx line 702 to do the same thing for the RSS feeds

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks