[ABD] Topic Points 0.6.4 (MMW) (Updated 2006-11-20)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken »

waaw drathbun !

this is a very cool mod !


I hope it 'll get MODDB status as I want to integrate this one with one of mine:
http://www.phpbb.com/phpBB/viewtopic.ph ... 16#1992516
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Ramon, thanks for the words of encouragement. :-) I hope that I'll have some beta code to release soon, but work (real work) has been a real drain on my phpbb productivity lately. :x
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken »

pfft tell me about it ...

however, keep up the good work, this mod deserves to be completed 8) 8)
( the other 2 in circulation are really crappy )
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Here's something that someone else could do to help me out... provide some screen shots of how "other" boards do this sort of thing. At the moment I have a -1, 0, +1 rating system, and that's good enough for my needs. But I've had requests and I recognize the desire to have more options. My question is, how would that be managed as far as an interface? What does it look like? Where is the rating displayed on the page?

I would love some ideas, as I've hit a creative roadblock there. I can code it, I don't need help there. I just need a picture... dare I suggest a specification? :lol: ... to get started again. Otherwise I'll be finishing it as it is currently designed, and saving the other ideas for version 2.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

drathbun wrote: I just need a picture... dare I suggest a specification? :lol: ... to get started again. Otherwise I'll be finishing it as it is currently designed, and saving the other ideas for version 2.


That's okay with me, tbh. It looks cool so far, so why not keep new ideas for future releases?
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Post by IPB_Refugee »

Hello drathbun,

here you can take a look how vBulletin handles this issue (click on the link "Rate Thread"):

http://www.vbulletin.com/forum/showthread.php?t=3580

But for viewforum.php I prefer the idea you have posted here:

http://www.phpbb.com/phpBB/viewtopic.ph ... 80#2271880

If someone rates a thread as "excellent", the thread could get 10 points. If someone rates it "good", the topic could get 6 points and so on.

I´m really looking forward to your mod! :P

Greetings
Wolfgang
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

IPB_Refugee wrote: But for viewforum.php I prefer the idea you have posted here:

http://www.phpbb.com/phpBB/viewtopic.ph ... 80#2271880

If someone rates a thread as "excellent", the thread could get 10 points. If someone rates it "good", the topic could get 6 points and so on.

The screenshot in the post you linked shows the total points for the topic. So if 10 people rated it +1 and five people rated it -1 then the net rating is 5 points. That's the way it works now, no changes would be required. Meaning there's still only -1, 0, and +1 ratings, not "excellent", "good", and so on.

I'll take a look at the other link you posted, see what the interface looks like.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken »

-1, 0, and +1

are fine with me :)

other suggestion
1 till 5 ...

common used on websites to rate stuff
( 1 till 10 is too much )
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Alright, I will stick with my current design and get version 1 released, then consider other choices. Thanks to all for the comments and feedback. 8)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken »

update: I love the negative part :) so -1,0 and +1 are the best IMO
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Have an update, finally figured out an interface that I'm happy with. I hope that it's flexible enough for other folks to be able to use by creating their own graphics as well. I like the :-( :-| and :-) but there just wasn't a good way to indicate everything that needed to be indicated, so I moved on to something different.

There are several things that need to be communicated in a small amount of space. First, has the user viewing the topic rated the topic (yes or no). Second, if they have rated the topic, what did they rate? (-1, 0, +1) The emoticons worked well for designating the rating, and I had come up with something that worked for removing a rating (something that I definitely want to include in this MOD). But I never came up with something that I liked to show what a user had rated.

So now I use a traffic light motif instead. Red = -1, Yellow = 0, and Green = +1. I think that this is fairly universal. If a user has voted for a topic, then the traffic light is replaced by a check of the same color. Here are some screen shots.

A reminder: if you are a guest, you will not be able to rate a topic. The reasons are the same as those for why a guest cannot vote in a poll, there is no way to reliably keep a guest from voting more than once.

The first screen shot shows what it looks like for a logged in user that has voted "for" a topic. The binocular icon allows the user (permissions based) to view all users and what they have rated this topic.

Image

The next screen shot shows a moderator that has logged in and voted for the topic. The extra icon allows the moderator to "moderate" the topic points. I may collapse this into the view screen, that's still being designed.

Image

And a screen showing a neutral vote:

Image

Finally a screen showing no vote:

Image

I have created individual images that are named as follows, so I think anyone should be able to update these graphics with something that follows their selected template. BTW, these images are stored in the images folder of the selected theme, so you can have multiple sets of images if you actually use more than one template on your board. The "tr" stands for topic ratings, the plus, neut, minus are probably easy to figure, as are "on" and "off" at the end.

tr_plus_on.gif Image
tr_plus_off.gif Image
tr_neut_on.gif Image
tr_neut_off.gif Image
tr_minus_on.gif Image
tr_minus_off.gif Image

Supplementary images:
tr_view.gif Image
tr_tools.gif Image

I expect this to be the final interface for the MOD. Next steps are to complete the admin controls and the extra pages (viewing ratings, moderating ratings) and then we'll have a beta.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

I've had one comment saying that the binocular icon looks "goofy" or words to that effect. :-) If anyone has a suggestion for an alternative I'm open. 8)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

ALPHA code is available, see first post for download link shortly.

Please read / understand the following before you download and try out this code:

There will not be an upgrade from this ALPHA 0.3.0 version to any subsequent version. If you install it, be prepared to upgrade on your own, or completely uninstall it and start over.

If you're not willing to live with that restriction, then quite simply I ask that you do not install this code. Thanks.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

First post updated with download link. The "signal strength" graphics are not used yet, they will appear on viewforum.php and on search results. The topic point ranges page is function, assuming you run the SQL in the install script properly. If you run the eXtreme Styles MOD then you will need to update it so that it doesn't remove the cache file associated with this MOD, I will provide specific instructions on how to do that once the MOD reaches BETA status. You can look at my "Page Permissions" MOD code to see what I'm talking about.

Included Files:
  • Stoplight graphics for points
  • Signal strength graphics for topics (non-functional at this time)
  • Other topic point graphics
  • topicpoints.php - code to record user points per topic (functional)
  • viewpoints.php - code to view points by topic or user (functional but subject to being changed)
  • modpoints.php - placeholder code (non-functional at this time)
  • admin page to resync topic points (functional)
  • admin page to manage ranges for topic points (functional, but not fully implemented)
  • template files for all of the above
  • cache functions
Specific list of included files
images/tp_plus_on.gif, images/tp_plus_off.gif, images/tp_neut_on.gif, images/tp_neut_off.gif, images/tp_minus_on.gif, images/tp_minus_off.gif, images/tp_view.gif, images/tp_tools.gif, images/points+0.gif, images/points+1.gif, images/points+2.gif, images/points+3.gif, images/points+4.gif, images/points-1.gif, images/points-2.gif, images/points-3.gif, images/points-4.gif, topicpoints.php, admin/admin_topic_points_resync.php, templates/subSilver/admin/points_resync_body.tpl, admin/admin_topic_points_ranges.php, templates/subSilver/admin/topic_point_ranges_edit_body.tpl, templates/subSilver/admin/topic_point_ranges_list_body.tpl, viewpoints.php, templates/subSilver/viewpoints_user_body.tpl, templates/subSilver/viewpoints_topic_body.tpl, modpoints.php, templates/subSilver/modpoints_body.tpl, admin/phpbbdoctor_cache_functions.php, cache/cache_topic_point_ranges.php

Files to Edit
modcp.php, viewtopic.php, admin/admin_board.php, admin/admin_forums.php, admin/admin_users.php, includes/constants.php, includes/prune.php, includes/usercp_viewprofile.php, language/lang_english/lang_admin.php, language/lang_english/lang_main.php, templates/subSilver/profile_view_body.tpl, templates/subSilver/viewtopic_body.tpl, templates/subSilver/admin/board_config_body.tpl, templates/subSilver/admin/forum_edit_body.tpl

My MOD Manager tells me that there are 99 install instructions for the MOD, but don't let that fool you, a bunch of them are COPY commands. I know that EasyMOD allows you to bundle COPY commands into one section, but my MOD Manager code requires each statement to be a separate operation, thus the inflated count of operations. Still, it's a bit of work, lots of files to copy, a few files to edit. Expect the list to be longer once the MOD is finalized.

There are still language entries that need to be moved to the language files, and there are some text strings that need to be "languaged" as well. What I'm looking for here is for a few folks to try this out with EasyMOD and report any installation failures, also if you have a test board that you can use just do some general functional testing.

Graphics were anti-aliased for a light background, you'll need to adjust them yourself if you have a dark background for your selected style(s) for your board(s).
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
M-Passion
Registered User
Posts: 20
Joined: Sat Sep 17, 2005 12:32 pm

Post by M-Passion »

Hello,

Sorry for my english but in the installation file there is...
#-----[ 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']) . "


but in fact it's...
#-----[ 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']) . "


An personal modification in viewtopic.php

I replace :


Code: Select all

                $img_point_negative = '<img src="templates/' . $theme['template_name'] . '/images/minuspoint.gif" hspace="3" border="' . ($current_topic_point == -1 ? 1 : 0) . '" alt="Topic Points" title="' . $lang['Topic_points_minus_1'] . '" />';
		$img_point_neutral = '<img src="templates/' . $theme['template_name'] . '/images/zeropoint.gif" hspace="3" border="' . ($current_topic_point == 0 ? 1 : 0) . '" alt="Topic Points" title="' . $lang['Topic_points_plus_0'] . '" />';
		$img_point_positive = '<img src="templates/' . $theme['template_name'] . '/images/pluspoint.gif" hspace="3" border="' . ($current_topic_point == 1 ? 1 : 0) . '" alt="Topic Points" title="' . $lang['Topic_points_plus_1'] . '" />';
		$img_point_remove_off = '<img src="templates/' . $theme['template_name'] . '/images/removepoint_off.gif" hspace="3" border="0" alt="Topic Points" title="' . $lang['Topic_points_remove'] . '" />';
		$img_point_remove = '<img src="templates/' . $theme['template_name'] . '/images/removepoint.gif" hspace="3" border="0" alt="Topic Points" title="' . $lang['Topic_points_remove'] . '" />';
with :

Code: Select all

                $img_point_negative = '<img src="templates/' . $theme['template_name'] . '/images/minuspoint.gif" hspace="3" border="' . ($current_topic_point == -1 ? 1 : 0) . '" alt="-" title="-" />';
		$img_point_neutral = '<img src="templates/' . $theme['template_name'] . '/images/zeropoint.gif" hspace="3" border="' . ($current_topic_point == 0 ? 1 : 0) . '" alt="N" title="' . $lang['Topic_points_plus_0'] . '" />';
		$img_point_positive = '<img src="templates/' . $theme['template_name'] . '/images/pluspoint.gif" hspace="3" border="' . ($current_topic_point == 1 ? 1 : 0) . '" alt="+" title="' . $lang['Topic_points_plus_1'] . '" />';
		$img_point_remove = '<img src="templates/' . $theme['template_name'] . '/images/removepoint.gif" hspace="3" border="0" alt="X" title="' . $lang['Topic_points_remove'] . '" />';
Locked

Return to “[2.0.x] MODs in Development”