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:
Add Below This:
STEP 4:
Open the template in your admincp called: editor_toolbar_on
Find This Code:
Add Below This:
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
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
*/
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
/*-------------------------------------------------------------------------*/
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>
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 -->
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