New Post To be Bold

Started by 1Chope, May 12, 2010, 01:05:21 PM

Previous topic - Next topic

1Chope

Hi Pals, I want New (Unread Topic) To be bold in Messageindex.template.php . I will like new iamge to be removed , here is an example of what I need http://thesoccerchat.com/english-(barclays)-premier-league, can Somebody please help me do it is version 2.0 RC2 . I am using the core default theme here is the website http://www.dollarnigeria.com
waiting for rep. Thanks.

PurpleCrow

I'd like to do this too actually... If I figure it out I'll let you know :)
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

1Chope

Quote from: PurpleCrow on May 12, 2010, 01:12:50 PM
I'd like to do this too actually... If I figure it out I'll let you know :)
Ok.

Yağız...

Find in ./Themes/default/MessageIndex.template.php:
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';

// 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['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

Replace with:
', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '</b>' : '';

1Chope

Template Pass Error

I am Using Defult theme ( Curve)  The actual code to edit is

'</span>', $topic['is_sticky'] ? '</strong>' : '' ;

         // 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>';

PurpleCrow

That caused a parse error for me... :S

PS - Yagiz...8-0 :D
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

Yağız...

Oh sorry, I thought the first site was yours. Find this:
                           ', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '' ;

         // 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>';

Replace with:
                           ', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '</strong>' : '' ;

Yeah, 8-0 :) It was great :o

PurpleCrow

I did that Yagiz but ended up with it doubling up the thread titles, one being normal the other being bold  :-\
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

Yağız...

You've replaced or added before / after?

PurpleCrow

Replaced. Was I meant to add it?
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

1Chope

Thanks Yağız... it is working

Highlight the selected code and paste the new code (that is replace).
Please is it working for you? Let me know so i will mark this thread as solved.Thanks again Yağız...

1Chope

Topic marked as solved

PurpleCrow
open a new thread and ask how to replace a code if you are still confused

2049 thread views within 2 hours   :o  :o

Advertisement: