Punten systeem

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Stephan123
Berichten: 4
Lid geworden op: 05 mei 2003, 19:20
Contacteer:

Punten systeem

Bericht door Stephan123 » 05 mei 2003, 19:22

Hoe installeer je een puntensysteem,Ik kan bijna geen Engels dus ik kan het niet lezen,please
Snel antwoord graag

Spikey
Berichten: 1361
Lid geworden op: 21 dec 2002, 23:08

Bericht door Spikey » 05 mei 2003, 20:30

Hoi Stephan,

we willen je graag helpen, dus misschien kun je aangeven wat je niet kunt lezen zodat we je ook kunnen helpen.

Helaas kennen wij niet alle mods uit ons hoofd en hebben we ook geen tijd om ze allemaal op te zoeken. :wink:
gr. Spikey

Geen support via pb, email, msn, uw vragen worden niet beantwoord !

Stephan123
Berichten: 4
Lid geworden op: 05 mei 2003, 19:20
Contacteer:

Bericht door Stephan123 » 05 mei 2003, 20:56

EN in welke map upload je het eigenlijk

##############################################################
## MOD Title: Points System
## MOD Author: eXplosive <ssjslim at yahoo dot com> http://bbmod.sourceforge.net
## MOD Description: A points system to use for anything you want on your board.
## 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
## memberlist.php
## posting.php
## profile.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
## viewtopic.php
##
## Included Files: 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
## templates/subSilver/admin/points_config_body.tpl
## templates/subSilver/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 .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n";

#
#-----[ REPLACE WITH ]------------------------------------------
#

$statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n";

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_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_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 . ")";

#
#-----[ REPLACE WITH ]------------------------------------------
#

$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, points_disabled" . $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']) . ", " . intval($HTTP_POST_VARS['points_disabled']) . $value_sql . ")";

#
#-----[ 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']) . "

#
#-----[ REPLACE WITH ]------------------------------------------
#

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']) . ", 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 . $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_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', 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" . $avatar_sql . "

#
#-----[ REPLACE WITH ]------------------------------------------
#

SET " . $username_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_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', 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_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 .= '<input type="hidden" name="user_allowpm" value="' . $user_allowpm . '" />';
$s_hidden_fields .= '<input type="hidden" name="user_allowavatar" value="' . $user_allowavatar . '" />';
$s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';

#
#-----[ AFTER, ADD ]------------------------------------------
#

$s_hidden_fields .= '<input type="hidden" name="points" value="' . $points . '" />';

#
#-----[ 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 = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</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 ]------------------------------------------
#

'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 ]------------------------------------------
#
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']);
$mode_types = array('joindate', 'username', 'location', 'posts', 'email', 'website', 'topten');

#
#-----[ REPLACE WITH ]------------------------------------------
#

$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'], $board_config['points_name']);
$mode_types = array('joindate', '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_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar

#
#-----[ REPLACE WITH ]------------------------------------------
#

$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar, user_points

#
#-----[ FIND ]------------------------------------------
#

$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';

#
#-----[ 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 ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
</tr>
<tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<td class="row1">{L_POINTS_DISABLED}</td>
<td class="row2"><select name="points_disabled">{S_POINTS_LIST}</select></td>
</tr>
<tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
</tr>
<tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<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>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<th class="thTop" nowrap="nowrap">{L_FROM}</th>
<th class="thTop" nowrap="nowrap">{L_JOINED}</th>
<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.FROM}</span></td>
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
<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>
<tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<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>
<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></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<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></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}{postrow.POINTS}{postrow.DONATE_POINTS}</span><br /></td>

#
#-----[ 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_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, 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, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid

#
#-----[ REPLACE WITH ]------------------------------------------
#

$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, 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.user_points, p.*, 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'])) ? '<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 ]------------------------------------------
#

'IP' => $ip,
'DELETE_IMG' => $delpost_img,
'DELETE' => $delpost,

#
#-----[ AFTER, ADD ]------------------------------------------
#

'POINTS' => $user_points,
'DONATE_POINTS' => $donate_points,

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Gebruikersavatar
Carlo Claessen
Berichten: 1280
Lid geworden op: 02 jul 2005, 14:05

Bericht door Carlo Claessen » 05 mei 2003, 21:08

Het is geen kwestie van uploaden maar je moet dus doen wat er staat!!!

Elke file editten en dan uploaden een voor een!!!

De nieuwe files moet je ook uploaden en dat staat er in!!!

Als je echt een probleem hebt met engels kan ik eigenlijk maar twee dingen aanraden, vraag iemand erbij die wel engels kan of gebruik een woordenboek of vertaal progamma!!!
''Do not meddle in the affairs of wizards, for they are subtle and quick to anger. '' J.R.R Tolkien

Spikey
Berichten: 1361
Lid geworden op: 21 dec 2002, 23:08

Bericht door Spikey » 05 mei 2003, 22:38

Als je van de gehele mod-tekst niets snapt dan word het inderdaad wat moeilijk, maar ik zal je toch proberen op weg te helpen:

Maak een backup voordat je iets gaat wijzigen

Code: Selecteer alles

## 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. 
Vrije vertaling
Installatie uitleg:
1. Upload alle meegeleverde bestanden in de juiste map.
2. Voer het bestand mod_install.php uit door de url naar dit bestand in je webbrowser aan te geven, is nodig om database wijzigingen te maken.
3. Als je punten wil geven voor het huidige aantal berichten van gebruikers doe dan hetzelfde als in punt twee met het bestand update_user_points.php .
4. Verwijder de bestanden mod_install.php, mod_uninstall.php, mod_upgrade.php, and update_user_points.php.
5. Lees hieronder hoe de wijzingen aan te brengen in de bestaande bestanden.


Er staan vervolgens een aantal opdrachten:
Open = Open het aangegeven bestand
Find = Zoek in dat bestand
Replace with = Vervangen met
After add = Daarna toevoegen


Deze gewijzigde bestanden moet je na het opslaan nog wel uploaden in de mappen waar ze thuis horen.
gr. Spikey

Geen support via pb, email, msn, uw vragen worden niet beantwoord !

topslob
Berichten: 233
Lid geworden op: 24 jan 2003, 13:00

Bericht door topslob » 06 mei 2003, 15:39

Heb je een nederlands of engels forum?

Stephan123
Berichten: 4
Lid geworden op: 05 mei 2003, 19:20
Contacteer:

Bericht door Stephan123 » 06 mei 2003, 15:57


topslob
Berichten: 233
Lid geworden op: 24 jan 2003, 13:00

Bericht door topslob » 07 mei 2003, 14:41

Dat moet je dit ook nog naar nederlands vertalen anders zie je het in het engels op je forum.

Code: Selecteer alles

// 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 
En dit ook

Code: Selecteer alles

// 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 
Ik had het graag voor je gedaan maar mijn engels in nog niet zo goed

2.0_JantjeP
Berichten: 26
Lid geworden op: 22 feb 2003, 22:48
Contacteer:

Bericht door 2.0_JantjeP » 09 mei 2003, 20:27

Ik had het puntensysteem (in het NL) draaien maar heb alles weer gewist.
Je kon punten schenken aan andere leden, maar als de een dit wel doet en een ander niet, is er geen waarde te hechten aan heel het systeem.

De meeste forumleden hebben ook alleen belangstelling, of hun eigen vraag opgelost is en gaan dan weer.

Ga dus bij het implementeren van nieuwe mods eerst voor jezelf na of het echt wel handig is en of je er op een ander forum ook gebruik van zou maken.

Chatbox had ik geinstalleerd en na 4 weken met 0 bezoekers weer verwijderd.

Poll's worden meestal ook alleen ingevuld door de frequente bezoekers.

Suc6

Jan
http://www.officeforum.nl

Gesloten