IMDB mod (php script done and added here for your help)

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

IMDB mod (php script done and added here for your help)

Post by jokoba » Mon Jan 11, 2010 11:20 pm

i would like to request please an IMDB mod that will take from the posted the film code in IMDB and display it's information

here's a php script that might help:
http://davidwalsh.name/php-imdb-information-grabber

Code: Select all

//url
$url = '<a multilinks-offsetheight="0" multilinks-offsetwidth="0" multilinks-offsetleft="0" multilinks-offsettop="0" multilinks-visible="true" href="http://www.imdb.com/title/tt0367882/">http://www.imdb.com/title/tt0367882/</a>';

//get the page content
$imdb_content = get_data($url);

//parse for product name
$name = get_match('/<title>(.*)<\/title>/isU',$imdb_content);
$director = strip_tags(get_match('/<h5[^>]*>Director:<\/h5>(.*)<\/div>/isU',$imdb_content));
$plot = get_match('/<h5[^>]*>Plot:<\/h5>(.*)<\/div>/isU',$imdb_content);
$release_date = get_match('/<h5[^>]*>Release Date:<\/h5>(.*)<\/div>/isU',$imdb_content);
$mpaa = get_match('/<a href="\/mpaa">MPAA<\/a>:<\/h5>(.*)<\/div>/isU',$imdb_content);
$run_time = get_match('/Runtime:<\/h5>(.*)<\/div>/isU',$imdb_content);

//build content
$content.= '<h2>Film</h2><p>'.$name.'</p>';
$content.= '<h2>Director</h2><p>'.$director.'</p>';
$content.= '<h2>Plot</h2><p>'.substr($plot,0,strpos($plot,'<a')).'</p>';
$content.= '<h2>Release Date</h2><p>'.substr($release_date,0,strpos($release_date,'<a')).'</p>';
$content.= '<h2>MPAA</h2><p>'.$mpaa.'</p>';
$content.= '<h2>Run Time</h2><p>'.$run_time.'</p>';
$content.= '<h2>Full Details</h2><p><a href="'.$url.'" rel="nofollow">'.$url.'</a></p>';

echo $content;

//gets the match content
function get_match($regex,$content)
{
	preg_match($regex,$content,$matches);
	return $matches[1];
}

//gets the data from a URL
function get_data($url)
{
	$ch = curl_init();
	$timeout = 5;
	curl_setopt($ch,CURLOPT_URL,$url);
	curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
}



here's some images on how it would look like:
on new topic:
Image
on view topic:
Image


note that this mod exist on IP Board v2

thank you and i hope my information helped you, please let me know if you need any more infromation

jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

Re: IMDB mod (php script done and added here for your help)

Post by jokoba » Tue Jan 12, 2010 7:17 pm

can this be done please?

thank you

Midlands bassline
Registered User
Posts: 19
Joined: Sun Nov 08, 2009 1:40 am

Re: IMDB mod (php script done and added here for your help)

Post by Midlands bassline » Wed Jan 13, 2010 2:10 pm

I would like Some1 to hlep make this mod aswel ...its a useful mod that im sure people would use :)

ive requested 1 alreadi and no1s still not made it ?

jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

Re: IMDB mod (php script done and added here for your help)

Post by jokoba » Wed Jan 13, 2010 7:38 pm

yes i was hoping this script will help the MOD author in getting info from IMDB.
i have a movie forum where ppl discuss movies and this MOD would really help, too bad i have no idea how to create MOD's and was hoping to find someone here to help

mimimog
Registered User
Posts: 10
Joined: Wed Jul 15, 2009 4:55 am

Re: IMDB mod (php script done and added here for your help)

Post by mimimog » Sun Jan 24, 2010 10:48 am

Code: Select all

http://thewarezscene.org/forums/guest-downloads-f197/casablanca-1942-t428299.html?sid=31ce23702315b08b10df847ea8853c29
I found this site already has the MOD installed. Maybe you can ask them for help.

jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

Re: IMDB mod (php script done and added here for your help)

Post by jokoba » Mon Jan 25, 2010 3:14 pm

they are a warez site, I'm not even sure if they are using phpbb because they removed the links!
also they wont tell me :|

i wonder why mod's can't do it..

jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

Re: IMDB mod (php script done and added here for your help)

Post by jokoba » Mon Jan 25, 2010 4:48 pm

for anyone who's willing to help us out there, here's a more advanced script:
http://github.com/FabianBeiner/PHP-IMDB-Grabber

thankss

mimimog
Registered User
Posts: 10
Joined: Wed Jul 15, 2009 4:55 am

Re: IMDB mod (php script done and added here for your help)

Post by mimimog » Tue Jan 26, 2010 4:56 am

I'm hoping that MOD could help us with this because this would be a great MOD if it is integrated well with BBCODE. Most of us will not spend much time for adding the movie information. Especially we can control how it look like without editing and formating the text each time we need.

jokoba
Registered User
Posts: 49
Joined: Tue Jan 05, 2010 9:10 am

Re: IMDB mod (php script done and added here for your help)

Post by jokoba » Tue Jan 26, 2010 5:54 am

yes, i got reports that http://github.com/FabianBeiner/PHP-IMDB-Grabber script is working perfectly! it grabs all the info.
we just need someone to implement it please

LuckyLucy
Registered User
Posts: 9
Joined: Fri Apr 23, 2010 5:36 pm
Location: London

Re: IMDB mod (php script done and added here for your help)

Post by LuckyLucy » Sat Apr 24, 2010 2:42 pm

bump for this :-)

Trokal
Registered User
Posts: 399
Joined: Fri Oct 23, 2009 5:13 pm

Re: IMDB mod (php script done and added here for your help)

Post by Trokal » Tue May 04, 2010 9:45 pm

bump here also

bozo0983
Registered User
Posts: 13
Joined: Wed Apr 18, 2012 11:40 am

Re: IMDB mod (php script done and added here for your help)

Post by bozo0983 » Sat Jun 02, 2012 4:10 pm

OK, so someone released this a while back, but then let it slip and offered no support, I've picked it up where they left off. It is now compatible with PHPBB 3.0.10.

I've set it to pull this information:

Movie name
Poster
Tagline
Classification (MPAA rating)
Genre
IMDB Rating
Runtime
Release Date
Top 5 actors
Written by
Directed by
Plot

But if people want different things then let me know and I can edit bits as you require them and give each of you a custom version if required.

For the styling I went with a style sheet from an earlier release, but I have created some different styles, some which are pretty cool, again if people wanna see them then send me a pm and I'll get some screenshots together for you.

I've set up a demo, which shows what info the imdb grabber actually grabs on this install (I re-itterate, if you want it to grab different things, please pm me). It will grab game info as well (check the demo, I've provided one there.) It also displays a default no-poster image, I think that's from the very original version of this mod, I've not bothered to update that ever, but it's pretty easy to change out if you wanted to.

Demo: http://bzwebhosting.co.cc/phpbb/viewtopic.php?f=2&t=3

I've tested it out on a fresh install (the demo) and works just fine. I WILL be updating this as IMDB change their coding and as per user request. I've only really tested it on Subsilver2, but am pretty sure it will work on Prosilver, any problems pm me. If you want me to help you install it on your board/custom theme then let me know, I'd be happy to help.

Erm... apparently I can't attach things to this post so I'll link to where it's hosted: http://startrekguide.com/community/view ... 00#p132825

Dazbobaby
Registered User
Posts: 64
Joined: Fri Feb 13, 2009 7:02 pm
Contact:

Re: IMDB mod (php script done and added here for your help)

Post by Dazbobaby » Thu Jan 08, 2015 6:00 pm

We have one working on my forum: http://www.mess-hall.co.uk/viewtopic.ph ... =60#p42754
It's a cobbled together mod from several different sources. We're currently working to reverse engineer the source, update it, and repackage it.

This will take time, all the source structure and backups were lost after a HDD crash.
If anyone is still interested PLMK.
Image
Ebikes and Technology The Bionic Cyclist

nijode999
Registered User
Posts: 2
Joined: Tue Apr 21, 2015 9:09 am

Re: IMDB mod (php script done and added here for your help)

Post by nijode999 » Tue Apr 21, 2015 9:14 am

Dazbobaby wrote:We have one working on my forum: http://www.mess-hall.co.uk/viewtopic.ph ... =60#p42754
It's a cobbled together mod from several different sources. We're currently working to reverse engineer the source, update it, and repackage it.

This will take time, all the source structure and backups were lost after a HDD crash.
If anyone is still interested PLMK.
Image
Can i download the plugin. I will created a review of every movie ive seen

Dazbobaby
Registered User
Posts: 64
Joined: Fri Feb 13, 2009 7:02 pm
Contact:

Re: IMDB mod (php script done and added here for your help)

Post by Dazbobaby » Wed Apr 22, 2015 8:39 am

The plugin will only work with 3.1+ as an extension, it's been too heavily modified for earlier versions now.
It'll be a while before it can be used with 3.1 probably a few more weeks.

3.1 is worth the upgrade.
Ebikes and Technology The Bionic Cyclist

Locked

Return to “[3.0.x] MOD Requests”