vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [DRC] - Auto Embed (https://vborg.vbsupport.ru/showthread.php?t=322637)

Dr.CustUmz 05-13-2016 09:00 PM

[DRC] - Auto Embed
 
1 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.
Code:

https://vine.co/v/e1D3nOLQmUL
https://www.instagram.com/p/BEWkAowt0EL
https://twitter.com/funnyone_liner/status/731533545911554048

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:

Code:

instagr.am/p/BEWkAowt0EL
instagram.com/p/BEWkAowt0EL
www.instagram.com/p/BEWkAowt0EL
http://www.instagram.com/p/BEWkAowt0EL

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 05-14-2016 07:05 PM

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

greigeh 05-14-2016 09:31 PM

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 05-14-2016 09:47 PM

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 05-14-2016 10:27 PM

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 05-15-2016 02:23 PM

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 05-15-2016 02:27 PM

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 05-15-2016 04:55 PM

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

Code:

instagr.am/p/BEWkAowt0EL
instagram.com/p/BEWkAowt0EL
www.instagram.com/p/BEWkAowt0EL
http://www.instagram.com/p/BEWkAowt0EL


Dr.CustUmz 05-15-2016 08:35 PM

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
Code:

<a href="http(s)://twitter.com/(username)/status/(postid)(ANYTHING)" target="blank">(Anything)</a>
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
Code:

<a (anything)twitter.com/(username)/status/(postid)(ANYTHING)</a>
why does this help me?

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

HTML Code:

<a target="_blank" href="https://www.twitter.com/DrCustUmz/status/731586904760717316" alt="tweet" >Release tweet</a>
and it's still going to convert it into an embed =)

DR-WoWo 05-16-2016 06:52 PM

You deserve all the respect and appreciation

My friend

waiting to add youtube


All times are GMT. The time now is 03:27 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.01071 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_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
  • (10)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