i would like to limit of the displayed recent comment block to 5 how can that be done?

Comments

vm’s picture

there may be a setting for it in administer -> blocks -> configure next to the block in question.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

Christefano-oldaccount’s picture

For this type of customization, a module like Views or Recent Blocks is needed.

Amix’s picture

actually i am using recent block but it displays 10 recent comments i would like 5 but there isnt any option inside of the module settings.

vm’s picture

A dirty way to do it would be to edit the modules/comment/comment.module file

around line 248
FIND: function comment_get_recent($number = 10)
REPLACE WITH: function comment_get_recent($number = 5)

If you choose to do it this way, make note of it, so that when you update or upgrade, you can remake these changes as this is a core module and will be overwritten at next update/upgrade.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

Amix’s picture

Thanks VeryMisunderstood your my hero! :D i did a google serach and found the same answer as you mentioned. thanks

_________________________________________________________________________________
My Open Source Drupal site for an Open source Image editing software http://gimp-tutorials.net