News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

how to insert board name in board description of message index in smf2.0.2

Started by fullmoonya, February 24, 2012, 09:16:20 PM

Previous topic - Next topic

fullmoonya

does anyone know how to do this? please share it to me. im using default theme.
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

hcfwesker

#1
Not sure exactly what you're asking for.   Couldn't you simply type the board name in the description?  Or do you want the board name automatically in the board description, like at the front?

You could try this.  If you don't like the colon separating the name with the description, just remove it from the edit i provided

Themes/default/BoardIndex.template.php

Find
<p>', $board['description'] , '</p>';

Replace with
<p>', $board['name'], ': ', $board['description'] , '</p>';


fullmoonya

Quote from: hcfwesker on February 24, 2012, 09:42:44 PM
Not sure exactly what you're asking for.   Couldn't you simply type the board name in the description?  Or do you want the board name automatically in the board description, like at the front?

You could try this.  If you don't like the colon separating the name with the description, just remove it from the edit i provided

Themes/default/BoardIndex.template.php

Find
<p>', $board['description'] , '</p>';

Replace with
<p>', $board['name'], ': ', $board['description'] , '</p>';
no sir. not like this. i would like to put the board's name inside the messageindex.template.php in the board description. i will attach an image to describe what i want to do.
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

hcfwesker

Well, there we go.  Some details.  Noone would have assumed thats what you were wanting based on your first post.  I'll look into it tomorrow. it's late right now.

fullmoonya

Quote from: hcfwesker on February 25, 2012, 02:00:32 AM
Well, there we go.  Some details.  Noone would have assumed thats what you were wanting based on your first post.  I'll look into it tomorrow. it's late right now.
sorry for the lack of detail i give recently and thank you sir.
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

hcfwesker

Messageindex.template.php

Find
<p class="description_board">', $context['description'], '</p>';

Replace with
<p class="description_board"><strong>', $context['name'], ':</strong> ', $context['description'], '</p>';

If you don't like the Board Name in bold in front of the description, just remove the two <strong> tags in the edited line.

fullmoonya

Quote from: hcfwesker on February 25, 2012, 01:09:03 PM
Messageindex.template.php

Find
<p class="description_board">', $context['description'], '</p>';

Replace with
<p class="description_board"><strong>', $context['name'], ':</strong> ', $context['description'], '</p>';

If you don't like the Board Name in bold in front of the description, just remove the two <strong> tags in the edited line.

that works nice! thanks for the help sir. :)
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

Advertisement: