Is there a mod or code that can remove the by "Administrator" link, as you can see the username is in bold and links you to the user's profile, is it possible to make it just text just like "by" is?
(http://i.imgur.com/vwX3txQ.png)
Like this:
by Administrator
not this:
by Administrator
I would have thought it was useful to have...
It is pretty useful, but the bold text is more noticeable than the topic title (imo)
It's easy to do. I've often done it myself as I can't see the point of the link there (have rarely, if ever, actually used it), and it's a right PITA when doing responsive and trying to stack things tightly while leaving room for fingers to hit links.
In BoardIndex.template.php look for code like this:
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
Change ['member']['link'] to ['member']['name']
Your code will probably have bold tags around the name, like this:
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' <b>', $board['last_post']['member']['link'] , '</b><br />
In which case you'd just remove those.
Quote from: Antechinus on January 12, 2015, 09:32:56 PM
This is my code
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', (!empty($board['last_post']['member']['group_image']) && empty($modSettings['disable_image_on_left']) && empty($modSettings['disable_on_last_post_bi']) ? '<img src="' . $settings['images_url'] . '/group_images/' . $board['last_post']['member']['group_image'] . '" alt="" />' : ''), $board['last_post']['member']['bold_username_start'], $board['last_post']['member']['link'], $board['last_post']['member']['bold_username_end'], (!empty($board['last_post']['member']['group_image']) && empty($modSettings['disable_image_on_right']) && empty($modSettings['disable_on_last_post_bi']) ? '<img src="' . $settings['images_url'] . '/group_images/' . $board['last_post']['member']['group_image'] . '" alt="" />' : ''), '<br />
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', (!empty($board['last_post']['member']['group_image']) && empty($modSettings['disable_image_on_left']) && empty($modSettings['disable_on_last_post_bi']) ? '<img src="' . $settings['images_url'] . '/group_images/' . $board['last_post']['member']['group_image'] . '" alt="" />' : ''), $board['last_post']['member']['bold_username_start'], $board['last_post']['member']['link'], $board['last_post']['member']['bold_username_end'], (!empty($board['last_post']['member']['group_image']) && empty($modSettings['disable_image_on_right']) && empty($modSettings['disable_on_last_post_bi']) ? '<img src="' . $settings['images_url'] . '/group_images/' . $board['last_post']['member']['group_image'] . '" alt="" />' : ''), '<br />
Can't seem to find that line, hmm
Um, Ant, he's talking about the message index, not the board index...
Thank you but talking about Message Index!
Oh ok, missed that.
Weird code you have there. Where the hell is this defined?
$board['last_post']['member']['bold_username_start'],
Looks like it's hard coded somewhere outside the template, which would be a nuisance. Better ask the bloke who wrote it.