Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BBcode for Embedded Tweets Details »»
BBcode for Embedded Tweets
Version: 1.01, by Bisha Bisha is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.0 Rating:
Released: 10-17-2012 Last Update: 10-18-2012 Installs: 58
 
No support by the author.

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






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






and then paste on Tweet tag:


[tweet]ID HERE[/tweet]


Enjoyed!

Download Now

File Type: zip Twitter-bb-code.zip (314 Bytes, 274 views)

Screenshots

File Type: png tweet.png (66.9 KB, 0 views)
File Type: jpg tweet-.jpg (27.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Andreasmax, mapleleaffans, Midohash

Comments
  #42  
Old 02-09-2013, 09:57 AM
MattGarner MattGarner is offline
 
Join Date: Apr 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
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.
I hope I can explain this better. I post a tweet using the BBCode and that's fine it all works. But say I wanted to edit that specific post X amount of minutes later - I am unable to because it makes the text box all grey.
Reply With Quote
  #43  
Old 02-09-2013, 05:46 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see now looking at Drucifer's forum. The editor is not being loaded inside the table cell. Likely the reason you can't edit it later is, actually, due to the JavaScript issue I mentioned, because when you post via AJAX, the JavaScript isn't loading, and in this case, not interfering until you come back to edit the post later. That might be tough to narrow down, but the first thing I would do, at least in Drucifer's case, is correct the validation errors on that page. Most of the time I've ever had a JavaScript conflict, it was because of validation errors. For instance:

Code:
<a href="search.php?do=getnew&amp;contenttype=vBForum_Post">New Posts</a>
& should be &amp;

If you're not familiar with Validation, there's an article in my profile that explains it in detail. Good idea to rule it out, at the very least. And it will help with any other problems you might encounter in the future.
Reply With Quote
  #44  
Old 03-09-2013, 05:53 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't get this to work.
Reply With Quote
  #45  
Old 03-23-2013, 02:08 PM
Chase Chase is offline
 
Join Date: May 2002
Location: Northern Ohio
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this mod installed on 3.8.7 and it works fine for the most part. We post that long digit code between the tweet tags and it shows up like it should... but some members of mine report back to me saying that from time to time their post doesn't show the tweet.... most of the posts only have the tweet in that post...

I understand the ajax issue when posting via quick reply... but they are saying if they navigate out and later come back to view a post... that tweet isn't showing.... the post it just empty.

However it will come back a little later.... reloading the page doesn't seem to help either.
Reply With Quote
  #46  
Old 03-23-2013, 07:40 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chase View Post
I have this mod installed on 3.8.7 and it works fine for the most part. We post that long digit code between the tweet tags and it shows up like it should... but some members of mine report back to me saying that from time to time their post doesn't show the tweet.... most of the posts only have the tweet in that post...

I understand the ajax issue when posting via quick reply... but they are saying if they navigate out and later come back to view a post... that tweet isn't showing.... the post it just empty.

However it will come back a little later.... reloading the page doesn't seem to help either.
Most likely that means Twitter is down for the time they are viewing it.
Reply With Quote
  #47  
Old 03-23-2013, 08:28 PM
Chase Chase is offline
 
Join Date: May 2002
Location: Northern Ohio
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply Jedi....

Other tweet embeds are showing just fine though... and other tweets on the same page (but not same post, if you know what I mean)

I checked the ID of the tweet to make sure it is 18 digits and it is.

I can't figure out why a tweet wouldn't load but would load fine in other posts.
Reply With Quote
  #48  
Old 03-23-2013, 09:04 PM
Chase Chase is offline
 
Join Date: May 2002
Location: Northern Ohio
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They all post correctly but some end up vanishing..... then some time later (not sure how long) they come back again.
Reply With Quote
  #49  
Old 03-24-2013, 01:24 AM
tomshawk's Avatar
tomshawk tomshawk is offline
 
Join Date: Jul 2003
Location: California
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Drucifer View Post
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

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

Got it to work even with the error message
Same errror for me but not working, whether I use quick reply or advanced.

Argg, This will be kewl once I get it working
Reply With Quote
  #50  
Old 03-24-2013, 03:27 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chase View Post
They all post correctly but some end up vanishing..... then some time later (not sure how long) they come back again.
Keep in mind Twitter is a large site with more than one server. They don't always go down at once. That's most likely what's happening.
Reply With Quote
  #51  
Old 04-23-2013, 09:26 PM
Drucifer's Avatar
Drucifer Drucifer is offline
 
Join Date: Feb 2010
Location: NY Hudson Valley
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where the tweet number now?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:56 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.07286 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete