Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: rgecy on February 16, 2010, 04:15:55 PM

Title: How do I remove the "Started by" from under the subject
Post by: rgecy on February 16, 2010, 04:15:55 PM
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
Title: Re: How do I remove the "Started by" from under the subject
Post by: rgecy on February 19, 2010, 04:54:45 AM
I hate to bump, but any help with this?

Thanks,

RGecy
Title: Re: How do I remove the "Started by" from under the subject
Post by: Chas Large on February 19, 2010, 06:03:17 AM
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
Title: Re: How do I remove the "Started by" from under the subject
Post by: kat on February 19, 2010, 06:15:48 AM
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>

Title: Re: How do I remove the "Started by" from under the subject
Post by: rgecy on February 19, 2010, 07:20:19 AM
Yeah, I want to remove it completely or move it over to the right in a seperate div next to replies.
Title: Re: How do I remove the "Started by" from under the subject
Post by: kat on February 19, 2010, 08:53:34 AM
Try removing that line, then. Keep a backup of the file, just in case.
Title: Re: How do I remove the "Started by" from under the subject
Post by: Chas Large on February 19, 2010, 10:33:58 AM
@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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: kat on February 19, 2010, 10:40:06 AM
OOPS! I was, yeah.


YOINK!


Ta, Chas!
Title: Re: How do I remove the "Started by" from under the subject
Post by: Nick Whetstone on February 19, 2010, 10:48:26 AM
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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: Chas Large on February 19, 2010, 11:03:02 AM
Thanx Ha2, that saved me a bit of head scratching and I learned something too :)
Title: Re: How do I remove the "Started by" from under the subject
Post by: 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
Title: Re: How do I remove the "Started by" from under the subject
Post by: Nick Whetstone on February 19, 2010, 06:36:32 PM
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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: 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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: Nick Whetstone on February 19, 2010, 07:41:09 PM
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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: #Pascal on May 25, 2010, 07:30:05 AM
How can I add removed "Starter by" into separate column like in attach?
Title: Re: How do I remove the "Started by" from under the subject
Post by: CapadY on May 25, 2010, 08:27:08 AM
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.
Title: Re: How do I remove the "Started by" from under the subject
Post by: #Pascal on May 25, 2010, 08:37:20 AM
fixed double  ;D