- About this MOD
Title:
Flash Video/Movie MOD
Description:
Allows you to add flash and windows media movies via the ACP. These are then displayed catorgised on a user side page.
The movie is then embedded into a "View Movie" page.
Version:
0.7.0
Installation Level:
Easy
Installation Time:
~5 minutes
Author
Username:
christhatsme
Email:
chris.j.bridges@gmail.com
Realname:
Chris Bridges
WWW:
http://chris.laxforums.co.uk
____________________________________________________________
Code: Selecteer alles
Files To Edit
viewonline.php,
includes/constants.php,
admin/index.php,
language/lang_english/lang_main.php,
language/lang_english/lang_admin.php
Included Files
root/db_update.php,
root/admin/admin_flash.php,
root/movies.php,
root/templates/subSilver/admin/flash_edit.tpl,
root/templates/subSilver/admin/flash_add.tpl,
root/templates/subSilver/admin/flash_categories.tpl,
root/templates/subSilver/admin/flash_edit_categories.tpl,
root/templates/subSilver/movies_body.tpl,
root/templates/subSilver/viewmovie_body.tpl
--------------------------------------------------------------------------------
Disclaimer
For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered in our MOD-Database, located at: http://www.phpbb.com/mods/
Author Notes
You should run db_update.php when installing this MOD to make the database changes
MOD History
2006-04-02 - Version 0.7.0
added compatibility for windows media player
better editting panel in ACP
2006-03-17 - Version 0.6.1
fixed bug in install file
2006-03-17 - Version 0.6.0
first version
License
This MOD has been licensed under the following license:
http://opensource.org/licenses/gpl-license.php GNU General Public License v2
Other Notes
Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
This MOD was designed for phpBB2.0 and may not function as stated on other phpBB versions. MODs for phpBB3.0 will not work on phpBB2.0 and vice versa.
This MOD is development quality. It is not recommended that you install it on a live forum.
--------------------------------------------------------------------------------
File Copy
Copy: root/db_update.php
To: db_update.php
Copy: root/admin/admin_flash.php
To: admin/admin_flash.php
Copy: root/movies.php
To: movies.php
Copy: root/templates/subSilver/admin/flash_edit.tpl
To: templates/subSilver/admin/flash_edit.tpl
Copy: root/templates/subSilver/admin/flash_add.tpl
To: templates/subSilver/admin/flash_add.tpl
Copy: root/templates/subSilver/admin/flash_categories.tpl
To: templates/subSilver/admin/flash_categories.tpl
Copy: root/templates/subSilver/admin/flash_edit_categories.tpl
To: templates/subSilver/admin/flash_edit_categories.tpl
Copy: root/templates/subSilver/movies_body.tpl
To: templates/subSilver/movies_body.tpl
Copy: root/templates/subSilver/viewmovie_body.tpl
To: templates/subSilver/viewmovie_body.tpl
Edits
Click on the action name to select the code
Open: viewonline.php
Find
Tip: This may be a partial find and not the whole line.
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
case PAGE_MOVIES:
$location = $lang['Viewing_Movies'];
$location_url = "movies.$phpEx";
break;
Open: includes/constants.php
Find
Tip: This may be a partial find and not the whole line.
define('PAGE_GROUPCP', -11);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
define('PAGE_MOVIES', -1547);
Find
Tip: This may be a partial find and not the whole line.
define('DISALLOW_TABLE', $table_prefix.'disallow');
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
define('FLASH_TABLE', $table_prefix.'flash');
define('FLASH_CAT_TABLE', $table_prefix.'flash_categories');
Open: admin/index.php
Find
Tip: This may be a partial find and not the whole line.
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
case PAGE_MOVIES:
$location = $lang['Viewing_Movies'];
$location_url = "index.$phpEx?pane=right";
break;
Open: language/lang_english/lang_main.php
Find
Tip: This may be a partial find and not the whole line.
?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
//
// Flash Movie MOD
//
$lang['movies'] = 'Movies';
$lang['flash_views'] = 'Views';
$lang['flash_select_cat'] = 'Select A Category';
//
// Flash Movie MOD
//
Open: language/lang_english/lang_admin.php
Find
Tip: This may be a partial find and not the whole line.
?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
//
// Flash Movie MOD
//
$lang['Flash'] = 'Flash Movies';
$lang['flash_add'] = 'Add';
$lang['flash_edit'] = 'Edit';
$lang['no_flash_name'] = 'You did not enter a movie name';
$lang['no_flash_url'] = 'You did not enter a flash url';
$lang['movie_add_success'] = 'Movie successfully added';
$lang['click_return_add_movie'] = 'Click %sHere%s to return to Add Movie Page';
$lang['flash_add_header'] = 'Add Flash Movie';
$lang['flash_add_explain'] = 'Here you can add a new flash movie';
$lang['flash_name'] = 'Movie Name';
$lang['flash_url'] = 'Movie URL';
$lang['flash_url_explain'] = 'This is where the file is located according to your phpbb root. For example videos/mymovie.swf';
$lang['flash_add_button'] = 'Add';
$lang['edit_flash_header'] = 'Edit Movies';
$lang['edit_flash_explain'] = 'Here you can change the name of a movie, and the URL where the file is located';
$lang['movie'] = 'Movie';
$lang['flash_edit'] = 'Edit';
$lang['edit_movies'] = 'Edit Movies';
$lang['delete_movie'] = 'Delete Movie';
$lang['delete_movies'] = 'Delete Movies';
$lang['save_movie'] = 'Save Movie';
$lang['movie_edit_success'] = 'Movies successfully edited';
$lang['click_return_edit_flash'] = 'Click %sHere%s to return to edit movie page';
$lang['movie_delete_success'] = 'Movie(s) successfully deleted';
$lang['flash_cat'] = 'Category';
$lang['click_return_flash_cat'] = 'Click %shere%s to return to movie category admin';
$lang['no_category'] = 'No Category name entered';
$lang['flash_cat_header'] = 'Flash Categories';
$lang['flash_categories_explain'] = 'Here you can add and edit categories for your movies, you must select the category when adding/editing a movie';
$lang['edit_cats'] = 'Edit Categorys';
$lang['delete_cat'] = 'Delete Category';
$lang['delete_cats'] = 'Delete Categories';
$lang['save_cats'] = 'Save Categories';
$lang['cat_edit_success'] = 'Successfully edited categories';
$lang['cat_delete_success'] = 'Successfully deleted category/categories';
$lang['select_category'] = 'Select a category';
$lang['add_cat'] = 'Add Category';
$lang['flash_cats'] = 'Categories';
$lang['no_flash_cat'] = 'You did not select a category';
$lang['category_add_success'] = 'Category successfully added';
$lang['is_flash'] = 'Flash';
$lang['not_flash'] = 'Other';
$lang['flash_type'] = 'Type';
$lang['flash_type_explain'] = 'The format of the file. Other uses windows media player, which supports <a href="javascript:alert('.avi, .asf, .asx, .rmi, .wav, .wma, .wmv, .wax, .mpg, .mpeg, .m1v, .mp2, .mp3, .mpa, .mpe, .qt, .aif, .aifc, .aiff, .mov, .au, .snd')" class="gensmall">These</a> formats.';
//
// Flash Movie MOD
//
DIY Instructions
These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.
You must run db_update.php from your phpbb root directory for this MOD to function. DELETE ONCE RUN
--------------------------------------------------------------------------------
Save all files. End of MOD.
You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.