ADDITIONAL MODIFICATION INFORMATION FOR THE FAVORITE-EXTENSION ============================================================== The SHIMMIE2 board has no feature that allows to extend the core feature so that you can add the statistic field "Favorites" into the user's pages. So we have to change the source code instead of just implementing some event-handlers into our code -.- ** core/user.class.php ** EDIT 1 # Find the method public function get_comment_count() # Insert after this method public function get_favorites_count() { global $database; return $database->db->GetOne("SELECT COUNT(*) AS count FROM user_favorites WHERE user_id=?", array($this->id)); } # Line 59 ** ext/user/theme.php ** EDIT 1 # Find $i_comment_count = int_escape($duser->get_comment_count()); # Add after this $i_favorites_count = int_escape($duser->get_favorites_count()); # Line 132 EDIT 2 # Find $h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2)); # Add after this $h_favorites_rate = sprintf("%3.1f", ($i_favorites_count / $i_days_old2)); # Line 138 EDIT 3 # Find $images_link = make_link("post/list/user_id=$u_id/1"); # Add after this $images_fav_link = make_link("post/list/favorited_by_userno=$u_id/1"); # Line 135 EDIT 4 (if IA19 is installed) # Find $images_link = make_link("post/list/user=$u_name/1"); # Add after this $images_fav_link = make_link("post/list/favorited_by=$u_name/1"); # Line 139 EDIT 5 # Find
Images uploaded: $i_image_count ($h_image_rate / day) # Add after this
Images favorited: $i_favorites_count ($h_favorites_rate / day) # Line 147