News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How do I remove the "Started by" from under the subject

Started by rgecy, February 16, 2010, 04:15:55 PM

Previous topic - Next topic

rgecy

How do I turn off or change the "Started by" under the subject of each post.  It makes it very difficult to read the Subjects.  Is there a setting in SMF 2.0 to turn it off or does it need to have a mod?  Maybe if the font size was a little smaller it would be ok as well.

Thanks,

RGecy


Chas Large

Just to let you know I'm looking into this for you but it's not a simple switch, it will require some coding of the template/CSS.

I'll get back to you ASAP.

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

kat

index.english.php, inside the default theme's languages directory.


$txt[109] = 'Started by';


Just change that text.


If you want to get rid of it, entirely, that's a different ballgame.


You need MessageIndex.template.php and this line:


<td class="catbg3" width="11%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[109], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>


rgecy

Yeah, I want to remove it completely or move it over to the right in a seperate div next to replies.

kat

Try removing that line, then. Keep a backup of the file, just in case.

Chas Large

@Chas thinks @Kat is looking at 1.1.11 files :)

The line in Index.english.php is:

$txt['started_by'] = 'Started by';
However this will just remove the text Started By and leave the username who started the topic there, plus you'll get lots of errors in the log.

To remove this line completely requires changes to the code that displays this line each time it is called.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.


Nick Whetstone

So you know, I submitted a Mod to do this last month. When it's approved, you can do it automatically. To do it manually, though:

/Themes/default/MessageIndex.template.php
Code (Find) Select
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
Code (Replace) Select
<p>

My Mod also removes the "Sort" link for "Started by" since the author is hidden. To remove that manually as well:
/Themes/default/MessageIndex.template.php
Code (Find) Select
<th scope="col" class="smalltext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
Code (Replace) Select
<th scope="col" class="smalltext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>

If you want it done automatically, hopefully the Mod will be approved soon.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Chas Large

Thanx Ha2, that saved me a bit of head scratching and I learned something too :)
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

rgecy

Ha2

Thanks guys!  I will work on it tonight.  Can't afford to wait for the mod to be approved, but I know it will definitely be used.  Will it remove the "started by" completely or will it put it over by the "Views/Replies"?

RGecy

Nick Whetstone

Quote from: rgecy on February 19, 2010, 06:15:55 PM
Ha2

Thanks guys!  I will work on it tonight.  Can't afford to wait for the mod to be approved, but I know it will definitely be used.  Will it remove the "started by" completely or will it put it over by the "Views/Replies"?

RGecy

It completely removes both instances of "Started by" from the message index. :) I have a screenshot, somewhere; I'll look for it.

Here we go... attached.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Kill Em All

Cool  mod.

I normally just copy and paste your name :p or if I'm to lazy for that just call you Ha. (sorry)

Learned something new though.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Nick Whetstone

Quote from: Kill Em All on February 19, 2010, 07:31:18 PM
Cool  mod.

I normally just copy and paste your name :p or if I'm to lazy for that just call you Ha. (sorry)

Learned something new though.
lol, it's fine. My signature is just to get rid of Ha2, really. Plus it makes people think I'm mad at them when I'm not, heh.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

#Pascal

How can I add removed "Starter by" into separate column like in attach?

CapadY

This looks like a dubbelpost :

http://www.simplemachines.org/community/index.php?topic=383174.0

It's also not realy wanted to kick topics that are sleeping for already 3 months.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.


Advertisement: