vBulletin Mods

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

[DRC] - Auto Embed
by Dr.CustUmz
14 May 2016 19:23

4 Attachment(s)
[DRC] - Auto Embed

Homepage:
http://dirtrif.com

Demo: (as of last edit)
https://dev.dirtrif.com/vb3/showthread.php?p=7

Information:
Auto Embed, does simply just that. Instead of having to manage bbcodes, now when a user posts a link it will automatically become that sites embedded widget. With many options to tweak to your liking.

This is one of my bigger releases, although this product specifically I've only been working on for 2 days. Just with everything coming up so quick (wedding 6/26, baby shower 7/10, Honey moon some time in between, And the baby due 8/30) I haven't been able to get things released as I'd hope. I just want to give you guys something so you know I am still working on products for you!

Have a request?
If making a request, please include a link example to said media (what you would post on your forum), if this provider has some sort of embed option already please include an example of that as well.

Currently Supports:
- Vine
- Twitter
- Instagram
- Facebook

Next Update:
- Youtube

Planned:
- Pinterest
- Google+
- Spotify
- vevo
- flickr
- 500px
- Genius
- google maps
- soundcloud
- and more

Have a suggestion? share it here!

Example usage:

Just past links like the following, in a post.

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

With the release of v1.1 users will be able to use broader variations of links
*note these still must be click-able links once the post is submitted though*

Example variations of the same Instagram link:


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

Better Screenshots: (huge so I didnt bbcode them)
http://i.imgur.com/iPMhIMS.png
http://i.imgur.com/lZJJXEK.png
http://i.imgur.com/XaVTaiA.png


Changelog:
---------------------------------------------
v1.5
- Added Facebook posts/comments/videos

v1.3
- Fixed template error

v1.2
- SEO compatibility
- Link format even less strict

v1.1
- less strict on link variations

v1.0
- initial release

Dr.CustUmz 14 May 2016 21:05

To Do
- Default settings need to be adjusted
- Organize Phrases
- Start Youtube

greigeh 14 May 2016 23:31

Downloaded + installed. I actually love this because there's sooo many settings and it's so well laid out in both ACP and the actual plugin itself in the forum.

Only issue I know of is that when you use quick edit, it doesn't automatically run the script. It takes a refresh for the embed to actually show but i'm not sure if there's a way around that?

Other than that I LOVE IT! thanks a lot

MarkFL 14 May 2016 23:47

Hey Ryan,

Regarding the "Quick Edit" issue reported by Greig, it may be possible to get that to work by changing the hook location of the 3 plugins hooked at "postbit_display_complete" to the hook location "showthread_postbit_create"...I know I have had success getting postbit related things to work after a quick reply/edit using that hook location. :)

Dr.CustUmz 15 May 2016 00:27

I gave the fix an attempt, and it broke the forums, showthread wouldn't even load. I dont have time to debug that atm, but wouldn't allowing it on the edit post portion require some ajax calls?

note* this is not a bug, this is how it was produced. It will only run on showthread; in new thread preview, new reply preview, pms, vms, ect... users will only see a link.

Alan_SP 15 May 2016 16:23

Quote:

Originally Posted by greigeh (Post 2570799)
Only issue I know of is that when you use quick edit, it doesn't automatically run the script. It takes a refresh for the embed to actually show but i'm not sure if there's a way around that?

I very recently created BBcode for facebook videos and posts and noticed problem when AJAX is used to post new content, as described here.

I didn't at the moment test this mod, but I'm thinking that this has something to do with this. I'm on vB4, so not sure how it works with vB3.8, is there AJAX with quick edit, but I think it is.

Anyway, if it is really AJAX problem, I think that it needs to be done on system level (i.e. vB core files), if it can be done at all.

But, everything works, facebook content is placed just fine, you only don't see it when AJAX place it there. I know some other things that doesn't work with AJAX (some DBTech's mods).

In my opinion it is not that big of a problem for me, as content is there, all other users will see it as soon as it is served without AJAX.

Alan_SP 15 May 2016 16:27

Quote:

Originally Posted by Dr.CustUmz (Post 2570806)
but wouldn't allowing it on the edit post portion require some ajax calls?

As I wrote, AJAX probably causes problems.

And I wait to be able to automatically add facebook videos and posts, at the moment I need to use BBcode (it works without problems), but for the rest of links I use AME3 and it works just fine. For some reason it doesn't work with facebook, even if I use same code for creating BBcode.

Anyway, I hope you'll manage to get facebook content working. :up:

Dr.CustUmz 15 May 2016 18:55

Updated to v1.1 which allows broader variations of links.
Example variations of the same Instagram link:


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


Dr.CustUmz 15 May 2016 22:35

v1.2 adds seo compatibility to urls

before auto embed looked for links structured as the following (twitter example) red stands for things that didnt matter

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

this wouldnt work with seo because seo adds rel="" to links so to make it compliant and less strict I have made it work like the following

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

why does this help me?

well now your links can be structured more loosely so you could have a link that looks like this:


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

and it's still going to convert it into an embed =)

DR-WoWo 16 May 2016 20:52

You deserve all the respect and appreciation

My friend

waiting to add youtube

Dr.CustUmz 16 May 2016 22:40

Quote:

Originally Posted by DR-WoWo (Post 2570921)
You deserve all the respect and appreciation

My friend

waiting to add youtube

thanks, and this one I would appreciate if you didn't repost ;)

finishing up settings for facebook right now :)

DR-WoWo 17 May 2016 00:29

Quote:

Originally Posted by Dr.CustUmz (Post 2570929)
thanks, and this one I would appreciate if you didn't repost ;)

finishing up settings for facebook right now :)


Quote:

this one I would appreciate if you didn't repost


why bro

DR-WoWo 17 May 2016 00:46

1 Attachment(s)
the product has been translated into Arabic for your support

Dr.CustUmz 17 May 2016 01:22

because where you post things, non-licensed users can download things, this is known as pirating, and yes this will be leached, that's why I tend to share my own products myself on these sites if I approve of them being there.

DR-WoWo 17 May 2016 18:40

Quote:

Originally Posted by Dr.CustUmz (Post 2570939)
because where you post things, non-licensed users can download things, this is known as pirating, and yes this will be leached, that's why I tend to share my own products myself on these sites if I approve of them being there.

As you like, my friend and I am at your service if you want


All times are GMT. The time now is 08:53.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, 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.