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

  • Iamtdg
    replied
    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.

    Leave a comment:


  • Iamtdg
    replied
    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?

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Can you post the link where that bbcode was posted on your site?

  • weiind
    replied
    Thats a cool bbcode... Long time looking to embed twitter to my vb

    Leave a comment:


  • ABDURHMAN
    replied
    Click image for larger version  Name:	3242432432242423423434.PNG Views:	1 Size:	192.1 KB ID:	15024

    no work




    Leave a comment:


  • glennrocksvb
    replied
    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]

    Leave a comment:


  • ABDURHMAN
    replied
    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:	349
Size:	135.9 KB
ID:	15018

    After approval :
    Click image for larger version

Name:	3424342.jpg
Views:	291
Size:	56.5 KB
ID:	15019

    Leave a comment:


  • glennrocksvb
    replied
    Well, you haven't shown me the correct format yet. Please show me all the formats you've tried.

    Leave a comment:


  • ABDURHMAN
    replied
    I tried all the formats
    They all do not work.
    Do you want to work as a member for you to try yourself?

    Leave a comment:


  • glennrocksvb
    replied
    Did you follow the correct tweet bbcode format? Take a look at the format very closely. The last format you used in post #85 was wrong.

    Leave a comment:


  • ABDURHMAN
    replied
    I did all the solutions and did not work with me I do not know why it?

    Leave a comment:


  • glennrocksvb
    replied
    The tags are wrong. This is how it should look like:

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

    Leave a comment:


  • ABDURHMAN
    replied
    no work

    Click image for larger version

Name:	654646466.PNG
Views:	209
Size:	17.8 KB
ID:	14993

    Leave a comment:


  • glennrocksvb
    replied
    The Tweet URL should be in between the Tweet BBCode opening and closing tags. Check the format in the first post again.

    Leave a comment:


  • ABDURHMAN
    replied
    When adding code :
    Click image for larger version

Name:	tw1.PNG
Views:	198
Size:	113.5 KB
ID:	14987


    After approval the thread does not appear :

    Click image for larger version

Name:	tw2.PNG
Views:	111
Size:	50.8 KB
ID:	14988

    After returning the subject to edit the code does not appear :

    Click image for larger version

Name:	tw3.PNG
Views:	135
Size:	44.2 KB
ID:	14989

    Leave a comment:

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"