SMF Support > SMF 2.0.x Support

How do I hide the "RE:"

<< < (2/4) > >>

Antechinus:
Yeah I tested it on local with inline css, then just assumed that would transfer to index.css. It doesn't though, which I suspect is something to do with the javascript that handles quick editing of the thread title. That's nasty. :P

However, it does work if you use inline css for the changes. I came up with a slight tweak, which also leaves you a visible link to the post, in case you want to link someone to it. Do it like this:

Display.template.php:

Find:
--- Code: --- <h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
--- End code ---

Replace:
--- Code: --- <h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow" class="hidden" style="visibility: hidden;">', $message['subject'], '</a>
<span class="smalltext" style="font-weight: normal; display: block; margin-top: -10px;"><a href="', $message['href'], '" rel="nofollow" title="', $message['subject'], '" style="font-weight: bold;">', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : 'OP', ':</a> ', $message['time'], '</span>
</h5>
--- End code ---

Note that I haven't played with the javascript, so if you use the quick edit on a post it will show the title again once you save. This is only temporary though, and refreshing the page will hide the edited title again.

Changing message icons doesn't make the title show, and neither does changing the title via the full edit page. It's only a temp thing with quick edit. :)

Fernando Rocker:
OK... let me try that.

Fernando Rocker:
It worked!

Thanks, buddy!

Antechinus:
Welcome. It does look a lot better like that. I might even zip it as a mod, just for fun. :)

Fernando Rocker:

--- Quote from: Antechinus on April 15, 2012, 12:59:55 AM ---Welcome. It does look a lot better like that. I might even zip it as a mod, just for fun. :)

--- End quote ---

Definitely. It looks way cleaner that way.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version