Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: PurpleCrow on July 25, 2010, 07:41:23 AM

Title: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 25, 2010, 07:41:23 AM
I've had a go but I just cause parse errors  ::)

How do I bold the field titles in the postbit? As in where it displays "Posts: xxx" for it to be "Posts: xxx"
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Kays on July 25, 2010, 08:17:31 AM
Hi, can you post the line you are trying to modify.
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Joker™ on July 25, 2010, 08:22:16 AM
do this edit

go to themes\default\display.template.php

Find:
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';



Replace:

<li class="postcount"><strong>', $txt['member_postcount'], '</strong>: ', $message['member']['posts'], '</li>';



do you want the same thing in personal message's also , where user posts are shown?
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Calzone on July 25, 2010, 08:24:02 AM
Quote from: Joker™ on July 25, 2010, 08:22:16 AM
do this edit

go to themes\default\display.template.php

Find:
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';



Replace:

<li class="postcount"><strong>', $txt['member_postcount'], '</strong>: ', $message['member']['posts'], '</li>';



do you want the same thing in personal message's also , where user posts are shown?
No...

<li class="postcount"><strong>', $txt['member_postcount'], ': ', $message['member']['posts'], '</strong></li>';

Read his question again.
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Joker™ on July 25, 2010, 08:26:50 AM
have i done anything wrong  ???  
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 25, 2010, 08:28:34 AM
Thanks guys, that edit makes it so that the entire post count line is bold but thats fine.

How would I go about bolding the entire postbit?

PS I'm a she  ;)
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Calzone on July 25, 2010, 08:29:45 AM
Quote from: PurpleCrow on July 25, 2010, 08:28:34 AM
Thanks guys, that edit makes it so that the entire post count line is bold but thats fine.

How would I go about bolding the entire postbit?

PS I'm a she  ;)
Read my correction.
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Joker™ on July 25, 2010, 08:30:02 AM
purple have you tried my edit ? in it only "post" goes bold not the number
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 25, 2010, 08:44:06 AM
Quote from: Joker™ on July 25, 2010, 08:30:02 AM
purple have you tried my edit ? in it only "post" goes bold not the number

Yeah thats what I want. Sorry, forgot to say. You read my question right ;)

How would I bold every title, including the custom profile field titles?
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Joker™ on July 25, 2010, 08:46:31 AM
i'm in a bit of hurry right now , just see how i used <strong></strong> tag . try to insert it between the text you want to bold else i'll put solution later here .
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 25, 2010, 08:47:00 AM
I'll have a go, thanks ;D
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 26, 2010, 03:22:19 PM
I've managed to do this for everything except the custom fields and the karma field.

If anyone can show me how to do those I would really appreciate it :)

PS - I use the Karma Description Mod if that makes any difference :)
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Matthew K. on July 26, 2010, 03:26:47 PM
Would you please attach your Display.template.php please? I'll do it for you
Quote from: PurpleCrow on July 26, 2010, 03:22:19 PM
I've managed to do this for everything except the custom fields and the karma field.

If anyone can show me how to do those I would really appreciate it :)

PS - I use the Karma Description Mod if that makes any difference :)
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Joker™ on July 26, 2010, 03:28:37 PM
For karma in the same file

Find:

         // Is karma display enabled?  Total or +/-?
         if ($modSettings['karmaMode'] == '1')
            echo '
                        <li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
         elseif ($modSettings['karmaMode'] == '2')
            echo '
                        <li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';



Replace:

         // Is karma display enabled?  Total or +/-?
         if ($modSettings['karmaMode'] == '1')
            echo '
                        <li class="karma"><strong>', $modSettings['karmaLabel'], '</strong> ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
         elseif ($modSettings['karmaMode'] == '2')
            echo '
                        <li class="karma"><strong>', $modSettings['karmaLabel'], '</strong> +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';


For custom fields , i have to see the file some more .
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 26, 2010, 03:28:52 PM
Thank you :)
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Matthew K. on July 26, 2010, 03:32:40 PM
Try this...
Title: Re: Bolding Postbit (ONLY field titles)
Post by: PurpleCrow on July 26, 2010, 03:34:24 PM
Perfect, thank you :D
Title: Re: Bolding Postbit (ONLY field titles)
Post by: Matthew K. on July 26, 2010, 03:35:36 PM
Not a problem. Is there anything else you want done or is this topic resolved?