|
Orangeloulou
133 messages
Carte Graphique 3D
|
Le 12 Juin 2006 à 07h18
Je ne sais pas si c'est moi mais euh... le fichier est tout à fait lisible...
Code ##############################################################
## MOD Title: Points System MOD
## MOD Author: Robbie Shields < robbie@robbieshields.net > (Robbie Shields) http://www.robbieshields.net
## MOD Traductor: Galixte pour phpBB-fr.com < galixte@gmail.com > (N/A) http://www.phpbb-project.info
## MOD Description: Un système de points pour votre forum.
## MOD Version: 2.1.1
##
## Installation Level: modéré
## Installation Time: 20 Minutes
## Files To Edit: (19)
## 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
## language/lang_french/lang_admin.php
## language/lang_french/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: (11)
## admin/admin_points.php
## includes/functions_points.php
## language/lang_english/email/user_notify_donation.tpl
## language/lang_french/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
##
##############################################################
## Pour des raisons de sécurité, vous êtes priés de consulter régulièrement :
## http://www.phpbb.com/mods/downloads/ afin d'obtenir la dernière version
## de ce MOD. Télécharger ce MOD à partir des sites autres que phpBB.com peut
## être dangereux pour votre forum phpBB. Par conséquent, phpBB.com n'assurera
## aucun support pour les MODs absents de leur base de données, consultable
## sur : http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## Merci d'avoir télécharger ce MOD ! J'espère qu'il vous fera plaisir en l'utilisant et que vous le trouverez utile.
##
## Si vous trouvez n'importe quels bugs dans ce MOD, s'il vous plait signalez-les
## sur le topic du forum phpBB.com : http://www.phpbb.com/phpBB/viewtopic.php?t=193481
##
## Le support se fait uniquement sur ce topic ou sur : http://forums.phpbb-fr.com/viewtopic_42453.html
## Et non par l'intermédiaire d'e-mail, de MP, MSN Messenger ou AIM.
##
## Ce MOD est totalement compatible avec phpBB 2.0.8 et EasyMod alpha3 v0.0.11a.
##
## Alors que tout a été fait afin de s'assurer que ce MOD est autant que possible sécurisé,
## des failles de sécurité peuvent apparaitrent. L'auteur ne prend aucune responsabilité
## concernant des dommages causés à votre serveur, lors de faille de sécurité.
## Par conséquent, vous utilisez ce MOD à vos propres risques.
##
## Si vous utilisez un préfixe de table autre que le phpbb_ et un thème autre que le subSilver,
## il vous sera nécessaire de les changer en conséquence.
## Si vous utilisez une autre langue que l'anglais et le français, vous devez aussi modifier les autres fichiers
## de langue.
## Aucune demande par e-mail, MP, MSN Messenger ou AIM n'est permise.
## Il y a suffisamment de topics la dessus, sur le forum phpBB.com.
##
## Pour l'installation :
##
## 1) Envoyez tous les fichiers dans leur emplacement respectif.
## 2) Exécutez le fichier mod_install.php pour les modifications apportées par les requêtes SQL.
## 3) Supprimer ensuite les fichiers mod_install.php, mod_uninstall.php et mod_upgrade.php.
## 4) Réalisez les instructions détaillées ci-dessous.
##
## Pour la mise à jour :
##
## 1) Supprimez les modifications dues à l'installation d'une précédente version du MOD.
## 2) Envoyez tous les fichiers dans leur emplacement respectif.
## 3) Exécutez le fichier upgrade.php pour les modifications apportées par les requêtes SQL.
## 4) Supprimez ensuite les fichiers mod_install.php, mod_uninstall.php et mod_upgrade.php.
## 5) Réalisez les instructions détaillées ci-dessous.
##
##############################################################
## 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.
##
##############################################################
## Avant d'ajouter ce MOD à votre forum, il vous est fortement conseillé
## d'effectuer une sauvegarde des éléments que vous allez modifier.
##############################################################
#
#-----[ 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 language/lang_french/email/user_notify_donation.tpl to language/lang_french/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'] . '' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '' . 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']) . '' . 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 pour les utilisateurs ayant une version de phpBB antérieure à la version 2.0.17.
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ FIND ]------------------------------------------
# Action pour les utilisateurs ayant la version 2.0.17 de phpBB ou une version plus récente.
#
$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 = '' . 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 ]------------------------------------------
#
language/lang_french/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Points System MOD - Admin
$lang['Points_updated'] = 'Configuration du système de points mise à jour avec succès';
$lang['Click_return_points'] = 'Cliquez %sIci%s pour retourner à la configuration du système de points';
$lang['Points_config_explian'] = 'Le formulaire ci-dessous vous permet d\'éditer la configuration du système de points.';
$lang['Points_sys_settings'] = 'Paramètres du système de points';
$lang['Points_disabled'] = 'Désactiver les %s';
$lang['Points_enable_post'] = 'Gagner des %s en postant';
$lang['Points_enable_browse'] = 'Gagner des %s en naviguant';
$lang['Points_enable_donation'] = 'Autoriser les dons';
$lang['Points_name'] = 'Nom des points';
$lang['Points_per_reply'] = 'Points par réponse';
$lang['Points_per_topic'] = 'Points par nouveaux sujets';
$lang['Points_per_page'] = 'Points par page';
$lang['Points_user_group_auth'] = 'Groupes autorisés';
$lang['Points_enable_post_explain'] = 'Laisse les utilisateurs gagner des %s en postant des nouveaux sujets et en répondant à ceux existants';
$lang['Points_enable_browse_explain'] = 'Laisse les utilisateurs gagner des %s en naviguant sur les forums';
$lang['Points_enable_donation_explain'] = 'Laisse les utlisateurs donner des %s à leurs amis';
$lang['Points_name_explain'] = 'Appelation des points sur votre forum ( par exemple dollars , carottes)';
$lang['Points_per_reply_explain'] = 'Montant de %s gagné(s) par réponse';
$lang['Points_per_topic_explain'] = 'Montant de %s gagné(s) pour chaque nouveau sujet créé';
$lang['Points_per_page_explain'] = 'Montant de %s gagné(s) pour chaque page affichée';
$lang['Points_user_group_auth_explain'] = 'Entrez les ids des groupes autorisés à accéder au panneau de contrôle des points. Une seule id par ligne.';
$lang['Allow_Points'] = 'Utiliser le système de points ?';
$lang['Points_reset'] = 'Réinitialiser les points de tous les utilisateurs';
$lang['Points_reset_explain'] = 'Entrez un nombre puis validez : cela deviendra le nombre de points de tous les utilisateurs.';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_french/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Points System MOD
$lang['Points_cp'] = 'Panneau de contrôle des points';
$lang['Points_sys'] = 'Système de points';
$lang['Points_donation'] = 'Don de points';
$lang['Points_method'] = 'Méthode';
$lang['Points_donate'] = '%sDonner%s';
$lang['Points_add_subtract'] = 'Ajouter ou soustraire des %s';
$lang['Points_amount'] = 'Montant';
$lang['Points_give_take'] = 'Montant de %s à donner ou à prendre';
$lang['Points_give'] = 'Montant de %s à donner';
$lang['Add'] = 'Ajouter';
$lang['Subtract'] = 'Soustraire';
$lang['Points_donate_to'] = 'La personne à qui vous voulez donner des %s ';
$lang['Points_no_username'] = 'Veuillez entrer un nom d\'utilisateur.';
$lang['Points_not_admin'] = 'Vous n\'êtes pas autorisé à administrer le système de points.';
$lang['Points_cant_take'] = 'Vous ne pouvez pas prendre cette somme de %s à cet utilisateur.'; //*
$lang['Points_thanks_donation'] = 'Merci pour votre don.';
$lang['Click_return_points_donate'] = 'Cliquez %sIci%s pour retourner au don de points';
$lang['Points_cant_donate'] = 'Vous ne pouvez pas donner ce montant de %s à cet utilisateur.';
$lang['Points_cant_donate_self'] = 'Vous ne pouvez pas vous donner des %s .';
$lang['Points_user_donation_off'] = 'Le don n\'est pas autorisé actuellement.';
$lang['Click_return_pointscp'] = 'Cliquez %sIci%s pour retourner au panneau de contrôle des points';
$lang['Points_user_updated'] = 'Les %s de cet utilisateur ont été mis à jour avec succès.';
$lang['Points_mass_edit'] = 'Edition de masse des utilisateurs';
$lang['Points_mass_edit_explain'] = 'Entrez un nom d\'utilisateur par ligne.';
$lang['Points_notify'] = 'Toujours m\'avertir des dons de %s ';
$lang['Points_notify_explain'] = 'M\'envoyer un e-mail quand quelqu\'un me donne des %s ';
$lang['Points_enter_some_donate'] = 'Entrez le montant de %s que vous désirez donner.';
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/db.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'includes/functions_points.'.$phpEx);
#
#-----[ 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 -- Pour les utilisateurs SEULEMENT !!! ayant une version de phpBB antérieure à la version 2.0.18.
#
$mode_types = array('joindate', 'username', 'location', 'posts', 'email', 'website', 'topten');
#
#-----[ FIND ]------------------------------------------
# Note -- Pour les utilisateurs SEULEMENT !!! ayant phpBB 2.0.18 ou une version plus récente.
#
$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 ]------------------------------------------
#
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 = '' . $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'], '<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,
#
#-----[ 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>
<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}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Tu n'as qu'à faire un copier coller ^^
et installer ^^
|