TMDB API for Datalife Engine - php

can anyone tell me to how to install The Movie Database API on Datalife engine?
https://dle-news.com/
https://www.themoviedb.org/
i want to add some elements automaticly with xFields.

Related

Accessing Wordpress with google custom search

This is probably a ignorant question but is there a url that all wordpress hosted sites use?
say if i used the "site: www.example.com" to refine my google search it would limit the search only to sites hosted by wordpress.
and if this isn't possible can you use google custom search to do a normal google search from within your site?
Well the first case is not possible. but if you need your users to use google to search within your site you use one of the many google search plugins, like WP Google Search. They will over ride your custom search system with the one from google.

How to automatically tweet when a new article added to Joomla

I have a free wordpress blog which automatically tweets my new article through my twitter account which I have no idea how wordpress does it. I want to do the same thing on Joomla 3.2.3 platform.
What I want to do is when I add a new article into a specific category, I want Joomla to tweet the article's url automatically.
What I have tried is to search for a couple of components doing this. But I am stucked at API/Key-API/Secret validation. The component (AutoTweetNG) needs tweeter API to have read and write level. So I have many web sites to apply this application. In order to have read and write rights twitter asks me to enter mobile phone number in the profile page.
I have decided to make this by hard coding. Is there any oppurtunity to achieve this? It looks it is gonna be a little robot things, and twitter does not let me.
At least it would be great if thic could be done using PHP only.
Try this,
You can achieve it using two things in Joomla, One is create a twitter Oauth APP also create a content plugin for auto tweet.
First you have to create an app with twitter just follow the link.
Then Create a Joomla content plugin with onContentAfterSave event.
Then Once you create an article it will automatically tweets.
Hope its helps..

How to integrate Wordpress search with Google maps?

I am doing a beauty salons website for my client using Wordpress. I have created custom post type for beauty salons.
Now I need to create a page where user can enter a place for example a city and select number of results or a radius in terms of Kilometers.
Once we have the results we need to show all results on a map. We also have a filters to filter the search using some of meta keys.
I am not good at javascript and/or Google Map API v 3. How to do above? I do not need full code I just need guidelines. or is there some plugin which do the same?
You would need all your coords in the db to locate which locations to map
Then you can search for all locations between +/- x kilometers north / south and +/- x kilometers east / west
If you then want to find the closest you can use Pythagoras theorum to find out the distance to each point
Integrating WordPress search with Google Maps involves combining the functionality of WordPress search with the Google Maps API to display the search results on a map. Here are the steps to do this:
Get a Google Maps API Key: To use the Google Maps API, you need to get an API key from the Google Developers Console. This key allows you to use the API on your website.
Install a plugin for integrating Google Maps with WordPress: There are several plugins available that allow you to easily integrate Google Maps with WordPress. For example, you can use the "Google Maps Easy" plugin.
Create a search form: You need to create a search form in WordPress that allows users to enter their search criteria. You can use a plugin like "Contact Form 7" to create the form.
Get the search results: Once you have the search form, you can use the WordPress search functionality to retrieve the search results. You can then use the Google Maps API to display the results on a map.
Display the search results on the map: You can use the Google Maps API to display the search results as markers on the map. You can also use the API to provide more information about each marker, such as a pop-up window with details about the branch.
Note: The exact steps for integrating WordPress search with Google Maps may vary depending on the plugin you use and the design of your website. It's always a good idea to consult the plugin's documentation and the Google Maps API documentation for more information.

Twitter List API (PHP)

I've recently used a php version of the twitter search API to display tweets on my website.
Now I'm looking to use an API to show tweets from a list I have created on twitter, but I can't seem to find any resources or examples.
Using List Widgets is an alternative. No need to write any PHP code. By overriding the CSS styles you can integrate the widget into your website theme.
http://twitter.com/about/resources/widgets/widget_list
PEAR has a nice twitter API package; http://pear.php.net/package/Services_Twitter/ - that's probably easier than writing your own adapter.

How to integrate Google Custom Search into my website?

I want to integrate Google Custom Search into my website searching box.
The problem is I still want to keep my searching box. In addition, if the keywords are stock symbols, will use my site search engine. If the input is not stock symbol, will use Google Custom Search to search my website.
I want to use google custom search to search my whole site. The search result should be on my website but not jump to google search.
There is a JSON/Atom Custom Search API provided by google. Is this the only way to do this?
Please advice!
Don
Start here http://www.google.com/cse/manage/create. Then you will receive a original custom google search bar. Then you can grep the query which it produces and force your own form to result in the same query.
The paid version of the Custom Search Engine has a very clean XML implementation. You could pre-process the query and check whether it's a stock ticker symbol. If it is, handle it yourself, if not, send it to the CSE, get the XML, and format as you like. I wish they had it in the free version, but they don't.
As an alternate option, there are many free open source search engines, Solr/Lucene (implementations by SearchBlox, Constellio, Lucid Imagination, etc.), Sphinx, OpenSearchServer, Elastic Search, Xapian...

Categories