Embedded Media Field Title extraction with YouTube - drupal

I'm trying to create a dynamic video gallery using drupal's "Embedded Media Field"; works fine for now i'm able to add my youtube videos which displays correctly.
However, i'm looking for a way to change the title of the node (of type video, with one cck field of type : "Embedded Video") i tried 'node autotitle' but I don't see the video's 'title' in the available tokens.
To sum up; I want to be able to just put the link of youtube video and get the node title to be replaced by the youtube's actual title.
Any idea ? Or is there a better module for this ?

There's a very similar request on drupal.org in the Video Embed Field module issue queue. They don't have an answer, but it'd be a good place to start. I use this module (instead of Embedded Media Field) and I've confirmed that it saves a chunk of metadata regarding the video in the Drupal database, so this technically should be possible.

Related

How to insert a poster image into an HTML embedded video via Advanced custom fields?

On my website (via Wordpress) I have some of my clients listed. When you click on one of them you get a video gallery with all the Videos I've done for the corresponding client. All of that's done with ACF (advances custom fields). Now I want every video to have a corresponding poster image. I know that I could do it manually, by putting the code in each time, but I'd rather have the ability to create a custom field and have it done automatically in the future. Does anyone have an idea on how to approach this?

How to display images of a post as a media gallery in wordpress

Situation
I used user-frontend API to make user capable of uploading image. But this post page posts the image and the image is visible in media library(which contain other previously submitted posts as well).
Problem
I want to display the images associated with a particular post to be displayed as a media gallery.
Methods I tried
user-frontend API had option of selecting post type as user gallery but even after opting for it its not working properly.
I think I can use user-post gallery API that allows me to display the images as a gallery, but I dont know how to integrate both the APIs.
I have some other requirements for which user-frontend API is best choice so cant remove this.
I need some guidance regarding how it can be done maybe through above methods or some meta key or php code.
Kindly ignore the silliness. Its my first wordpress project:)
Direct me if its not possible or if it is possible only without user-frontend API.

How does instagram create huge thumbnails on its user's feeds

I would like to understand how does instagram show large image thumbnails, with each thumbnail having individual actions such as Like and comment. Is it possible to do via the Open Graph API or is this due to Instagram being a property of Facebook?
The custom action and objects API does not seem to allow such a layout. An example is shown below
This is supported by the API via the user generated photos functionality:
https://developers.facebook.com/docs/opengraph/usergeneratedphotos/
has the docs, and you need special approval for your actions
You add the following parameters to your existing publish calls:
image[0][url]=<URL TO IMAGE>
image[0][user_generated]=true
image[1]... etc
{edit:} Actually, i'm not sure how to render that aggregated unit - my answer above is for the photos functionality itself

WordPress Media as a Custom Post Type

I am building a WordPress website that will allow members to upload media such as videos, images, etc. They will do this on a public form at for example: domain.com/upload
The form will ask for a Title, a brief summary, show some categories to choose from, and finally a file uploader. The user will then be able to submit the form and it will appear on the site as a post but instead of being just text it is a piece of media.
I have created a custom post type and all seems to be fine, the problem I have is how to deal with the media upload, as the default WP method is to upload an item and then manually insert it into the post (and you can have as many inserted as you like). Where as I want users to be only able to upload one file per post and not have to insert the file into a post because the file itself is the post. They will also be able to upload a featured image.
Any ideas on how I can develop this? Thanks.
You could use WP upload methods to upload your file to the server. Then (depending on your upload's media type) you would insert HTML representation of the file into the post (e.g. parse a text file, create tag for image or embed a video).
If you want to see some working example, please let me know. I just outline the flow:
wp-handle_upload() to physically upload a file
wp_update_post() or wp_insert_post() depending on whether you're creating a new user post or editing existing one. Both methods require one argument - Post object. That's where you put your content (as a post_content field of course) and post data

Custom fields in WordPress RSS feed

I have 2 custom fields in my WordPress system when creating new posts. One is called homethumb (is the title of an image) and another called description.
I would like to edit the RSS feed so it shows the image and the description rather than the complete post.
But I don't know how to do this. I would like to fetch that RSS with simple pie to integrate it on another website (sort of auto-submit system).
You also have
do_action('rss_item')
that runs in the loop for every item in the RSS feed.
Hook in to that and output anything extra you need in to the feed item.
To show the excerpt instead of the entire article, go to "reading" in Settings section of your admin menu and half way through the options there's a setting to use excerpts instead of full text.
No plugins required. Just a little custom programming.
Custom fields for Feeds Wordpress plugin
This puts images or videos into your feeds through the use of custom
fields. You can alter the custom field Keys and what is displayed.
Update 11/27/2015: The plugin is old, but the site says it still works
I found some tutorials on how to add things to your rss reader, so I fixed this.
it's in french -> http://www.webinventif.fr/wordpress-ajouter-du-contenu-dans-son-flux/
Here is another option if you want to display anything other than images and videos in your feed: http://wordpress.org/extend/plugins/rss-custom-fields/
All of your custom fields will now be displayed in your feed.
Further options to be able to select which custom fields display in a feed will be available in subsequent releases of the plugin!

Resources