Welcome to Geeklog, Anonymous Wednesday, December 04 2024 @ 04:35 am EST
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.
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
Change lib-common.php around line 384 to look like this
Text 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>' );
}
8
8
Quote
All times are EST. The time is now 04:35 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