Re: PrettyPhoto on [img] tags
Posted: 12 Jun 2011, 20:18
I know that. i was saying that its not a safe way of doing it
Database and Demo for phpBB3 BBCodes, Mods and Smilies
https://phpbb3bbcodes.com/
Code: Select all
[sigimg]{URL}[/sigimg]
Code: Select all
<img src="{URL}" alt="" />
Code: Select all
<!-- IF S_BBCODE_IMG -->
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
Code: Select all
<!-- IF S_BBCODE_IMG -->
<!-- IF $SIG_EDIT -->
<!-- BEGIN custom_tags -->
<!-- IF custom_tags.BBCODE_TAG eq 'sigimg' -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="Img" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- ENDIF -->
<!-- END custom_tags -->
<!-- ELSE -->
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
<!-- ENDIF -->
Code: Select all
'img' => '<a href="$1" rel="prettyPhoto[group1]" title="" ><img src="$1" alt="' . $user->lang['IMAGE'] . '" class="onerror" width="100" /></a>',
Code: Select all
<!-- IF S_BBCODE_IMG -->
<!-- IF $SIG_EDIT -->
<!-- BEGIN custom_tags -->
<!-- IF custom_tags.BBCODE_TAG eq 'sigimg' -->
<input type="button" class="buttonz" name="addbbcode{custom_tags.BBCODE_ID}" value="" style="background: url('{ROOT_PATH}images/editor/image.png');" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- ENDIF -->
<!-- END custom_tags -->
<!-- ELSE -->
<input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('{ROOT_PATH}images/editor/image.png');" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<!-- ENDIF -->