Topic Ratings

Started by Oldiesmann, January 20, 2005, 01:59:43 PM

Previous topic - Next topic

teamvtec

Quote from: Numair on February 24, 2005, 10:38:18 PM
I have installed it, everything went nicely, no error, no problem, but still there's no result.

There's no Topic Rating appeared so far.

Plz check this

http://www.apni-mehfil.com/forum

Thanks

Hi all, i have the same problem  ::)

I have everything installed properly, and i've checked the box @ modify boards.
But no buttons or whatever on the page itself.
Is there a solution to this?

My site: http://forum.sirfanaticsholland.com/index.php

Thanks for your time

Grtzz

teamvtec


NBK

#42
I tryed to install Topic Ratings v1.02 with MessageIndex.template.php 1.0 and I got an error while installing the mod.

In the mod file the following line apears to be wrong (line 335 of ratings_v1.02.mod)

<search for>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' :'', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
</search for>


It should be (line 134 of MessageIndex.template.php 1.0)

<search for>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : ';asc', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
</search for>


edit
There is a small deference
mod-file: ['sort_direction'] == 'up' ? ';desc' : '', '"
php-file: ['sort_direction'] == 'up' ? ';desc' : ';asc', '"
/edit

Is this a real bug or did this just occur on my board?

Anguz

#43
That difference was made by my Board Default Sort mod. You'll have to edit the file manually, or either the php or the mod file. If you change the mod file, then you'll be able to use the Package manager to install and uninstall (as long as you don't uninstall Board Default Sort first, cause then you'll have the same problem you do now, only the other way).
Cristián Lávaque http://cristianlavaque.com

Oldiesmann

Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Michael Eshom
Christian Metal Fans

Kambei_Shimada

Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.

Sounds good to me. Speaking of modding this already killer mod, I'm working on an addition to it for my BBS ( http://www.skullknight.net/bbs ) that would incorporate multiple levels of images.

For instance, a value of 5 would be   . A value of 3-4 would be , 1-2 would be   and 0 would be a .

Having some difficulty with the coding though ( i know nothing of coding, i can just copy paste  :D )  I know what I need to do, essentially... but not the means to do it.  Here's the code I'm pretty sure I have to modify, it's in Display.php

$context['rating'] = array(
'empty' => $topicinfo['rating'] == -1,
'whole' => (int) ($topicinfo['rating'] / 2),
'half' => $topicinfo['rating'] % 2

I need to add more values to this, right?. Something like Gold Silver Bronze and Crap yes? Sounds pretty simple but... I don't really know the code or math for this... Help?

ArkServer

Is there a way only to rate once? when i rate a topic i can change my vote.

norwegian

its possible do this :


Subs the stars  to numbers [1,2,3...]like "Topic rate: 4 " , this mean subs the stars for numbers ???


someone can help me ?

dtm.exe

Quote from: norwegian on June 17, 2005, 07:04:49 PM
its possible do this :


Subs the stars  to numbers [1,2,3...]like "Topic rate: 4 " , this mean subs the stars for numbers ???


someone can help me ?

Post merged with the appropriate topic.

-Dan The Man

norwegian


dtm.exe

Quote from: norwegian on June 17, 2005, 07:55:37 PM
how ???

Your question will be answered...just be patient :).

-Dan The Man

norwegian


Solace

Great mod.  Only board+mod I've seen that allows topics to be sorted by rating.

I've made some changes to this mod so that instead of 0-5 stars, ratings are entered 0-10, and displayed as numbers, 0.00-10.00 to two decimal points.  This allows for a finer ranking when such discrimination is important.

I'll post a link here if interest is shown and the original mod author gives permission.

norwegian

Quote from: Solace on June 19, 2005, 06:14:26 AM
Great mod.  Only board+mod I've seen that allows topics to be sorted by rating.

I've made some changes to this mod so that instead of 0-5 stars, ratings are entered 0-10, and displayed as numbers, 0.00-10.00 to two decimal points.  This allows for a finer ranking when such discrimination is important.

I'll post a link here if interest is shown and the original mod author gives permission.

That's Great !!!!i hope you can get the permission !! 8)

norwegian

none can do this ??? replace stars for numbers ??? 1-5 or 1-10 .....


???

SaniOKh

Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Yes, it would be great, this is THE missing feature to your MOD!

norwegian

Quote from: SaniOKh on June 22, 2005, 12:03:56 PM
Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Yes, it would be great, this is THE missing feature to your MOD!

indeed !!

diplomat.

Say if I wanted to display the ratings of topics displayed on my ssi_boardNews, is that possible?
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Solace

One other thing that'd be nice would be for the rating to be automatically submitted when the number in the drop down box is selected, without having to press "go".

Solace


Quote from: norwegian on June 20, 2005, 09:01:37 PM
none can do this ??? replace stars for numbers ??? 1-5 or 1-10 .....

This is implemented on my site hxxp:opensketch.com [nonactive]. The original author of this mod has my code, and will release some version of it as a variant when he gets the chance.

Advertisement: