// // Profile Views v1.0.2 // ********************** MODIFICATION INFO ********************** This is just a basic modification that will add the feature of the number of profile views. This WILL NOT count if it is your own profile that you are viewing. Now onto the edits....There are only a few. *************************** MODIFICATION EDITS - START *************************** ===================== DATABASE ALTERATIONS ===================== Go to your ACP -> SQL Toolbox -> Click OK -> Enter the below into the text box that you see. ALTER TABLE `YOUR.PREFIX_members` ADD `p_views` INT( 7 ) NOT NULL ; Be sure to change YOUR.PREFIX to your usebb tables prefix. ( usually usebb, so usebb_members ). ---OPEN profile.php--- ======================= FIND ( around line 83 ) ========================= $own_profile = false; ========== ADD BELOW ========== $db->query("UPDATE ".TABLE_PREFIX."members SET p_views = p_views+1 WHERE id = ".$_GET['id'].""); ========================= FIND ( around line 198 ) ========================== 'username_v' => $username, =========== AFTER ADD =========== 'p_views_v' => $profiledata['p_views'], ---OPEN templates/*/various.tpl.php--- ========================= FIND ( around line 168 ) ========================= {title} ============= REPLACE WITH ============= Views: {p_views_v} {title} ************************* MODIFICATION EDITS - END ************************* Enjoy! Any comments/questions can be asked at UseBB Zone ( http://usebbzone.com ) Copyright: Gaia.