Welcome to Geeklog Monday, September 21 2020 @ 06:13 am EDT

Geeklog Forums

Readmore Icon


jim

Anonymous
This is almost identical to my post about edit icon post a few days before. This hack makes it so your stories also have a read more graphic in addition to the "read more" text from the lang file.

Change lib-common.php around line 384 to look like this

PHP Formatted Code

if( !empty( $A['bodytext'] ))
{
        $article->set_var( 'readmore_link', '<a href="' . $_CONF['site_url'] . '/article.php?story=' . $A['sid'] . '">' . $LANG01[2] . '</a> (' . sizeof( explode( ' ', $A['bodytext'] )) . ' ' . $LANG01[62] . ') ' );
        $article->set_var( 'readmore_icon', '<a href="' . $_CONF['site_url'] . '/article.php?story=' . $A['sid'] . '">' . '<img src= "' . $_CONF['layout_url'] . '/images/readmore.gif" alt="edit" border=0>' . '</a>' );
}
 
Then, in your favorite layout (public_html/layout/yourtheme/storytext.thtml) add a {readmore_icon}. Then you get the nice minimalist effect like shown here from jimweller
 Quote

All times are EDT. The time is now 06:13 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content