Posted on: 07/02/04 04:22pm
By: Anonymous (tokyoahead)
Posted on: 07/02/04 06:40pm
By: James Fryer
// If non-empty, used as target for links $_CONF['linkstarget'] = '_blank';
if ($nrows < $end) { $end = $nrows + 1; } } if (!empty($_CONF['linkstarget'])) $linkstarget = ' TARGET="' . $_CONF['linkstarget'] . '"'; else $linkstarget = ''; $linklist->set_var('linkstarget', $linkstarget); $currentcategory = ''; for ($i = 1; $i < $end; $i++) {
if( $nrows > 0 ) { if (!empty($_CONF['linkstarget'])) $linkstarget = ' TARGET="' . $_CONF['linkstarget'] . '"'; else $linkstarget = ''; $newlinks = array();
// Trim the length if over 16 characters $itemlen = strlen( $A['title'] ); if( $itemlen > 16 ) { $newlinks [] = '<a href="' . $lcount . '"' . $linkstarget . ' title="' . $A['title'] . '">' . substr( $A['title'], 0, 16 ) . '...</a>' . LB; } else { $newlinks[] = '<a href="' . $lcount . '"' . $linkstarget . '>' . substr( $A['title'], 0, $itemlen ) . '</a>' . LB; } } } } if( $foundone == 0 )
<li> <strong><a href="{link_url}"{linkstarget}>{link_name}</a></strong> ({link_hits})<br> {link_description} </li>