vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=287342

Twitter BBCode
by kirby14
01 Sep 2012 16:44

2 Attachment(s)
Information:
  • Allows you to embed a Tweet in a post using only the ID.
  • You can reply, retweet, follow, etc. directly from inside the post.
  • Uses Twitter's oEmbed endpoint.

Usage:
[tweet]<id>[/tweet]

Known Bugs:
On vB4 there is currently an issue with the AJAX quick edit form while in Standard Editor mode. If you want to use the Standard Editor, you will need to do the fix listed below.

Fix For The Bug Listed Above: (vB4 only) in /clientscripts/ckeditor/ckeditor.js line 134 change:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Install:
Read the install.txt file in the .zip. It is very simple.

Note: I changed the tag from twitter to tweet because I noticed someone already is using twitter.

github: https://github.com/kirby14/mach_bbcode_twitter

kirby14 01 Sep 2012 16:51

Future Plans:
  • Fix the quick edit bug
  • Add twitter to the editor toolbar
  • Clean up code

dawges 01 Sep 2012 22:00

Quote:

Originally Posted by kirby14 (Post 2361751)
Future Plans:
  • Fix the quick edit bug
  • Add twitter to the editor toolbar
  • Clean up code

Cant wait to try this after bug fixes. Thanks for this.

kirby14 01 Sep 2012 22:27

Quote:

Originally Posted by dawges (Post 2361808)
Cant wait to try this after bug fixes. Thanks for this.

Yeah, the Twitter toolbar part should be simple but I haven't done a lot of javascript work and I don't know any YUI so I am counting on someone else from the community helping out.

I'll keep working on it, though.

kirby14 02 Sep 2012 20:10

Ok, I posted a temporary fix. I'll try to pinpoint why there is an undefined object being added to teh array, but for now this should fix it.

Cybnext 04 Sep 2012 15:20

Works on 3.8 as well. Not sure if the strip_bbcode hook does anything, but everything else is functional.

SpikeSaunders 04 Sep 2012 22:53

Lovely, but for some reason on 4.2 it won't give your fancy look like in the screenshot. Works nicely, just no formatting, acts like indented text in the post
==

Just testing a new feature!
— E (@REDACTED) September 4, 2012

kirby14 04 Sep 2012 23:01

Did you include the javascript line that is in the install.txt file? Just need to put it at the bottom of your headinclude file.

SpikeSaunders 04 Sep 2012 23:14

Indeed! However, mine had a slight edit from a previous mod long removed. Replaced that with the new one, fixed. Heh. Thanks man!

kirby14 04 Sep 2012 23:26

Quote:

Originally Posted by SpikeSaunders (Post 2362696)
Indeed! However, mine had a slight edit from a previous mod long removed. Replaced that with the new one, fixed. Heh. Thanks man!

No problem. I was honestly surprised someone hadn't already written it. It seems like something that could work out pretty well on a lot of installs.

SpikeSaunders 04 Sep 2012 23:31

Yep. Only problem is when twitter dev team updates the API again which will break existing twitter mods everywhere just like last time :)

thedukeboard 07 Sep 2012 10:45

Perfect. Thank you.

panosha 21 Sep 2012 12:07

Excellent! Thank you. :)

The_____KinG 22 Sep 2012 21:17

Installed it on VB 4.1.12 and nothing happens. I made the changes that were instructed in the install file. Any reason?.

kirby14 23 Sep 2012 02:39

Did you try using a [tweet] tag? Nothing shows up in the ckeditor toolbar yet, you just have to manually type it.


All times are GMT. The time now is 19:55.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.