This plugin makes it possible to show data from IMDB Movie Database using the movie ID with a BBCode.
As far as I know many users were looking for a plugin something like this which pulls data from IMDB and shows directly in the post.
This plugin uses a script which is contributed under GPL. However, a big part of the system was rewritten and a lot of coding were done to integrate both systems.
Features:
Plugin Pulls these movie information:
- - Contry (Lite)
- - Genre (Lite)
- - Time (Lite)
- - Language (Lite)
- - Director (Lite)
- - Cast (Lite)
- - Description (Advanced Version)
- - IMDB Score (Advanced Version)
- - Thumbnail Picture (Advanced Version)
- - Trailer Link (Advanced Version)
- - Advanced control of style, language and dimension. (Advanced Version)
Requirements: Your host must have allow_url_fopen = on
Installation Instructions:
- Upload the "imdb" and "images" folder to your forums root folder
- In your templates Headinclude find:
PHP код:
<!-- / CSS Stylesheet -->
add below this:
PHP код:
<script type="text/javascript">
/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.
var rootdomain="http://"+window.location.hostname
function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously
page_request.send(null)
writecontent(page_request)
}
function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}
</script>
- In your administration panel click on "Custom BB Codes >> Ad New BB Code
Title: IMDB Plugin
BB Code Tag Name: imdb
Replacement:
PHP код:
<imdb><script type="text/javascript">ajaxinclude("imdb/imdb.php?mid={param}")</script></imdb>
Sample: [imdb]20540[/imdb]
Button Image: images/editor/imdb.gif
All other setting stays default. You don't have to do anything, save these settings.
ALL Done!
увы вложение пока никак не загрузить ,(IMDB.TAG.V.2.0.EN.LITE.zip:
Ваш файл занимает 153.8 Кб байт, что превышает предел на форуме в 97.7 Кб для этого типа файла.) Выложу на супорте скину линк.