[MODDB] Topic evaluation Mod / Topic Rating Mod

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!
Suggested Hosts
Locked
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

[MODDB] Topic evaluation Mod / Topic Rating Mod

Post by Novan »

MOD Title: Topic evaluation Mod
MOD Description: Evaluation of Topics (i.e. Rating Topics) and show the result in the viewforums
MOD Version: 1.0.8

MOD Download: http://www.phpbb.com/customise/db/mod/topic_evaluation
Last Stable version: 1.0.8

MOD Demo: Not available due to spam

21.12.2007 - Version 1.0.0 Stable Anouncement:
Hi,
now the Mod is I think long enought tested and is ready for release. I've tested it with phpBB3 1.0 Final and there are no changes since RC6 of this Mod necessary. Easily update your Board to the final version and after the database update alter the forums table again and add again the culom described in the ModX installation manuell of this Mod.

11.02.2008 - Version 1.0.1 Anouncement:
Hi,
this version 1.0.1 is the secound attempt to go through the validation process of phpBB.com.
In version 1.0.0c there were a few think not how the Mod Team of phpBB.com wanted to be. This new version should be pass the validation process. Now the imageset where used and therefore a update to 1.0.1 is recomended to have a clean fine mod.

12.02.2008 - Version 1.0.2 Anouncement:
Hi,
I have forget a small think in one file. No need to update from 1.01 to 1.0.2 for this.

18.02.2008 - Version 1.0.3 Anouncement:
Hi,
only a small fix. If your board don`t run in debug mode then this update is not necessary

20.02.2008 - Version 1.0.4 Anouncement:
Hi,
this is a Bugfix release. 1.0.3 was broken. Also added Spain language Pack.
Please try this version if you have trouble with 1.0.3 and the mod don`t work.

21.02.2008 - Version 1.0.5 Anouncement:
Hi,
please let this be the last 1.0.0er Version :x
This Version does
- Fix a phpBB Debug Error in the mods/search.php which was reported here in the topic
- Fix a cross DB issue (because of this a mod was once deny from the modDB :| )
- Added a couple of very stupid xml files for idiots which do not know what to do with additional languages. Everybody who can install a phpBB know where to place these file. My goodness ... Such a stupid Mod Directive!

13.06.2008 - Version 1.0.6 Anouncement:
Hi,
this version is only a bugfix release. If have updated the installation manual and tested the mod installation for phpBB 3.0.1. The testboard is now running again. With this version I try again to pass the validation process.

10.07.2008 - Version 1.0.7 Anouncement:
Hi,
in this version I fixed a bug in the viewtopic.php. For update from 1.0.6 you must only overwrite the viewtopic.php in the mods directory. Another bugfix is for the ACP while editting the imageset. Please look in the 1.0.7 installation manual near the bottom in the instruction "Open: language/en/acp/styles.php". There is a new editting command. That are all updates in this version.

10.07.2008 - Version 1.0.7a Anouncement:
Hi,
in this version I fixed a bug in the mods/includes/acp/acp_forums.php Line 30 and only there. This is the complete changelog. You must only update this line to get from 1.0.7 to 1.0.7a. A bigger new version of this mod comes hopefully in november (end of november I think). This correction here fix a divide by zero bug!

15.11.2008 - Version 1.0.7b Anouncement:
Hi,
in this version I fixed a bug that the javascript functions in viewtopic.php are not defined.
Update Guide:
You must only change the file "root/mods/viewtopic.php"
Then the update is done and the errors should be away ;)

22.01.2010 - No Version
The work goes on to get the mod validated.

04.05.2010 - Version 1.0.8
No changes. The mod has been validated though phpBB.com.

-------------------------------- Install Notice -------------------------

If you can`t see any evaluation thinks in the frontend then check the following:
  1. Have you refreshed the imageset in der ACP -> Styles -> Imagesets -> Refresh ?
  2. Have you copied the icons into the imageset folder ?
  3. Have you checked in phpMyAdmin that the icons are in the table "phpbb_styles_imageset_data" ?
    There must be at least one entry foreach of the following icons: icon_evaluation_dark, icon_evaluation_half, icon_evaluation_light !
Greets
Novan
Last edited by Novan on Sun May 23, 2010 10:46 am, edited 41 times in total.
User avatar
TimJBart
Registered User
Posts: 279
Joined: Mon Jan 28, 2002 8:24 pm

Re: [DEV] Topic evaluation Mod

Post by TimJBart »

When you say evaluated, do you mean giving a topic a score. If so, could I request giving each post in a topic a score as well?
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

Re: [DEV] Topic evaluation Mod

Post by Novan »

I could think about it.
In the moment I have planed only to evaluate the whole topic and not each post.
But the Mod is still under development and I look if it is possible.
User avatar
TimJBart
Registered User
Posts: 279
Joined: Mon Jan 28, 2002 8:24 pm

Re: [DEV] Topic evaluation Mod

Post by TimJBart »

How about the topic rating is decided by the amount of good ratings the posts inside have? :mrgreen:
campod
Registered User
Posts: 18
Joined: Fri Nov 24, 2006 10:50 pm

Re: [DEV] Topic evaluation Mod

Post by campod »

Sounds good! looking forward to it.
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

Re: [DEV] Topic evaluation Mod

Post by Novan »

Hi,

1.0 RC1 have been just released. The download link is included in the first post in this topic.
The first version of this mod will only support to evaluate a whole topic. I do not know, if I will extend this mod to evaluate every post in a topic. In my opinion there will be a karma mod (which is already in development?) more suiteable.

In addition I would not really know, where I should pack all the options in the prosilver and Subsilver2 Template to evaluate each post. For such many links and/or form options are the viewtopic_body for Template out side.

A demo board will be linked with the final stable release. My online developer board is actually not up to date :oops: .

Greets
Novan
Frold
Registered User
Posts: 447
Joined: Sat Nov 02, 2002 8:19 am

Re: [RC] Topic evaluation Mod

Post by Frold »

Im not sure what this mod can?

Have you seen my request threat: http://www.phpbb.com/community/viewtopi ... 2&t=544365?

what Im looking for is a mod where you can rate a topic (not posts). You should be able to give the topic stars (like on amazon) from 0-5. Then the average rating is calculated eg. 3½stars.

You can see my requst here http://www.phpbb.com/community/viewtopi ... 2&t=544365: I dont need such a advanced mod as requested but as minimum it should have the feature listed above.
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

Re: [RC] Topic evaluation Mod

Post by Novan »

The Mod does exactly what you want.
In the past I have called the mod also "topic rate mod" but after looking it up in the dictionary I have seen that Topic evaluation Mod is better.
cotp
Registered User
Posts: 445
Joined: Wed Sep 14, 2005 7:34 pm
Contact:

Re: [RC] Topic evaluation Mod

Post by cotp »

You can create permissions in the ACP to allow in which forums the evaluation should be enabled.
Where do we do that ? :?

I went to Permissions -> Forum permissions -> Forum 1 -> Registered Users -> Edit Pemissions -> Advanced Permissions

But I don't see anything under actions and posts :(


By the way, in your instructions file:

Code: Select all

Open: styles/prosilver/template/viewtopic_body.html

Find

Tip: This may be a partial find and not the whole line.

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->

Replace With

Tip: Replace the preceding line(s) to find with the following lines.

<!-- IF U_MCP --><span class="left-box">[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</span><!-- ENDIF -->

Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

<!-- IF S_EVALUATION --><span class="right-box"><form method="post" action="{U_VIEW_TOPIC}" name="evaluate_form">{L_EVALUATE_TOPIC}:&nbsp;<!-- BEGIN evaluation --><input type="radio" name="evaluation" onclick="document.evaluate_form.submit()" value="{evaluation.VALUE}"{evaluation.CHECKED} />&nbsp;<img src="{T_IMAGESET_PATH}/star{evaluation.VALUE}.gif">&nbsp;&nbsp;<!-- END evaluation --></form></span><!-- ENDIF --><br clear="all" />
Could be simplified in:

Code: Select all

Open: styles/prosilver/template/viewtopic_body.html

Find

Tip: This may be a partial find and not the whole line.

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->

Replace With

Tip: Replace the preceding line(s) to find with the following lines.

<!-- IF U_MCP --><span class="left-box">[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</span><!-- ENDIF -->
<!-- IF S_EVALUATION --><span class="right-box"><form method="post" action="{U_VIEW_TOPIC}" name="evaluate_form">{L_EVALUATE_TOPIC}:&nbsp;<!-- BEGIN evaluation --><input type="radio" name="evaluation" onclick="document.evaluate_form.submit()" value="{evaluation.VALUE}"{evaluation.CHECKED} />&nbsp;<img src="{T_IMAGESET_PATH}/star{evaluation.VALUE}.gif">&nbsp;&nbsp;<!-- END evaluation --></form></span><!-- ENDIF --><br clear="all" />
Isn't it ? ;)

Cotp
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

Re: [RC] Topic evaluation Mod

Post by Novan »

Please clear the permission cache. (delete the files in the "cache" dir)
After an reload you should see the new permission options I think.
If not I will look for it later this evening.

And this replace instruction ... yes I will simplify it in the final release ;)
cotp
Registered User
Posts: 445
Joined: Wed Sep 14, 2005 7:34 pm
Contact:

Re: [RC] Topic evaluation Mod

Post by cotp »

Novan wrote:Please clear the permission cache. (delete the files in the "cache" dir)
After an reload you should see the new permission options I think.
If not I will look for it later this evening.
Thanks I did that and now the permissions appear; I changed it to yes for admin and users on a forum but can't find where to evaluate the topic?

Sorry :oops:

My viewtopic body:

Code: Select all

<!-- INCLUDE overall_header.html -->
<!-- IF U_MCP --><span class="left-box">[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</span><!-- ENDIF -->
<!-- IF S_EVALUATION --><span class="right-box"><form method="post" action="{U_VIEW_TOPIC}" name="evaluate_form">{L_EVALUATE_TOPIC}:&nbsp;<!-- BEGIN evaluation --><input type="radio" name="evaluation" onclick="document.evaluate_form.submit()" value="{evaluation.VALUE}"{evaluation.CHECKED} />&nbsp;<img src="{T_IMAGESET_PATH}/star{evaluation.VALUE}.gif">&nbsp;&nbsp;<!-- END evaluation --></form></span><!-- ENDIF --><br clear="all" />
<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
cotp
Registered User
Posts: 445
Joined: Wed Sep 14, 2005 7:34 pm
Contact:

Re: [RC] Topic evaluation Mod

Post by cotp »

I erased the <!-- IF S_EVALUATION --> and <!-- ENDIF --> to see if I was able to see something, and it did work, I could vote !

Weird isn't it ?

And isn' t it supposed to display the average vote like in viewforum in the topic too ? I don't see anything :(

Cotp
PS: If it is of any help for a future version, in the MOD I was using in phpBB2, the tables had also the following fields : rating_id (a unique id), user_ip (ip of the voter), rating_time (when did he vote) ;)
User avatar
Novan
Registered User
Posts: 207
Joined: Sun Nov 24, 2002 4:27 pm
Location: Germany
Contact:

Re: [RC] Topic evaluation Mod

Post by Novan »

Hi,

I have just uploaded the RC2.
The installation ModX manual have been updated and corrected.
Now the Rating of the topic will also be shown in the Topic self.

To update from the RC1 to RC2 you must only copy my external modded files again and have a look at the viewtopic.php part of the ModX manual and it`s templates. The viewforum.php and it`s templates are untouched in the RC2.

@cotp:
please change "S_EVALUATION" to ".evaluation" in the IF statement. It is corrected in the RC2 ModX manual. To update the data beetween you old phpBB 2.0 Mod and this Mod you must easily transfer the Column data. I do not use the IP from the user because guests can't vote. Also it is not importantly to know when who exactly voted. I find it make this Mod much too blown up. It should be rather beautifully slim and only the really important bring along. Not so much scrap iron drum around…

Novan
cotp
Registered User
Posts: 445
Joined: Wed Sep 14, 2005 7:34 pm
Contact:

Re: [RC] Topic evaluation Mod

Post by cotp »

I had modified your Rc1 a bit for my forum since I use a 1 out of 20 rating system. If someone is interested I could easily tell how to do it. (it rates out of 20 stars)

I also display the average next to the rating and I am working on a dropdown instead of radio buttons since 20 buttons would be too much ;)
Novan wrote:Hi,

I have just uploaded the RC2.
The installation ModX manual have been updated and corrected.
Now the Rating of the topic will also be shown in the Topic self.

To update from the RC1 to RC2 you must only copy my external modded files again and have a look at the viewtopic.php part of the ModX manual and it`s templates. The viewforum.php and it`s templates are untouched in the RC2.

@cotp:
please change "S_EVALUATION" to ".evaluation" in the IF statement. It is corrected in the RC2 ModX manual. To update the data beetween you old phpBB 2.0 Mod and this Mod you must easily transfer the Column data. I do not use the IP from the user because guests can't vote. Also it is not importantly to know when who exactly voted. I find it make this Mod much too blown up. It should be rather beautifully slim and only the really important bring along. Not so much scrap iron drum around…

Novan
Thanks for this feedback Novan, I tried your new version from scratch

I got a :

Code: Select all

Parse error: syntax error, unexpected '}' in C:\Program Files\wamp\www\phpBB3_rc5\includes\template.php(166) : eval()'d code on line 1
wonder why :(

Will keep looking for the bug...

Ah just some other ideas:
Another cool thing for next version could be:

1) Able to sort by best ranks
2) A seperate page to see top 10 or top 50 forum based, for example

Congrats on your work 8-)
Ann_L
Registered User
Posts: 38
Joined: Mon Jun 25, 2007 12:18 pm

Re: [RC] Topic evaluation Mod

Post by Ann_L »

I am not finding any installation instruction with the downloaded zip file.
Can anyone please help me out with the steps in installing this?
Locked

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