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)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

Digital Jedi 10-22-2013 03:28 PM

1 Attachment(s)
]|TUESDAY MORNING DEFINITIONS|[
Because that can be a thing, too


In case you missed the email notification, the incessant thread bumping or the skywriting in every major city, AME 2.5.7 is out, and you can grab it here:


AME 2.5.7 includes two new advanced option called Extra Head Tag Code and Extra Body Tag Code. One of the problems I always had with making definitions, is that some websites required an extra snippet of code, such as JavaScript, in either the <head> or <body> tags of your website. I couldn't put the code in the definitions if it was required in the head tags, and even then, the code could only appear once per page. So your only other option would have been to edit one or more of your templates. That didn't seem like an elegant solution. So in AME 2.5.7, I've included these two extra fields where you can add this extra code, and AME will insert it automatically into the proper templates. No need for editing. No need to edit multiple styles.

So here's a handful of definitions I worked out that use the new feature, just to get you started...


NEW :: EXTRA CODE

Google+ Profiles, Pages, Posts and Communities :: Each of those can now be embedded in a post using the collection of Google+ definitions in this update. But be sure to include the extra JavaScript code necessary to make it work. Go to your Admin CP ?? AME CP ?? Advanced Options and paste it into your Extra Head Tag Code field:

HTML Code:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Pinterest Boards, Pins and Profiles :: My old definitions for Pinterest stopped working a while back, and even when they did work, they had to match up to 20 parameters just to work right. Not the most elegant of solutions, either. This new set of Pinterest definitions will embed Boards, Profiles and individual Pins using Pinterest's native widgets. Go to your Admin CP ?? AME CP ?? Advanced Options and paste the following JavaScript code into Extra Body Tag Code:

HTML Code:

<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>




But wait, there's less!


I've included some new definitions and some updated definitions that use the regular old run of the mill functions you've come to know and love.


NEW

Kickstarter is the crowdfunding website that get's everything from that 500 foot robot snake I always dreamed about as a kid, to a feature-length Veroncia Mars movie it's funding. Two definitions are included where you can decide whether to embed a project's promo video, or it's widget.

Indiegogo widgets are available as well. Think of Indiegogo as the Garfunkle of crowdfunding websites.

Pastebin lets you share, well, pastes with other users. Now you can embed public pastes in a post. (Say that seven times real fast.)

To round out the social media goodness, you can now embed Facebook Posts and Pages in a thread. Note that the Facebook Pages definition will try to embed regular profiles and fail. So user your own discretion with that one.

ProProfs Brain Games host a series of puzzles, brain teasers and word games to keep you from doing your taxes, cooking dinner or feeding the baby, for hours on end. Now make your community as unproductive as you are and embed them in posts.



UPDATED

Just one, but it's a good one.

Remember eBay thumbnails? How about something a little more practical?




LOCAL HOSTED

In addition, I've updated the existing local hosted definitions, and composed a few more. For one, they should no longer require editing to support your website, they should work out of the box. Let me know if they don't. I added a little extra media support to a couple and just outright created some new ones. As usual, documents display using Google Drive's doc viewer, and I've extended some support to those as well. Check the READ ME file from the actual main post's ZIP folder for more info on some of those. In short, here's what you get:

DIVX (.divx, .mkv)
Flash (.swf)
HTML 5 Player (.ogg, .ovg, .webm)
MP3 (.mp3, mp2)
QuickTime (.mov, .mp4, .3gp)
RealMedia (.rm, .ram)
Windows Media (.wmv, .asx, .avi)
Documents (.pps, .pptx, .ppt, .pdf, .docx, .doc, .txt, .pages, .xlsx, .xls, .xps)
Graphic Files (.ai, .psd, .dxf, .tif, .tiff, .eps, .ps)
Markup/Code (See READ ME file: .css, .html, .cpp, .hpp, .h, .js, .c)


TROUBLE IMPORTING?

To address the issue some folks have been experiencing with definitions not importing (turns out, when I tested things, I too had the same issue), I've broken down the Master XML file into volumes. There are no more than 70 definitions per volume, as this seemed to be the uppermost limit the XMLs could have before I started getting the "missing keys" error. You can grab the volumes from the ZIP in the main post of this thread.


As always, let me know what you think, if it works, and post links if it doesn't. Enjoy!

Digital Jedi 10-22-2013 08:49 PM

I started working on these last week, and I was wondering if there was any interest in definitions that embed TMDB.org (The Movie Database) data.

It's not finished yet, so this is kind of just a testing layout and the regexes still need perfecting. But you get the idea. It would likely be an admin/moderator only thing, because it would require an API key, and you would have to link to the API address for the movie, using your key, rather than the standard movie entry URL. But testing it out almost makes me think it would be worth it. Let me know what you think:


https://vborg.vbsupport.ru/external/2014/02/31.jpg

https://vborg.vbsupport.ru/external/2014/02/32.jpg

I'm looking into maybe making a modification version of this, maybe as an AME plugin. But I really wanted to gauge interest before going in too much depth.

sergio00 10-22-2013 09:09 PM

Incredible Update!! Thanks for Don?t forget 3.8.X , The Best Vbulletin Version! :)

Gadget_Guy 10-22-2013 09:59 PM

You are the best!

Nice work!

Importing now.

(Remember my httpS issue... anything I should do after importing?)

D.

Gadget_Guy 10-22-2013 10:18 PM

Some Feedback:

Internal Linking - When I test this... it processes for a LONG time.

I just ended up disabling this

Also... ebay.ca does not work.

D.

Digital Jedi 10-23-2013 02:28 AM

Quote:

Originally Posted by Gadget_Guy (Post 2455408)
You are the best!

Nice work!

Importing now.


(Remember my httpS issue... anything I should do after importing?)


D.

I don't think there will be an issue with JavaScript widgets, but possibly with eBay since it embeds using <object> code. If they do provide secure URLs, you could see if adding in the "s" to the src="" urls (there should be two), helps out. This, of course, will only work if they provide secure URLs.


Quote:

Originally Posted by Gadget_Guy (Post 2455416)
Some Feedback:

Internal Linking - When I test this... it processes for a LONG time.

I just ended up disabling this

Yeah, I think there's some kind of "feedback" issue there with the extraction process. Which is why I say to use at your discretion. I ended up just using the User Profile one, myself.


Quote:

Also... ebay.ca does not work.

D.
That was an oversight on my part. Overwrote a dev version of the definition. Give me just a few to push out an update, as well as one to Google+. I just noticed an issue there.

Digital Jedi 10-23-2013 03:31 AM

Actually, let me get that to you guys tomorrow. Sorry for the delay. Just something came up unexpectedly.

Gadget_Guy 10-23-2013 07:50 PM

Take your time Mark,

We all appreciate all the effort you are putting into this project.

I will watch the thread for an update.

D.

Digital Jedi 10-24-2013 07:58 AM

Sorry that took so long. Was not expecting Google+ to give me so much trouble. There's an additional Google+ definition added to the previous set, and all the others have been updated. Keep in mind that Google+ Posts definitions only work on Public Posts. I previously had a method that accounted for that, but it was causing it to fail if the URL was a redirect. So I had to remove the validation token. Still trying to find a workaround for that issue.

Also got the correct eBay definition in there this time. This should embed any eBay top level domain.

I added all of these back to my previous update post in a new ZIP folder.

Gadget_Guy 10-24-2013 11:31 AM

I installed the update.

ebay still not working for me.

D.


All times are GMT. The time now is 08:44 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.02617 seconds
  • Memory Usage 1,762KB
  • 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_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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