News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Removing "Re: " in replies when created via Quick Reply

Started by spiros, February 25, 2019, 06:30:33 AM

Previous topic - Next topic

spiros

I tried that by removing this bit in display.php:

// For quick reply we need a response prefix in the default forum language.
if (!isset($context['response_prefix']) && !($context['response_prefix'] = cache_get_data('response_prefix', 600)))
{
if ($language === $user_info['language'])
$context['response_prefix'] = $txt['response_prefix'];
else
{
loadLanguage('index', $language, false);
$context['response_prefix'] = $txt['response_prefix'];
loadLanguage('index');
}
cache_put_data('response_prefix', $context['response_prefix'], 600);
}


but resulted in undefined errors in my log:

8: Undefined index: response_prefix
File: Display.template.php
Line: 916


Then I tried by removing the said line

<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />

Which resulted in Quick reply not being able to post due to Empty subject

Arantor

Just take out $context['response_prefix'] and it's comma from the display template.
Holder of controversial views, all of which my own.


spiros

Ah, indeed! I guess no need then to edit Display.php at all.

Advertisement: