Announcement
Collapse
No announcement yet.
Tweet BBCode
Collapse
This is a sticky topic.
X
X
-
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]Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostWrong format. Check the sample in the first post.
- Top
- Translate
- Bottom
Comment
-
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.
- Top
- Translate
- Bottom
Comment
-
Originally posted by Iamtdg View PostIt shows as [TWEET=https://twitter.com/caplannfl/status/1071804770380406785][/TWEET] and does not show the tweet. What did I do wrong?Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostThe tweet URL should be between (not in tweet=) the opening and closing tweet tags. Check the format in the first post closely.
- Top
- Translate
- Bottom
- Likes 1
Comment
-
When you right click and paste the url, paste it as plain text. If you copied the link from a web page and do a regular paste, the format where it's copied from is carried over and pasted to the editor. So make sure when the url is pasted, it doesn't turn into a hyperlink.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
As I mentioned, you need to paste it as plain text so that it doesn't include the formatting.
That's how rich text editor works (not just CKEditor in vB but also on MS Word). When you copied a formatted text and paste it in a rich text editor, the text formatting will also be pasted.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostAs I mentioned, you need to paste it as plain text so that it doesn't include the formatting.
That's how rich text editor works (not just CKEditor in vB but also on MS Word). When you copied a formatted text and paste it in a rich text editor, the text formatting will also be pasted.
- Top
- Translate
- Bottom
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Reply to Topic Starter Ribbon for vBCloudby glennrocksvbMitch I've added the fix for this mod. Please refer to the "Fix for vB 6.0.4 and later" section in the updated first post....Yesterday, 10:26 PM
Comment