<font size="2"><font face="courier new,monospace">Spot on as usual Petko. Many thanks.<br>Rgds<br>Brian<br><br clear="all"></font></font><font face="'courier new', monospace"><div><br>------------------------------------------------<br>
Brian Tibbels</div></font><div><font face="'courier new', monospace">IT support for small business and the individual<br></font><div><font face="'courier new', monospace"><a href="http://clickmarlow.co.uk/" target="_blank">http://clickmarlow.co.uk/</a><br>
</font><div><font face="'courier new', monospace">m: 07804 109906</font></div><div><font face="'courier new', monospace">t: 01628 477640</font></div><div><font face="'courier new', monospace">skype: brian.tibbels </font></div>
<div><font face="'courier new', monospace"><br></font></div></div></div><br>
<br><br><div class="gmail_quote">On 3 October 2011 12:40, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Monday 03 October 2011 10:03:23, Brian Tibbels wrote :<br>
<div class="im">> I am trying to insert a "rel" into a link tag using the following syntax<br>
</div>...<br>
<div class="im">> %rel="prettyPhoto[iframes]"%[[<br>
> <a href="http://www.google.com?iframe=true&width=100%&height=100%%7Cgoogle" target="_blank">http://www.google.com?iframe=true&width=100%&height=100%|google</a>]]<br>
><br>
> It doesn't seem to like the square brackets<br>
<br>
</div>You can allow the [] characters in WikiStyle definitions. This can be done<br>
with such a line in config.php:<br>
<br>
  $WikiStylePattern = '%%|%[A-Za-z][-,=:#\\w\\s\'"()\\[\\].]*%';<br>
<br>
This was not extensively tested, it might break a page rendering in rare<br>
unexpected cases.<br>
<br>
<br>
Another way is to allow the prettyPhoto script to work with this type of rel<br>
attributes:<br>
<br>
  rel=prettyPhoto_set1   in addition to    rel="prettyPhoto[set1]"<br>
<br>
To do this, get the uncompressed current version 3.1.3 and in the file<br>
jquery.prettyPhoto.js add a line 148:<br>
<br>
  isSet = (galleryRegExp.exec(theRel)) ? true : false; // AFTER THIS LINE 147<br>
  isSet = theRel.substring(11).length;                 // ADD THIS LINE<br>
<br>
("11" in substring(11) is the length of the common "prettyPhoto" prefix.)<br>
<br>
Obviously, if you want to upgrade to newer prettyPhoto versions, you'll have<br>
to review them and insert your change.<br>
<br>
Petko<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br>