Wolfsblvt / mentions

Allows users to mention other users in posts. If a user is mentioned, he will recieve a notification unless he deactivated this notification. Meantioned usernames can be automatically colored in their username color. Mentioned users will be autosuggested.
GNU General Public License v2.0
13 stars 17 forks source link

Get BBCodes working with Advanced BBCode Box 3.1 #4

Open Wolfsblvt opened 9 years ago

Wolfsblvt commented 9 years ago

If the extension "Advanced BBCode Box 3.1" is activated, BBCodes will not be displayed in it.

So there needs to be some kind of integration for this official extension.

iMattPro commented 9 years ago

The BBCodes from phpBB are hardcoded into ABBC3. Since you are adding on to those BBCodes rather than making custom BBCodes (which might have been easier for integration in general) other exts like ABBC3 will need to hardcode yours too.

If you set a template switch for each of your BBCodes, so there is S_BBCODE_MENTION and S_BBCODE_MENTION_EQ available for example, then I could hard your BBCodes into ABBC3 too. Like:

<!-- IF S_BBCODE_MENTION -->An ABBC3 mention icon<!-- ENDIF -->
<!-- IF S_BBCODE_MENTION_EQ -->An ABBC3 mention= icon<!-- ENDIF -->

Anyway that's the first idea that comes to my mind. You may have other ideas.

This is how a few core BBCodes are handled, for example, <!-- IF S_BBCODE_QUOTE -->

Wolfsblvt commented 9 years ago

Nice that you've seen this issue here (:

Yeah, my bbcodes are used to be something like "core bbcodes" and not custom bbcodes. It would be difficult when I would allow the user to actually modify the mention bbcode, and I need additional parsing for it, so this was the solution I found.

Your solutions sounds fine to me. So if it is not possible (or not easy) to inject my bbcodes to your extension, the other way round would work fine as well.

I think this is the way I'll take then.