PDA

View Full Version : Enabling HTML


TNERatedEdge
07-18-2012, 06:42 PM
I have HTML on, yet when I post this script:

<blockquote class="twitter-tweet tw-align-center"><p>Marco Belinelli has received interest from the Bulls, Magic, Warriors and Knicks.</p>&mdash; Legion Sports (@MySportsLegion) <a href="https://twitter.com/MySportsLegion/status/225675484615294976" data-datetime="2012-07-18T19:36:43+00:00">July 18, 2012</a></blockquote>
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

it never displays it.

How do I fix this?

kh99
07-18-2012, 07:05 PM
You say it never displays, what does happen, a blank post? I tried it and it works for me.

TNERatedEdge
07-18-2012, 07:21 PM
It's from Twitter.

so I take the HTML url and I copy and paste it it shows for a second then disappears into text.

Sarteck
07-18-2012, 08:02 PM
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Doesn't it need to have the protocol?

<script src="http://platform.twitter.com/widgets.js" charset="utf-8"></script>

(Just guessing.)

TNERatedEdge
07-18-2012, 10:36 PM
didnt work

http://www.mysportslegion.com/forums/showthread.php?13413-Blazers-match-Batum-s-offer-sheet.&p=217074#post217074

thats what it shows.

Lynne
07-19-2012, 04:14 PM
When you say you enabled HTML, did you do it for that specific forum (it is a forum permission under the Forum Manager)?

TNERatedEdge
07-19-2012, 04:19 PM
Yes.

kh99
07-19-2012, 06:49 PM
I don't think it's a problem with enabling html. Apparently the javascript is suppose to run and convert the link into some html and something's not working. Do you by any chance have any mods installed that have to do with Twitter?

You could try this (as an experiment): Create a plugin using hook parse_templates and this code:

if (THIS_SCRIPT == 'showthread')
{
$template_hook['footer_javascript'] .= '<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>';
}


then try posting just the blockquote part:

<blockquote class="twitter-tweet tw-align-center"><p>Marco Belinelli has received interest from the Bulls, Magic, Warriors and Knicks.</p>&mdash; Legion Sports (@MySportsLegion) <a href="https://twitter.com/MySportsLegion/status/225675484615294976" data-datetime="2012-07-18T19:36:43+00:00">July 18, 2012</a></blockquote>

TNERatedEdge
07-19-2012, 07:21 PM
Nope, I don't have a twitter mod installed.

It works sometimes, then it doesn't,, I don't get it.