Page 1 of 1

Problem including link inside UDT

Posted: Tue Jan 31, 2012 4:44 pm
by jmcgin51
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?

Re: Problem including link inside UDT

Posted: Tue Jan 31, 2012 4:59 pm
by scelle
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

Posted: Tue Jan 31, 2012 5:36 pm
by jmcgin51
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

Posted: Thu Feb 02, 2012 6:50 pm
by applejack
Try

echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";

Re: Problem including link inside UDT

Posted: Thu Feb 02, 2012 8:56 pm
by jmcgin51
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.

Re: Problem including link inside UDT

Posted: Thu Feb 02, 2012 10:11 pm
by Wishbone
Dr.CSS wrote:Have you tried using single quotes in the a href= ?...
His original example in the first post had single quotes.

Re: Problem including link inside UDT

Posted: Fri Feb 03, 2012 1:06 am
by jmcgin51
yep. single quotes, double quotes, doesn't seem to make a difference... really odd...