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.


All times are GMT. The time now is 07:30 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.01220 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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