Points & Rank

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Points & Rank
dogboy9
CZ Newbie
dogboy9 has been a member for over 19 year's 19 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
Need help with points.
I have 7.4 and I'm trying to setup the point I just dont get it I add some custom groups and set the nuke groups the way I like them. I see users getting points but it's all over the place.
I have one users who has the most post on the site but has no points. I also have a new users and he has the 5th most points lol icon_cry.gif

Now on to rank,
I added 5 new ranks but I can't set them to a user. I go into the fourms admin page pick User list under User Admin. It's reads ranks which can be applied to a user via the user management facility. So I pick a user and all I get to pick from is Site Admin New Member. icon_cry.gif



Back to top Reply with quote
#2   Re: Points & Rank
XERXES
CZ Super Newbie
XERXES has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Age: 55
Gender: Male
Status: Offline
Joined: Aug 04, 2004
0.00 posts per day
Posts: 32
Points: 22,073
   


Originally posted by dogboy9 @ Tue Nov 09, 2004 8:34 pm:

I added 5 new ranks but I can't set them to a user. I go into the fourms admin page pick User list under User Admin. It's reads ranks which can be applied to a user via the user management facility. So I pick a user and all I get to pick from is Site Admin New Member. icon_cry.gif


I can't help you with your points problem, but your ranks problem sounds like an easy fix. Make sure that when you created the 5 new ranks that you set them as a "special rank" and not just as a regular rank. Then you should see the new ranks in the User Management under User Admin.

Hope that helps. icon_smile.gif



Back to top Reply with quote
#3   re: Points & Rank
dogboy9
CZ Newbie
dogboy9 has been a member for over 19 year's 19 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
thanks that worked.



Back to top Reply with quote
#4   re: Points & Rank
wolf
CZ Active Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 34
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
I might be able to help with points....are you trying to install the points mod or use the points that came with php-nuke 7.4? I know there are typos out the butt on that mod, i used to have a clean copy of the mod but reformatted and lost all information. If it is the mod I can try to clean it up again, and if ur using nuke's points can you explain what exactly the problem is?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: Points & Rank
dogboy9
CZ Newbie
dogboy9 has been a member for over 19 year's 19 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
I'm using the base Nuke 7.5 points system. I havee seen other points system but I don't get whats the differencs is.

I downloaded this and was going to set it up but I then seen other users using CashMod so I have no idea witch way to go.
## MOD Title: Points System
## MOD Author: Napoleon <napoleon@inetangel.com> (Chris Moore) ##http://www.iNetAngel.com
## MOD Description: A points system to use for anything you want on your board.
## MOD Version: 2.0.9



Back to top Reply with quote
#6   re: Points & Rank
wolf
CZ Active Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 34
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
yea ive heard of the cashmod. i tried installing it before and it didnt work for me so i just went straight to the points mod. It's up to you which one u want to use.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   re: Points & Rank
dogboy9
CZ Newbie
dogboy9 has been a member for over 19 year's 19 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
were can I find points mod and can I still use it were 7.5 has a points systems all ready?



Back to top Reply with quote
#8   re: Points & Rank
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
phpNuke systems already have default points system. Use that. Make sure you haven't given points for page impressions. that could be why a newbie has so many points.

i had a similar problem some time back. it fixed itself when i upgraded the system.




_________________
Back to top Reply with quote
#9   
aUsTiN
CZ Active Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
Napoleons mod is not even supported anymore. It was taken over by explosive. In this case explosives is not supported & was taken over by someone else. People shouldn't make brown earth they cant water support. Anyways, the below install will work, as i just installed it per this install.txt ona Nuke site 2 days ago & everything went fine. You will have to use a Nuke versions pointscp.php tho, as i dont have one handy.

Install.txt

##############################################################
## 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&amp;" . 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">&nbsp;</td>

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

     <td class="catbottom" colspan="9" height="28">&nbsp;</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>&nbsp;&nbsp;
      <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&amp;" . 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



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum