UBB.Dev
Posted By: Philipp [6.0x] Rate this Topic 1.1a - 03/24/2001 4:07 AM
Rate this Topic 1.1a

This hack allow your visitors to rate every topic from 1 (worse) to 5 (best) on your board.

New in 1.1a: Option which allows topic starter to disable rating.

Download

Philipp

[ April 02, 2001: Message edited by: Philipp ]
Posted By: M2sc-com Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 4:08 AM
what is the url

*NM I see you added it*

[ March 23, 2001: Message edited by: M2sc-com ]
Posted By: Fuzion Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 4:11 AM
Very Nice work, I love this hack. smile
Posted By: Jigga-Master Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 5:03 AM
demo?
Posted By: AndrusW Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 12:30 PM
Great Hack! Works perfectly on my board. Thanks!

Andrus
Posted By: CNCR Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 12:35 PM
Quote
quote:
i belive UBB DEV use this addon, as i saw it at the bottom

~RATE THIS TOPIC~

i saw it on the whos online, chapter 2. wink

Also nice work, this mod sounds pretty spiffy, i will install it very soon, i gotta move my site to a different host first frown
Posted By: twinspin Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 3:57 PM
Two problems/questions on this hack.

First--does it work in both 6.0 and 6.01 or only 6.01?

I tried adding it to 6.0 and almost got it to work (see next comment below) but after trying to rate a topic, received a cgi error code about being unable to open line 63 in ubb_rate_topic.cgi. I can post the exact error message here later if you want to see it.

Second--is there an error in the readme.txt file?

You say the following in that file...

########################################
public_forum_page.pl (Templates)
--------------------------------
########################################
Find
########################################



$vars_wordlets{total_replies_header}



########################################
and add the follow
########################################


$vars_wordlets_rate{rating_column}



---
Should there be an extra tag at the beginning of that last text? My formatting didn't work properly until I added another tag.
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 3:57 PM
Found a typo in the instructions:

########################################
public_forum_page.pl (Templates)
--------------------------------
########################################
Find
########################################



$vars_wordlets{total_replies_header}



########################################
and add the follow
########################################



$vars_wordlets_rate{rating_column}

Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 4:15 PM
LOL twinspin at the same time smile

Yes this is a typo in the readme. I just updated the ZIP.

Quote
quote:
Did you create a thread_ratings folder (CHMOD 777) in your Members directory?

Quote
quote:
There is no demo except on my local machine but here a screenshot:

[Linked Image]
Posted By: CNCR Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 6:00 PM
this addon is sweet man, it works great, and looks very nice aswel, very good work!
Posted By: CNCR Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 6:03 PM
what to you hope to do in the next release, beta/final?
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 6:08 PM
Philipp

Can you make rate this topic a choice for the topic starter? On my board some people opt not to be rated. Please me know if you have will include in your next release.
Posted By: Stang5_0 Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 7:25 PM
Great Hack!!!

One question, I also have the gradient hack installed, and really hate to fool with this all since it's working, do you know where in your code, I need to add the gradient call, so I have a consistant bar?
Posted By: twinspin Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 8:42 PM
Phillip,

Yes I do have the threads_rating folder in my members directory and proper permissions.

Any other thoughts?
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 10:10 PM
The next version (Maybe next week) comes with a few control panel options.

Quote
quote:
I didn't tried the gradient hack yet but I check it out.

Quote
quote:
Thats odd. I don't know what this cause. Do you use mod_perl?
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 10:47 PM
I noticed that the rating ends up equalling the last rating. I tested it out on my board and another board and saw same results. I looked at the files in the thread_ratings folder and they are still registering 1 vote even thought the topic has received multiple ratings. Anyone else getting the same issue?
Posted By: Magnum Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 10:54 PM
Stang5_0, the gradient coding would go in this section



$vars_wordlets_rate{rating_column}



Magnum wink
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 10:59 PM
Stang5_0 - my apologies for adding a rating on your topic on your board but you have the same problem as me. I rated a topic that was previously rated a 5. I rated it a 1. It should average the 2 ratings and come up with 2.5 (rounds to 2) but the new rating is a 1.
Posted By: Stang5_0 Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 11:03 PM
Perfect, thanx Magnum!


Thats ok Garland, maybe there will be a fix and I can fix it hehehehe

[ March 24, 2001: Message edited by: Stang5_0 ]
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 11:09 PM
Stang5_0

Take a look in the thread_ratings folder and see if it shows two votes. If we both have the same problem I would say it is a bug in the code. Thanks.

Jim
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 11:24 PM
Thanks Garland you are right. I post a updated zip with a fixed ubb_rate_topic.cgi in the next minutes.
Posted By: Stang5_0 Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 11:26 PM
Showing up as one vote and 5 ratings
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/24/2001 11:36 PM
Just updated the ZIP. Please reupload ubb_rate_topic.cgi
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 12:22 AM
I still am having problems. Here is what the rating file looks like now after two votes:

$votes = 1;
$ratings = 5;$votes = 1;
$ratings = 1;

Why not delete the original file and re-write it everytime someone votes?
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 12:48 AM
My fault. Just updated the ZIP again. The new update work fine on my local machine.
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 12:57 AM
Great that fixed it. I did notice another small issue. After you vote it does not display where you are being returned to.
Posted By: Balbanes Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 1:01 AM
Cool hack.

Just a idea, maybe make stars be able to be "halfs" as well as whole stars

so there can be 4 1/2 stars, etc. You get the idea I think.
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 1:16 AM
Quote
quote:
Thanks. Fixed in 1.0d
Posted By: twinspin Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 3:02 AM
I figured out my problem. Another stupid user problem (I'm the user). I had created a directory folder with an extra 's' in it. Once I renamed the threads folder properly it worked like a charm.

I probably need to check out version D to see what else has just been added.
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 3:52 AM
Phillip,

Just one more request. Instead of saying were are taking you back to "Forum 3" can you make it display the full title? Thanks and great hack.

Jim
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 9:20 AM
I was able to get the full forum name by adding another hidden value in the rating form. I also clean up formatting and spacing using the following slight modification to your code. Here is the main part of public_topic_page.pl file related to this hack:


















$vars_wordlets_rate{rate_topic}





$vars_wordlets{hop_to}





By moving the hidden values, the space between the drop-down box and the go button is smaller and consitent with the hop-to box. Thanks again for a great hack.

Jim
Posted By: mark99 Re: [6.0x] Rate this Topic 1.1a - 03/25/2001 5:00 PM
How about rating Forums as well, some people have forums for games and such and so you could rate the game quality as well etc. Like a reader reviews system, but more flexible.
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 3:42 AM
Rate this Topic 1.1 is out. See the updated first posting in this thread for more information smile.
Posted By: Jigga-Master Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 4:49 AM
YOUR MISSING cp_rate.cgi!
Posted By: Mr. Man Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 4:59 AM
Well, I added everything and checked, double-checked, and triple-checked and found that the rating simple can not be displayed.
Posted By: AndrusW Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 10:55 AM
Phillip... My download did not contain the cp_rate.cgi files. So my CP "Voting Settings" admin does not work. frown
Posted By: AndrusW Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 10:57 AM
Sorry about misspelling your name there Philipp shocked
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 11:41 AM
Sorry shocked. cp_rate.cgi is now in the ZIP.

Mr. Man:
Did you change the MinVotes variable?
Posted By: Jigga-Master Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 2:24 PM
thanx!
Posted By: Jigga-Master Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 2:35 PM
Phillip can you make this mod so that if the topic has NOT been rated it shows up as so?
like ive changed this to text instead of images and ive noticed that if you vote for a topic every other topic under it on the same pageshows this topic has not been rated but then if one of those gets replied to it removes the "this topic has not been rated" heres an example....... http://www.411hype.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=4
Posted By: LK Re: [6.0x] Rate this Topic 1.1a - 03/28/2001 3:08 PM
I like this hack, but there is a bug:
If you choose to let registered users only,
even though unregistered users can't rate, they can see the "Rate topic" and choose their ratings (again, even though it isn't counted)
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 03/29/2001 4:18 PM
Can this mod be changed so that Topic rating is a option for the topic starter? There are some topics in a board or whole forum, where Ratings are not valid or wanted by the Admin (forum)or by the topic starter (individual post). Please reply.

Great Mod. laugh
Posted By: Nefarious Re: [6.0x] Rate this Topic 1.1a - 03/29/2001 9:57 PM
nice hack .. what about an option to turn it on or off via control panel? changing some of the settings is nice, but you should be able to turn it off completely, as in the column doesn't even show up on the forum display.

Other than that, it's pretty nice
Posted By: melder Re: [6.0x] Rate this Topic 1.1a - 03/29/2001 10:11 PM
is great workin on ubb 6.01 german

--- netscape need ---

### public_forum_page.pl
############################################

if ($votes > $vars_rate{MinVotes}) {
if ($average > 0) {$ratestar = qq( );}
if ($average > 1) {$ratestar = qq( );}
if ($average > 2) {$ratestar = qq( );}
if ($average > 3) {$ratestar = qq( );}
if ($average > 4) {$ratestar = qq( );}
}

$this_html .= qq~


$ratestar


#### check this !!!! ###

~;

############################################

ubb-german: www.chat-board.de
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 04/01/2001 8:33 PM
Philipp,

It would be great if user name or number was also logged so if people abuse the ratings system they can be delt with. Thanks for a great hack.
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 04/01/2001 11:05 PM
wardx28 & Nefarious:
Maybe in the next version smile

melder:
Thanks

Garland:
This feature is allready in 1.1
Posted By: Garland Re: [6.0x] Rate this Topic 1.1a - 04/01/2001 11:35 PM
Great, I had not noticed since I did not change the setting (Registered Users Only?) in my control panel. Can you add the rating next to the user name so you can see if someone is voting improperly?

[ April 01, 2001: Message edited by: Garland ]
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 04/02/2001 10:31 PM
Quote
quote:
Added a option in 1.1a which allows the topic starter to disable rating.

[ April 02, 2001: Message edited by: Philipp ]
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/02/2001 10:50 PM
Thanks a Million.

[ April 02, 2001: Message edited by: wardx28 ]
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/03/2001 10:30 PM
How can i set this up to work for one forum as a test?
Private at that.
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 6:16 AM
ultimatebb.cgi: Unable to open the required rating file at /u/web/urba19/cgi-local/ubb_rate_topic.cgi line 93.


is what i go in 6.02
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 12:45 PM
Quote
quote:
Did you create a "thread_ratings" folder in your members directory and chmod the folder to 777?
Posted By: Maik Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 1:06 PM
Hi,

is it possible to disable ratings through cp and activate it just for one forum?
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 1:09 PM
Quote
quote:
Not yet. This feature is planned for the next update smile
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 1:28 PM
Quote
quote:
Did that.
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 1:36 PM
Darn, put it in the cgi dir.

Thanks.
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 2:05 PM
Where is it that the topic starter has the choice to disable?
Setting in cp is configed, But option does not show.
Posted By: Philipp Re: [6.0x] Rate this Topic 1.1a - 04/04/2001 5:35 PM
Sorry, forgot one template:

########################################
public_new_topic_form.pl (Templates)
------------------------------------
########################################
Find
########################################

$show_sig


$disable_smilies

########################################
and add the follow
########################################



$no_rate

[ April 04, 2001: Message edited by: Philipp ]
Posted By: saehoon Re: [6.0x] Rate this Topic 1.1a - 04/08/2001 2:17 PM
Quote
quote:
THANKS! So glad i read this.. haha.. I was wondering what was wrong with it.

Anyway, I love this hack it's great... good job =)
Posted By: AndrusW Re: [6.0x] Rate this Topic 1.1a - 04/09/2001 9:40 AM
Philipp, I keep getting this error when I submit the Voting Settings even though I make selections for all three categories:


You did not complete all required fields.
You did not complete: RateNA

» Use your browser's back button to return.


Any ideas??

Andrus http://saintsreport.com/cgi-bin/ubb/ultimatebb.cgi
Posted By: saehoon Re: [6.0x] Rate this Topic 1.1a - 04/11/2001 12:56 AM
Quote
quote:
I had a similar problem when I upgraded to ubb6.03, try restoring all cp templates and rehacking the files.
Posted By: Egbert Re: [6.0x] Rate this Topic 1.1a - 04/17/2001 5:42 PM
Quote
quote:
Another Question:
I have the "Ratings" in the "Topic Starter" field and missed the Topic Starter after installing the Hack? Waht's going wrong?
btw.: Great hack!!
Egbert
Posted By: wardx28 Re: [6.0x] Rate this Topic 1.1a - 04/17/2001 7:58 PM
What and when is the next version?
Posted By: Phoenix2k Re: [6.0x] Rate this Topic 1.1a - 04/19/2001 8:49 PM
I've been trying to figure out how to make this hack add 5 stars automatically after a user has posted a message, but I'm not really getting anywhere.

Can anyone help me?
Posted By: Compboy Re: [6.0x] Rate this Topic 1.1a - 05/15/2001 4:42 AM
Is this hack still under development?
I didn't find it in Finished. and as i can read their is still some bug's in it.

anyone using it with 6.04c ?
Posted By: Bo$$ Re: [6.0x] Rate this Topic 1.1a - 05/17/2001 7:51 PM
i've got your hack and i have a lill' problem :
Content-type: text/html
Software error:
Unable to open vars_rate.cgi file for writing. at /var/lib/apache/htdocs/cgi-local/cp_rate.cgi line 9.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.

This is my problem when i try to "update the voting settings" in cp.!
Please help me!
Posted By: MZ Re: [6.0x] Rate this Topic 1.1a - 05/25/2001 12:32 PM
Hi,

I installed the Hack on a 6.04bg and your 1.1a Version.

The result is:
[Linked Image]

My fault or not working with the Hits Hack ???

PLS HELP
REALLY WOULD LIKE TO INSTALL THAT HACK
Posted By: Tech-Ni-Kal Re: [6.0x] Rate this Topic 1.1a - 05/26/2001 5:44 AM
nevamind wink

[ May 28, 2001 02:47 AM: Message edited by: Tech-Ni-Kal ]
Posted By: Tech-Ni-Kal Re: [6.0x] Rate this Topic 1.1a - 05/30/2001 6:15 AM
Have you gotten anywhere on the part in only particular forums?
Posted By: RTM Re: [6.0x] Rate this Topic 1.1a - 06/03/2001 8:09 PM
Greetings everyone!

Just a quick note to let you all know that we succesfully installed this hack at The Temple of Blues running UBB 6.04e - works great, a great hack that took all of 10 minutes to install. We also had it working fine on a an old beta version of 6.0

smile

RTM

[ June 03, 2001 01:11 PM: Message edited by: RTM ]
Posted By: Djnemesis Re: [6.0x] Rate this Topic 1.1a - 06/04/2001 8:43 PM
Question?


Does this work kinda like the views hack that was released, where it creates a ton of individual files that log the rating of each thread?
Posted By: RTM Re: [6.0x] Rate this Topic 1.1a - 06/04/2001 10:52 PM
Quote
quote:
Hi DJ Nemesis,

This hack does create a subdirectory, in which it creates files on a per-topic basis including a file for the rating details as well as a file for IP logging.
Posted By: hellhound Re: [6.0x] Rate this Topic 1.1a - 06/09/2001 4:52 PM
i installed a hack and i have got a error :
Error including required files: No such file or directory
Make sure these files exist, permissions are set properly, and paths are set correctly

hmm what is the problem ?? i have got a
6.04b version frown
Posted By: LK Re: [6.0x] Rate this Topic 1.1a - 06/09/2001 4:58 PM
Quote
quote:
Phillip, if you want it to automatically add this directory if it doesn't exist, pm me.

[ June 09, 2001 09:59 AM: Message edited by: LK ]
Posted By: ruph Re: [6.0x] Rate this Topic 1.1a - 06/09/2001 10:16 PM
The stars dont show when i rate a topic!? i uploaded all of em in my noncgi folder.. is there suppose to be a folder for em? mad
Posted By: CyKuH Re: [6.0x] Rate this Topic 1.1a - 06/10/2001 9:25 PM
What and when is the next version?
Posted By: RTM Re: [6.0x] Rate this Topic 1.1a - 06/16/2001 7:46 PM
Feature suggestion: tabulating and displaying the number of ratings underneath the stars - for example

****
4 votes

or something to that effect. It would help give users a better weighting of the actual rating.

Great hack, it installed and works really well!

[ June 16, 2001 12:49 PM: Message edited by: RTM ]
Posted By: Tech-Ni-Kal Re: [6.0x] Rate this Topic 1.1a - 06/16/2001 9:03 PM
RTM -- go into your public_forum_page.pl

Find:
if ($votes > $vars_rate{MinVotes}) {
if ($average > 0) {$ratestar = qq();}
if ($average > 1) {$ratestar = qq();}
if ($average > 2) {$ratestar = qq();}
if ($average > 3) {$ratestar = qq();}
if ($average > 4) {$ratestar = qq();}
}


replace with

if ($votes > $vars_rate{MinVotes}) {
if ($average > 0) {$ratestar = qq(
1 vote);}
if ($average > 1) {$ratestar = qq(
2 votes);}
if ($average > 2) {$ratestar = qq(
3 votes);}
if ($average > 3) {$ratestar = qq(
4 votes);}
if ($average > 4) {$ratestar = qq(
5 votes);}
}
Posted By: robin Re: [6.0x] Rate this Topic 1.1a - 06/18/2001 7:28 AM
everything works fine except when you vote it says :

FYI
You are attempting to reach a page that does not exist.
» Please use your browser's back button to return.


any suggestions.
Posted By: Sonic2k1 Re: [6.0x] Rate this Topic 1.1a - 07/22/2001 7:40 PM
Here a working Link wink

Greetings

[ July 23, 2001 02:51 AM: Message edited by: Sonic2k1 ]
Posted By: mark99 Re: [6.0x] Rate this Topic 1.1a - 08/01/2001 7:14 PM
HELP,

The problem with this script is that it leaves columns blank when you don't choose to rate them. Consiquently I see a lot of 'empty' and very ugly space.

So for topics that haven't been rated I'd like to place a default '5' star(s) image that's faded or semi-blank. In Pseudo code:

IF No Rating
Output 5 Star Images From Blank Star Image File

How can I do this, should be simple, but the code is spread around too many files to see.
Posted By: Rinkrat Re: [6.0x] Rate this Topic 1.1a - 08/11/2001 8:13 AM
I would like to see this hack made so the moderators could rate the topice and so the users could filter messages. That way you could turn your filter to only read 3 stars or above and get past all the BS posts.
Posted By: Jamma5600 Re: [6.0x] Rate this Topic 1.1a - 08/14/2001 12:46 PM
The Link is totally dead frown

edit: whoops, nevermind

[ August 14, 2001: Message edited by: Jamma5600 ]
Posted By: IICODECll Re: [6.0x] Rate this Topic 1.1a - 08/27/2001 4:55 AM
the link does not work, if anyone could help i would be most grateful.. thanks!

edit: thanks UBBdev!

[ August 26, 2001: Message edited by: IICODECll ]
Posted By: Covert Re: [6.0x] Rate this Topic 1.1a - 08/30/2001 4:10 AM
Hey, is this hack compatible with UBB v6.04(d)?
Posted By: Drake Re: [6.0x] Rate this Topic 1.1a - 11/01/2001 7:42 PM
someone fix the ****ING link mad
© UBB.Developers