############################################################## ## MOD Title: Use Custom Profile Pages ## MOD Author: vdoogs < N/A > (Justin Vieira) http://www.iswapyou.com/ ## MOD Description: Substitutes phpBB profiles with your own custom ## site profiles. ## MOD Version: 0.0.9 ## ## Installation Level: Advanced ## Installation Time: 15 Minutes ## ## Files To Edit: 5 ## index.php ## memberlist.php ## viewforum.php ## viewonline.php ## viewtopic.php ## includes\page_header.php ############################################################## ## Author Notes: ## ## This mod allows you to substitute a phpBB profile with your own custom ## site profiles. Usernames on the new profile need to be passed in a $_GET variable ## called "findName". This is currently an ADVANCED mod in PRE-RELEASE version so ## be absolutely sure to backup your files before attempting this mod, and it definitely ## wouldn't hurt to know some php before attempting. ## ## The latest version of this mod can be found here: ## http://www.iswapyou.com/phpbbmods/change_profile.txt ## ## For support / comments / whatever, visit here: ## http://www.iswapyou.com/forum/ ## ############################################################## ## MOD History: ## ## 0.9.0: - Pre-release version ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # # Modify Files # # #-----[ OPEN ]------------------------------------------ # index.php # #-----[ FIND ]------------------------------------------ # $forum_moderators[$row['forum_id']][] = '' . $row['username'] . ''; # #-----[ REPLACE WITH ]------------------------------------------ # //Show custom site profile for moderator instead of phpbb profile $forum_moderators[$row['forum_id']][] = '' . $row['username'] . ''; # #-----[ FIND ]------------------------------------------ # 'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), # #-----[ REPLACE WITH ]------------------------------------------ # //Display Newest user's custom site profile instead of phpbb profile 'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), # #-----[ FIND ]------------------------------------------ # $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '' . $forum_data[$j]['username'] . ' '; # #-----[ REPLACE WITH ]------------------------------------------ # //Display custom site profile when user is last poster instead of phpBB poster $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '' . $forum_data[$j]['username'] . ' '; # #-----[ OPEN ]------------------------------------------ # memberlist.php # #-----[ FIND ]------------------------------------------ # $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom site profiles $temp_url = '../findUser.php?findName='.$username; # #-----[ FIND ]------------------------------------------ # $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom site profiles $temp_url = '../findUser.php?findName='.$username; # #-----[ FIND ]------------------------------------------ # 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) # #-----[ REPLACE WITH ]------------------------------------------ # //Show custom profile link instead of phpBB's 'U_VIEWPROFILE' => '../findUser.php?findName='.$username) # #-----[ OPEN ]------------------------------------------ # viewforum.php # #-----[ FIND ]------------------------------------------ # $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom profile page instead of phpbb's. $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; # #-----[ OPEN ]------------------------------------------ # viewonline.php # #-----[ FIND ]------------------------------------------ # 'U_USER_PROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id), # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom user profiles for online users 'U_USER_PROFILE' => '', # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom profiles $temp_url = '../findUser.php?findName=' . $postrow[$i]['username']; # #-----[ OPEN ]------------------------------------------ # includes\page_header.php # #-----[ FIND ]------------------------------------------ # $user_online_link = '' . $row['username'] . ''; # #-----[ REPLACE WITH ]------------------------------------------ # //Use custom site profile for view online instead of phpbb's $user_online_link = '' . $row['username'] . '';