Hi all,

Can anyone point me to the best way of modifying the "Last Post" title length? Currently it appears to max at 10chars, I'm looking to increase the length to around 30.

I've been digging around for some information with regards to this, but haven't found anything so if this is a dup I apologize ahead of time.

Thanks in advance -

Comments

michelle’s picture

Title: Modifying "Last Post" Topic Length » Add option for "Last Post" Topic Length & time ago cutoff
Assigned: Unassigned » michelle
Category: support » task
Priority: Minor » Normal

It's hardcoded to 15 characters in the module. I looked at it and don't see any good way to make it changeable in the theme without introducing a lot of code into the template file. A better option would be for me to make an option. While I'm at it, I'll make the 48 hour cutoff before switching off time ago optional as well.

If you need it right now, it's in advanced_forum_preprocess_forum_submitted().

Michelle

Apollo610’s picture

Fantastic, I somehow missed that function when I looked at it earlier, just made the change manually. Thanks Michelle.

marcingy’s picture

Version: 6.x-1.0-alpha14 » 6.x-1.0-alpha15
StatusFileSize
new1.54 KB

Patch to add the ability to vary topic title length rolled against aplpha15

marcingy’s picture

Status: Active » Needs review
michelle’s picture

@marcingy - Thanks. :) I should have more time to work on AF this weekend and will add this in.

Michelle

marcingy’s picture

StatusFileSize
new1.55 KB

Last version had a small error :(

mrjw’s picture

I don't know how to patch but I would like this function also please :)

michelle’s picture

Status: Needs review » Fixed

The patch didn't apply anymore but I hand applied it and committed it to both branches. Thanks!

Also added the time ago cutoff myself.

Michelle

Status: Fixed » Closed (fixed)

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