XF 1.4 How to specify the node name as part of the title in report threads

imthebest

Well-known member
Hi,

I'm using the classic reports to a node config instead of the new report system. The problem is that when someone reports a post the title of the report is something like:

Reported Content: Post in thread 'XF Database Size'
(phrase: reported_thread_title)

I want to specify the node name where the thread belongs to so the new thread title for the report should be:

Reported Content: (Off Topic)Post in thread 'XF Database Size'

Is this easily doable?

Thanks,
Super120
 
It looks like the title may be hard-coded, as I'm not finding anything in the templates searching for the phrases.

For reference, though, you would use this code:

Code:
{xen:phrase in_forum} <a href="{xen:link forums, $forum}">{$forum.title}</a>
 
It would require custom development, to extend the XenForo_ReportHandler_Post::getContentForThread(array $report, array $contentInfo)

You can easily extract the node name ($contentInfo['node_name']), and them append it to the variable which populates 'title' in the phrase.
 
Back
Top Bottom