hello there..

I need to know how can I compress a long forum title in "Active Forum Topics" & "Recent forum Topics" blocks from a very long topic like :
The best way to appreciate your manager in your company

to something like this :
The Best way to....

is there any thing to be done concerning this issue?

Thnx in Advance!

Comments

magico’s picture

Version: 4.6.0 » x.y.z
Category: bug » feature

The "Active Forum Topics" and "Recent forum Topics" blocks use the function node_title_list() to format the output. This way we can override the output of that function using the theme_node_list() in the theme file.

To truncate the text the function truncate_utf8() should be used.

Anyway, this is not a bug but it could be a feature request and because I'm not seeing this implemented in the CVS must be moved there.
The reason is that I think it could be a bit dificult to format only the titles of the "forum blocks" because node_title_list() is also used within statistics.module and blog.module.

liam mcdermott’s picture

Version: x.y.z » 7.x-dev
Gurpartap Singh’s picture

Status: Active » Fixed

You may use:

  l(truncate_utf8($title, 25, TRUE, TRUE), "node/$nid", array('fragment' => 'new'));
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.