vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Enabling HTML (https://vborg.vbsupport.ru/showthread.php?t=285699)

TNERatedEdge 07-18-2012 06:42 PM

Enabling HTML
 
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...074#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:

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:

Code:

<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.


All times are GMT. The time now is 03:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00988 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete