Rate That Topic

Started by slinouille, August 20, 2008, 02:57:44 PM

Previous topic - Next topic

jeri

Quote from: [SiNaN] on August 30, 2008, 05:30:01 AM
Open

../Themes/default/languages/Modifications.english.php

Find and Cut:

?>

Paste at the very end of the file.

Thank you, Thank you!!!!

Mouthrax

Hi all,

great theme, I followed the replies and got the fix working ...brilliant

Is there any way to make the rating out of 10 please?

Marcus Forsberg

Looks great.

But I don't think that it's something that I need right now ;)

[SiNaN]

#83
TechPrince:

Your file is attached.

Rifugio:

../Sources/Subs-Rate.php

Find:

$request = db_query("
SELECT locked
FROM {$db_prefix}topics
WHERE ID_TOPIC = $topic_id
LIMIT 1", __FILE__, __LINE__);
list ($check['lock']) = mysql_fetch_row($request);
mysql_free_result($request);

if(!empty($check['lock']))
return false;


Replace:

/*
$request = db_query("
SELECT locked
FROM {$db_prefix}topics
WHERE ID_TOPIC = $topic_id
LIMIT 1", __FILE__, __LINE__);
list ($check['lock']) = mysql_fetch_row($request);
mysql_free_result($request);

if(!empty($check['lock']))
return false;
*/


Mouthrax:

../Sources/Subs-Rate.php

Find:

if($rateOptions['rate'] > 5 || $rateOptions['rate'] < 1)

Replace:

if($rateOptions['rate'] > 10 || $rateOptions['rate'] < 1)

../Display.template.php

Find:

<option value="5"', $context['user_rating'] == 5 ? 'selected="selected"' : '', '>5</option>

Replace:

<option value="5"', $context['user_rating'] == 5 ? 'selected="selected"' : '', '>5</option>
<option value="6"', $context['user_rating'] == 6 ? 'selected="selected"' : '', '>6</option>
<option value="7"', $context['user_rating'] == 7 ? 'selected="selected"' : '', '>7</option>
<option value="8"', $context['user_rating'] == 8 ? 'selected="selected"' : '', '>8</option>
<option value="9"', $context['user_rating'] == 9 ? 'selected="selected"' : '', '>9</option>
<option value="10"', $context['user_rating'] == 10 ? 'selected="selected"' : '', '>10</option>


Then you need to have 6-10 star images in your theme's images directory.
Former SMF Core Developer | My Mods | SimplePortal

mrstime

I have installed and can get to the control panel but I don't see the rating option on the board.  What am I doing wrong?

[SiNaN]

Have you enabled it for the boards you want to use it?
Former SMF Core Developer | My Mods | SimplePortal

mrstime

I thought I did.  I had tried just about every option I could think of. 

[SiNaN]

Can you provide me an admin account via pm to check it?
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)

can you please work over the hover stars for this rating ? I am too much interested...please... would be great stuff to add in.... :)

[SiNaN]

Quote from: F.L.A.M.E.R on September 05, 2008, 07:06:10 AM
can you please work over the hover stars for this rating ?

I couldn't get what you mean.
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)

i mean like just put the mouse over the stars.. it highlights that much part and to lock that rating, just click on it and you get a message written under it saying "Thank you for your Rating." And to change that rating, an option just near the post reply, saying "Change Ratings" for individual changes ?


mrstime

Quote from: [SiNaN] on September 05, 2008, 06:54:35 AM
Can you provide me an admin account via pm to check it?

PM sent.  Thank you SiNaN

chrisb

Quote from: mrstime on September 04, 2008, 09:40:41 PM
I have installed and can get to the control panel but I don't see the rating option on the board.  What am I doing wrong?

Under Admin and then Forum and then Topic Rating Admin , this where you can enable the rate topics on your forum.

mrstime

I have tried that and yet there is nothing. 

Adish - (F.L.A.M.E.R)

go to the boards settings over there which is just next to that tab.. enabale it in the specific boards and check it.

mrstime

I have tried enabling all boards, checked all I can check, tried it, adjusted settings and I still don't see the option to rate the topic. 

mrstime

I think this may be the problem.  I uninstalled and reinstalled and this is what I get for one file:

8.     Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Skipping file

chrisb

When you click on the stars and then goes to rating topic log, nothing will show up on this page, should it state the username and postion and ratings as well and time, i am using firefox 3, i wonder if that causing these issues,

Username       Position       Rating       Time

Any help would be helpful

Wajalot

#98
Hi [SiNaN]

First of all, many thanks for your time. I also fixed the error with your posts..

Now, if i can, i have a question. Is there any option to have some stats of rating as 'Most rated topic in a week, also in a month and ever' ?

Could be a good improvement.

Thanks again

[SiNaN]

mrstime:

I've checked your forum. You haven't enabled it for any board. I've enabled for all. If you check with default theme, it works. You make the template file changes for your custom theme manually. You can use the Mod Site package parser for that.

chrisb:

Are you sure that you are looking at a rated topic?

Wajalot:

I liked the idea, we can add some stats to Stats page. I'll consider it for the next release. Thanks.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: