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)
-   -   New Posting Features - Twitter BBCode (https://vborg.vbsupport.ru/showthread.php?t=287342)

alex33_2 06-22-2015 12:16 PM

Quote:

Originally Posted by z3r0 (Post 2546168)
Probably because it's simple enough just to make your own bbcode from the twitter embed code.

Title: Tweet
BB Code Tag Name: tweet
Replacement:
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"/>

Example:[tweet]429641515728527360[/tweet]

Description: use the last number bit from the end of a tweet url and put between tweet tags.
[tweet]429641515728527360[/tweet]

Use {option}: no
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

You do need to refresh the page before it shows after posting, but that's no biggie.

Its worked. But if i press "edit" button in the post..post and all buttons from posts buttom like (edit, flag, vote and so on) disappear.

seems like edit button's iframe loads and conflicts with twitters iframe..

need help, thanks.

Vb5

e24h 06-22-2015 01:44 PM

Sorted and uninstalled with help from the support forum.

Abominus 01-12-2020 07:26 PM

Quote:

Originally Posted by z3r0 (Post 2546168)
Probably because it's simple enough just to make your own bbcode from the twitter embed code.

Title: Tweet
BB Code Tag Name: tweet
Replacement:
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"/>

Example:[tweet]429641515728527360[/tweet]

Description: use the last number bit from the end of a tweet url and put between tweet tags.
[tweet]429641515728527360[/tweet]

Use {option}: no
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

You do need to refresh the page before it shows after posting, but that's no biggie.

Thank you, that worked.

kerry oki 02-09-2023 05:31 PM

this crashed my forum.

I am able to reach the forum's main page but when I click on posts in the forum, I get a 500 Internal Error. So I deleted the modification and everything works okay again.


All times are GMT. The time now is 11:01 AM.

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.01223 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (2)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
  • (4)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