Topic & Board Note

Started by Akyhne, June 25, 2009, 12:16:06 AM

Previous topic - Next topic

Jessica.

can this be made compatible for 1.1.12 please?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Akyhne


helike13

#102
Hello!

How to make topic note visible under the topic subject on this screen?


OCJ

I like the mod - used an older version last year but the topic note icon wasnt displaying. I just tried the new version and its fine, except...

Seems to be problems with the calendar. When an event/topic  is linked to the calendar or deleted from the calendar, the topic note is deleted.
I think changing the calendar date also deleted the topic note.

If it is intended for events and most likely used with the calendar, then its a something that needs attention.


Still like it  :) but will uninstall until working with the calendar.

OCJ

QuoteHow to make topic note visible under the topic subject on this screen?
@helike13
There is another mod that does that - topic description i think... no icon though, no bbcode colour.

Akyhne

Quote from: igirisjin on June 13, 2012, 11:53:42 PM
Seems to be problems with the calendar...
I'll check that.

Quote from: helike13 on April 15, 2011, 12:14:00 PM
Hello!

How to make topic note visible under the topic subject on this screen?


It used to do so but I disabled it during the developement of the 2.0 final, because of the way the sticky and locked icons were put into the code. It gave me troubles.
And then I forgot all about it but it's fixed now.

MK-12_20MM

Nice mod...  any plans to make the board note customizable like the topic note. instead of being using just windowbg class.


Thanks..

Akyhne

Quote from: slingblade on July 04, 2012, 12:07:02 AM
...any plans to make the board note customizable like the topic note...
Done!

MK-12_20MM

Quote from: Akyhne on July 04, 2012, 09:08:47 AM
Quote from: slingblade on July 04, 2012, 12:07:02 AM
...any plans to make the board note customizable like the topic note...
Done!

WOW ! That was quick.  I will check it out.

Thanks very much!  ;D 

liuxyon

I can't find the code in MessageIndex.template.php.  I using SMF2.0.2.




<td class="subject ', $alternate_class, '">
                        <div

Shambles

Quote from: liuxyon on October 05, 2012, 09:44:50 AM
I can't find the code in MessageIndex.template.php.  I using SMF2.0.2.




<td class="subject ', $alternate_class, '">
                        <div


You might have a mod that's displaced some part of that search string that this mod requires as part of its installation..

See if you can find this string in your file:

Code (find) Select
// Some columns require a different shade of the color class.

and copy the next 15 or so lines into your next post between [code]...[/code] tags - we can take it from there.

JTVaughn

I moved the board note code in messageindex above the child boards, but it causes the note to be repeated as many times as there is child boards. So where I had 9 child boards, I had 9 board notes instead of 1. Any idea why this happens?

Akyhne

No idea as I don't know what you did.

JTVaughn

In messageindex.template I moved --


// Board Note
if ($context['board_note'])
{
$pos = strpos($modSettings['boardnote_html'], '[note]');

if (!$pos === false && $modSettings['boardnote_view'] == 5) {
$boardHtml = explode('[note]', $modSettings['boardnote_html']);
} else {
$boardHtml = array();

//Use Topic Header View
if ($modSettings['boardnote_view'] == 0) {
$boardHtml[] = '
<div class="cat_bar">
<h3 class="catbg"><span class="left"></span>';
$boardHtml[] = '
</h3>
</div>';

//Use Topic View
} else if ($modSettings['boardnote_view'] == 1) {
$boardHtml[] = '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">';
$boardHtml[] = '
</div>
<span class="botslice"><span></span></span>
</div>
<br />';

//Use Note View
} else if ($modSettings['boardnote_view'] == 2) {
$boardHtml[] = '
<p class="windowbg description">';
$boardHtml[] = '
</p>';

//Use Roundframe View
} else if ($modSettings['boardnote_view'] == 3) {
$boardHtml[] = '
<div class="windowbg">
<span class="upperframe"><span></span></span>
<div class="roundframe">';
$boardHtml[] = '
</div>
<span class="lowerframe"><span></span></span>
</div>
<br />';

//Use Information View
} else if ($modSettings['boardnote_view'] == 4) {
$boardHtml[] = '
<div class="information">';
$boardHtml[] = '
</div>';
}
}

echo $boardHtml[0] . parse_bbc($context['board_note']) . $boardHtml[1];
}
// End Board Note



So it was ABOVE --


// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . ($child['new'] ? '</a> <a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" />' : '') . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
}
echo '
<tr id="board_', $board['id'], '_children"><td colspan="3" class="children windowbg"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td></tr>';
}
}
echo '
</tbody>
</table>
</div>
</div>';
}


In the hopes I could move the board note box above the child boards.

After doing it, the board note box appeared 9 times above the 9 child boards.

JTVaughn


JTVaughn


Akyhne

Well, aparently the code can't go there or you'll have to look a little harder.

I just don't have the time to help atm.

JessyKa

Hello,
I am searching for a similar modification like this one.
Want:
- board information/summary for new user to orient oneself (with summary text, links to important threads/posts)
- preferably to open and close by user

Is there an alternative for SMF 2.0.15?

Thanks

-Rock Lee-

This modification should work only has no more support from the author, or am I misunderstanding?


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Advertisement: