Altın modu[istek]
Altın modu[istek]
mrb arkadaşlar kullanıcıların yazdıkları msj sayısına göre ve açtığı mesajlara atılan msj sayısına göre altın kazanabileceği bir mod varmı??
buna benzer bir modun ismi indirme bölümünde vardı ismi"[MOD] Point System v2.1.1 Puan Sistemi"ama bu mod çok karışık install dosyası karışmış bunun düzelenmiş hali varsa verebilirseniz çok teşekkürler.
buna benzer bir modun ismi indirme bölümünde vardı ismi"[MOD] Point System v2.1.1 Puan Sistemi"ama bu mod çok karışık install dosyası karışmış bunun düzelenmiş hali varsa verebilirseniz çok teşekkürler.
Buyrun Points System MOD install dosyasının düzeltilmiş hali
Kod: Tümünü seç
## EasyMod 0.0.11 compliant
##############################################################
## MOD Title: Points System MOD
## MOD Author: Robbie Shields < robbie@robbieshields.net > (Robbie Shields) http://www.robbieshields.net
## MOD Description: A points system to use for anything you want on your board.
## MOD Version: 2.1.1
##
## Installation Level: Intermediate
## Installation Time: 20 Minutes (1 Minute with EasyMod)
## Files To Edit: (17)
## admin/admin_forums.php
## admin/admin_users.php
## includes/page_header.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
## common.php
## memberlist.php
## viewtopic.php
## templates/subSilver/admin/forum_edit_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/memberlist_body.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/viewtopic_body.tpl
##
## Included Files: (10)
## admin/admin_points.php
## includes/functions_points.php
## language/lang_english/email/user_notify_donation.tpl
## mod_install.php
## mod_uninstall.php
## mod_upgrade.php
## pointscp.php
## update_user_points.php
## templates/subSilver/admin/points_config_body.tpl
## templates/subSilver/points_system.tpl
##
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Thanks for downloading this MOD! I hope you enjoy using it and find it useful.
##
## If you find any bugs in this MOD, please post them in the topic at phpBB.
## Support will given only in the topic at phpBB, not via email, PM or IM.
## This MOD is fully compatible with phpBB 2.0.8 and EasyMod alpha3 v0.0.11a.
##
## Whilst every effort has been made to make sure this MOD is as secure as possible,
## security issues could appear. The author takes no responsibility for any damage caused
## to your server in the event of such an issue. Therefore, you use this MOD at your own risk.
##
## If you use a table prefix other than phpbb_ and a template other than subSilver,
## you will need to make the necessary changes below. Do not email, PM or IM me asking
## how to do this. There are plenty of topics on it at the phpBB forums.
##
## Installation:
##
## 1) Upload all files to their respective locations.
## 2) Run mod_install.php from your web broswer to make the table changes.
## 3) Delete mod_install.php.
## 4) Follow the steps below.
##
##############################################################
## MOD History:
##
## 2004-05-03 - Version 2.1.1
## - Minor bug fix.
##
## 2004-05-02 - Version 2.1.0
## - Users can now get points for simply browsing the forums.
## - Robbie Shields takes over development with eXplosive's permission.
##
## 2003-12-13 - Version 2.0.9
## - Finished Install/upgrade routines.
##
## 2003-12-26 - Version 2.0.8
## - Finished Upgrade.txt & routines.
##
## 2003-12-26 - Version 2.0.7
## - Included the missing routines for 2.0.5
##
## 2003-12-26 - Version 2.0.6
## - EasyMOD Compliant.
##
## 2003-12-26 - Version 2.0.5
## - Reset All Users Points to XX amount.
##
## 2003-12-26 - Version 2.0.4
## - Disable Points System on a User.
##
## 2003-12-26 - Version 2.0.3
## - Email Donation Notification fix.
##
## 2003-12-26 - Version 2.0.2
## - User delete post & subtract Points.
##
## 2003-12-26 - Version 2.0.1
## - User edit post & gain Points bug fixed.
##
## 2003-11-26 - Version 2.0.0
## - Chris "Napoleon" Moore takes over development with
## eXplosive's permission.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy mod_install.php to mod_install.php
copy mod_uninstall.php to mod_uninstall.php
copy mod_upgrade.php to mod_upgrade.php
copy pointscp.php to pointscp.php
copy update_user_points.php to update_user_points.php
copy admin/admin_points.php to admin/admin_points.php
copy includes/functions_points.php to includes/functions_points.php
copy language/lang_english/email/user_notify_donation.tpl to language/lang_english/email/user_notify_donation.tpl
copy templates/subSilver/admin/points_config_body.tpl to templates/subSilver/admin/points_config_body.tpl
copy templates/subSilver/points_system.tpl to templates/subSilver/points_system.tpl
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
#
$statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n";
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($row['points_disabled'])
{
$yes = 'selected="selected"';
}
else
{
$no = 'selected="selected"';
}
$pointslist = '<option value="' . TRUE . '" ' . $yes . '>' . $lang['Yes'] . '</option>';
$pointslist .= '<option value="' . FALSE . '" ' . $no . '>' . $lang['No'] . '</option>';
#
#-----[ FIND ]------------------------------------------
#
'S_PRUNE_ENABLED' => $prune_enabled,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'S_POINTS_LIST' => $pointslist,
#
#-----[ FIND ]------------------------------------------
#
'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_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
#
#-----[ IN-LINE FIND ]------------------------------------------
#
forum_status, prune_enable
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, points_disabled
#
#-----[ IN-LINE FIND ]------------------------------------------
#
" . intval($HTTP_POST_VARS['prune_enable']) .
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
", " . intval($HTTP_POST_VARS['points_disabled']) .
#
#-----[ FIND ]------------------------------------------
#
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, points_disabled = " . intval($HTTP_POST_VARS['points_disabled']) . "
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$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']);
$allow_points = ( !empty($HTTP_POST_VARS['allow_points']) ) ? intval( $HTTP_POST_VARS['allow_points'] ) : 0;
#
#-----[ FIND ]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$points = intval($points);
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_rank = $user_rank
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_points = $points, admin_allow_points = $allow_points
#
#-----[ FIND ]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$points = intval($points);
#
#-----[ FIND ]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$points = $this_userdata['user_points'];
$allow_points = $this_userdata['admin_allow_points'];
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="points" value="' . $points . '" />';
$s_hidden_fields .= '<input type="hidden" name="allow_points" value="' . $allow_points . '" />';
#
#-----[ FIND ]------------------------------------------
#
'RANK_SELECT_BOX' => $rank_select_box,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POINTS' => $points,
'ALLOW_POINTS_YES' => ($allow_points) ? 'checked="checked"' : '',
'ALLOW_POINTS_NO' => (!$allow_points) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POINTS' => $board_config['points_name'],
'L_ALLOW_POINTS' => $lang['Allow_Points'],
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
$u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
$l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($board_config['points_browse'] && !$post_info['points_disabled'] )
{
$points = $board_config['points_browse'];
if (($userdata['user_id'] !=ANONYMOUS) && ($userdata['admin_allow_points']))
{
add_points($userdata['user_id'], $points);
}
}
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
global $userdata, $user_ip;
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$user_ip
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $post_info
#
#-----[ FIND ]------------------------------------------
#
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($board_config['points_post'] && !$post_info['points_disabled'] && (($mode == 'newtopic') || ($mode == 'reply')) )
{
$points = abs(($mode == 'newtopic') ? $board_config['points_topic'] : $board_config['points_reply']);
if (($userdata['user_id'] != ANONYMOUS) && ($userdata['admin_allow_points']))
{
add_points($userdata['user_id'], $points);
}
}
#
#-----[ FIND ]------------------------------------------
#
if ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post'])
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_id) . '">';
$message = $lang['Deleted'];
}
else
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id) . '">';
$message = (($mode == 'poll_delete') ? $lang['Poll_delete'] : $lang['Deleted']) . '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($board_config['points_post'] && !$post_info['points_disabled'] && ($mode == 'delete' || $mode == 'poll_delete') )
{
if (($userdata['user_id'] == $post_data['first_post']) && (($userdata['user_id'] != ANONYMOUS) && ($userdata['admin_allow_points'])))
{
subtract_points($userdata['user_id'], $board_config['points_topic']);
}
else if (($userdata['user_id'] != ANONYMOUS) && ($userdata['admin_allow_points']))
{
subtract_points($userdata['user_id'], $board_config['points_reply']);
}
}
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$notifydonation = ( isset($HTTP_POST_VARS['notifydonation']) ) ? ( ($HTTP_POST_VARS['notifydonation']) ? TRUE : 0 ) : TRUE;
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_notify_pm = $notifypm,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
user_notify_donation = $notifydonation,
#
#-----[ FIND ]------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_notify_pm,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
user_notify_donation,
#
#-----[ FIND ]------------------------------------------
#
VALUES (
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$notifypm,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
$notifydonation,
#
#-----[ FIND ]------------------------------------------
#
$notifyreply = $userdata['user_notify'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$notifydonation = $userdata['user_notify_donation'];
#
#-----[ FIND ]------------------------------------------
#
'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'NOTIFY_DONATION_YES' => ( $notifydonation ) ? 'checked="checked"' : '',
'NOTIFY_DONATION_NO' => ( !$notifydonation ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'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 ]------------------------------------------
# Action ONLY !!! for users have a previous version fo phpBB 2.0.17.
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ FIND ]------------------------------------------
# Action ONLY !!! for users have phpBB 2.0.17 or a next version.
#
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_points = ($userdata['user_level'] == ADMIN || user_is_authed($userdata['user_id'])) ? '<a href="' . append_sid("pointscp.$phpEx?" . POST_USERS_URL . "=" . $profiledata['user_id']) . '" class="gen" title="' . sprintf($lang['Points_link_title'], $board_config['points_name']) . '">' . $profiledata['user_points'] . '</a>' : $profiledata['user_points'];
if ($board_config['points_donate'] && $userdata['user_id'] != ANONYMOUS && $userdata['user_id'] != $profiledata['user_id'])
{
$donate_points = '<br />' . sprintf($lang['Points_donate'], '<a href="' . append_sid("pointscp.$phpEx?mode=donate&" . POST_USERS_URL . "=" . $profiledata['user_id']) . '" class="genmed" title="' . sprintf($lang['Points_link_title_2'], $board_config['points_name']) . '">', '</a>');
}
else
{
$donate_points = '';
}
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POINTS' => $user_points,
'DONATE_POINTS' => $donate_points,
#
#-----[ FIND ]------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POINTS' => $board_config['points_name'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, 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_browse'] = 'Earn %s by browsing';
$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_per_page'] = 'Points Per Page';
$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_browse_explain'] = 'Let users earn %s by browsing the forums';
$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_per_page_explain'] = 'The amount of %s they earn for each page they view';
$lang['Points_user_group_auth_explain'] = 'Enter ids of groups who are authorized to access the points control panel, one id per line.';
$lang['Allow_Points'] = 'Use the Points System?';
$lang['Points_reset'] = 'Reset everyone\'s Points';
$lang['Points_reset_explain'] = 'Input a number and submit. Everyone\'s points will become the number you entered.';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
#
#-----[ BEFORE, 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.';
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$mode_types_text = array($lang['Sort_Joined'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Sort_Top_Ten']
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $board_config['points_name']
#
#-----[ FIND ]------------------------------------------
# Note -- For users ONLY !!! who have a previous version of phpBB 2.0.18.
#
$mode_types = array('joindate', 'username', 'location', 'posts', 'email', 'website', 'topten');
#
#-----[ FIND ]------------------------------------------
# Note -- For users ONLY !!! who have phpBB 2.0.18 or a next version.
#
$mode_types = array('joined', 'username', 'location', 'posts', 'email', 'website', 'topten');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'topten'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'points'
#
#-----[ FIND ]------------------------------------------
#
'L_PM' => $lang['Private_Message'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'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_id, user_viewemail, user_posts
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_allowavatar
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_points
#
#-----[ FIND ]------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_points = $row['user_points'];
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POINTS' => $user_points,
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/db.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'includes/functions_points.'.$phpEx);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_STATUS}</td>
<td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_POINTS_DISABLED}</td>
<td class="row2"><select name="points_disabled">{S_POINTS_LIST}</select></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_POINTS}</span></td>
<td class="row2">
<input type="text" name="points" maxlength="12" value="{POINTS}" size="12" />
</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_ALLOW_POINTS}</span></td>
<td class="row2">
<input type="radio" name="allow_points" value="1" {ALLOW_POINTS_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="allow_points" value="0" {ALLOW_POINTS_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_POSTS}</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_POINTS}</th>
#
#-----[ FIND ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POINTS}</span></td>
#
#-----[ FIND ]------------------------------------------
#
<td class="catBottom" colspan="8" height="28"> </td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="catbottom" colspan="9" height="28"> </td>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_DONATION}:</span><br />
<span class="gensmall">{L_NOTIFY_DONATION_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="notifydonation" value="1" {NOTIFY_DONATION_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="notifydonation" value="0" {NOTIFY_DONATION_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_POINTS}:</span></td>
<td><b><span class="gen">{POINTS}</span></b><span class="genmed">{DONATE_POINTS}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
{postrow.POINTS}{postrow.DONATE_POINTS}
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_allowsmile,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_points,
#
#-----[ FIND ]------------------------------------------
#
$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'])) ? '<a href="' . append_sid("pointscp.$phpEx?" . POST_USERS_URL . "=" . $postrow[$i]['user_id']) . '" class="gensmall" title="' . sprintf($lang['Points_link_title'], $board_config['points_name']) . '">' . $board_config['points_name'] . '</a>' : $board_config['points_name'];
$user_points = '<br />' . $user_points . ': ' . $postrow[$i]['user_points'];
if ($board_config['points_donate'] && $userdata['user_id'] != ANONYMOUS && $userdata['user_id'] != $poster_id)
{
$donate_points = '<br />' . sprintf($lang['Points_donate'], '<a href="' . append_sid("pointscp.$phpEx?mode=donate&" . POST_USERS_URL . "=" . $postrow[$i]['user_id']) . '" class="gensmall" title="' . sprintf($lang['Points_link_title_2'], $board_config['points_name']) . '">', '</a>');
}
else
{
$donate_points = '';
}
}
else
{
$user_points = '';
$donate_points = '';
}
#
#-----[ FIND ]------------------------------------------
#
'DELETE' => $delpost,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POINTS' => $user_points,
'DONATE_POINTS' => $donate_points,
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Bunu nerye eklıycez
Nereye??
Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 3 misafir