Is it possible to add a feature that would let us set the Comment Excerpt Length in the block?

I think the module outputs too much of the original comment in the "Last comments"-block.

CommentFileSizeAuthor
#3 disqus.module.txt16.46 KBdeanloh

Comments

robloach’s picture

Status: Active » Needs work

Yeah!!! Applies to the Recent Comments and Combination block.

&excerpt_length=199

Defaults to 200......... Just needs a patch. Shouldn't be that difficult to put together.

espenmoe’s picture

Is this far away?

deanloh’s picture

StatusFileSize
new16.46 KB

I managed to add in the fields for setting excerpt length. I don't know how to create patch file, so I attached the full file here. It seems to work for me but I may have missed something, feel free to help improve it.

espenmoe’s picture

I will test this later today.

Great work!

espenmoe’s picture

...

espenmoe’s picture

Sorry, but this breaks the "Injected Variable", and then Disqus is not longer attached to the node.

deanloh’s picture

@espenmoe thanks for testing. But I don't quite understand what did you mean by "Disqus is not longer attached to the node", I checked both the latest comments on the site as well as the moderation area at Disqus and the links seemed to be working just fine. Or am I missing something else?

espenmoe’s picture

When I use the new version of the module, Disqus comment field is not loaded on the Drupal node. But last comments block IS working.

deanloh’s picture

Ah I see... that's weird! Because it seems to be alright for me. To see it in action: http://www.bigfoottraveller.com/travelogue/174 (sorry if you don't read Chinese)

Then again this could be because I'm using Panels to layout the page, and the Disqus comment area is added as panel content.

Can anyone else confirm this?

marcingy’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev