Advertisement:

Author Topic: Colored Dot Next to New Thread Title?  (Read 1410 times)

Offline lordrene

  • Semi-Newbie
  • *
  • Posts: 79
Colored Dot Next to New Thread Title?
« on: January 14, 2015, 11:53:37 PM »
Hello, Is there a mod or thread that will add a dot next to a new thread? Instead of a "NEW" icon

Example:


Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Colored Dot Next to New Thread Title?
« Reply #1 on: January 15, 2015, 12:27:14 AM »
You can change that new image to whatever you want. Upload the dot image you want to your server (place it in the same directory as the new.gif) and name it something like dot.gif

Then in messageindex.template.php

find:

Code: [Select]
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';
and where new.gif is in the code, change that part to dot.gif (or whatever you named your uploaded image to)

Offline lordrene

  • Semi-Newbie
  • *
  • Posts: 79
Re: Colored Dot Next to New Thread Title?
« Reply #2 on: January 15, 2015, 12:28:52 AM »
You can change that new image to whatever you want. Upload the dot image you want to your server (place it in the same directory as the new.gif) and name it something like dot.gif

Then in messageindex.template.php

find:

Code: [Select]
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';
and where new.gif is in the code, change that part to dot.gif (or whatever you named your uploaded image to)
Thank you, But is there a way to making the image be on the left side of the thread title? instead of the right

Offline lordrene

  • Semi-Newbie
  • *
  • Posts: 79
Re: Colored Dot Next to New Thread Title?
« Reply #3 on: January 15, 2015, 12:57:49 AM »
NVM, Found a way to make the image float the the left of the thread title

Code: [Select]
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" style="float:left;" /></a>';

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,500
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Colored Dot Next to New Thread Title?
« Reply #4 on: January 15, 2015, 09:05:37 AM »
Alternately, you could have done what I do and that is to rename new.gif to something else like newold.gif and then upload the image of the dot as new.gif. No coding changes required normally, except for your wanting it on the left, of course.

(I rename the original in case I want/need to go back to it.)
Online Manual

Please do not PM me for support.

Offline stmaxx

  • Jr. Member
  • **
  • Posts: 108
    • SurfaceThemes - Web Design Ideas Classic Rock
Re: Colored Dot Next to New Thread Title?
« Reply #5 on: January 15, 2015, 09:38:20 AM »
+1 only i use a green dot... but that one look cool!

I think the new image is a bit old fashion :)

Maxx