Announcement

Collapse
No announcement yet.

Tweet BBCode

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Originally posted by glennrocksvb View Post
    Well, you haven't shown me the correct format yet. Please show me all the formats you've tried.
    While writing the topic :
    Click image for larger version

Name:	335345335.jpg
Views:	1
Size:	135.9 KB
ID:	15018

    After approval :
    Click image for larger version

Name:	3424342.jpg
Views:	1
Size:	56.5 KB
ID:	15019
    https://www.adslgate.com/dsl/images/smilies/anger2.gif

    Comment


      #62
      I wonder why in RTL the BBCode looks like this:

      https://twitter.com/blah/blah[/TWEET][TWEET]

      That doesn't look right. The Twitter URL should be in between the opening and closing tweet tags.

      I would imagine, it should be like this in RTL:

      [/TWEET]https://twitter.com/blah/blah[TWEET] or [TWEET]https://twitter.com/blah/blah[/TWEET]

      Comment


        #63
        Click image for larger version  Name:	3242432432242423423434.PNG Views:	1 Size:	192.1 KB ID:	15024

        no work




        https://www.adslgate.com/dsl/images/smilies/anger2.gif

        Comment


        • glennrocksvb
          glennrocksvb commented
          Editing a comment
          Can you post the link where that bbcode was posted on your site?

        #64
        Thats a cool bbcode... Long time looking to embed twitter to my vb

        Comment


          #65
          Originally posted by glennrocksvb View Post
          Wrong format. Check the sample in the first post.
          I am getting this as well. When I try to post a tweet it appears in the wrong format. It shows as [TWEET=https://twitter.com/caplannfl/status/1071804770380406785][/TWEET] and does not show the tweet. What did I do wrong?

          Comment


            #66
            This is the code I put in...
            Code:
            <div data-tweet-param="{param}"></div><script>(function(){function k(a,c){var d=Element.prototype;return(d.matches||d.webkitMatc hesSelector||d.mozMatchesSelector||d.msMatchesSele ctor||function(a){return-1!==[].indexOf.call(document.querySelectorAll(a),this)}) .call(a,c)}function g(a,c){return a?k(a,c)?a:"HTML"===a.tagName?null:g(a.parentNode, c):null}var b="{param}",a,e=document.getElementsByTagName("s cr ipt"),e=e[e.length-1],f;if(/^http[s]*:\/\//.test(b)){a=document.createElement("a");a.href=b;b =a.pathname.substring(a.pathname.lastIndexOf("/")+1)}f=e.parentNode.querySelector('[data-tweet-param="{param}"]:empty');(a=g(f,".js-post"))?a=a.getAttribute("data-node-id"):(a=g(f,".js-post-sm"),a=a?a.getAttribute("data-nodeid"):Math.floor(Math.random()*10000));a="t_"+( a||"")+"_"+b;window[a]=function(a){f.innerHTML=a.html;a=f.getElementsByT agName("script");for(var c,d=document.getElementsByTagName("head")[0],b=0;b<a.length;b++)a[b].src?(c=document.createElement("script"),c.src=a[b].src,d.appendChild(c)):eval(a[b].textContent)};var h=document.createElement("script");h.src="https://api.twitter.com/1/statuses/oembed.json?id="+b+decodeURIComponent("%26")+"call back="+a;e.parentNode.appendChild(h)})();</script>
            Last edited by glennrocksvb; 12-10-2018, 10:53 AM.

            Comment


              #67
              Originally posted by Iamtdg View Post
              It shows as [TWEET=https://twitter.com/caplannfl/status/1071804770380406785][/TWEET] and does not show the tweet. What did I do wrong?
              The tweet URL should be between (not in tweet=) the opening and closing tweet tags. Check the format in the first post closely.

              Comment


                #68
                Originally posted by glennrocksvb View Post
                The tweet URL should be between (not in tweet=) the opening and closing tweet tags. Check the format in the first post closely.
                I actually had one of the yes/no options wrong. Figured it out and it works great now. Thank you.

                Comment

                Working...
                X