WordPress.org

Plugin Directory

phpbb-recent-topics

Opened 5 years ago

Last modified 5 years ago

#1694 assigned enhancement

Logic for ellipses

Reported by: jrisberg Owned by: linickx
Priority: normal Severity: normal
Plugin: phpbb-recent-topics Keywords: ellipses
Cc:

Description

Thanks for a great plug-in.

An interface for the character limit of the subject line would be awesome. For now I increased it manually, but more importantly I added logic for ellipses if needed. Here's a diff:

88c88
< echo '<li class="prt_li" style="line-height: 20px;">';
---

echo '<li class="prt_li" >';

126,131c126
< $lastpost_temp = preg_replace('/Re\:\ /',, $topic->topic_last_post_subject);
< if (strlen($lastpost_temp) > 34) {
< echo substr($lastpost_temp,0,33) . '...';
< } else {
< echo $lastpost_temp;
< }
---

echo "$topic->topic_last_post_subject";

170c165
< ?>
---

?>

Change History (1)

comment:1 @linickx5 years ago

  • Status changed from new to assigned

Thanks!

Note: See TracTickets for help on using tickets.