############################################################## ## MOD Title: Points System ## MOD Author: eXplosive http://bbmod.sourceforge.net ## MOD Description: A points system to use for anything you want on your board. ## ## MOD Beschreibun: Ein Punktesystem für dein Forum, für alles Mögliche. ## ## Angepasst an Orion und übersetzt von Ergonomic ## http://www.reptiliencommunity.de ## MOD Version: 2.0.0 ## ## Installation Level: moderate ## Installation Time: 20 Minutes ## Files To Edit: admin/admin_forums.php ## admin/admin_users.php ## includes/functions_post.php ## includes/usercp_register.php ## includes/usercp_viewprofile.php ## language/lang_english/lang_admin.php ## language/lang_english/lang_main.php ## language/lang_german/lang_admin.php ## language/lang_german/lang_main.php ## memberlist.php ## posting.php ## profile.php ## admin/style/forum_edit_body.tpl ## admin/style/user_edit_body.tpl ## templates/cback/memberlist_body.tpl ## templates/cback/profile_add_body.tpl ## templates/cback/profile_view_body.tpl ## templates/cback/viewtopic_body.tpl ## viewtopic.php ## ## Included Files: admin/admin_points.php ## includes/functions_points.php ## language/lang_english/email/user_notify_donation.tpl ## language/lang_german/email/user_notify_donation.tpl ## mod_install.php ## mod_uninstall.php ## mod_upgrade.php ## pointscp.php ## admin/style/points_config_body.tpl ## templates/cback/points_system.tpl ## update_user_points.php ############################################################## ## 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: ## You should change all your languages and themes if you use others ## then English and subSilver. This mod was made for version 2.0.4 ## of phpBB. ## ## Installation ## ## 1) Upload all files to their respective locations. ## 2) Run mod_install.php from your web broswer to make the table changes. ## 3) If you want to give points for users' current posts run update_user_points.php. ## 4) Delete mod_install.php, mod_uninstall.php, mod_upgrade.php, and update_user_points.php. ## 5) Read below to make the rest of the changes. ## ## Upgrading ## ## 1) Remove all previous file edits. ## 2) Upload all files to their respective locations. ## 3) Run mod_upgrade.php from your web broswer to make the table changes. ## 4) If you want to give points for users' current posts run update_user_points.php. ## 5) Delete mod_install.php, mod_uninstall.php, mod_upgrade.php, and update_user_points.php. ## 6) Read below to make the rest of the changes. ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # admin/admin_forums.php # #-----[ FIND ]------------------------------------------ # $statuslist .= "\n"; # #-----[ REPLACE WITH ]------------------------------------------ # $statuslist .= "\n"; if ($row['points_disabled']) { $yes = 'selected="selected"'; } else { $no = 'selected="selected"'; } $pointslist = ''; $pointslist .= ''; # #-----[ FIND ]------------------------------------------ # 'S_CAT_LIST' => $catlist, 'S_STATUS_LIST' => $statuslist, 'S_PRUNE_ENABLED' => $prune_enabled, # #-----[ AFTER, ADD ]------------------------------------------ # 'S_POINTS_LIST' => $pointslist, # #-----[ FIND ]------------------------------------------ # 'L_PRUNE_DAYS' => $lang['prune_days'], 'L_PRUNE_FREQ' => $lang['prune_freq'], 'L_DAYS' => $lang['Days'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_POINTS_DISABLED' => sprintf($lang['Points_disabled'], $board_config['points_name']), # #-----[ FIND ]------------------------------------------ # $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_parent, forum_desc, forum_order, forum_status, forum_icon, forum_password, prune_enable" . $field_sql . ") VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . $new_cat . ', ' . $new_parent . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")"; # #-----[ REPLACE WITH ]------------------------------------------ # $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_parent, forum_desc, forum_order, forum_status, forum_icon, forum_password, prune_enable, points_disabled" . $field_sql . ") VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . $new_cat . ', ' . $new_parent . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['points_disabled']) . $value_sql . ")"; # #-----[ FIND ]------------------------------------------ # # SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = $new_cat, forum_parent = $new_parent, forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", forum_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', forum_password = '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . " # #-----[ REPLACE WITH ]------------------------------------------ # SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = $new_cat, forum_parent = $new_parent, forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", forum_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', forum_password = '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . ", points_disabled = " . intval($HTTP_POST_VARS['points_disabled']) . " # #-----[ OPEN ]------------------------------------------ # admin/admin_users.php # #-----[ FIND ]------------------------------------------ # $password = ( !empty($HTTP_POST_VARS['password']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password'] ) )) : ''; $password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : ''; # #-----[ AFTER, ADD ]------------------------------------------ # $points = intval($HTTP_POST_VARS['points']); # #-----[ FIND ]------------------------------------------ # $password = ''; $password_confirm = ''; # #-----[ AFTER, ADD ]------------------------------------------ # $points = intval($points); # #-----[ FIND ]------------------------------------------ # SET " . $username_sql . $realname_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_from_flag = '$user_flag', user_interests = '" . str_replace("\'", "''", $interests) . "', user_absence_mode = $user_absence_mode, user_absence = $user_absence, user_absence_text = '" . str_replace("\'", "''", $user_absence_text) . "', user_birthday='$birthday', user_next_birthday_greeting=$next_birthday_greeting, user_popup_notes = $popup_notes, user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_skype = '" . str_replace("\'", "''", $skype) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank, user_gender = '$gender'" . $avatar_sql . " # #-----[ REPLACE WITH ]------------------------------------------ # SET " . $username_sql . $realname_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_from_flag = '$user_flag', user_interests = '" . str_replace("\'", "''", $interests) . "', user_absence_mode = $user_absence_mode, user_absence = $user_absence, user_absence_text = '" . str_replace("\'", "''", $user_absence_text) . "', user_birthday='$birthday', user_next_birthday_greeting=$next_birthday_greeting, user_popup_notes = $popup_notes, user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_skype = '" . str_replace("\'", "''", $skype) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank, user_gender = '$gender', user_points = $points" . $avatar_sql . " # #-----[ FIND ]------------------------------------------ # $password = ''; $password_confirm = ''; # #-----[ AFTER, ADD ]------------------------------------------ # $points = intval($points); # #-----[ FIND ]------------------------------------------ # $password = ''; $password_confirm = ''; # #-----[ AFTER, ADD ]------------------------------------------ # $points = $this_userdata['user_points']; # #-----[ FIND ]------------------------------------------ # $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; # #-----[ AFTER, ADD ]------------------------------------------ # $s_hidden_fields .= ''; # #-----[ FIND ]------------------------------------------ # 'USER_ACTIVE_YES' => ($user_status) ? 'checked="checked"' : '', 'USER_ACTIVE_NO' => (!$user_status) ? 'checked="checked"' : '', 'RANK_SELECT_BOX' => $rank_select_box, # #-----[ AFTER, ADD ]------------------------------------------ # 'POINTS' => $points, # #-----[ FIND ]------------------------------------------ # 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], 'L_HIDE_USER' => $lang['Hide_user'], 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_POINTS' => $board_config['points_name'], # #-----[ OPEN ]------------------------------------------ # includes/functions_post.php # #-----[ FIND ]------------------------------------------ # global $userdata, $user_ip; # #-----[ REPLACE WITH ]------------------------------------------ # global $userdata, $user_ip, $post_info; # #-----[ FIND ]------------------------------------------ # } } } # #-----[ AFTER, ADD ]------------------------------------------ # if ($board_config['points_post'] && !$post_info['points_disabled']) { $points = abs(($mode == 'newtopic') ? $board_config['points_topic'] : $board_config['points_reply']); if ($userdata['user_id'] != ANONYMOUS) { add_points($userdata['user_id'], $points); } } # #-----[ OPEN ]------------------------------------------ # includes/usercp_register.php # #-----[ FIND ]------------------------------------------ # $notifypm = $userdata['user_notify_pm']; $popuppm = $userdata['user_popup_pm']; $notifyreply = $userdata['user_notify']; # #-----[ AFTER, ADD ]------------------------------------------ # $notifydonation = $userdata['user_notify_donation']; # #-----[ FIND ]------------------------------------------ # 'ALWAYS_ADD_SIGNATURE_NO' => ( !$attachsig ) ? 'checked="checked"' : '', 'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '', 'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '', # #-----[ AFTER, ADD ]------------------------------------------ # 'NOTIFY_DONATION_YES' => ( $notifydonation ) ? 'checked="checked"' : '', 'NOTIFY_DONATION_NO' => ( !$notifydonation ) ? 'checked="checked"' : '', # #-----[ FIND ]------------------------------------------ # 'L_PROFILE_INFO' => $lang['Profile_info'], 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], 'L_EMAIL_ADDRESS' => $lang['Email_address'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_NOTIFY_DONATION' => sprintf($lang['Points_notify'], $board_config['points_name']), 'L_NOTIFY_DONATION_EXPLAIN' => sprintf($lang['Points_notify_explain'], $board_config['points_name']), # #-----[ OPEN ]------------------------------------------ # includes/usercp_viewprofile.php # #-----[ FIND ]------------------------------------------ # $search_img = '' . sprintf($lang['Search_user_posts'], $profiledata['username']) . ''; $search = '' . sprintf($lang['Search_user_posts'], $profiledata['username']) . ''; # #-----[ AFTER, ADD ]------------------------------------------ # $user_points = ($userdata['user_level'] == ADMIN || user_is_authed($userdata['user_id'])) ? '' . $profiledata['user_points'] . '' : $profiledata['user_points']; if ($board_config['points_donate'] && $userdata['user_id'] != ANONYMOUS && $userdata['user_id'] != $profiledata['user_id']) { $donate_points = '
' . sprintf($lang['Points_donate'], '', ''); } else { $donate_points = ''; } # #-----[ FIND ]------------------------------------------ # 'MSN' => $msn, 'YIM_IMG' => $yim_img, 'YIM' => $yim, # #-----[ AFTER, ADD ]------------------------------------------ # 'POINTS' => $user_points, 'DONATE_POINTS' => $donate_points, # #-----[ FIND ]------------------------------------------ # 'L_LOCATION' => $lang['Location'], 'L_OCCUPATION' => $lang['Occupation'], 'L_INTERESTS' => $lang['Interests'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_POINTS' => $board_config['points_name'], # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_admin.php # #-----[ FIND ]------------------------------------------ # $lang['Install_No_PCRE'] = 'phpBB2 Requires the Perl-Compatible Regular Expressions Module for PHP which your PHP configuration doesn\'t appear to support!'; # #-----[ AFTER, ADD ]------------------------------------------ # // Points System MOD - Admin $lang['Points_updated'] = 'Points Configuration Updated Successfully'; $lang['Click_return_points'] = 'Click %sHere%s to return to Points Configuration'; $lang['Points_config_explian'] = 'The form below will allow you to edit your point system configuration.'; $lang['Points_sys_settings'] = 'Points System Settings'; $lang['Points_disabled'] = 'Disable %s'; $lang['Points_enable_post'] = 'Earn %s by posting'; $lang['Points_enable_donation'] = 'Enable Donation'; $lang['Points_name'] = 'Points Name'; $lang['Points_per_reply'] = 'Points Per Reply'; $lang['Points_per_topic'] = 'Points Per New Topic'; $lang['Points_user_group_auth'] = 'Authorized Groups'; $lang['Points_enable_post_explain'] = 'Let users earn %s by posting new topics and replies'; $lang['Points_enable_donation_explain'] = 'Let users donate %s to their friends'; $lang['Points_name_explain'] = 'Whatever you call your points on your board e.g. (money, gil, gold)'; $lang['Points_per_reply_explain'] = 'The amount of %s they earn per reply'; $lang['Points_per_topic_explain'] = 'The amount of %s they earn per new topic'; $lang['Points_user_group_auth_explain'] = 'Enter ids of groups who are authorized to access the points control panel, one id per line.'; // End Points System MOD - Admin # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # $lang['An_error_occured'] = 'An Error Occurred'; $lang['A_critical_error'] = 'A Critical Error Occurred'; # #-----[ AFTER, ADD ]------------------------------------------ # // Points System MOD $lang['Points_cp'] = 'Points Control Panel'; $lang['Points_sys'] = 'Points System'; $lang['Points_donation'] = 'Points Donation'; $lang['Points_method'] = 'Method'; $lang['Points_donate'] = '%sDonate%s'; $lang['Points_add_subtract'] = 'Add or subtract %s'; $lang['Points_amount'] = 'Amount'; $lang['Points_give_take'] = 'Amount of %s to give or take'; $lang['Points_give'] = 'Amount of %s to give'; $lang['Add'] = 'Add'; $lang['Subtract'] = 'Subtract'; $lang['Points_donate_to'] = 'The person you want to donate %s to'; $lang['Points_no_username'] = 'No username entered.'; $lang['Points_not_admin'] = 'You are not allowed to admin the points system.'; $lang['Points_cant_take'] = 'You can\'t take away that amount of %s from this user.'; //* $lang['Points_thanks_donation'] = 'Thanks for your donation.'; $lang['Click_return_points_donate'] = 'Click %sHere%s to return to Points Donation'; $lang['Points_cant_donate'] = 'You can\'t donate that amount of %s to this user.'; $lang['Points_cant_donate_self'] = 'You can\'t donate %s to yourself.'; $lang['Points_user_donation_off'] = 'User donation is not enabled.'; $lang['Click_return_pointscp'] = 'Click %sHere%s to return to the Points Control Panel'; $lang['Points_user_updated'] = 'The user\'s %s has been updated successfully.'; $lang['Points_mass_edit'] = 'Mass Edit Usernames'; $lang['Points_mass_edit_explain'] = 'Enter one username per line.'; $lang['Points_notify'] = 'Always notify me of %s donations'; $lang['Points_notify_explain'] = 'Sends an e-mail when someone donates %s to you'; $lang['Points_enter_some_donate'] = 'Enter some %s to donate.'; // End Points System MOD # #-----[ OPEN ]------------------------------------------ # language/lang_german/lang_admin.php # #-----[ FIND ]------------------------------------------ # $lang['Install_No_PCRE'] = 'phpBB 2 benötigt das Perl-Compatible Regular Expressions Module für PHP, was von deiner PHP-Konfiguration anscheinend nicht unterstützt wird.'; # #-----[ AFTER, ADD ]------------------------------------------ # // Points System MOD - Admin $lang['Points_updated'] = 'Punkte System Erfolgreich Aktualisiert'; $lang['Click_return_points'] = 'Klick %shier%s, um zur Punkte System zurück zu kehren'; $lang['Points_config_explian'] = 'Hier kann man das Punkte System bearbeiten.'; $lang['Points_sys_settings'] = 'Punkte System'; $lang['Points_disabled'] = 'Deaktivieren %s'; $lang['Points_enable_post'] = 'Erworbene %s durch Antworten'; $lang['Points_enable_donation'] = 'Abgabe ermöglichen'; $lang['Points_name'] = 'Name der Punkte'; $lang['Points_per_reply'] = 'Punkte Pro Antwort'; $lang['Points_per_topic'] = 'Punkte pro neues Thema'; $lang['Points_user_group_auth'] = 'Autorisierte Gruppen'; $lang['Points_enable_post_explain'] = 'Erlaube den Benutzern den erwerb von %s durch neue Themen und Antworten.'; $lang['Points_enable_donation_explain'] = 'Erlaube das spenden von %s.'; $lang['Points_name_explain'] = 'Wie auch immer die Punkte heissen sollen z.B. (money, gil, gold).'; $lang['Points_per_reply_explain'] = 'Die erworbene %s Menge pro Antwort.'; $lang['Points_per_topic_explain'] = 'Die erworbene %s Menge pro neues Thema.'; $lang['Points_user_group_auth_explain'] = 'Hier kann man die Gruppen eintragen die autorisiert werden,
das Punkte System zu benutzen. Ein Eintrag pro Linie !!!'; // End Points System MOD - Admin # #-----[ OPEN ]------------------------------------------ # language/lang_german/lang_main.php # #-----[ FIND ]------------------------------------------ # $lang['An_error_occured'] = 'Ein Fehler ist aufgetreten.'; $lang['A_critical_error'] = 'Ein kritischer Fehler ist aufgetreten.'; # #-----[ AFTER, ADD ]------------------------------------------ # // Points System MOD $lang['Points_cp'] = "Punkte Kontrollcenter"; $lang['Points_sys'] = "Punktesystem"; $lang['Points_donation'] = "Punkte-Tausch"; $lang['Points_method'] = "Methode"; $lang['Points_donate'] = "%sSpende%s"; $lang['Points_add_subtract'] = "Hinzufügen oder abziehen %s"; $lang['Points_amount'] = "Menge"; $lang['Points_give_take'] = "%s Stück geben oder nehmen"; $lang['Points_give'] = "%s Stück geben"; $lang['Add'] = "Hinzufügen"; $lang['Subtract'] = "Abziehen"; $lang['Points_donate_to'] = "Die Person, der Sie %s spenden möchten"; $lang['Points_no_username'] = "Es wurde kein Benutzername eingegeben"; $lang['Points_not_admin'] = "Ihnen ist es nicht erlaubt das Punktsystem zu administrieren."; $lang['Points_cant_take'] = "Sie können die Menge von %s nicht von diesem Benutzer überweisen."; $lang['Points_thanks_donation'] = "Danke für Ihre Spende."; $lang['Click_return_points_donate'] = "Hier %sklicken%s um zurück zum Punkte-Tausch zugelangen."; $lang['Points_cant_donate'] = "Sie können die Menge von %s nicht diesem Benutzer spenden."; $lang['Points_cant_donate_self'] = "Sie können nicht %s Stück sich selber Spenden."; $lang['Points_user_donation_off'] = "Benutzer Spenden sind nicht möglich."; $lang['Click_return_pointscp'] = "Hier %sklicken%s um zurück zum Punkte-Kontrollcenter zugelangen."; $lang['Points_user_updated'] = "Der Benutzer %s wurde erfolgreich geändert."; $lang['Points_mass_edit'] = 'Benutzer mit Editberechtigung'; $lang['Points_mass_edit_explain'] = 'Ein Benutzernamen pro Linie ein.'; $lang['Points_notify'] = 'Immer über Spenden von %s benachrichtigen'; $lang['Points_notify_explain'] = 'E-mail senden wenn jemand %s gespendet hat.'; $lang['Points_enter_some_donate'] = 'Menge von %s zum spenden eingeben.'; // End Points System MOD # #-----[ OPEN ]------------------------------------------ # memberlist.php # #-----[ FIND ]------------------------------------------ # $mode_types_text = array($lang['Sort_Joined'], $lang['Last_logon'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']); $mode_types = array('joined', 'lastlogon', 'username', 'location', 'posts', 'email', 'website', 'topten'); # #-----[ REPLACE WITH ]------------------------------------------ # $mode_types_text = array($lang['Sort_Joined'], $lang['Last_logon'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten'], $board_config['points_name']); $mode_types = array('joined', 'lastlogon', 'username', 'location', 'posts', 'email', 'website', 'topten', 'points'); # #-----[ FIND ]------------------------------------------ # 'L_PM' => $lang['Private_Message'], # #-----[ REPLACE WITH ]------------------------------------------ # 'L_PM' => $lang['Private_Message'], 'L_POINTS' => $board_config['points_name'], # #-----[ FIND ]------------------------------------------ # case 'topten': $order_by = "user_posts $sort_order LIMIT 10"; break; # #-----[ AFTER, ADD ]------------------------------------------ # case 'points': $order_by = "user_points $sort_order LIMIT $start," . $board_config['topics_per_page']; break; # #-----[ FIND ]------------------------------------------ # $sql = "SELECT username, user_absence, user_absence_mode, user_id, user_viewemail, user_posts, user_regdate, user_lastlogon, user_allow_viewonline, user_from, user_from_flag, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar, user_allow_viewonline, user_session_time # #-----[ REPLACE WITH ]------------------------------------------ # $sql = "SELECT username, user_absence, user_absence_mode, user_id, user_viewemail, user_posts, user_regdate, user_lastlogon, user_allow_viewonline, user_from, user_from_flag, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar, user_allow_viewonline, user_session_time, user_points # #-----[ FIND ]------------------------------------------ # $search_img = '' . sprintf($lang['Search_user_posts'], $username) . ''; $search = '' . sprintf($lang['Search_user_posts'], $username) . ''; # #-----[ AFTER, ADD ]------------------------------------------ # $user_points = $row['user_points']; # #-----[ FIND ]------------------------------------------ # 'MSN' => $msn, 'YIM_IMG' => $yim_img, 'YIM' => $yim, # #-----[ AFTER, ADD ]------------------------------------------ # 'POINTS' => $user_points, # #-----[ OPEN ]------------------------------------------ # posting.php # #-----[ FIND ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); include($phpbb_root_path . 'includes/bbcode.'.$phpEx); include($phpbb_root_path . 'includes/functions_post.'.$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include($phpbb_root_path . 'includes/functions_points.'.$phpEx); # #-----[ OPEN ]------------------------------------------ # profile.php # #-----[ FIND ]------------------------------------------ # $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include($phpbb_root_path . 'includes/functions_points.'.$phpEx); # #-----[ OPEN ]------------------------------------------ # admin/style/forum_edit_body.tpl # #-----[ FIND ]------------------------------------------ # {L_FORUM_STATUS} # #-----[ AFTER, ADD ]------------------------------------------ # {L_POINTS_DISABLED} # #-----[ OPEN ]------------------------------------------ # admin/style/user_edit_body.tpl # #-----[ FIND ]------------------------------------------ # {L_SPECIAL_EXPLAIN} # #-----[ AFTER, ADD ]------------------------------------------ # {L_POINTS} # #-----[ OPEN ]------------------------------------------ # templates/cback/memberlist_body.tpl # #-----[ FIND ]------------------------------------------ # {L_FROM} {L_JOINED} {L_POSTS} # #-----[ AFTER, ADD ]------------------------------------------ # {L_POINTS} # #-----[ FIND ]------------------------------------------ # {memberrow.FROM} {memberrow.JOINED} {memberrow.POSTS} # #-----[ AFTER, ADD ]------------------------------------------ # {memberrow.POINTS} # #-----[ OPEN ]------------------------------------------ # templates/cback/profile_add_body.tpl # #-----[ FIND ]------------------------------------------ # {L_NO} # #-----[ AFTER, ADD ]------------------------------------------ # {L_NOTIFY_DONATION}:
{L_NOTIFY_DONATION_EXPLAIN} {L_YES}   {L_NO} # #-----[ OPEN ]------------------------------------------ # templates/cback/profile_view_body.tpl # #-----[ FIND ]------------------------------------------ # {L_INTERESTS}: {INTERESTS} # #-----[ AFTER, ADD ]------------------------------------------ # {L_POINTS}: {POINTS}{DONATE_POINTS} # #-----[ OPEN ]------------------------------------------ # templates/cback/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------ # {postrow.POSTER_NAME}
{postrow.POSTER_RANK}
{postrow.RANK_IMAGE}
{postrow.POSTER_AVATAR}

{postrow.POSTER_GENDER}
{postrow.POSTER_AGE}
{postrow.POSTER_JOINED}
{postrow.POSTER_POSTS}
{postrow.POSTER_FROM}


{postrow.POSTER_FROM_FLAG}
# #-----[ REPLACE WITH ]------------------------------------------ # {postrow.POSTER_NAME}
{postrow.POSTER_RANK}
{postrow.RANK_IMAGE}
{postrow.POSTER_AVATAR}

{postrow.POSTER_GENDER}
{postrow.POSTER_AGE}
{postrow.POSTER_JOINED}
{postrow.POSTER_POSTS}
{postrow.POSTER_FROM}


{postrow.POSTER_FROM_FLAG}{postrow.POINTS}{postrow.DONATE_POINTS}
# #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); include($phpbb_root_path . 'includes/bbcode.'.$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include($phpbb_root_path . 'includes/functions_points.'.$phpEx); # #-----[ FIND ]------------------------------------------ # $sql = "SELECT u.username, u.user_absence, u.user_absence_mode, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_skype, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.ct_miserable_user, u.user_birthday, u.user_next_birthday_greeting, u.user_allow_viewonline, u.user_session_time, p.*, u.user_gender, pt.post_text, pt.post_subject, pt.bbcode_uid # #-----[ REPLACE WITH ]------------------------------------------ # $sql = "SELECT u.username, u.user_absence, u.user_absence_mode, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_skype, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.ct_miserable_user, u.user_birthday, u.user_next_birthday_greeting, u.user_allow_viewonline, u.user_session_time, u.user_points, p.*, u.user_gender, pt.post_text, pt.post_subject, pt.bbcode_uid # #-----[ FIND ]------------------------------------------ # $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; # #-----[ AFTER, ADD ]------------------------------------------ # if ($poster_id != ANONYMOUS) { $user_points = ($userdata['user_level'] == ADMIN || user_is_authed($userdata['user_id'])) ? '' . $board_config['points_name'] . '' : $board_config['points_name']; $user_points = '
' . $user_points . ': ' . $postrow[$i]['user_points']; if ($board_config['points_donate'] && $userdata['user_id'] != ANONYMOUS && $userdata['user_id'] != $poster_id) { $donate_points = '
' . sprintf($lang['Points_donate'], '', ''); } else { $donate_points = ''; } } else { $user_points = ''; $donate_points = ''; } # #-----[ FIND ]------------------------------------------ # 'IP' => $ip, 'DELETE_IMG' => $delpost_img, 'DELETE' => $delpost, # #-----[ AFTER, ADD ]------------------------------------------ # 'POINTS' => $user_points, 'DONATE_POINTS' => $donate_points, # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM