News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PAID: Get title, picture and trailer

Started by bitmovel, May 28, 2020, 11:44:56 AM

Previous topic - Next topic

bitmovel

Hi.

I need a way to get some info from IMDB, when given IMDB ID. At the moment I need to get MovieName; Thumbnail and Trailer link.

It can be using a simple BBC code, or multiple BBC codes for each information provided.

It could be using https://www.themoviedb.org/documentation/api or maybe http://www.omdbapi.com/. But since the API may be unavaiable in future, I would prefer a standalone plugin.

Anyone can make this plugin?

Please reply if you can make it, and tell me the price.

Aditional details: latest SMF version; only registered users can access it.

Thanks!

Deaks

im not offering however from what you are looking for I cant see this being a cheap request do you have a budget in mind as may help any authors.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Doug Heffernan

I can code such a mod for you bitmovel. Hit me up in private if you would like to hire me for the job.

Korotana365

i have a developer who is pretty good.. hes in pakistan...pls dm me
******After the Final No is a YES!******

Antes

Something for you;

Open Subs.php
Code (Find) Select
         array(
            'tag' => 'pre',
            'before' => '<pre>',
            'after' => '</pre>',
         ),

Code (Add After) Select
            array(

                'tag' => 'tmdb',
                'type' => 'unparsed_content',
                'content' => '$1',
                'validate' => create_function('&$tag, &$data, $disabled', '

                    global $sourcedir;
                    require_once($sourcedir . \'/Subs-Package.php\');

                    $tmdb = false;
                    if (isset($data))
                        $tmdb = json_decode(fetch_web_data(\'https://api.themoviedb.org/3/\'.$data. \'?api_key=***&language=en-US\'), true);

                    $item_name = !empty($tmdb[\'original_title\']) ? $tmdb[\'original_title\'] : $tmdb[\'name\'];
                    if (is_array($tmdb) && !empty($tmdb)) {
                        $data =
                            \'<div class="tmdb_container">
                                <img src="https://image.tmdb.org/t/p/original/\' . $tmdb[\'poster_path\'] . \'" alt="\' . $item_name.\'" />
                                <div class="tmdb_info">
                                    <p class="tmdb_title">\' . $item_name .\'</p>
                                    <p class="tmdb_desc">\' . $tmdb[\'overview\'] . \'</p>
                                    <p class="tmdb_score">\' . $tmdb[\'vote_average\'] . \'</p>
                                <>
                            <>\';
                    }
                '),
                'block_level' => true,
                'disabled_content' => '$1'
            ),


Open Index.css
Code (Add to the End) Select
/* TMDB */
.tmdb_container {
   display: flex;
}
.tmdb_container img {
   flex: 1 35%;
   text-align: start;
   max-height: 450px;
}
.tmdb_container .tmdb_info {
   flex: 1 65%;
   margin-left: 10px;
}
.tmdb_title {
   font-size: large;
   font-weight: bold;
   border-bottom: 1px solid;
   margin: 0 0 10px 0;
}


Usage



[tmdb]movie/122917[/tmdb]
[tmdb]tv/2316[/tmdb]


Replace *** with your API key.

if anyone wants to do better version of this, feel free to do so :D

Snip Licensed under MIT.

Advertisement: