News:

Join the Facebook Fan Page.

Main Menu

Topic Notes

Started by Doug Heffernan, September 14, 2020, 05:18:30 PM

Previous topic - Next topic

Doug Heffernan

Link to Mod

This mod was requested by a member at the following topic:

https://www.simplemachines.org/community/index.php?topic=574771.0

This mod will allow members with the appropriate permissions to add notes in individual topics. According to their permissions they can add notes to own topics only and/or any topic. The same goes for the members who will be able to see the notes in topics, own topics and/or any topics.

You can set the permissions for each membergroup in the Admin Panel-Permissions.
You can also select a board and/or boards where you do not want to add notes in topics. You can do that at the Board Permissions in your Admin Panel.

This mod is released under Mozilla Public License 2.0 (MPL-2.0).

Mick.



Shambles

Quote from: Doug Heffernan
This mod will allow members ... to add mods in individual topics.

What does "add mods" mean?

Doug Heffernan

Quote from: Shambles on September 14, 2020, 06:05:41 PM
Quote from: Doug Heffernan
This mod will allow members ... to add mods in individual topics.

What does "add mods" mean?

It was a typo. I meant to say notes. It is fixed now.

-Rock Lee-

I'm going to test it on a test site I have, great job. As I am translating other things at the moment I join translating this into Latin Spanish as well ;D.


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

njtweb

Hi Doug, do notes support bbcode or HTML?

tareko

Great job Doug. I am very happy with this mod.

Doug Heffernan

Quote from: njtweb on September 15, 2020, 08:59:52 AM
Hi Doug, do notes support bbcode or HTML?

Yes to bb code and no to html.

Quote from: tareko on September 15, 2020, 10:04:46 AM
Great job Doug. I am very happy with this mod.

Glad to hear that :)

efk


Antechinus

It's a nice piece of work. Very comprehensive. :)

One thing that did occur to me: it might be worth adding an id to the notes .upperframe span. That way it would be easier to target things if somebody wants to customise the look a bit. Example:

echo'
<br />
<span id="topic_note" class="clear upperframe"><span></span></span>
<div class="roundframe">
<div class="innerframe">
<div class="cat_bar">
<h3 class="catbg">', $txt['topic_note'], '</h3>
</div>
<p>', parse_bbc($context['note']), '</p>
</div>
</div>
<span class="lowerframe"><span></span></span>
<br />'


That would allow doing this sort of thing in custom CSS:

#topic_note {}
#topic_note + .roundframe {}
#opic_note + .roundframe .cat_bar {}
#opic_note + .roundframe p {}
#opic_note + .roundframe + .lowerframe {}
#opic_note + .roundframe + .lowerframe + br {}


You can nail anything pretty easily. :)

Doug Heffernan

Quote from: Antechinus on September 15, 2020, 05:03:28 PM
It's a nice piece of work. Very comprehensive. :)

One thing that did occur to me: it might be worth adding an id to the notes .upperframe span. That way it would be easier to target things if somebody wants to customise the look a bit. Example:

echo'
<br />
<span id="topic_note" class="clear upperframe"><span></span></span>
<div class="roundframe">
<div class="innerframe">
<div class="cat_bar">
<h3 class="catbg">', $txt['topic_note'], '</h3>
</div>
<p>', parse_bbc($context['note']), '</p>
</div>
</div>
<span class="lowerframe"><span></span></span>
<br />'


That would allow doing this sort of thing in custom CSS:

#topic_note {}
#topic_note + .roundframe {}
#opic_note + .roundframe .cat_bar {}
#opic_note + .roundframe p {}
#opic_note + .roundframe + .lowerframe {}
#opic_note + .roundframe + .lowerframe + br {}


You can nail anything pretty easily. :)

This is nice. Thanks for the share.

pikeman

Hello, is there an update planned for 2.1?

Doug Heffernan

Quote from: pikeman on May 29, 2023, 02:33:12 PMHello, is there an update planned for 2.1?

Not at the moment.

Advertisement: