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)

MattGarner 02-09-2013 09:57 AM

Quote:

Originally Posted by Digital Jedi (Post 2402999)
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.

Digital Jedi 02-09-2013 05:46 PM

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.

sticky 03-09-2013 05:53 AM

Can't get this to work.

Chase 03-23-2013 02:08 PM

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.

Digital Jedi 03-23-2013 07:40 PM

Quote:

Originally Posted by Chase (Post 2411748)
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.

Chase 03-23-2013 08:28 PM

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.

Chase 03-23-2013 09:04 PM

They all post correctly but some end up vanishing..... then some time later (not sure how long) they come back again.

tomshawk 03-24-2013 01:24 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

===============================
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

Digital Jedi 03-24-2013 03:27 AM

Quote:

Originally Posted by Chase (Post 2411848)
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.

Drucifer 04-23-2013 09:26 PM

Where the tweet number now?

deltahawk5 04-24-2013 07:29 AM

is it possible to modify it so it just embeds with the whole link?

datoneer 04-24-2013 11:00 PM

Works perfect on 4.2.1

Digital Jedi 04-25-2013 03:15 AM

Quote:

Originally Posted by Drucifer (Post 2418162)
Where the tweet number now?

In the permalink. When you click the date.

Quote:

Originally Posted by deltahawk5 (Post 2418207)
is it possible to modify it so it just embeds with the whole link?

Not with BBCode. It doesn't use the full URL anywhere in the embed. And BBCode just extracts one element from the URL.

Azum 06-17-2013 02:25 PM

Working fine except when a reply is posted with the embedded tweet quoted, it left justifies the the signature of the person replying and the signature spans the entire length of the post. Is there something I can do to fix that?

Example:

https://vborg.vbsupport.ru/external/2013/06/17.jpg

Azum 06-17-2013 07:54 PM

Nevermind, had nothing to do with this, but for some reason only manifested when replying to tweet embedded posts. It was actually some modifications to additional.css and postbit.css that had been added to eliminate whitespace preceding signatures.

thenashy 07-25-2013 05:15 AM

I don't see Twitter avatars. Just the Tweet.

Tony_FPM 08-27-2013 07:57 AM

Facebook just released post embedding. Can you make a BBcode for that?

Azum 08-31-2013 05:25 PM

This is missing a closing div tag on the last line.

Should be:

Code:

<div class="twitter" onLoad="loadx().html"/></div>

Adam Wood 10-20-2013 05:46 AM

Awesome! Works like a charm!

Thanks!

Digital Jedi 10-20-2013 05:57 AM

Quote:

Originally Posted by Azum (Post 2442187)
This is missing a closing div tag on the last line.

Should be:

Code:

<div class="twitter" onLoad="loadx().html"/></div>

The div is self closed. You don't add a closing tag when a tag is self closed. Adding the closing tag will make the tag invalid.

What Are the Valid Closing Elements in XHTML

ku-med 02-16-2014 06:51 PM

Works great! Thanks :)

It's Damn Real! 02-25-2014 07:44 PM

This works great using a standard browser, but it's not supported at all on Mobile, or through mobile forum apps like Tapatalk and ForumRunner. I've wanted to utilize something like this that responds to quoting (like this one does) for a while, but I can't seem to find a cure-all code anywhere that works across all platforms.

Andreasmax 07-31-2017 10:14 AM

thanks for the code...


All times are GMT. The time now is 08:35 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.04235 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_code_printable
  • (7)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
  • (23)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