Code: Select all
/**
* @var array An array of bbcodes data to install
*/
$bbcode_data = array(
'note' => array(
'bbcode_match' => '[note]{TEXT}[/note]',
'bbcode_tpl' => '<span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT}</span>',
'bbcode_helpline' => '[note]note text[/note]',
'display_on_posting'=> 0,
),
'note=' => array(
'bbcode_match' => '[note={TEXT1}]{TEXT2}[/note]',
'bbcode_tpl' => '<span class="prime_bbcode_note_text" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);">{TEXT1}</span><span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT2}</span>',
'bbcode_helpline' => '[note=text-to-note]note text[/note]',
'display_on_posting'=> 0,
),
);
note=
BBCode and modify the other one to use a conditional.Thanks Joshy, I will give this a shot. And report..JoshyPHP wrote: ↑Mon Oct 16, 2017 8:12 pm It's probably related to this: https://tracker.phpbb.com/browse/PHPBB3-14357
Remove thenote=
BBCode and modify the other one to use a conditional.
Code: Select all
[note text={TEXT1;optional}]{TEXT2}[/note]
Code: Select all
<xsl:choose>
<xsl:when test="@text">
<span class="prime_bbcode_note_text" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);">{TEXT1}</span>
<span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span>
<span class="prime_bbcode_note">{TEXT2}</span>
</xsl:when>
<xsl:otherwise>
<span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span>
<span class="prime_bbcode_note">{TEXT2}</span>
</xsl:otherwise>
</xsl:choose>
Code: Select all
<xsl:if test="@text">
<span class="prime_bbcode_note_text" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);">
<xsl:value-of select="@text"/>
</span>
</xsl:if>
<span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"/>
<span class="prime_bbcode_note"><xsl:apply-templates/></span>
note=
bbcode and amended the note
one to the above code..[URL=http...etc...etc]your test here[/URL]
[note=]your test here[/note]
=
. So it doesn't work as it should.Code: Select all
'bbcode_match' => '[note]{TEXT}[/note]',
'<span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT}</span>',
'bbcode_match' => '[note={TEXT1}]{TEXT2}[/note]',
'<span class="prime_bbcode_note_text" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);">{TEXT1}</span><span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT2}</span>',
Code: Select all
<xsl:if test="@text != ''">