Advertisement:

Author Topic: How do I remove the "Started by" from under the subject  (Read 3810 times)

Offline rgecy

  • Jr. Member
  • **
  • Posts: 197
    • SideImagingSoft.com
How do I remove the "Started by" from under the subject
« 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

Offline rgecy

  • Jr. Member
  • **
  • Posts: 197
    • SideImagingSoft.com
Re: How do I remove the "Started by" from under the subject
« Reply #1 on: February 19, 2010, 04:54:45 AM »
I hate to bump, but any help with this?

Thanks,

RGecy

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,105
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: How do I remove the "Started by" from under the subject
« Reply #2 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
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

  • Guest
Re: How do I remove the "Started by" from under the subject
« Reply #3 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:


Code: [Select]
<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>
« Last Edit: February 19, 2010, 06:20:35 AM by Kat »

Offline rgecy

  • Jr. Member
  • **
  • Posts: 197
    • SideImagingSoft.com
Re: How do I remove the "Started by" from under the subject
« Reply #4 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.

kat

  • Guest
Re: How do I remove the "Started by" from under the subject
« Reply #5 on: February 19, 2010, 08:53:34 AM »
Try removing that line, then. Keep a backup of the file, just in case.

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,105
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: How do I remove the "Started by" from under the subject
« Reply #6 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.
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

  • Guest
Re: How do I remove the "Started by" from under the subject
« Reply #7 on: February 19, 2010, 10:40:06 AM »
OOPS! I was, yeah.


YOINK!


Ta, Chas!

Offline Nick Whetstone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,816
    • nickwhetstone on Facebook
    • nickwhetstone on GitHub
    • nickwhetstone on LinkedIn
Re: How do I remove the "Started by" from under the subject
« Reply #8 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.
The artist formerly known as (Ha)²

Former Support Specialist

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

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,105
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: How do I remove the "Started by" from under the subject
« Reply #9 on: February 19, 2010, 11:03:02 AM »
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.

Offline rgecy

  • Jr. Member
  • **
  • Posts: 197
    • SideImagingSoft.com
Re: How do I remove the "Started by" from under the subject
« Reply #10 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
« Last Edit: February 19, 2010, 06:19:28 PM by rgecy »

Offline Nick Whetstone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,816
    • nickwhetstone on Facebook
    • nickwhetstone on GitHub
    • nickwhetstone on LinkedIn
Re: How do I remove the "Started by" from under the subject
« Reply #11 on: February 19, 2010, 06:36:32 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.
« Last Edit: February 19, 2010, 06:43:42 PM by Ha² »
The artist formerly known as (Ha)²

Former Support Specialist

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

Offline Kill Em All

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,144
  • Gender: Male
  • Something has to go wrong. Just has to.
    • KEAGaming
Re: How do I remove the "Started by" from under the subject
« Reply #12 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.
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.

Offline Nick Whetstone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,816
    • nickwhetstone on Facebook
    • nickwhetstone on GitHub
    • nickwhetstone on LinkedIn
Re: How do I remove the "Started by" from under the subject
« Reply #13 on: February 19, 2010, 07:41:09 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.
« Last Edit: February 19, 2010, 07:45:23 PM by Ha² »
The artist formerly known as (Ha)²

Former Support Specialist

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

Offline #Pascal

  • Semi-Newbie
  • *
  • Posts: 56
    • Форум системных администраторов UNIX
Re: How do I remove the "Started by" from under the subject
« Reply #14 on: May 25, 2010, 07:30:05 AM »
How can I add removed "Starter by" into separate column like in attach?

Offline CapadY

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,150
  • Gender: Male
Re: How do I remove the "Started by" from under the subject
« Reply #15 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.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Offline #Pascal

  • Semi-Newbie
  • *
  • Posts: 56
    • Форум системных администраторов UNIX
Re: How do I remove the "Started by" from under the subject
« Reply #16 on: May 25, 2010, 08:37:20 AM »
fixed double  ;D