News:

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

Main Menu

modifying smf - removing "started by username" in index

Started by supernova777, December 10, 2015, 06:22:35 PM

Previous topic - Next topic

supernova777

if i wanted to remove the "started by" display of a users name on my forum for every thread subject .. (in the index)
how could i do that? i literally just want to get rid of the "Started by: username" underneath the thread subject

br360

This mod will get rid of the "started by"- http://custom.simplemachines.org/mods/index.php?mod=3519

Are you trying to get rid of the usernames as well?

supernova777

i just think it looks silly to see the nickname on the index page.... obviously they will see who started the thread when they cick it (if they are interested) just trying to minimize the amount of text the eye has to read. i use my forum in a way to share information publicly.. more like a wiki-forum ;) that people are allowed to join in + discuss..

so to directly answer your question. yes. id like to remove that entire 2nd bottom line that is output per thread to have it only be a single line
so the index page itself will be a more clean list of 1 line per thread
http://www.oldschooldaw.com/forums/index.php?board=127.0


br360

Ok.  I tested it and it worked, but make sure to back up your file just in case though. ;)

In your MessageIndex.template.php

Find:
// Is this topic new? (assuming they are logged in!)
         if ($topic['new'] && $context['user']['is_logged'])
               echo '
                     <a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';

         echo '
                     <p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
                        <small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
                     </p>
                  </div>
               </td>
               <td class="stats ', $color_class, '">
                 

Replace with:
// Is this topic new? (assuming they are logged in!)
         if ($topic['new'] && $context['user']['is_logged'])
               echo '
                     <a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';

         echo '
                     
                  </div>
               </td>
               <td class="stats ', $color_class, '">
                 

supernova777

#4
ok it works great! at first i was editing the wrong file in the "Core " folder but now that i edited the file in the "Default" folder.. it works!!!!

Advertisement: