## ## Mod title: Buddy list mod ## ## Mod version: 1.0.2 ## Works on PunBB: 1.2.* ## Release date: 2009-09-07 ## Author: Koos (pampoen10@yahoo.com) ## ## Description: Allows you to add others users to your buddy list through ## their profile. ## ## Affected files: profile.php ## include/functions.php ## ## Affects DB: New column in 'users' table: ## 'buddy_list' ## New column in 'groups' table: ## 'g_buddy' ## New option in 'config' table: ## 'o_buddy_enabled' ## ## DISCLAIMER: Please note that "mods" are not officially supported by ## PunBB. Installation of this modification is done at your ## own risk. Backup your forum database and any and all ## applicable files before proceeding. ## ################################################################################ ## CHANGELOG: ## 1.0.2 : fixed bug on profile page ## 1.0.1 : now moderators can't view buddy lists of other users ## added 'last post' column to buddy list ## fixed permissions bug ## some other minor fixes ## 1.0 : initial release ################################################################################ # #---------[ 1. UPLOAD ]------------------------------------------------------- # Upload all files and folders contained in archive to forum root. Keep folder structure intact. # #---------[ 2. RUN ]---------------------------------------------------------- # install_mod.php # #---------[ 3. DELETE ]------------------------------------------------------- # install_mod.php # #---------[ 4. OPEN ]--------------------------------------------------------- # profile.php # #---------[ 5. FIND (line: 996) ]---------------------------------------------- #
# #---------[ 6. BEFORE, ADD ]--------------------------------------------------- # # #---------[ 7. FIND (line: 1072) ]--------------------------------------------- # } else { $username_field = '

'.$lang_common['Username'].': '.pun_htmlspecialchars($user['username']).'

'."\n"; if ($pun_config['o_regs_verify'] == '1') $email_field = '

'.$lang_common['E-mail'].': '.$user['email'].' - '.$lang_profile['Change e-mail'].'

'."\n"; else $email_field = ''."\n"; } # #---------[ 8. BEFORE, ADD ]--------------------------------------------------- # require PUN_ROOT.'include/buddy/profile_buddy.php'; #---------[ 9. FIND (line: 1225) ]--------------------------------------------- # else if ($section == 'personal') # #---------[ 10. BEFORE, ADD ]------------------------------------------------- # else if ($section == 'buddy') { require PUN_ROOT.'include/buddy/section_buddy.php'; } # #---------[ 11. OPEN ]-------------------------------------------------------- # include/functions.php #---------[ 12. FIND (line: 338) ]--------------------------------------------- # > # #---------[ 13. AFTER, ADD ]--------------------------------------------------- #