phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Topic Labels and Add a Point to a Topic MODs


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Tue May 27, 2014 3:18 am 
Post subject: Topic Labels and Add a Point to a Topic MODs

Hi, have those two been (or will be) released as a MOD?
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Tue May 27, 2014 11:29 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

What are Topic labels and what is "Add a point to a topic"?
There are many hundreds of mods for Ver 2 but I have not heard of those - if you can say what they are and what they do then there is a better chance of someone knowing if they are available.

Jim
Back to top
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Tue May 27, 2014 12:07 pm 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

They are used in phpbb2refugees.com (see List of non-standard features (WIP)), I haven't seen them anywhere else.

Topic Labels is in use in the MOD Development forum, to indicate the status of a MOD (released or beta for example).

And this is what "Add a Point to a Topic" or "Topic Points" is -> http://www.phpbb2refugees.com/faq.php?mode=features#10
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Tue May 27, 2014 12:26 pm 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Hi again,
Thanks for pointing that out. To be honest even though I have been a member on here for many years I had never visited those "Pages".
I had a look on phpbbhacks.com but could not see anything like you describe.

Jim
Back to top
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Tue May 27, 2014 12:36 pm 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Thanks for trying to find them Jim!

I think both MODs where developed especifically for this board... by phpbb2refugees board owner maybe?

I really like them, hope they get released, I'd prefer not having to try to replicate them (because I'm not a good programmer).
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 175
Location: Germany


flag
PostPosted: Thu May 29, 2014 11:25 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

"Topic Labels" (called "Prefixes" on other forum software) can be created with Prefix for Topic Titles, but the Version on phpBBHacks.com is 2 revisions below the latest revision, which is 1.1.3 for 2.0.21 (see attachment below).

The "Add a Point to a Topic" can be accomplished with a simple Topic rating MOD, e.q. this one.



categorie_hack113.txt
 Description:
Prefix for Topic Titles v1.1.3

Download
 Filename:  categorie_hack113.txt
 Filesize:  40.43 KB
 Downloaded:  7033 Time(s)

Back to top
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Thu May 29, 2014 11:39 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Thanks a lot, I'll try them icon_biggrin.gif
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 729
Location: Texas


flag
PostPosted: Fri May 30, 2014 9:40 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

The MODs as used here have not been released.
_________________
phpBBDoctor Blog
Back to top
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Fri May 30, 2014 10:04 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Hi, just out of curiosity, they were based on the MODs StarWolf3000 pointed out or were made from scratch?
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 729
Location: Texas


flag
PostPosted: Tue Jun 03, 2014 9:05 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Made from scratch. icon_smile.gif

That being said, I think the topic points MOD was released, or nearly released if it was not completely done. I haven't been to phpbb.com in a long time but if you look in the phpbb2 MODs area under my username you might find the topic points MOD.

The Topic Labels took a long time to put together because I wanted to make sure it performed well. I use it on a board with over 800,000 posts (small by JLA's standards, but still fairly large) and it could not slow the board down at all.

Here's the code for the topic points. I don't have the code written up for topic labels. You will have to make up your own images, as I don't have them packaged anywhere right now.
Code:
##############################################################
## MOD Title: Topic Points
## MOD Author: drathbun < N/A > (Dave Rathbun) http://www.phpBBDoctor.com
## MOD Description: This MOD will allow users to assign points (+1, 0, -1) to a topic.
## MOD Version: 0.6.4
##
##
## Installation Level: Intermediate
## Installation Time: ~ 30 Minutes
## Files To Edit: (22)   common.php
##         modcp.php
##         search.php
##         viewforum.php
##         viewtopic.php
##         admin/admin_board.php
##         admin/admin_db_utilities.php
##         admin/admin_forums.php
##         admin/admin_users.php
##         includes/constants.php
##         /includes/functions.php
##         includes/page_header.php
##         includes/prune.php
##         includes/usercp_viewprofile.php
##         language/lang_english/lang_faq.php
##         templates/subSilver/index_body.tpl
##         templates/subSilver/profile_view_body.tpl
##         templates/subSilver/search_results_topics.tpl
##         templates/subSilver/viewforum_body.tpl
##         templates/subSilver/viewtopic_body.tpl
##         templates/subSilver/admin/board_config_body.tpl
##         templates/subSilver/admin/forum_edit_body.tpl
## Included Files: (33)   root/images/tp_plus_on.gif
##         root/images/tp_plus_off.gif
##         root/images/tp_neut_on.gif
##         root/images/tp_neut_off.gif
##         root/images/tp_minus_on.gif
##         root/images/tp_minus_off.gif
##         root/images/tp_view.gif
##         root/images/tp_tools.gif
##         root/images/points-4.gif
##         root/images/points-3.gif
##         root/images/points-2.gif
##         root/images/points-1.gif
##         root/images/points+0.gif
##         root/images/points+1.gif
##         root/images/points+2.gif
##         root/images/points+3.gif
##         root/images/points+4.gif
##         root/modpoints.php
##         root/topicpoints.php
##         root/viewpoints.php
##         root/admin/admin_topic_points_resync.php
##         root/admin/admin_topic_points_ranges.php
##         root/includes/functions_phpbbdoctor_cache.php
##         root/includes/functions_phpbbdoctor_topic_points.php
##         root/language/lang_english/lang_phpbbdoctor_cache.php
##         root/language/lang_english/lang_topic_points.php
##         root/templates/subSilver/admin/topic_points_resync_body.tpl
##         root/templates/subSilver/admin/topic_point_ranges_list_body.tpl
##         root/templates/subSilver/admin/topic_point_ranges_edit_body.tpl
##         root/templates/subSilver/viewpoints_user_body.tpl
##         root/templates/subSilver/viewpoints_topic_body.tpl
##         root/templates/subSilver/modpoints_body.tpl
##         root/cache/cache_topic_point_ranges.php
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This Topic Points MOD that was written for the MMW (MODdings Most Wanted) Round
## Two. This MOD provides the ability to let users rate topics. This MOD does not
## provide ratings for posts or users, instead it lets registered members rate a
## topic with a +1, 0, or -1 point value. Members can change or remove their topic
## rating at any time. Guest ratings are not allowed, and are not intended as a
## future feature.
##
## This MOD provides the ability for the board administrator to enable or disable
## topic ratings with a single setting. The administrator can also enable / disable
## topic ratinges on an individual forum basis. (A future update may set up the
## ability to assign points within the standard phpBB permissions system.) The
## board administrator can also determine whether a user is allowed to rate topics
## they started (their "own" topics) or not. Finally, the board admin can set a
## minimum number of posts that are required before a user can vote. The default is
## zero, meaning any registered user can vote. This setting is board-wide and is
## applied to every forum where points are enabled.
##
## Ratings can be viewed from a topic (see who rated the topic) or from the user
## profile (see which topics the user has rated).
##
## FAQ Edits
## This MOD comes with a set of edits for your FAQ language file that explain what
## topic points are and what they might be used for. One of the edits includes a
## link back to the phpBB Doctor site. You are under NO OBLIGATION WHATSOEVER to
## keep that line, but we would appreciate it if you would.
##
## Caching
## This MOD uses the caching process created for other phpBB Doctor MODs. If you
## have already installed one of our other MODs that uses the
## phpbbdoctor_cache_functions.php file then please check to see which MOD is newer
## and use that code. If you detect any incompatibilites please notify us... it is
## our intention to always ensure that our caching process is compatible with any /
## all of the MODs that we release. This MOD has its own unique cache file, but the
## functions are shared.
##
## eXtreme Styles MOD
## Because our cache file lives in the /cache folder, it is subject to being
## removed by the eXtreme Styles "clear cache" process. In order to keep that from
## happening you will need to add our cache file (cache_topic_point_ranges.php) to
## the "safe list" of files that are protected during this process. Please see the
## /contrib folder for instructions on how to do that for this MOD.
##
## Please install and test only ONE new MOD at a time. That may seem like common
## sense, but you would be amazed at how often this is not done. :-)
##
## Install Time Estimate
## The MOD install time is assumed to be for a manual install and is based on the
## number of files to edit. If you use an automatic installer the time estimate
## is essentially meaningless. We do not test with EasyMOD but our MODs should
## work based on our usage of the proper template. Note that EasyMOD seems to
## have issues with certain SQL structures that work fine in MySQL directly.
##
## FIND Line Number Hints
## Some of the FIND operations may have line numbers associated with the
## operation. These line numbers are derived from a set of baseline phpBB code
## and are generally approximations only. Use them as a guideline if you find
## more than one line in a similar location. Note that as you add new lines to
## the file as you are editing that the line numbers for the remaining portion
## of that file are nearly always going to be wrong. We do not guarantee that
## there will be line numbers on each FIND.
##
## Some actions have additional comments. Please review them as they are
## intended to help you understand the exact steps required to complete that
## specific action.
##
## This MOD has 147 install instructions.
## This MOD is in BETA status as of version 0.6.4.
##############################################################
## MOD History:
##
##   2006-12-13 - Version 0.6.5
##      *not released publicly*
##      Added range check to $mode for topicpoints
##      Fixed bug in "top n" search
##      Admin menu items now language strings
##
##   2006-11-20 - Version 0.6.4
##      Fixed security issues with topicpoints.php
##      Added auth check for topicspoints
##      Added auth check for viewpoints
##      Added range_high to topic point ranges table
##
##   2006-11-05 - Version 0.6.2
##      Added "top n" search capability
##
##   2006-11-04 - Version 0.6.0
##      Second BETA release
##      No moderator functions yet
##      Completed pagination
##      Private forum content can still be exposed
##
##   2006-09-22 - Version 0.5.0
##      First Beta Release
##      Completed Topic point ranges
##      Added cache functions
##      Still need to filter private forums
##
##   2006-08-28 - Version 0.3.0
##      ALPHA code posted at phpbb.com
##
##   2006-07-22 - Version 0.2.0
##      Conversion from custom code, start formal development
##
##   
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]-------------------------------------
# Special Instructions: Be sure to change phpbb_ to whatever
# your database prefix is before running these queries
#
create table phpbb_topic_points
(topic_id mediumint(8) unsigned not null
,user_id mediumint(8) not null
,topic_point tinyint(1) not null default 0
,point_time int(11) unsigned not null default 0
,point_ip varchar(8) not null
,point_edit_time int(11) unsigned default 0
,point_edit_count smallint(5) unsigned default 0
,primary key (topic_id, user_id)
,key (user_id));

create table phpbb_topic_point_ranges
(range_id mediumint(5) unsigned not null auto_increment
,range_low mediumint(8) not null
,range_high mediumint(8) not null
,range_image varchar(255)
,primary key (range_id));

alter table phpbb_topics
add topic_rating mediumint(8) not null default 0;

alter table phpbb_topics
add topic_votes mediumint(8) unsigned not null default 0;

alter table phpbb_topics
add topic_point_lock tinyint(1) unsigned not null default 0;

alter table phpbb_forums
add topic_points_enabled tinyint(1) unsigned default 1;

#
#-----[ SQL ]-------------------------------------
# Special Instructions: Be sure to change phpbb_ to whatever
# your database prefix is before running these queries
#
insert into phpbb_config values ('phpbbdoctor_topic_points_enabled', '1');
insert into phpbb_config values ('phpbbdoctor_topic_points_user_rate_self', '1');
insert into phpbb_config values ('phpbbdoctor_topic_points_search_top_limit', '10');


#
#-----[ SQL ]-------------------------------------
# Special Instructions: Be sure to change phpbb_ to whatever
# your database prefix is before running these queries
#
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, -999999, -30, 'points-4.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, -29, -10, 'points-3.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, -9, -2, 'points-2.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, -1, -1, 'points-1.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, 0, 0, 'points+0.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, 1, 1, 'points+1.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, 2, 9, 'points+2.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, 10, 29, 'points+3.gif');
insert into phpbb_topic_point_ranges (range_id, range_low, range_high, range_image) values (null, 30, 999999, 'points+4.gif');

#
#-----[ COPY ]-------------------------------------
#
copy root/images/tp_plus_on.gif to templates/subSilver/images/tp_plus_on.gif
copy root/images/tp_plus_off.gif to templates/subSilver/images/tp_plus_off.gif
copy root/images/tp_neut_on.gif to templates/subSilver/images/tp_neut_on.gif
copy root/images/tp_neut_off.gif to templates/subSilver/images/tp_neut_off.gif
copy root/images/tp_minus_on.gif to templates/subSilver/images/tp_minus_on.gif
copy root/images/tp_minus_off.gif to templates/subSilver/images/tp_minus_off.gif
copy root/images/tp_view.gif to templates/subSilver/images/tp_view.gif
copy root/images/tp_tools.gif to templates/subSilver/images/tp_tools.gif
copy root/images/points-4.gif to templates/subSilver/images/points-4.gif
copy root/images/points-3.gif to templates/subSilver/images/points-3.gif
copy root/images/points-2.gif to templates/subSilver/images/points-2.gif
copy root/images/points-1.gif to templates/subSilver/images/points-1.gif
copy root/images/points+0.gif to templates/subSilver/images/points+0.gif
copy root/images/points+1.gif to templates/subSilver/images/points+1.gif
copy root/images/points+2.gif to templates/subSilver/images/points+2.gif
copy root/images/points+3.gif to templates/subSilver/images/points+3.gif
copy root/images/points+4.gif to templates/subSilver/images/points+4.gif
copy root/modpoints.php to modpoints.php
copy root/topicpoints.php to topicpoints.php
copy root/viewpoints.php to viewpoints.php
copy root/admin/admin_topic_points_resync.php to admin/admin_topic_points_resync.php
copy root/admin/admin_topic_points_ranges.php to admin/admin_topic_points_ranges.php
copy root/includes/functions_phpbbdoctor_cache.php to includes/functions_phpbbdoctor_cache.php
copy root/includes/functions_phpbbdoctor_topic_points.php to includes/functions_phpbbdoctor_topic_points.php
copy root/language/lang_english/lang_phpbbdoctor_cache.php to language/lang_english/lang_phpbbdoctor_cache.php
copy root/language/lang_english/lang_topic_points.php to language/lang_english/lang_topic_points.php
copy root/templates/subSilver/admin/topic_points_resync_body.tpl to templates/subSilver/admin/topic_points_resync_body.tpl
copy root/templates/subSilver/admin/topic_point_ranges_list_body.tpl to templates/subSilver/admin/topic_point_ranges_list_body.tpl
copy root/templates/subSilver/admin/topic_point_ranges_edit_body.tpl to templates/subSilver/admin/topic_point_ranges_edit_body.tpl
copy root/templates/subSilver/viewpoints_user_body.tpl to templates/subSilver/viewpoints_user_body.tpl
copy root/templates/subSilver/viewpoints_topic_body.tpl to templates/subSilver/viewpoints_topic_body.tpl
copy root/templates/subSilver/modpoints_body.tpl to templates/subSilver/modpoints_body.tpl
copy root/cache/cache_topic_point_ranges.php to cache/cache_topic_point_ranges.php

#
#-----[ DIY INSTRUCTIONS ]-------------------------------------
# Special Instructions: Set permissions (chmod) to rw-rw-rw-
# or 666 on *nix systems, ignore this command for Windows
# hosts
#
chmod 666 cache/cache_topic_point_ranges.php

#
#-----[ OPEN ]-------------------------------------
#
common.php

#
#-----[ FIND ]-------------------------------------
# On or about line 190; find text might not be a complete line
#
include($phpbb_root_path . 'includes/db.'.$phpEx);

#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN phpBBDoctor Cache Function Include
if (!(function_exists('phpbbdoctor_populate_cache')))
{
   include($phpbb_root_path . 'includes/functions_phpbbdoctor_cache.'.$phpEx);
}
// END phpBBDoctor Cache Functions Include

// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
// Check for cache file, if present, read it. If not,
// leave it alone, as we don't need this data for many
// of the pages and running the query here is extra
// overhead. Simply leave the array empty.
$topic_point_ranges = array();
$topic_point_ranges_cache = $phpbb_root_path . '/cache/cache_topic_point_ranges.'.$phpEx;
if ( file_exists($topic_point_ranges_cache) && is_readable($topic_point_ranges_cache) )
{
   require_once($topic_point_ranges_cache);
}
unset($topic_point_ranges_cache);

// Some extra functions for topic points...
if (!(function_exists('phpbbdoctor_assign_topic_point_img')))
{
   include($phpbb_root_path . 'includes/functions_phpbbdoctor_topic_points.'.$phpEx);
}
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
modcp.php

#
#-----[ FIND ]-------------------------------------
# On or about line 389 to 390; find text might not be a complete line
#
         $sql = "DELETE
            FROM " . TOPICS_WATCH_TABLE

#
#-----[ BEFORE, ADD ]-------------------------------------
#
         // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
         $sql = 'DELETE
            FROM ' . TOPIC_POINTS_TABLE . '
            WHERE topic_id IN (' . $topic_id_sql . ')';
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not delete topic points entries', '', __LINE__, __FILE__, $sql);
         }
         // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ OPEN ]-------------------------------------
#
search.php

#
#-----[ FIND ]-------------------------------------
# On or about line 123; find text might not be a complete line
#
$lang['Sort_Forum']

#
#-----[ IN-LINE FIND ]-------------------------------------
#
$lang['Sort_Forum']

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, $lang['Topic_points_search_sort']

#
#-----[ FIND ]-------------------------------------
# On or about line 162; find text might not be a complete line
#
$search_id == 'unanswered'

#
#-----[ IN-LINE FIND ]-------------------------------------
#
$search_id == 'unanswered'

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
|| $search_id == 'toprated'

#
#-----[ FIND ]-------------------------------------
# On or about line 162; find text might not be a complete line
#
$search_id == 'unanswered'

#
#-----[ BEFORE, ADD ]-------------------------------------
#
      // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
      else if ( $search_id == 'toprated' )
      {
         // default to 10 in case the board config value is missing for some reason...
         $top_limit = (isset($board_config['phpbbdoctor_topic_points_search_top_limit']) ? intval($board_config['phpbbdoctor_topic_points_search_top_limit']) : 10);

         if ( $auth_sql != '' )
         {
            $sql = 'SELECT   t.topic_id
               ,   f.forum_id
               FROM   ' . TOPICS_TABLE . '  t
               ,   ' . FORUMS_TABLE . ' f
               WHERE   t.forum_id = f.forum_id
               AND   t.topic_moved_id+0 = 0
               AND   t.topic_votes > 0
               AND   ' . $auth_sql . '
               ORDER BY t.topic_rating DESC, t.topic_last_post_id DESC
               LIMIT ' . $top_limit;
         }
         else
         {
            $sql = 'SELECT    topic_id
               FROM   ' . TOPICS_TABLE . '
               WHERE   topic_moved_id+0 = 0
               AND   topic_votes > 0
               ORDER BY topic_rating DESC, topic_last_post_id DESC
               LIMIT ' . $top_limit;
         }

         if ( !($result = $db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'DEBUG: Could not obtain topic ids', '', '', '', $sql);
         }

         $search_ids = array();
         while( $row = $db->sql_fetchrow($result) )
         {
            $search_ids[] = $row['topic_id'];
         }
         $db->sql_freeresult($result);

         $total_match_count = count($search_ids);

         //
         // Basic requirements
         //
         $show_results = 'topics';
         $sort_by = 5;
         $sort_dir = 'DESC';
      }
      // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ FIND ]-------------------------------------
# On or about line 753; find text might not be a complete line
#
SELECT t.*, f.forum_id,

#
#-----[ IN-LINE FIND ]-------------------------------------
#
f.forum_id

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, f.topic_points_enabled

#
#-----[ FIND ]-------------------------------------
# On or about line 778 to 779; find text might not be a complete line
#
            $sql .= 'f.forum_id';
            break;


#
#-----[ AFTER, ADD ]-------------------------------------
#
         // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
         case 5:
            $sql .= 't.topic_rating';
            break;
         // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ FIND ]-------------------------------------
# On or about line 1249; find text might not be a complete line
#
'searchresults'

#
#-----[ BEFORE, ADD ]-------------------------------------
#
            // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
            if ( $board_config['phpbbdoctor_topic_points_enabled'] && $searchset[$i]['topic_points_enabled'] )
            {
               $topic_rating_img = phpbbdoctor_assign_topic_point_img($searchset[$i]['topic_votes'], $searchset[$i]['topic_rating']);
            }
            else
            {
               $topic_rating_img = '';
            }
            // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
# On or about line 1265; find text might not be a complete line
#
'LAST_POST_IMG' => $last_post_url,

#
#-----[ AFTER, ADD ]-------------------------------------
#
               // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
               'TOPIC_RATING_IMG' => $topic_rating_img,
               // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
viewforum.php

#
#-----[ FIND ]-------------------------------------
# On or about line 639; find text might not be a complete line
#
assign_block_vars('topicrow'

#
#-----[ BEFORE, ADD ]-------------------------------------
#
      // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
      if ( $board_config['phpbbdoctor_topic_points_enabled'] && $forum_row['topic_points_enabled'] )
      {
         $topic_rating_img = phpbbdoctor_assign_topic_point_img($topic_rowset[$i]['topic_votes'], $topic_rowset[$i]['topic_rating']);
      }
      else
      {
         $topic_rating_img = '';
      }
      // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ FIND ]-------------------------------------
# On or about line 648; find text might not be a complete line
#
'NEWEST_POST_IMG' => $newest_post_img,

#
#-----[ AFTER, ADD ]-------------------------------------
#
         // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
         'TOPIC_RATING_IMG' => $topic_rating_img,
         // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
viewtopic.php

#
#-----[ FIND ]-------------------------------------
# On or about line 148; find text might not be a complete line
#
GROUP BY p.post_id

#
#-----[ IN-LINE FIND ]-------------------------------------
#
t.topic_vote

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, t.topic_rating, t.topic_votes, t.topic_poster, f.topic_points_enabled

#
#-----[ FIND ]-------------------------------------
# On or about line 150; find text might not be a complete line
#
$sql = "SELECT t.topic_id,

#
#-----[ IN-LINE FIND ]-------------------------------------
#
t.topic_vote

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, t.topic_rating, t.topic_votes, t.topic_poster, f.topic_points_enabled

#
#-----[ FIND ]-------------------------------------
# On or about line 572; find text might not be a complete line
#
make_jumpbox('viewforum.'.$phpEx, $forum_id);

#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
// First, check to see if topic ratings are enabled for
// this board, then check to see if ratings are enabled
// for this forum. If not, we're already done.
if ( $board_config['phpbbdoctor_topic_points_enabled'] && $forum_topic_data['topic_points_enabled'] )
{
   // Skip the next block if the user is not logged in, as
   // we require a user_id to record the topic point vote
   // Also check to see if a user is allowed to rate their
   // own topic.

   $allow_vote = TRUE;

   if ( !($board_config['phpbbdoctor_topic_points_user_rate_self']) && ($userdata['user_id'] == $forum_topic_data['topic_poster']) )
   {
      $allow_vote = FALSE;
   }

   if ( !($userdata['session_logged_in']) )
   {
      $allow_vote = FALSE;
   }

   if ( $allow_vote )
   {
      // Note: the overhead of an extra query here is far
      // outweighed by an outer join in the topic query,
      // so in this case it really is more efficient to
      // run a separate query than to join into a larger
      // query above. By creating a separate query we
      // don't need to worry about an outer join, and
      // we skip all of this processing for guests too.
      $sql = 'SELECT  topic_point
         FROM    ' . TOPIC_POINTS_TABLE . '
         WHERE   topic_id = ' . $topic_id . '
         AND     user_id = ' . $userdata['user_id'];

      if (!($result = $db->sql_query($sql)))
      {
         message_die(GENERAL_ERROR, 'DEBUG: Unable to query user topic point table');
      }

      if ( $row = $db->sql_fetchrow($result) )
      {
         $current_topic_point = $row['topic_point'];
      }
      else
      {
         $current_topic_point = TOPIC_POINT_MISSING;
      }
      $db->sql_freeresult($result);
   }
   else
   {
      $current_topic_point = TOPIC_POINT_NOVOTE;
   }

   $s_ratings = $lang['Topic_points_rate_this_topic'];

   // Build out images
   $img_point_minus = '<img src="templates/' . $theme['template_name'] . '/images/tp_minus_' . ($current_topic_point == TOPIC_POINT_MINUS ? 'on' : 'off') . '.gif" border="0" hspace="0" alt="Topic Points" title="' . $lang['Topic_points_minus_1'] . '" />';
   $img_point_neutral = '<img src="templates/' . $theme['template_name'] . '/images/tp_neut_' . ($current_topic_point == TOPIC_POINT_ZERO ? 'on' : 'off') . '.gif" border="0" hspace="0" alt="Topic Points" title="' . $lang['Topic_points_plus_0'] . '" />';
   $img_point_plus = '<img src="templates/' . $theme['template_name'] . '/images/tp_plus_' . ($current_topic_point == TOPIC_POINT_PLUS ? 'on' : 'off') . '.gif" border="0" hspace="0" alt="Topic Points" title="' . $lang['Topic_points_plus_1'] . '" />';

   // Geez, is this code ugly or what? Whatever, it works...
   // The problem is you have to build three links based on five
   // scenarios. The user might have voted already,
   // and there are three options for past votes. The user
   // might not have voted, that's four. And if the user
   // is the topic starter and the config doesn't allow
   // voting for your own topics, thats five. And if there
   // is a guest viewing, that's six. Bleh.
   $base_url = "topicpoints.$phpEx?t=$topic_id&start=$start";
   switch ($current_topic_point)
   {
      case TOPIC_POINT_MINUS:
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_MINUS."&x=1") . '">' . $img_point_minus . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_ZERO."&x=0") . '">' . $img_point_neutral . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_PLUS."&x=0") . '">' . $img_point_plus . '</a>';
         break;
      case TOPIC_POINT_ZERO:
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_MINUS."&x=0") . '">' . $img_point_minus . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_ZERO."&x=1") . '">' . $img_point_neutral . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_PLUS."&x=0") . '">' . $img_point_plus . '</a>';
         break;
      case TOPIC_POINT_PLUS:
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_MINUS."&x=0") . '">' . $img_point_minus . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_ZERO."&x=0") . '">' . $img_point_neutral . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_PLUS."&x=1") . '">' . $img_point_plus . '</a>';
         break;
      case TOPIC_POINT_MISSING:
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_MINUS."&x=0") . '">' . $img_point_minus . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_ZERO."&x=0") . '">' . $img_point_neutral . '</a>';
         $s_ratings .= '<a href="' . append_sid("$base_url&mode=".TOPIC_POINT_PLUS."&x=0") . '">' . $img_point_plus . '</a>';
         break;
      case TOPIC_POINT_NOVOTE:
         if ($userdata['user_id'] == $forum_topic_data['topic_poster'])
         {
            $s_ratings = $lang['Topic_points_cannot_rate_self'];
         }
         else
         {
            $s_ratings = $lang['Topic_points_no_guest_vote'];
         }
         break;
   }

   // If there aren't any votes, then we don't need to display
   // the icon to view the vote history
   // Figure out if the topic has any votes or not, set up
   // related links or text strings based on results.
   if ($forum_topic_data['topic_votes'])
   {
      $topic_rating = sprintf($lang['Topic_points_current_rating'], $forum_topic_data['topic_rating'], $forum_topic_data['topic_votes']);

      $s_ratings .= '<a href="' . append_sid("viewpoints.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '"><img src="templates/' . $theme['template_name'] . '/images/tp_view.gif" hspace="3" border="0" alt="' . $lang['Topic_rating_view'] . '" /></a>';
      if ( $userdata['user_level'] == ADMIN )
      {
         $s_ratings .= '<a href="' . append_sid("modpoints.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '"><img src="templates/' . $theme['template_name'] . '/images/tp_tools.gif" border="0" alt="' . $lang['Topic_rating_tools'] . '" /></a>';
      }
   }
   else
   {
      $topic_rating = $lang['Topic_points_no_rating'];
   }

   $template->assign_vars(array(
      'S_RATINGS' => $s_ratings,
      'TOPIC_RATING' => $topic_rating
      ));
}
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]-------------------------------------
# On or about line 152; find text might not be a complete line
#
$smtp_no =

#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
// Board-wide topic points enabled / disabled flag
$topic_points_yes = ( $new['phpbbdoctor_topic_points_enabled'] ) ? ' checked="checked" ' : '';
$topic_points_no = ( !$new['phpbbdoctor_topic_points_enabled'] ) ? ' checked="checked" ' : '';
$topic_points_user_rate_self_yes = ( $new['phpbbdoctor_topic_points_user_rate_self'] ) ? ' checked="checked" ' : '';
$topic_points_user_rate_self_no = ( !$new['phpbbdoctor_topic_points_user_rate_self'] ) ? ' checked="checked" ' : '';
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ FIND ]-------------------------------------
# On or about line 276; find text might not be a complete line
#
"SERVER_NAME" => $new['server_name']

#
#-----[ BEFORE, ADD ]-------------------------------------
#
   // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
   'L_TOPIC_POINTS_ENABLED' => $lang['Topic_points_enabled'],
   'TOPIC_POINTS_YES' => $topic_points_yes,
   'TOPIC_POINTS_NO' => $topic_points_no,
   'L_TOPIC_POINTS_USER_RATE_SELF' => $lang['Topic_points_user_rate_self'],
   'TOPIC_POINTS_USER_RATE_SELF_YES' => $topic_points_user_rate_self_yes,
   'TOPIC_POINTS_USER_RATE_SELF_NO' => $topic_points_user_rate_self_no,
   'L_TOPIC_POINTS_SEARCH_TOP_LIMIT' => $lang['Topic_points_search_top_limit'],
   'L_TOPIC_POINTS_SEARCH_TOP_LIMIT_EXPLAIN' => $lang['Topic_points_search_top_limit_explain'],
   'TOPIC_POINTS_SEARCH_TOP_LIMIT' => $new['phpbbdoctor_topic_points_search_top_limit'],
   // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
# Special Instructions: We're going to add our new tables to
# the standard backup script
#
admin/admin_db_utilities.php

#
#-----[ FIND ]-------------------------------------
# On or about line 696; find text might not be a complete line
#
'topics_watch'

#
#-----[ IN-LINE FIND ]-------------------------------------
#
'topics_watch'

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
# Special Instructions: After insert you will have 'topics',
# 'topics_watch', 'topic_points', 'topic_point_ranges', ...
#
, 'topic_points', 'topic_point_ranges'

#
#-----[ OPEN ]-------------------------------------
#
admin/admin_forums.php

#
#-----[ FIND ]-------------------------------------
# On or about line 270 to 271; find text might not be a complete line
#
            //
            // start forum prune stuff.


#
#-----[ BEFORE, ADD ]-------------------------------------
#
            // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
            if ( $row['topic_points_enabled'] )
            {
               $topic_points_enabled = ' checked="checked" ';
            }
            // END Topic Points 0.6.4  (www.phpBBDoctor.com)

#
#-----[ FIND ]-------------------------------------
# On or about line 299; find text might not be a complete line
#
$forum_id = '';

#
#-----[ AFTER, ADD ]-------------------------------------
#
            // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
            $topic_points_enabled = ' checked="checked" ';
            // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ FIND ]-------------------------------------
# On or about line 327; find text might not be a complete line
#
            'S_PRUNE_ENABLED' => $prune_enabled,

#
#-----[ AFTER, ADD ]-------------------------------------
#
            // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
            'S_TOPIC_POINTS_ENABLED' => $topic_points_enabled,
            'L_TOPIC_POINTS_ENABLED' => $lang['Topic_points_enabled'],
            // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
# On or about line 395; find text might not be a complete line
#
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable"

#
#-----[ IN-LINE FIND ]-------------------------------------
#
prune_enable

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, topic_points_enabled

#
#-----[ FIND ]-------------------------------------
# On or about line 396; find text might not be a complete line
#
intval($HTTP_POST_VARS['prune_enable']) .

#
#-----[ IN-LINE FIND ]-------------------------------------
#
intval($HTTP_POST_VARS['prune_enable']) .

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
", " . intval($HTTP_POST_VARS['topic_points_enabled']) .

#
#-----[ FIND ]-------------------------------------
# On or about line 435; find text might not be a complete line
#
prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "

#
#-----[ IN-LINE FIND ]-------------------------------------
#
prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "

#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
, topic_points_enabled = " . intval($HTTP_POST_VARS['topic_points_enabled']) . "

#
#-----[ OPEN ]-------------------------------------
#
admin/admin_users.php

#
#-----[ FIND ]-------------------------------------
# On or about line 166; find text might not be a complete line
#
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE

#
#-----[ BEFORE, ADD ]-------------------------------------
#
         // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
         // First, get topic point rows for this user
         $sql = 'SELECT  topic_id
            ,       topic_point
            FROM    ' . TOPIC_POINTS_TABLE . '
            WHERE   user_id = ' . $user_id;

         if (!($result = $db->sql_query($sql)))
         {
            message_die(GENERAL_ERROR, 'Unable to query topic points during user removal', '', __LINE__, __FILE__, $sql);
         }

         while ($row = $db->sql_fetchrow($result))
         {
            // Update topic statistics
            $sql = 'UPDATE  ' . TOPICS_TABLE . '
               SET     topic_rating = topic_rating - ' . $row['topic_point'] . '
               ,       topic_votes = topic_votes - 1
               WHERE   topic_id = ' . $row['topic_id'];

            if (!($update = $db->sql_query($sql)))
            {
               message_die(GENERAL_ERROR, 'Unable to remove user topic point during user delete', '', __LINE__, __FILE__, $sql);
            }
         }
         $db->sql_freeresult($result);

         // Now remove user rows from topic points table
         $sql = 'DELETE FROM ' . TOPIC_POINTS_TABLE . '
            WHERE   user_id = ' . $user_id;

         if (!($db->sql_query($sql)))
         {
            message_die(GENERAL_ERROR, 'Could not delete user from topic points table', '', __LINE__, __FILE__, $sql);
         }
         // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ OPEN ]-------------------------------------
#
includes/constants.php

#
#-----[ FIND ]-------------------------------------
# On or about line 183; find text might not be a complete line
#
?>

#
#-----[ BEFORE, ADD ]-------------------------------------
#
// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
define('TOPIC_POINTS_TABLE', $table_prefix.'topic_points');
define('TOPIC_POINT_RANGES_TABLE', $table_prefix.'topic_point_ranges');
define('TOPIC_POINT_PLUS', 1);
define('TOPIC_POINT_ZERO', 0);
define('TOPIC_POINT_MINUS', -1);
define('TOPIC_POINT_MISSING', 42);      // Ah, the famous '42'
define('TOPIC_POINT_NOVOTE', 54);       // What is 9 x 6 ? :-)
define('PAGE_VIEWPOINTS', -1390);
define('PAGE_MODPOINTS', -1391);
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
/includes/functions.php

#
#-----[ FIND ]-------------------------------------
# On or about line 389; find text might not be a complete line
#
IN_ADMIN

#
#-----[ BEFORE, ADD ]-------------------------------------
#
   // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
   if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_topic_points.'.$phpEx)) )
   {
      if ( $userdata['user_id'] != ANONYMOUS )
      {
         // For logged in users, try the board default language next
         $default_lang = phpbb_ltrim(basename(phpbb_rtrim($board_config['default_lang'])), "'");
      }
      else
      {
         $default_lang = 'english';
      }

      if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_topic_points.'.$phpEx)) )
      {
         message_die(CRITICAL_ERROR, 'Could not locate language file for topic points, please contact your board administrator');
      }
   }
   include($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_topic_points.' . $phpEx);
   // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ OPEN ]-------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]-------------------------------------
# On or about line 396; find text might not be a complete line
#
U_GROUP_CP

#
#-----[ AFTER, ADD ]-------------------------------------
#
   // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
   'L_SEARCH_TOPRATED' => sprintf($lang['Topic_points_search_top_rated'], (isset($board_config['phpbbdoctor_topic_points_search_top_limit']) ? intval($board_config['phpbbdoctor_topic_points_search_top_limit']) : 10)),
   'U_SEARCH_TOPRATED' => append_sid('search.'.$phpEx.'?search_id=toprated'),
   // END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
includes/prune.php

#
#-----[ FIND ]-------------------------------------
# On or about line 102; find text might not be a complete line
#
$sql = "DELETE FROM " . TOPICS_TABLE

#
#-----[ BEFORE, ADD ]-------------------------------------
#
         // BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
         $sql = 'DELETE FROM ' . TOPIC_POINTS_TABLE . '
            WHERE topic_id IN (' . $sql_topics . ')';
         if ( !($db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'DEBUG: Could not remove topic points during prune');
         }
         // END Topic Points 0.6.4 (www.phpBBDoctor.com)



#
#-----[ OPEN ]-------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]-------------------------------------
# On or about line 62; find text might not be a complete line
#
make_jumpbox('viewforum.'.$phpEx);

#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
$sql = 'SELECT  count(topic_id) as total_votes
        ,       sum(topic_point) as total_points
        FROM    ' . TOPIC_POINTS_TABLE . '
        WHERE   user_id = ' . $profiledata['user_id'];

if (!($result = $db->sql_query($sql)))
{
        message_die(GENERAL_ERROR, 'DEBUG: Unable to query topic points table');
}

$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

if ($row['total_votes'] > 0)
{
        $u_viewpoints = append_sid("viewpoints.$phpEx?" . POST_USERS_URL . '=' . $profiledata['user_id']);

        $total_points = $row['total_points'];
        $total_votes = $row['total_votes'];
        $avg_points = number_format($total_points / $total_votes, 2);

        $s_user_topic_points = sprintf($lang['Topic_points_user_total_data'], $total_points, $total_votes);
        $s_user_avg_points = sprintf($lang['Topic_points_user_avg_data'],  $avg_points);

        $template->assign_block_vars('switch_user_topic_points', array(
                'L_USER_TOPIC_POINTS' => 'Topic points',
                'S_USER_TOPIC_POINTS' => $s_user_topic_points,
                'S_USER_AVG_POINTS' => $s_user_avg_points,
                'U_VIEWPOINTS' => '<a href="' . $u_viewpoints . '"><img src="templates/' . $theme['template_name'] . '/images/tp_view.gif" border="0" alt="' . $lang['Topic_rating_user_view'] . '" /></a>'
                ));
}
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
language/lang_english/lang_faq.php

#
#-----[ FIND ]-------------------------------------
# On or about line 71; find text might not be a complete line
#
Formatting and Topic Types

#
#-----[ BEFORE, ADD ]-------------------------------------
#
// BEGIN Topic Points 0.6.4 (www.phpBBDoctor.com)
$faq[] = array('--','Topic Points');
$faq[] = array('What are topic points?', 'Topic points are a way for you to rate a topic. You can assign a value of +1, 0, or -1 by clicking on the appropriate icon.');
$faq[] = array('Can I change my topic rating if I change my mind?', 'Sure! You can change your topic rating at any time, as long as you are logged in with the same account.');
$faq[] = array('I do not see the point icons, what is wrong?', 'First of all, are you logged in? Topic points can only be assigned by members that are registered and logged in, guests are not allowed to issue points. Another consideration is that your board administrator team might not have enabled topic points for every forum on the board.');
$faq[] = array('I do not want anyone to know I have provided negative feedback, is that possible?', 'Not at this time, no. Points are not anonymous, although that feature might be added at some future date.');
$faq[] = array('What are neutral point values good for?', 'Sometimes you want to share your opinion, but your opinion is actually "no opinion" instead. A neutral point allows you to impact the overall rating of the topic without assigning a negative point value.');
$faq[] = array('I saw a topic where the total point count did not match!', 'Well, yes, that can happen from time to time. Your board administrator team has a special program they can run to correct those errors, you might want to notify them.');
$faq[] = array('This feature is very cool, where did it come from?', 'This MOD was provided by the folks at the <a href="http://www.phpbbdoctor.com" target="_blank">phpBB Doctor</a>.');
// END Topic Points 0.6.4 (www.phpBBDoctor.com)


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

#
#-----[ FIND ]-------------------------------------
# On or about line 12; find text might not be a complete line
#
U_SEARCH_UNANSWERED

#
#-----[ BEFORE, ADD ]-------------------------------------
#
      <a href="{U_SEARCH_TOPRATED}" class="gensmall">{L_SEARCH_TOPRATED}</a><br />

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

#
#-----[ FIND ]-------------------------------------
# On or about line 25 to 26; find text might not be a complete line
#
{L_SEARCH_USER_POSTS}</a></span></td>
      </tr>

#
#-----[ AFTER, ADD ]-------------------------------------
#
      <!-- BEGIN switch_user_topic_points -->
      <tr>
        <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{switch_user_topic_points.L_USER_TOPIC_POINTS}:</td>
        <td valign="middle" align="left"><span class="gen">{switch_user_topic_points.S_USER_TOPIC_POINTS}, {switch_user_topic_points.S_USER_AVG_POINTS}&nbsp;{switch_user_topic_points.U_VIEWPOINTS}</td>
      </tr>
      <!-- END switch_user_topic_points -->


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

#
#-----[ FIND ]-------------------------------------
# On or about line 28; find text might not be a complete line
#
{searchresults.NEWEST_POST_IMG}

#
#-----[ IN-LINE FIND ]-------------------------------------
#
{searchresults.NEWEST_POST_IMG}

#
#-----[ IN-LINE BEFORE, ADD ]-------------------------------------
#
{searchresults.TOPIC_RATING_IMG}

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

#
#-----[ FIND ]-------------------------------------
# On or about line 26; find text might not be a complete line
#
<span class="topictitle">

#
#-----[ IN-LINE FIND ]-------------------------------------
#
<span class="topictitle">

#
#-----[ IN-LINE BEFORE, ADD ]-------------------------------------
#
{topicrow.TOPIC_RATING_IMG}

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

#
#-----[ FIND ]-------------------------------------
# On or about line 14; find text might not be a complete line
#
class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ AFTER, ADD ]-------------------------------------
#
   <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall">{TOPIC_RATING}<br />{S_RATINGS}</span></td>

#
#-----[ FIND ]-------------------------------------
# On or about line 76; find text might not be a complete line
#
{S_TIMEZONE}

#
#-----[ IN-LINE FIND ]-------------------------------------
#
{S_TIMEZONE}

#
#-----[ IN-LINE BEFORE, ADD ]-------------------------------------
#
{TOPIC_RATING}<br />{S_RATINGS}<br />

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

#
#-----[ FIND ]-------------------------------------
# On or about line 80 to 81; find text might not be a complete line
#
value="{HOT_TOPIC}" /></td>
   </tr>

#
#-----[ AFTER, ADD ]-------------------------------------
#
   <tr>
      <td class="row1">{L_TOPIC_POINTS_ENABLED}</td>
      <td class="row2"><input type="radio" name="phpbbdoctor_topic_points_enabled" value="1" {TOPIC_POINTS_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="phpbbdoctor_topic_points_enabled" value="0" {TOPIC_POINTS_NO} /> {L_NO}</td>
   </tr>
   <tr>
      <td class="row1">{L_TOPIC_POINTS_USER_RATE_SELF}</td>
      <td class="row2"><input type="radio" name="phpbbdoctor_topic_points_user_rate_self" value="1" {TOPIC_POINTS_USER_RATE_SELF_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="phpbbdoctor_topic_points_user_rate_self" value="0" {TOPIC_POINTS_USER_RATE_SELF_NO} /> {L_NO}</td>
   </tr>
   <tr>
      <td class="row1">{L_TOPIC_POINTS_SEARCH_TOP_LIMIT}<br /><span class="gensmall">{L_TOPIC_POINTS_SEARCH_TOP_LIMIT_EXPLAIN}</span></td>
      <td class="row2"><input class="post" type="text" name="phpbbdoctor_topic_points_search_top_limit" size="3" maxlength="4" value="{TOPIC_POINTS_SEARCH_TOP_LIMIT}" /></td>
   </tr>


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

#
#-----[ FIND ]-------------------------------------
# On or about line 25 to 26; find text might not be a complete line
#
     <td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
   </tr>


#
#-----[ AFTER, ADD ]-------------------------------------
#
   <tr>
     <td class="row1">{L_TOPIC_POINTS_ENABLED}</td>
     <td class="row2"><input type="checkbox" name="topic_points_enabled" value="1" {S_TOPIC_POINTS_ENABLED} /></td>
   </tr>


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

_________________
phpBBDoctor Blog
Back to top
nostro
Board Member



Joined: 16 Jul 2012

Posts: 54


flag
PostPosted: Tue Jun 03, 2014 9:42 am 
Post subject: Re: Topic Labels and Add a Point to a Topic MODs

Thanks!

Yeah, the Topic Points MOD was in phpbb.com, under MODs in Development:
https://www.phpbb.com/community/viewtopic.php?f=16&t=415468

I'll try to release here my version of the Topic Labels MOD icon_wink.gif
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.1328 seconds using 18 queries. (SQL 0.0108 Parse 0.0111 Other 0.1109)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo