############################################################## ## MOD Title: Photo Album Addon v2 for phpBB2 ## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com ## MOD Description: ## This is a phpBB-based photo album/gallery management system. ## It is really powerful, stable, efficient, rich features and highly customizable. ## The version 2 was written from the scratch for more security, performance, etc. ## It is not really a MOD/hack, it is rather a phpBB-based system :) ## ## Features: ## - Fully integrated with phpBB2 backend (DB, session, template, multi languages, etc.) ## - Powerful and handy AdminCP ## - Auto-generated thumbnail (require GD) ## - Manual-uploaded thumbnail (for someone cannot install GD) ## - Thumbnail cache (for better performance) ## - Multi-categories ## - Powerfull and phpBB-like permissions system ## - ModeratorCP ## - Upload Quota ## - Pic Description ## - Recent pics ## - Personal galleries (for member-oriented boards) ## - Rate system ## - Comment system ## - Hotlink prevention (can set allowed domains) ## - Auto optimization for different GD versions ## - Pic view counter ## - Admin/Moderator pic approval ## - Probably uploadable in PHP Safe Mode ## - The rest is for your exploring ;) ## ## Requirements: ## A running phpBB 2.0.x (of course - recommend the lastest version) ## GD 1.8.x - 2.0 or higher (require for auto-thumbnail - more detail at http://www.boutell.com/gd) ## HTTP File Upload Enabled (this MOD can work with PHP Safe-Mode in some cases) ## MySQL 3.23.x ## A basic ability to follow my instructions (read this file carefully by letter and follow step-by-step) ## ## Tested with: phpBB 2.0.4 - PHP4 (I recommend the up-to-date version) - MySQL 3.23.x ## ## MOD Version: 2.0.35 ## ## Installation Level: medium ## Installation Time: 15 minutes ## ## Files To Edit: 9 ## viewonline.php ## admin/index.php ## includes/constants.php ## includes/page_header.php ## includes/usercp_viewprofile.php ## language/lang_english/lang_main.php ## templates/subSilver/profile_view_body.tpl ## templates/subSilver/overall_header.tpl ## templates/subSilver/subSilver.cfg ## ## Included Files: 56 ## album.php ## album_cat.php ## album_comment.php ## album_comment_edit.php ## album_comment_delete.php ## album_delete.php ## album_edit.php ## album_modcp.php ## album_personal.php ## album_personal_index.php ## album_page.php ## album_pic.php ## album_rate.php ## album_thumbnail.php ## album_upload.php ## admin/admin_album_cat.php ## admin/admin_clearcache.php ## admin/admin_album_config.php ## admin/admin_album_moderators.php ## admin/admin_albim_personal.php ## album_mod/album_common.php ## album_mod/album_constants.php ## album_mod/album_functions.php ## images/nothumbnail.jpg ## language/lang_english/lang_admin_album.php ## language/lang_english/lang_main_album.php ## templates/subSilver/album_cat_body.tpl ## templates/subSilver/album_comment_body.tpl ## templates/subSilver/album_edit_body.tpl ## templates/subSilver/album_index_body.tpl ## templates/subSilver/album_modcp_body.tpl ## templates/subSilver/album_move_body.tpl ## templates/subSilver/album_page_body.tpl ## templates/subSilver/album_personal_body.tpl ## templates/subSilver/album_personal_index_body.tpl ## templates/subSilver/album_rate_body.tpl ## templates/subSilver/album_upload_body.tpl ## templates/subSilver/admin/album_auth_body.tpl ## templates/subSilver/admin/album_cat_body.tpl ## templates/subSilver/admin/album_cat_delete_body.tpl ## templates/subSilver/admin/album_cat_new_body.tpl ## templates/subSilver/admin/album_cat_select_body.tpl ## templates/subSilver/admin/album_config_body.tpl ## templates/subSilver/admin/album_personal_body.tpl ## templates/subSilver/images/icon_mini_album.gif ## templates/subSilver/images/lang_english/upload_pic.gif ## ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/ ############################################################## ## Author Notes: ## ## Special thanks to all my testers, translators and users :) ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # NOTE: (for upgrade from older versions) # # If you are using a version 1.5.x/1.6.x of Album you must read file update_v1_to_lastest.txt # # If you are using Album v1.0.x or older, sorry I have no guide to upgrade # # If you are using a older version of Album v2 you must read appropriate files in "update" directory # #-----[ OPEN ]------------------------------------------------------- # includes/constants.php # #-----[ FIND ]---------------------------------------- # if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } # #-----[ AFTER, ADD ]---------------------------------- # Don't worried! This file is very *lite* // Album MOD include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx); # #-----[ OPEN ]------------------------------------------------------- # includes/page_header.php # #-----[ FIND ]---------------------------------------- # 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx), # #-----[ AFTER, ADD ]---------------------------------- # // Album MOD 'L_ALBUM' => $lang['Album'], 'U_ALBUM' => append_sid('album.'.$phpEx), # #-----[ OPEN ]------------------------------------------------------- # viewonline.php # #-----[ FIND ]---------------------------------------- # case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "faq.$phpEx"; break; # #-----[ AFTER, ADD ]---------------------------------- # case PAGE_ALBUM: $location = $lang['Album']; $location_url = "album.$phpEx"; break; # #-----[ OPEN ]------------------------------------------------------- # admin/index.php # #-----[ FIND ]---------------------------------------- # case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ AFTER, ADD ]---------------------------------- # case PAGE_ALBUM: $location = $lang['Album']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ OPEN ]------------------------------------------------------- # also for other templates templates/subSilver/overall_header.tpl # #-----[ FIND ]---------------------------------------- # {SITENAME}
{SITE_DESCRIPTION}
 
# #-----[ AFTER, ADD ]---------------------------------- # this step will add a link into your header menu {L_ALBUM}{L_ALBUM}  # #-----[ OPEN ]------------------------------------------------------- # also for other templates templates/subSilver/subSilver.cfg # #-----[ FIND ]---------------------------------------- # ?> # #-----[ BEFORE, ADD ]--------------------------------- # $images['upload_pic'] = "$current_template_images/{LANG}/upload_pic.gif"; # #-----[ OPEN ]------------------------------------------------------- # includes/usercp_viewprofile.php # #-----[ FIND ]---------------------------------------- # 'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])), # #-----[ AFTER, ADD ]---------------------------------- # // // Photo Album Addon v2.x.x by Smartor // 'U_PERSONAL_GALLERY' => append_sid("album_personal.$phpEx?user_id=" . $profiledata['user_id']), 'L_PERSONAL_GALLERY' => sprintf($lang['Personal_Gallery_Of_User'], $profiledata['username']), # #-----[ OPEN ]------------------------------------------------------- # also for all other templates templates/subSilver/profile_view_body.tpl # #-----[ FIND ]---------------------------------------- # {L_SEARCH_USER_POSTS} # #-----[ IN-LINE AFTER, ADD ]-------------------------- #
{L_PERSONAL_GALLERY} # #-----[ OPEN ]------------------------------------------------------- # also for all other language packs language/lang_english/lang_main.php # #-----[ FIND ]---------------------------------------- # // // Errors (not related to a // specific failure on a page) // $lang['Information'] = 'Information'; $lang['Critical_Information'] = 'Critical Information'; # #-----[ BEFORE, ADD ]--------------------------------- # // // Photo Album Addon v2.x.x by Smartor // $lang['Album'] = 'Album'; $lang['Personal_Gallery_Of_User'] = 'Personal Gallery of %s'; # #-----[ COPY ]------------------------------------------------------- # These following instructions mean... # Upload all files in directory "phpbb_root" with their structure to your phpBB root directory # # Remember to upload all the language files and template files to all your # language packs and template directories # # If you use FTP please remember to use ASCII mode for text files (*.php, *.tpl) # and BINARY mode for image files (*.jpg, *.gif) # Fortunately good FTP clients today can auto-detect the mode for your files copy phpbb_root/*.php to *.php copy phpbb_root/admin/*.php to admin/ copy phpbb_root/album_mod/*.* to album_mod/ copy phpbb_root/images/*.* to images/ copy phpbb_root/language/lang_english/*.php to language/lang_english/ copy phpbb_root/templates/subSilver/*.* to templates/subSilver/ copy phpbb_root/templates/subSilver/admin/*.* to templates/subSilver/admin/ copy phpbb_root/templates/subSilver/images/*.* to templates/subSilver/images/ copy phpbb_root/templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/ # #-----[ ACTION ]-------------------------------------- # Create folder: album_mod/upload # Create folder: album_mod/upload/cache # #-----[ ACTION ]-------------------------------------- # Require for Unix-like host (you can use your FTP client) # # CHMOD 777 album_mod/upload # CHMOD 777 album_mod/upload/cache # #-----[ SQL ]-------------------------------------------------------- # For FRESH Install Only!!! If you *upgrade* from Album v1.x.x you # must *skip* this step to go to the next step! # # This Photo Album must add 5 tables into your database. # Fortunately it will not alter any existed tables :) # # Upload album_db_install.php and album_mysql.sql to your phpBB root # directory then run album_db_install.php by typing on the browser # After that, delete both files immediately # # If you do not want to run album_db_install.php you can run the SQL # queries manually in album_mysql.sql # # If you are using phpBB older-than204 you should read file patch_phpBB_older-than-204.txt # # If you are using phpBB 2.0.4 you should read file patch_phpBB_204.txt # # After install, you should check your AdminCP # # If you have any problems try to look at FAQ.TXT first! # # Keep all files in this archive at a safe place in your hard disk. You # maybe will need it again if you want to upgrade in future :) # Normally, you can download the lastest version only from my site. So # if you lost these files, you would not look back again. # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM