Problem including link inside UDT

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Problem including link inside UDT

Post 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?
scelle
Forum Members
Forum Members
Posts: 81
Joined: Sun Apr 24, 2011 8:14 pm
Location: Montenegro

Re: Problem including link inside UDT

Post 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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Problem including link inside UDT

Post 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
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: Problem including link inside UDT

Post by applejack »

Try

echo "<p><a href=\"http://www.yahoo.com\">Yahoo</a></p>";
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Problem including link inside UDT

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Problem including link inside UDT

Post 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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Problem including link inside UDT

Post by jmcgin51 »

yep. single quotes, double quotes, doesn't seem to make a difference... really odd...
Post Reply

Return to “CMSMS Core”