News:

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

Main Menu

A detailed description on each board

Started by evilopinions, June 07, 2014, 08:18:59 AM

Previous topic - Next topic

evilopinions

Hi Guys,

Apologies but this shifts the description of the board inside and displays on messageindex.
The issue I have is that it will also show the description on the boardindex and I am afraid I do not want this.
I only want to insert the custom text on messageindex.

Is it possible to add a text box to the boards creation process and call it "custom text" and then use that box to display only on messageindex ?

evilopinions

Gentleman,

Found this mod which serves my purpose precisely.
You can mark this topic closed as it is solved for me.

http://custom.simplemachines.org/mods/index.php?mod=163

Steve

Awesome! Thanks for finding that. It can also be used like a rules thing inside each board. :D
DO NOT pm me for support!

DenDen60

Is it possible to change the code somewhere so that It becomes the default for everybody?

Illori

this does what you want... i would have thought you have read all the replies before you replied.

Quote from: Illori on June 07, 2014, 10:44:20 AM
your themes MessageIndex.template.php

Code (find) Select
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'right'), '
</div>';


Code (add after) Select

if ($context['description'] != '' || !empty($context['moderators']))
{
echo '
<div id="description_board" class="generic_list_wrapper">
<h3 class="floatleft">', $context['name'], '&nbsp;-&nbsp;</h3>
<p>';
if ($context['description'] != '')
echo '
', $context['description'], '&nbsp;';

if (!empty($context['moderators']))
echo '
', count($context['moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $context['link_moderators']), '.';

echo '
</p>
</div>';
}


although you may want to add some additional stying to this. i believe this is what you want... i could be wrong though.

DenDen60

Thanks. I saw it but did not realize this is what it was.  :-[ :D

DenDen60


DenDen60

It worked perfectly yesterday.  :)

But today, it doesn't.  >:( :D

http://citizensandsocieties.net/NA-USA/index.php?board=12.0

It's repeated twice. :-(

I check the code and it is the same as yesterday. :-(

Illori


DenDen60

I should have checked with another browser. If I had, I would have seen it was the browser. ;-)

Thanks

Shambles

I'm confused as to whose topic this is and whether it's really solved, as indicated  ???

Steve

From the OP:

Quote from: evilopinions on June 10, 2014, 02:45:24 AM
Gentleman,

Found this mod which serves my purpose precisely.
You can mark this topic closed as it is solved for me.
DO NOT pm me for support!

Advertisement: