Firefox PHP

Module: Rate This Thread

Posted by Liliana von Goodin 
All files from this thread

File Name File Size   Posted by Date  
rate_this_thread_1_2.zip 87.1 KB open | download Liliana von Goodin 11/26/2009 Read message
Module: Rate This Thread
November 26, 2009 12:13AM
This is a module for rating threads, it was created by Ravenswood. :)

Rating options:
- Stars
- Numbers
- Thumbs up/down

Other Settings Options:
- Submit comment with vote (individual user's vote will show up with their comment in a post, Amazon-review-style).
- Allow/disallow anonymous users to vote.
- Select any number from 0 - 100 as a rating option (shown either as numbers or stars) for voters.
- Rating settings can be unique to each forum (One forum can be 0-5 stars, another can be 0 - 10 stars, another can be thumbs up/down, etc).
- Folder-wide settings can be inherited to subforums or overridden by individual subforums as needed.
- Option to view voting results poll-style after a vote has been submitted.
- Several template design options to choose from.


Enjoy! :)



Edited 2 time(s). Last edit at 06/27/2016 11:45PM by Liliana von Goodin.
Attachments:
open | download - rate_this_thread_1_2.zip (87.1 KB)
Re: Module: Rate This Thread
November 26, 2009 12:48AM
Congratulations! Well done!
Maybe there should be a restriction to users voting on their own threads?!
Also, it would be elegant at some point to click icons instead of choosing from drop-down menus.
Other than that it looks like a winner! Thank you for your efforts!!
Re: Module: Rate This Thread
November 26, 2009 01:08AM
It was created by Ravenswood for me, but I wanted it to be available to everyone when he was done with it. So now it's done, and here it is :) I tried to plan it with many flexible options built in so that it could be used for a variety of purposes, in keeping with Phorum's theme.

I like the idea of not letting people vote on their own threads, I'll bring that up with Ravenswood :) Maybe an option where you can choose to allow or disallow voting on your own threads.
Re: Module: Rate This Thread
November 26, 2009 03:52PM
Have you also considered displaying poll results on the list page? It will save time if users do not have to "digg" into the read page in order to check the popularity of the according post. Another interesting option of course would be a set of routines listing messages by popularity, most visited, etc. But this will require core work.
Re: Module: Rate This Thread
November 26, 2009 04:19PM
Korsakov you have a lot of great ideas, but I really think you need to consider having a php programmer or two on retainer ;-)


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Rate This Thread
November 26, 2009 04:48PM
True, Joe! If I only could find individuals my entrepreneurial spirit and both sides of my brain could agree with..
Re: Module: Rate This Thread
December 07, 2009 10:52PM
I have been trying out this module, and there is a small issue when it runs on a system that incorporates search engine friendly URLs:

In rate_this_thread.php the urls to the graphics (i.e. the stars) are all relative which is fine normally. But not in SEO friendly URLs, where the page level URL will be re-written to be in folders (i.e., something like http: //mysite.com/2/3/topic_foo).

Example, a line of code like this:
$s .= '<img src="mods/rate_this_thread/images/rating70px-zero.gif" border=0 />';
results in a broken image because it is relative to http: //mysite.com/2/3/

I suppose we could make it the author of module "SEF URLs" problem, but one easy solution here is to just preface each image URL with $PHORUM["http_path"], example:
$s .= '<img src="'.$PHORUM["http_path"].'/mods/rate_this_thread/images/rating70px-zero.gif" border=0 />';

Anyway, I am continuing to try this module out and this is how I worked around the problem. Thought I would pass it along.

-phil.
Re: Module: Rate This Thread
December 07, 2009 11:49PM
Actually, we advertise always using absolute URLs instead of relative URLs for Phorum. So your proposol is perfectly sound. See the developer docs for some of the reasoning behind this.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Rate This Thread
December 08, 2009 03:38AM
Hi! Thanks for the compliments, and the feedback. I'm glad everyone likes this module.

I'll update it soon, to fix the issue Phil Connolly mentioned. Then when I get some time, I'll incorporate some of the other suggestions people have made. They're all very good ideas.

Thanks again!

-------------------------------------------------------------------
"When given a choice, always choose monkeys."
Re: Module: Rate This Thread
January 08, 2010 11:41PM
Hi, thanks for the great module!

I'm just having one issue- when a user edits his/her original post (with the poll) all of the poll data is erased. What can I do to prevent that?
Sorry, only registered users may post in this forum.

Click here to login