CMSMS 1.10.3 (updated from 1.9.4.3)
This works in a UDT:
echo "<a href='http://www.yahoo.com'>Yahoo</a>";
But this doesn't
echo "<p><a href='http://www.yahoo.com'>Yahoo</a></p>";
The "Apply" button doesn't work, and the Submit button produces a 404 on edituserplugin.php.
Any ideas or can anyone duplicate this?
Problem including link inside UDT
Re: Problem including link inside UDT
Well, I've tried and failed reproducing this condition on a 1.9.4.3 to 1.10 >> .... >> 1.10.3 upgrade. For me, it works OK. Haven't tried showing the UDT on a page/Template, though.
Re: Problem including link inside UDT
Drat! Thanks for trying, scelle. I think I must have something funny going on on my server. Worked fine in 1.9.4.3, though... hmmm
Re: Problem including link inside UDT
Try
echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";
echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";
Re: Problem including link inside UDT
Thanks Applejack, but no dice.
This doesn't work:
echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";
But this does:
echo "<a href=\"http://www.yahoo.com\">Yahoo</a>";
and this does:
echo "<p>Yahoo</p>";
It seems to break when I have two sets of tags (i.e. <p></p> and <a></a>. With only one set of tags (EITHER <p></p> OR <a></a>), it seems to be fine.
This doesn't work:
echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";
But this does:
echo "<a href=\"http://www.yahoo.com\">Yahoo</a>";
and this does:
echo "<p>Yahoo</p>";
It seems to break when I have two sets of tags (i.e. <p></p> and <a></a>. With only one set of tags (EITHER <p></p> OR <a></a>), it seems to be fine.
Re: Problem including link inside UDT
His original example in the first post had single quotes.Dr.CSS wrote:Have you tried using single quotes in the a href= ?...
Re: Problem including link inside UDT
yep. single quotes, double quotes, doesn't seem to make a difference... really odd...