IMDB Info Generator ( Lite )

MobileHacks

New Member
Info:
What is this plugin for?

This plugin makes it possible to show data from IMDB Movie Database using the movie ID with a BBCode.

Many users were looking for a plugin something like this which pulls information 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)

Requirements: Your host must have allow_url_fopen = on

How To Install:

Extract the imdb_tag_hacks_lite.V1.01.zip file and upload the product-imdb_tags_hack.xml from your admincp;

Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

STEP 1:
Upload the imdb folder and the imdb.php file into your forum root directory. Upload the imdb.gif into images/editor. If you are using an individual style you may upload it to your_syles_image_folder/editor

STEP 2:
Chance the CHMOOD permisson of cache and images to 777


STEP 3:
In your "forum/includes" directory, open the PHP file called: "class_bbcode.php"

Find This:
PHP:
/**
    * Handles the parsing of a signature picture. Most of this is handled
    * based on the $parse_userinfo member.
    *
    * @param    string    Description for the sig pic
    *
    * @return    string    HTML representation of the sig pic
    */
Add Below This:
PHP:
/*-------------------------------------------------------------------------*/
// Start ÝMDB_TAGS_HACKS: Melih Buyuk
/*-------------------------------------------------------------------------*/
       
    function handle_bbcode_imdb($texto="")
    {
                
        if ($texto == "") return;

        $idfilme = preg_replace('/[^0-9]/i',"\\1",$texto); 

        eval('$text = "' . fetch_template('imdb') . '";');
      
        return $text;
      
    }    
/*-------------------------------------------------------------------------*/
// End ÝMDB_TAGS_HACKS: Melih Buyuk
/*-------------------------------------------------------------------------*/
STEP 4:

Open the template in your admincp called: editor_toolbar_on
Find This Code:
PHP:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.png"  width="16" height="16" alt="$vbphrase[wrap_html_tags]" /></div></td>
Add Below This:
PHP:
<!--custom code start -->
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_imdb"><img src="$stylevar[imgdir_editor]/imdb.gif" width="21" height="20" alt="Wrap [imdb] tags around selected text" /></div></td>
<!--custom code end -->
Note: also added a class_bbcode.php file for those are experiencing difficulties changing the code.

Please make sure you have backed up the file before you upload it into the includes directory.

ALL Done!

1.01
* Some minor modification on imdb.php
* Updated installation and imdb_tag_hacks_lite.V1.01.zip file
* Added instructions to the post.
* Added a modified example class_bbcode.php file
 

mertoxin

New Member
Open the product-imdb_tags_hack.xml in notepad.

Find
PHP:
<iframe src=http://localhost/dvx/imdb.php?mid=$idfilme frameborder=0 width=750

change the localhost for your site name...
 

delboy2028

New Member
Warning: require_once(global.php) [function.require-once]: failed to open stream: No such file or directory in /home/vwarezco/public_html/dvx/imdb.php on line 13


Warning: require_once(global.php) [function.require-once]: failed to open stream: No such file or directory in /home/vwarezco/public_html/dvx/imdb.php on line 13

Fatal error: require_once() [function.require]: Failed opening required 'global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vwarezco/public_html/dvx/imdb.php on line 13

dont understand why
 

delboy2028

New Member
ok solved last problem now i get


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in [path]/imdb.php on line 17
 

h@ck3r

New Member
delboy2028 said:
ok solved last problem now i get


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in [path]/imdb.php on line 17

Check imdb.php on line 17... can you paste the code here?
 

delboy2028

New Member
<?php
#############################################################################
# IMDBPHP (c) Giorgos Giagas & Itzchak Rehberg #
# written by Giorgos Giagas #
# extended & maintained by Itzchak Rehberg <izzysoft AT qumran DOT org> #
# IzzySoft #
# ------------------------------------------------------------------------- #
# This program is free software; you can redistribute and/or modify it #
# under the terms of the GNU General Public License (see doc/LICENSE) #
#############################################################################

/* $Id: imdb.php 159 2008-06-26 16:00:03Z izzy $ */
require_once('global.php');

$sql = "SELECT id FROM imdb_verileri WHERE imdb_no = ".$_GET["mid"]."";
$al = mysql_query($sql);
list($id) = mysql_fetch_row($al);

$veri_title = '';
$veri_resim = '';
$veri_film_adi = '';
$veri_yonetmen = '';
$veri_film_turu = '';
the code

but the files have been updated so just waiting for somone to grab the new files
 

delboy2028

New Member
i am still getting

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in [path]/imdb.php on line 17

on vb.org he says its incorrect tags but i have them correctly added so i dunno mebe somone could post it on VB.org for me thanks
 

wolfiejp

New Member
for the line 17 error i jst removed that line of code and the hack works perfect, yes i know it was brutal to remove a line but it worked lol



anyone got the full version so it displays the covers ?
 
Top