vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - BBcode for Embedded Tweets (https://vborg.vbsupport.ru/showthread.php?t=289282)

Bisha 10-17-2012 10:00 PM

BBcode for Embedded Tweets
 
1 Attachment(s)
Overview

The Embedded Tweet feature allows websites to generate copy and paste-able HTML markup to render a Tweet on any third-party website. This markup presents a Tweet in an attractive (and display guidelines compliant) way, and automatically sets up Web Intents so that viewers of the Tweet may retweet, reply, favorite, and follow easily from the rendered view. read more


https://vborg.vbsupport.ru/attachmen...1&d=1350593885



How to Install:

Custom BB Codes->Add New BB Code

Title: Tweet
BB Code Tag Name: tweet (or whatever you want)

For Replacement paste this:
HTML Code:

<script type="text/javascript">
function loadx(data) {
  document.write(data.html);
}
</script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id={param}&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>


Confirm: Continue!



How to Use?


Copy the ID of the Tweet Status


https://vborg.vbsupport.ru/attachmen...1&d=1350593769



and then paste on Tweet tag:


[tweet]ID HERE[/tweet]


Enjoyed!

Drucifer 10-21-2012 10:18 PM

I get this error message . . . .

Quote:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
I copied & pasted. Have no idea where the two missing double quotes are supposed to be.

I'm running vB v4.2

===============================
Nevermind!

Got it to work even with the error message

dawges 10-22-2012 04:11 AM

thank you. works great and very simple to use.

Bisha 10-22-2012 06:06 AM

Quote:

Originally Posted by Drucifer (Post 2374909)
I get this error message . . . .



I copied & pasted. Have no idea where the two missing double quotes are supposed to be.

I'm running vB v4.2

Just ignore that message for now!

BozzaJos 10-25-2012 05:05 PM

Brilliant mod! Thank You!

Bisha 10-26-2012 06:27 AM

Quote:

Originally Posted by BozzaJos (Post 2375946)
Brilliant mod! Thank You!

You'r welcome :)

mgurain 11-02-2012 04:45 PM

I ignored the error message but it did not work in my 4.2 !

Bozza 11-04-2012 07:38 AM

Installed on 4.2 and largely working well (despite the error message others mention when applying the BB code)

However edit post on a thread with an embedded tweet now doesn't work - the edit box is greyed out with no text to edit.

Other threads on the site are still OK, so I'm pretty confident it's related to this.

Drucifer 11-04-2012 02:01 PM

Quote:

Originally Posted by Bozza (Post 2378250)
Installed on 4.2 and largely working well (despite the error message others mention when applying the BB code)

However edit post on a thread with an embedded tweet now doesn't work - the edit box is greyed out with no text to edit.

Other threads on the site are still OK, so I'm pretty confident it's related to this.

I have this issue too.

dawges 11-04-2012 08:30 PM

Quote:

Originally Posted by Drucifer (Post 2378301)
I have this issue too.

Same issue here too. I had many reports that people were unable to edit posts. However it took me a while to track it to this, i never thought bbcode would cause such issues. Removed until bug fix.

Bisha 11-07-2012 08:55 PM

Have you turned off autolinks for the TAG?

Bozza 11-07-2012 09:26 PM

Quote:

Originally Posted by Bisha (Post 2379245)
Have you turned off autolinks for the TAG?

I did have Disable Automatic Link Parsing Within This BB Code set to 'No', I've now set it to 'Yes'.

Same results with each - can't edit.

Drucifer 12-04-2012 10:14 PM

It has stopped working.

And all previous embedded tweets posts are blank.

Bisha 12-08-2012 07:20 PM

I'm working on an update!

Drucifer 12-09-2012 01:52 AM

I think the problem was at the Twitter end.

deltahawk5 12-09-2012 06:25 AM

Would be nice if it just took the whole URL. For now, having my users dissect it is nothing more than an inconvenience.

pete_brady 12-09-2012 07:31 AM

Quote:

Originally Posted by deltahawk5 (Post 2389464)
Would be nice if it just took the whole URL. For now, having my users dissect it is nothing more than an inconvenience.

http://embedtweet.com/

just keep an eye on page load times

acast 01-13-2013 01:14 AM

Nice. Thanks!!

TNERatedEdge 01-13-2013 02:24 PM

doesn't work

Chase 01-17-2013 09:36 PM

I am very interested in this.

Will this work on 3.8.7?

Chase 01-18-2013 07:20 PM

bump

conchemimare 01-19-2013 04:15 PM

Awesome, all set... good one.

Chase 01-19-2013 07:22 PM

How can I get this to work on 3.8.7?

Digital Jedi 01-19-2013 07:36 PM

Quote:

Originally Posted by Chase (Post 2397989)
How can I get this to work on 3.8.7?

BBCodes are, inherently, not modifications. They don't use anything vB version related, they only use Replacement code that should work in any webpage. So pretty much there's no reason why it shouldn't work on any version of vB.

Chase 01-19-2013 11:16 PM

Thanks for the reply Jedi...

I followed the directions closely and when I went to add the 18 digit tweet ID in the tags, the result just came up blank.

Any idea why?

Digital Jedi 01-20-2013 02:54 AM

Quote:

Originally Posted by Chase (Post 2398045)
Thanks for the reply Jedi...

I followed the directions closely and when I went to add the 18 digit tweet ID in the tags, the result just came up blank.

Any idea why?

Are you posting via AJAX [Quick Reply and Inline Editing]? JavaScripts, when used as BBCodes don't show up for the end user. That is, until you refresh or reload the page. For everyone else, they'll see it the first time. Also, is it working inside the BBCode editor? If it's working there, it's working on the forum. So always make sure it works in the example and test area as first.

Chase 01-20-2013 04:23 AM

ahhhhhh thank you! It works great!

Chase 01-20-2013 03:03 PM

The mod works great but it would be nice if all we had to do was copy and paste the URL and not have to go digging for the 18 digit code. It's not too difficult for me to do it but I feel it would be a real hassle for my visitors to have to dig around for that info.

Is there any way to do that?

Digital Jedi 01-20-2013 06:13 PM

Not with the way the BBCode editor works. All it does is take whatever you put inside the [tags] and replaces it in the Replacement code wherever you see {param}. The replacement code doesn't use the full URL at all.

(NOTE: AME could probably do that. But it would require someone to make a definition.)

Chase 01-20-2013 06:25 PM

I would have no idea how to do that. Think you could help me do that? I would donate some $$ to you for your help.

franzes80 01-20-2013 08:03 PM

Don't work on vb 4.20 pl3

Digital Jedi 01-20-2013 09:46 PM

Quote:

Originally Posted by franzes80 (Post 2398252)
Don't work on vb 4.20 pl3

It's not really version specific. Double check your code and do testing in the Admin CP. It should work on any vBulletin installation.

Chase 01-21-2013 10:25 PM

Quote:

Originally Posted by Digital Jedi (Post 2398236)
Not with the way the BBCode editor works. All it does is take whatever you put inside the [tags] and replaces it in the Replacement code wherever you see {param}. The replacement code doesn't use the full URL at all.

(NOTE: AME could probably do that. But it would require someone to make a definition.)

Quote:

Originally Posted by Chase (Post 2398237)
I would have no idea how to do that. Think you could help me do that? I would donate some $$ to you for your help.


Just wanted to bump in case you missed this due to it being the last post on that page.

Digital Jedi 01-22-2013 12:00 AM

It would be best if we discussed that in my AME definitions thread, rather than here. But I'll look into creating a definition in time.

Drucifer 01-24-2013 03:39 AM

The simple LINK Tab is gone from Tweets, but the number is still there in Embed and works.

Digital Jedi 01-24-2013 05:08 AM

Quote:

Originally Posted by Drucifer (Post 2399078)
The simple LINK Tab is gone from Tweets, but the number is still there in Embed and works.

If you mean the Direct Link to individual tweets, they're still there. You have to click the Tweet's time stamp.

Drucifer 01-29-2013 06:44 PM

The reply box is back to being gray-out again when the post contains a tweet.

MattGarner 02-08-2013 08:30 PM

I have something similar but only when you would need to go and edit the post that contains the tweet. Any chance that could be solved?

Quote:

Originally Posted by Drucifer (Post 2400340)
The reply box is back to being gray-out again when the post contains a tweet.


Digital Jedi 02-09-2013 01:05 AM

Are you guys referring to when you edit a reply with a Tweet in it, and the tweet disappears? If so, that's a limitation of the AJAX used in vBulletin. JavaScript can't called within the JavaScript of the page, as it were. It also happens when using Quick Reply. Nothing simple can be done to fix it, but it really only does that for the person posting/editing. Everyone else can still see the post, and even the poster can when he reloads the page. If it's something different, than I'm not sure what you mean.

Drucifer 02-09-2013 01:52 AM

No, the reply box is GRAY OUT. The only way to reply is via open in new tab.

I'm currently using FF v18.2


All times are GMT. The time now is 06:08 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.01510 seconds
  • Memory Usage 1,818KB
  • 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
  • (1)bbcode_html_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete