Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: slinouille on August 20, 2008, 02:57:44 PM

Title: Rate That Topic
Post by: slinouille on August 20, 2008, 02:57:44 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1313)

Rate That Topic

This mod gives the users the ability to rate topics. Here are the features noted in a detailed way:-[SiNaN]

Fix for "unable to load the 'rateadmin' template" error:

../Sources/RateAdmin.php

Find:

   loadTemplate('rateadmin');

Replace:

   loadTemplate('RateAdmin');


RateThatTopic v2.2.0
By Slinouille (http://custom.simplemachines.org/mods/index.php?action=search;author=68142)



Introduction
This mod gives the users the ability to rate topics.
This mod has been initialy created by Blue Dream (http://www.simplemachines.org/community/index.php?action=profile;u=118168) for SMF1.1.7. For more details see mode page (http://custom.simplemachines.org/mods/index.php?mod=1313).
This version is the take over for SMF2.0b4.

Features
o Ability to enable or disable the mod
o Ability to show ratings on message index
o Ability to authorize the mod by board
o Rate again feature
o User friendly way of rating
o Sort by ratings in board view
o Admin can select a delay during which use can't re-rate
o Topic author can't rate his/hers own topic

Installation
Simply install the package to install this modification on the SMF Default Core theme.
Manual edits will be required for other themes.

This mod is compatible with SMF 2.0 Beta 4 Public and above only.

Support
Please use the modification thread for support with this modification.

Changelog
2.2.0 - 05th May 2008
o Added: customizable delay before re-rating

2.1.11 - 25th April 2008
o Added: topic author can't rate
o Bug correction: Database installation log errors

2.1.10 - 23th April 2009
o Correction of a bug when sorting by rating. Thanks to Tanks ;)

2.1.9 - 23th April 2009
o Correction of a bug in TableInstall script. Thanks to Tanks ;)

2.1.8 - 23th March 2009
o Corrected and optimized database installation and update

2.1.7 - 16th February 2009
o Add rating "floating stars" behavior
o Average rate is now a floating number (stars are also "floating")
o Correction of css bug in IE
o Correction of undefined index in error log

2.1.x - February 2009
o Debuging releases for full compliance with SMF2RC1

2.1.0 - 27th December 2008
o Initial release
Title: Re: Rate That Topic
Post by: NeoXII on August 20, 2008, 08:40:30 PM
Hy!! Great mod and idea!!!

But excuse me, where can I found the admin panel after installation?

Whit Firefox and Default theme I can found it  :(  and with IE in admin, Board setting crash...

Thank You very much!
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 12:17:16 AM
Welcome NeoXII. :)

Thanks for the comment. Actually mod doesn't make a change in Boards are in Admin CP. So I have no idea what could be causing that. Do you have an error message displayed?

What is the default language of your forum?
Title: Re: Rate That Topic
Post by: Nathaniel on August 21, 2008, 01:41:20 AM
Nice Mod [SiNaN], this is a useful feature which I have seen in vBulletin. :)

Now, if only there was a SMF 2 Beta version....... ;)
Title: Re: Rate That Topic
Post by: Tanks on August 21, 2008, 02:16:11 AM
would be so cool if this was also for SMF 2b :) Thanks anyway :)
Title: Re: Rate That Topic
Post by: jordanid on August 21, 2008, 02:32:42 AM
hey
thank you for the great mod
i installed it , worked 100% fine
but when i rated the topic
i got this problem
"Unable to load the 'rateadmin' template. "
would be very glad if you could help out .

thanks in advance
Essa
Title: Re: Rate That Topic
Post by: Nathaniel on August 21, 2008, 02:42:16 AM
[SiNaN],
Looks like popular demand says that you should port this mod for SMF 2 Beta. :D
I can do it if you really don't want too. ;)
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 03:27:46 AM
jordanid:

I'm not sure about the error. Can you provide me a test account so that I can see the error myself?

LHVWB:

If we finish the mod that we are currently working on, why not?



Title: Re: Rate That Topic
Post by: Nathaniel on August 21, 2008, 03:47:27 AM
We are going to finish Simple Portal? I thought that is was an ongoing project! :P

Anyway, sorry for bringing this thread off topic. Won't happen again... ;)
Title: Re: Rate That Topic
Post by: NeoXII on August 21, 2008, 04:30:19 AM
Hi [SiNaN]!  ;)

OK the problem is the default language..... how can I use rate topic with italian and an other Themes?

The problem  "Unable to load the 'rateadmin' template. " appear when you clik on stars in the topic.

Thank you very much [SiNaN]!!

Bye  :)

P.s: It's possibile set the time to change rating?


Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 06:24:19 AM
I think I got the error.

In some servers, files are case-sensitive. Let's try this:

../Sources/RateAdmin.php

Find:

loadTemplate('rateadmin');

Replace:

loadTemplate('RateAdmin');

But note that, when you click on those stars, you will see the rate log. If you want to rate, you select your rate from the select box at the right, and click "Go!".
Title: Re: Rate That Topic
Post by: BOS4O on August 21, 2008, 07:03:09 AM
cant see changes in the admin panel..
i am with the english language
i modified my theme but nothing..
it not works with the default theme either
this is my forum http://lfs-bg.net/
i deleted the mod temporally :)
Title: Re: Rate That Topic
Post by: Sudhakar Arjunan on August 21, 2008, 07:18:24 AM
Good Mod Author.

I have installed the mod and found that its taking some board tables width.

But the settings were too good and too easy.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 07:20:52 AM
BOS4O:

If your theme has its own Modifications.english.php file, you should make the language file edits in that file too.

asudhakar:

You can disable the stars on the Message Index if you want.
Title: Re: Rate That Topic
Post by: BuЯЯЯЯaK on August 21, 2008, 07:23:59 AM
Nice mod @Sinan

Thanks :)
Title: Re: Rate That Topic
Post by: BOS4O on August 21, 2008, 07:43:19 AM
[SiNaN]

in the default template is not working too
i made all modifications on my template and is not working
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 07:43:59 AM
Can you see the Admin Panel of the mod?
Title: Re: Rate That Topic
Post by: BOS4O on August 21, 2008, 08:29:35 AM
no... i was searching it in the admin panel but i cant find it
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 11:03:04 AM
any manual edits ? I cannot get this right...
Title: Re: Rate That Topic
Post by: Rafferty on August 21, 2008, 11:05:46 AM
Sinan I'm receiving the same error on clicking the stars "Unable to load rateadmin Template"

I have checked the source code you suggested and this is OK.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 11:20:19 AM
BOS4O:

It must be between "Posts and Topics" and "Calendar" links on the Admin CP.

F.L.A.M.E.R:

You mean the manual installation instructions?

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.5

Rafferty:

Does that mean you get it working?
Title: Re: Rate That Topic
Post by: Rafferty on August 21, 2008, 11:23:51 AM
i have fixed it. Im getting the rate log up ok, but where is the rate box, I cant see it

nb: Hmmm I have a topic search box in the same location.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 11:39:53 AM
See this image, at the right:

http://custom.simplemachines.org/mods/index.php?action=download;mod=1313;id=63411;image
Title: Re: Rate That Topic
Post by: jordanid on August 21, 2008, 11:51:05 AM
Sinan , thanks for the reply quickly
i did the change u asked to
but still the same problem
any idea ?!!
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 12:09:17 PM
Can you attach your RateAdmin.php file here?
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 12:15:21 PM
Quote from: [SiNaN] on August 21, 2008, 11:20:19 AM
BOS4O:

It must be between "Posts and Topics" and "Calendar" links on the Admin CP.

F.L.A.M.E.R:

You mean the manual installation instructions?

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.5

Rafferty:

Does that mean you get it working?

No.. the problem is.. the mod got installed succesfully.. but the stars dont appear up... neither the rating option is there... i wonder if anything is wrong.. i am using DARKWOW theme.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 12:22:22 PM
Have you enabled Topic Rating both generally and board based?

Go to

Admin CP >> Topic Rating >> Default Settings >> Topic Rating Enabled

check it.

Go to

Admin CP >> Topic Rating >> Board Settings

enable for the boards that want to use this in.
Title: Re: Rate That Topic
Post by: jordanid on August 21, 2008, 12:26:45 PM
okayz
heres my rate admin file
thank you .
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 12:32:49 PM
I see that you didn't make the change I've mentioned. Can you try the one attached?
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 12:42:32 PM
Quote from: [SiNaN] on August 21, 2008, 12:22:22 PM
Have you enabled Topic Rating both generally and board based?

Go to

Admin CP >> Topic Rating >> Default Settings >> Topic Rating Enabled

check it.

Go to

Admin CP >> Topic Rating >> Board Settings

enable for the boards that want to use this in.

Ok now stars appear up.. but this is the error which comes when its clicked on..

Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at hackerzden.com Port 80
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 12:58:56 PM
Weird. Did you make the change I gave in the first page?

BTW, why did you click on those stars?
Title: Re: Rate That Topic
Post by: jordanid on August 21, 2008, 01:04:50 PM
thank you
it works fine
tho , i by wrong , i attached the wrong file
i always keep a fresh copy of the file before i edit it
so , i attached the file before the updated .. lol
thank you very much
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 01:05:57 PM
Quote from: [SiNaN] on August 21, 2008, 12:58:56 PM
Weird. Did you make the change I gave in the first page?

BTW, why did you click on those stars?

The capitaling stuff ?

I clicked on the stars to test it if its working or now.. and well i have set the permissions as i can vote the posts...
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 01:22:27 PM
jordanid:

Here is the new one.

F.L.A.M.E.R:

Yes I was talking about that edit. I asked the reason; because clicking on those stars just takes you to the rate log, it is not for rating the topic. I think I should change it because everyone is confused with that.
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 01:29:03 PM
I did the edit. yet the same problem.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 01:38:13 PM
That error seems to me like a mod_security problem. Maybe you try turning that off.
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 01:41:16 PM
does it have any side effects ? i am having somewhat same problem with some other mods which i have and it is shown in the error logs..... i think it wont workout without contacting the hosting company.. i modified the .htaccess aswell..
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 01:49:33 PM
I got a tip right now and let's try it on your site.

MessageIndex.template.php

Find:

action=ratelog;id=

Replace:

action=ratelog;rateid=

Display.template.php

Find:

action=ratelog;id=

Replace:

action=ratelog;rateid=

RateAdmin.php

Find:

$topic_id = !empty($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0;

Replace:

$topic_id = !empty($_REQUEST['rateid']) ? (int) $_REQUEST['rateid'] : 0;

Then try clicking on those stars.
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 02:33:32 PM
ok, that made it work well, any idea how can i make it like adnimated sort of rating ? Like just as keep the cursor on the star and then click as you want, it will then rate it up..... for changing the rating, a hyperlink just underwhich says change rating, and it just asks for confirmation that "Are you sure you want to change your rating?". Just a sort of suggestion to make it a better mod... it is good as i am working on user demands and checking if people like the things presently in the forum..
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 02:40:22 PM
Glad that did the trick. I'll fix it in the next version.

The idea sounds good to me, I'll consider that.
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 02:51:16 PM
Thanks for your help. Its gonna be great to work on my users ratings.. :)
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 03:08:58 PM
It was available on the first page. Now added to the first post.

http://www.simplemachines.org/community/index.php?topic=256732.msg1669067#msg1669067
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 03:18:51 PM
Hey [SiNaN] I think you might be able to help me out with somewhat same problem which i had with this mod. Check out here:- http://www.simplemachines.org/community/index.php?topic=256850.msg1669962#msg1669962

Sorry for bringing this issue here. but maybe this can help me out with the problem.

Thank you.
Title: Re: Rate That Topic
Post by: Rafferty on August 21, 2008, 06:40:06 PM
Quote from: [SiNaN] on August 21, 2008, 11:39:53 AM
See this image, at the right:

http://custom.simplemachines.org/mods/index.php?action=download;mod=1313;id=63411;image

No Sinan, I have the Topic Search Mod installed which places the search box right over that point.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 06:46:11 PM
If you have an idea about where we can put it instead, I can do it for you.
Title: Re: Rate That Topic
Post by: Rafferty on August 21, 2008, 07:12:54 PM
Hmmm anywhere in the vicinity I think, how about in the menu bar?
Title: Re: Rate That Topic
Post by: [SiNaN] on August 21, 2008, 07:26:44 PM
If you ask me, that search thing would look better outside of the catbg, above the previous-next links IMO. Just draw where should I put that with paint and attach your Display.template.php file.
Title: Re: Rate That Topic
Post by: Rafferty on August 21, 2008, 10:39:25 PM
Thanks Sinan your a gentleman. Right above the previous/next would be fine
Title: Re: Rate That Topic
Post by: Manu.G on August 23, 2008, 11:29:16 AM
@Sinan

only a little note.
Wouldn't it look nicer when the stars at a sticky topic are in front of the sticky image? *Don't know how to explain it better*  :-\

Did I thank you for the great mod? If not, thanks for it.
Atm I use it only at my testforum and it works perfect after code changing of rateadmin to RateAdmin. ;)
Title: Re: Rate That Topic
Post by: [SiNaN] on August 23, 2008, 11:51:41 AM
Rafferty:

Should I move the search box up or rate box?

Manu0372:

Thanks Manu. Okay, I'll change that sticky look on the first update. ;)
Title: Re: Rate That Topic
Post by: Rafferty on August 23, 2008, 09:02:18 PM
searchbox Sinan Thank you
Title: Re: Rate That Topic
Post by: NeoXII on August 24, 2008, 06:02:38 AM
 :)
Excuse me Sinan.... How can I move the star rating to right in discussion?

Tnx ;)
Title: Re: Rate That Topic
Post by: nwobhm on August 25, 2008, 07:55:03 AM
Hi SiNaN
Thanks for great mod.

Is it possible to hide those stars from the topics which haven't been voted for?
So that only the avarge rate would be visible?
Title: Re: Rate That Topic
Post by: nwobhm on August 25, 2008, 08:15:08 AM
Quote from: nwobhm on August 25, 2008, 07:55:03 AM
Hi SiNaN
Thanks for great mod.

Is it possible to hide those stars from the topics which haven't been voted for?
So that only the avarge rate would be visible?
Never mind.... problem solved... I think ::)
Title: Re: Rate That Topic
Post by: nwobhm on August 25, 2008, 08:45:47 AM
Hi again!

How do I add this feature into DilberMC theme?
Title: Re: Rate That Topic
Post by: [SiNaN] on August 25, 2008, 10:25:11 AM
Rafferty:

Sorry for delay, file is attached. Unfortunately I was unable to test it, so before replacing don't forget to take a back-up.

NeoXII:

Sorry, I couldn't get the question?

nwobhm:

How did you solve your first question?

You just need to make the template file edits in your custom themes' files too. You can use the manual installation instructions (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.5).
Title: Re: Rate That Topic
Post by: TechPrince on August 25, 2008, 11:00:23 AM
Can anybody modify the Musiconia themes Display.template.php and MessageIndex.template.php to include Rate This Topic Mod?

I didnt find one of the search codes since they are in a variable and that variable is not used in that script.
Title: Re: Rate That Topic
Post by: Rafferty on August 25, 2008, 11:00:56 AM
attached,? where?
Title: Re: Rate That Topic
Post by: [SiNaN] on August 25, 2008, 11:17:41 AM
TechPrince:

Attach your files and I'll do them for you.

Rafferty:

Sorry, I forgot.
Title: Re: Rate That Topic
Post by: nwobhm on August 25, 2008, 12:00:51 PM
Quote from: [SiNaN] on August 25, 2008, 10:25:11 AM
nwobhm:

How did you solve your first question?

You just need to make the template file edits in your custom themes' files too. You can use the manual installation instructions (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.5).
Yes, the first question is solved.

About DilberMC theme, it doesn't have display.template at all.
Title: Re: Rate That Topic
Post by: [SiNaN] on August 25, 2008, 12:01:42 PM
I meant, can you show me codes to figure that out?

If it doesn't have Display.template.php, it should be working.
Title: Re: Rate That Topic
Post by: nwobhm on August 25, 2008, 04:45:30 PM
Quote from: [SiNaN] on August 25, 2008, 12:01:42 PM
I meant, can you show me codes to figure that out?

If it doesn't have Display.template.php, it should be working.
Problem solved. Manual installation worked and the code which I couldn't  replace, I just ignored tose parts. Mod worked fine after all :D
Title: Re: Rate That Topic
Post by: [SiNaN] on August 25, 2008, 04:57:15 PM
Okay, glad you get it working. :)
Title: Re: Rate That Topic
Post by: Nibogo on August 25, 2008, 09:13:21 PM
Awesome mod , really nice work, thanks sinan
Title: Re: Rate That Topic
Post by: TechPrince on August 26, 2008, 01:20:24 AM
Here are the scripts
Title: Re: Rate That Topic
Post by: [SiNaN] on August 26, 2008, 11:47:26 AM
NIBOGO:

Thanks.

TechPrince:

Your MessageIndex.template.php file is attached. But I need Display.template.php not BoardIndex.template.php.
Title: Re: Rate That Topic
Post by: tk2012 on August 26, 2008, 12:23:12 PM
Yeah, this would be great for v2.0 b3.1

I've been waiting for a mod that would rate only the starting topic post instead of every reply like the thumbs up mod.  I like this way much much more!  Great job.  Just makes me wish I wasn't going live to v2.0 b3.1 in two weeks!  :(
Title: Re: Rate That Topic
Post by: TechPrince on August 26, 2008, 05:59:11 PM
OOPS, here is the file :
Title: Re: Rate That Topic
Post by: MaXiForum.cz on August 28, 2008, 12:12:31 PM
I have a problem:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmegaupload.cz%2Fimages%2Frate.gif&hash=bb08aa92f68d5345c75357e8d62f90a3b9e044ee)
I can´t speak english very well.
Has the problem solved someone?
THX
Title: Re: Rate That Topic
Post by: locau on August 28, 2008, 03:55:18 PM
Quote from: MaxiPes on August 28, 2008, 12:12:31 PM
I have a problem:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmegaupload.cz%2Fimages%2Frate.gif&hash=bb08aa92f68d5345c75357e8d62f90a3b9e044ee)
I can´t speak english very well.
Has the problem solved someone?
THX

Check first post pls
Title: Re: Rate That Topic
Post by: locau on August 28, 2008, 03:58:26 PM
hello there [SiNaN]

I'm using "overview" theme and it doesn't have any Display.template.php included so it's supost to use the default.

I've installed with sucess this mod and it works with default template but not with mine, what can causing this?

I've checked manual install and i don't see any code to insert on my theme files, what i'm missing here pls ?


-----

Nevermind i got this working by itself, didn't do any change... no clue :(
Title: Re: Rate That Topic
Post by: MaXiForum.cz on August 28, 2008, 05:06:49 PM
Sorry, I am lama :D
I will try...
Title: Re: Rate That Topic
Post by: digger on August 28, 2008, 09:03:28 PM
Can you make option for don't show stars on Message Index where message rating is empty.
Title: Re: Rate That Topic
Post by: Nibogo on August 28, 2008, 10:04:19 PM
Quote from: digger on August 28, 2008, 09:03:28 PM
Can you make option for don't show stars on Message Index where message rating is empty.

Easy Way:

You can delete or change your "tr0.png" in your images dir

PHP Way:

Search in MessageIndex.template:

FIND:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])))
REPLACE:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])) && (!($topic['rating_average'] == 0)))
Title: Re: Rate That Topic
Post by: MaXiForum.cz on August 29, 2008, 03:07:29 AM
Nice work, thanks [SiNaN]   ;D

CZ translation Modifications.czech-utf8.php THERE (http://www.maxiforum.cz/index.php?topic=18536)
Title: Re: Rate That Topic
Post by: [SiNaN] on August 29, 2008, 03:12:11 PM
TechPrince:

Sorry for delay. What is the theme you are using? Can you provide a link?

MaxiPes:

Thanks MaxiPes. I'll add it ASAP.
Title: Re: Rate That Topic
Post by: jeri on August 30, 2008, 03:32:47 AM
I installed this mod and got an error at the top of the forum. I have uninstalled and deleted the mod but its still there. This is what it says:

// Topic Rating Mod $txt['rate_adminTitle'] = 'Topic Rating Admin'; $txt['rate_adminHelp'] = 'This panel gives you possibilty to change the Topic Rating settings.'; $txt['rate_adminDesc'] = 'Topic Rating control panel.'; $txt['rate_defaultTitle'] = 'Default Settings'; $txt['rate_defaultDesc'] = 'Panel which allows you to change default settings for the mod.'; $txt['rate_boardsTitle'] = 'Board Settings'; $txt['rate_boardsDesc'] = 'Panel which allows you to change board specific settings for the mod.'; $txt['rate_enabled'] = 'Enable Topic Rating?'; $txt['rate_againType'] = 'Rate again type:'; $txt['rate_againTypeOp'] = 'Disable|Change Rating|Rate Again'; $txt['rate_againWait'] = 'Rate again wait time:'; $txt['rate_showMessageIndex'] = 'Topic Ratings on Message Index?'; $txt['rate_showMessageIndexOp'] = 'Disable|Exclude Sticky|Enable'; $txt['rate_excludedGroups'] = 'Excluded Groups:'; $txt['rate_reset'] = 'Reset Topic Ratings'; $txt['rate_resetConfirm'] = 'Are you sure to reset topic ratings?'; $txt['rate_resetSuccess'] = 'All topic ratings are reset.'; $txt['rate_resetFail'] = 'An Error Occured: Topic Rating could not be reset.'; $txt['rate_boardsName'] = 'Name'; $txt['rate_boardsModify'] = 'Modify'; $txt['rate_typeDefault'] = 'Default'; $txt['rate_typeLocal'] = 'Local'; $txt['rate_qtDisable'] = 'Disable'; $txt['rate_qtEnable'] = 'Enable'; $txt['rate_qtDefault'] = 'Set Default'; $txt['rate_qtLocal'] = 'Set Local'; $txt['rate_qtGo'] = 'Go!'; $txt['rate_qtConfirm'] = 'Are you sure?'; $txt['rate_undefined_type'] = 'Undefined type input.'; $txt['rate_undefined_id'] = 'Undefined ID input.'; $txt['rate_undefined_board'] = 'Undefined board input.'; $txt['rate_missing_info'] = 'There are missing info need to be passed.'; $txt['rate_not_allowed'] = 'You are not allowed to rate.'; $txt['rate_not_in_range'] = 'Your rating is not in range.'; $txt['rate_average'] = 'Average Rating'; $txt['rate_topicNew'] = 'Rate Topic:'; $txt['rate_topicAgain'] = 'Change your rate:'; $txt['rate_topicGo'] = 'Go!'; $txt['rate_logTitle'] = 'Rating Log'; $txt['rate_logRate'] = 'Rating'; $txt['rate_logTime'] = 'Time'; // Topic Rating Mod

My forum is www.megansmadams.com/forum

Title: Re: Rate That Topic
Post by: [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.
Title: Re: Rate That Topic
Post by: TechPrince on August 30, 2008, 07:28:55 AM
I am using Musiconica Theme (http://custom.simplemachines.org/themes/index.php?lemma=139)
Title: Re: Rate That Topic
Post by: Rifugio on August 30, 2008, 06:59:29 PM
I've got to say SiNaN that this is a wonderful and very well thought out Mod - I've changed your stars slightly on my site by making the non rated stars black and white for further contrast which looks neat in the default scheme.

Quick question if I may - currently the system does not allow users to rate locked topics is there a way round this, because it would be very nice if my members could rate these topics as well?

Fantastic work!
Title: Re: Rate That Topic
Post by: jeri on August 30, 2008, 08:52:42 PM
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!!!!
Title: Re: Rate That Topic
Post by: Mouthrax on September 03, 2008, 10:14:34 AM
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?
Title: Re: Rate That Topic
Post by: Marcus Forsberg on September 03, 2008, 02:01:15 PM
Looks great.

But I don't think that it's something that I need right now ;)
Title: Re: Rate That Topic
Post by: [SiNaN] on September 03, 2008, 05:47:38 PM
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.
Title: Re: Rate That Topic
Post by: 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?
Title: Re: Rate That Topic
Post by: [SiNaN] on September 04, 2008, 10:16:31 PM
Have you enabled it for the boards you want to use it?
Title: Re: Rate That Topic
Post by: mrstime on September 05, 2008, 06:41:03 AM
I thought I did.  I had tried just about every option I could think of. 
Title: Re: Rate That Topic
Post by: [SiNaN] on September 05, 2008, 06:54:35 AM
Can you provide me an admin account via pm to check it?
Title: Re: Rate That Topic
Post by: Adish - (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 am too much interested...please... would be great stuff to add in.... :)
Title: Re: Rate That Topic
Post by: [SiNaN] on September 05, 2008, 07:34:51 AM
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.
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on September 05, 2008, 08:12:22 AM
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 ?

Title: Re: Rate That Topic
Post by: mrstime on September 05, 2008, 10:21:52 PM
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
Title: Re: Rate That Topic
Post by: chrisb on September 05, 2008, 11:25:48 PM
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.
Title: Re: Rate That Topic
Post by: mrstime on September 05, 2008, 11:27:12 PM
I have tried that and yet there is nothing. 
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on September 05, 2008, 11:31:33 PM
go to the boards settings over there which is just next to that tab.. enabale it in the specific boards and check it.
Title: Re: Rate That Topic
Post by: mrstime on September 05, 2008, 11:40:45 PM
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. 
Title: Re: Rate That Topic
Post by: mrstime on September 05, 2008, 11:46:27 PM
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
Title: Re: Rate That Topic
Post by: chrisb on September 06, 2008, 02:09:42 AM
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
Title: Re: Rate That Topic
Post by: Wajalot on September 07, 2008, 06:15:04 PM
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
Title: Re: Rate That Topic
Post by: [SiNaN] on September 07, 2008, 07:15:22 PM
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.
Title: Re: Rate That Topic
Post by: Rifugio on September 07, 2008, 08:24:08 PM
Thanks SiNan that fix for rating locked topics worked fine.  I hadn't realised that was a feature and not something to do with the way SMF handles locked topics.  This is a wonderful mod!  The forum stats things was something wondering about to - it would certainly be one of the more useful indicators, after all if someone is motivated to rate a topic it requires a bit more thought than just opening it :)
Title: Re: Rate That Topic
Post by: Wajalot on September 09, 2008, 12:51:10 PM
Hi [SiNan]

Many thanks for your response. Also for thinking about the idea to add stats for the mod. May I ask you when do you expect to make a new realease?

In the meantime, is there any field in the database where to pickup the overall votes for a post and to see a summarize of the post which have been voted?

Thanks again
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on September 09, 2008, 03:33:10 PM
Quote from: F.L.A.M.E.R on September 05, 2008, 08:12:22 AM
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 ?

Blah... Any reply over this ? comment ?
Title: Re: Rate That Topic
Post by: [SiNaN] on September 11, 2008, 10:36:58 AM
Wajalot:

I'm not sure, when I can find some time for this.

Couldn't understand your second question.

F.L.A.M.E.R:

You could do that with some Js and AJAX but unfortunately I don't like Js and don't know AJAX.

As a note for all; anyone who wants can take over the mod.
Title: Re: Rate That Topic
Post by: Anthems on September 13, 2008, 10:09:22 AM
[SiNaN]

Is it possible to make some changes (or create a different one based on that) in that mod to make it more formal and more accurate? I mean, instead of having stars, it would have actual numbers and the rates would be from 1 to 10.

If you vote 5 stars and 4 stars in a topic, you get 4.5 stars total. But the topic will be 5 stars rated because it doesn't have 4.5.

Probably is something that is not possible to accomplish, but you know it better than I do  :D

Bye
Title: Re: Rate That Topic
Post by: Adish - (F.L.A.M.E.R) on September 13, 2008, 12:54:12 PM
Quote from: [SiNaN] on September 11, 2008, 10:36:58 AM
F.L.A.M.E.R:

You could do that with some Js and AJAX but unfortunately I don't like Js and don't know AJAX.

As a note for all; anyone who wants can take over the mod.

atleast u know something abt it... but m a 0 in that.. :( anyone who can help him if sinan wants to add in these things ?
Title: Re: Rate That Topic
Post by: erosolmi on September 25, 2008, 06:25:58 PM
I get error on:

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification .\Sources/Display.php Test successful
3. Execute Modification .\Sources/MessageIndex.php Test successful
4. Execute Modification .\Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/Display.template.php Test failed
6. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Extract File .\Sources/RateAdmin.php 
10. Extract File .\Sources/Subs-Rate.php 
11. Extract File ./Themes/default/RateAdmin.template.php 
12. Extract File ./Themes/default/images/tr0.png 
13. Extract File ./Themes/default/images/tr1.png 
14. Extract File ./Themes/default/images/tr2.png 
15. Extract File ./Themes/default/images/tr3.png 
16. Extract File ./Themes/default/images/tr4.png 
17. Extract File ./Themes/default/images/tr5.png 
18. Execute Code install.php

Is there something I can check/do in order to install this mod. I would really like it working on my forum.

Thanks a lot
Eros
Title: Re: Rate That Topic
Post by: SunilDVR on September 29, 2008, 10:53:17 AM
Hi [SiNaN],

Firstly - great mod, thank you for taking the time to make it!

I've got a number of users who are using the Helios Multi theme, and I'm a little stuck in terms of getting it to show up in that.

I've tried making the required edits to the theme files described here (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.5), namely:

1) Two changes to ./Themes/default/Display.template.php

2) One change to ./Themes/default/MessageIndex.template.php

i.e. three edits in total. However, only the first can be changed - the second change to ./Themes/default/Display.template.php (<td colspan="3" class="smalltext">'; to <td colspan="4" class="smalltext">';) as well as the entire change to ./Themes/default/MessageIndex.template.php cannot be done because the theme file seems significantly different.

Any guidance you can offer is very much appreciated,

Thanks,

Sunil
Title: Re: Rate That Topic
Post by: [SiNaN] on September 29, 2008, 05:14:23 PM
erosolmi:

You can ignore the error and make the edits in Display.template.php file manually, using the manual installation instructions here (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.6). But do not forget to take back-ups of the files being edited, just incase.

SunilDVR:

Attach the files which you couldn't make the edits manually.

Title: Re: Rate That Topic
Post by: SunilDVR on September 29, 2008, 06:35:40 PM
Quote from: [SiNaN] on September 29, 2008, 05:14:23 PM
SunilDVR:

Attach the files which you couldn't make the edits manually.



Hi [SiNaN],

Please find attached blank (i.e. unchanged) copies of the Helios Multi theme's MessageIndex.template.php and Display.template.php files.

Thank you for your assistance!

Sunil
Title: Re: Rate That Topic
Post by: Hinchy on October 01, 2008, 07:52:34 PM
Is there any way to use this in conjunction with SSI? What I am trying to do is have users be able to rate forum threads from pages on the site associated with specific forum threads. Am I making any sense?
Title: Re: Rate That Topic
Post by: Wajalot on October 06, 2008, 09:04:57 AM
Hi [SiNaN]

I dont want members can rate ther own topics, how can i do it?

Thanks!!
Title: Re: Rate That Topic
Post by: sakura1998 on October 12, 2008, 08:23:50 PM
Hi,

I'm having trouble with this in my forum - I'm getting the 'Unable to load the 'rateadmin' template' error message (I have searched and found and applied the fix in this thread, but the error is still occurring)

I've attached the RateAdmin.php file (thinking that's the most likely offender...)


Any ideas?

Title: Re: Rate That Topic
Post by: madman71 on October 16, 2008, 03:51:20 PM
Sinan,

Greets!

Running:
SMF 1.6
Kaledios theme running

Generally i install mods through the Admin control panel.  If i do not get any errors, i'll continue.  This mod here, i did not get any errors.


Everything seems to be working/displayed (all settings in the Admin panel too) except for the drop down box and GO button.

Keep in mind that this info is also missing in the SMF Default  Core  theme

The image below paints it all :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frapid-photo.com%2Fuploads%2F18untitled.JPG&hash=8e0cc5bc1a1a6dc4701317da20e1f5e7a70a9aac) (http://rapid-photo.com/uploads/18untitled.JPG)


Also, maybe when you can, can you help me here plz :)  Perhaps you just over looked it
http://www.simplemachines.org/community/index.php?topic=242233.msg1752871#msg1752871

thank you for your excellent work.  If you ever got paid for doing this, you deserve a raise :)
Title: Re: Rate That Topic
Post by: madman71 on October 16, 2008, 03:54:00 PM
ok, NM, i forgot to set it to LOCAL

all is good now :)
Title: Re: Rate That Topic
Post by: madman71 on October 16, 2008, 05:54:21 PM
Sinan,

I spoke too soon :(

I, for the life of me, can not get the stars to display.

I have the png files in themes/kelidos/images  folder and in the  Themes/default/images

Everything else is showing.  I have all groups able to use the rate function, I have Enable topic rating checked, and in board settings i have all green icons marked "local".

any ideas?
Title: Re: Rate That Topic
Post by: InternetMafia on October 16, 2008, 09:27:19 PM
Did the edits you posted on page two work for 1.1.6? .  Now I get the following errors.

Undefined ID input.         
Title: Re: Rate That Topic
Post by: MarkS on October 18, 2008, 06:21:37 AM
hi before i install this mod could you tell me if its poss to see a rate chart, i want to use it to find out the top rated photos each week, so i would need it to show this......

ie: there may be 7 post with 5 stars but 1 will have 1 vote and the other may have 10 votes will it show this...?
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 02:34:20 PM
hi i have installed this and get

Unable to load the 'rateadmin' template. (yes i have done wot you said on page one)

if i do wot you said on page one i get

Parse error: syntax error, unexpected T_EXIT in /home/photo131/public_html/Sources/RateAdmin.php on line 1


could you please help me out
thank you
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 02:55:38 PM
First post here: http://www.simplemachines.org/community/index.php?topic=256732.0

tells you how to fix that issue.
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 02:57:09 PM
there are 2 instances of  loadTemplate('rateadmin');

one is in caps the other isnt.

They both have to be in caps the "R" and the "A"
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 02:58:05 PM
and my post says i did that but dont worry i fixwd it the rate admin is there twice and i needed to change both

thanks mark
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 02:59:57 PM
ahhh, :)

good to hear you have it fixed.  Now only if someone can chime in to fix my missing stars issue  :(
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 03:01:03 PM
Quote from: madman71 on October 20, 2008, 02:57:09 PM
there are 2 instances of  loadTemplate('rateadmin');

one is in caps the other isnt.

They both have to be in caps the "R" and the "A"
yes thanks i found this out...;)



i now have the rate amin panel so i can see who rated wot and there total ratings

but is there a faster way to find wot post has the best rating over the board or will i have to manually check all the post.....


and can it be set in the forum so it only shows the stars when some one votes...?


thanks again mark
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 03:04:05 PM
That would be a nice addition to this mod.  I dont think it's possible with the way it's written now.  Sinan hasnt been here for a while so im not sure if you'll ever get that option.  Maybe someone knows how to do it.
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 03:13:28 PM
ok m8...........

one more thing to ask is how can i make it so my mods can see who voted ant idea...?
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 03:16:04 PM
could you tell me by doing this wot dose it do...?
Quote from: [SiNaN] on August 21, 2008, 01:49:33 PM
I got a tip right now and let's try it on your site.

MessageIndex.template.php

Find:

action=ratelog;id=

Replace:

action=ratelog;rateid=

Display.template.php

Find:

action=ratelog;id=

Replace:

action=ratelog;rateid=

RateAdmin.php

Find:

$topic_id = !empty($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0;

Replace:

$topic_id = !empty($_REQUEST['rateid']) ? (int) $_REQUEST['rateid'] : 0;

Then try clicking on those stars.
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 03:28:46 PM
Quote from: MarkS on October 20, 2008, 03:13:28 PM
ok m8...........

one more thing to ask is how can i make it so my mods can see who voted ant idea...?

Im do not think there is the option to set permissions for viewing who voted, but everyone can see who voted i believe.


not sure about your other question
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 03:41:38 PM
i tested it out and for me all it dose is stop the mod working lol.........says error when you click the stars
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 03:43:04 PM
are you talking about that code that you posted above?
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 03:55:48 PM
yes m8 sorry should have said it dose nothing for me......


ok i had a idea and need some ones help to do this

ok here goes

when a post has no votes it shows 5stars

i dont like it, i want it to only show stars when some one votes so could this bit of code that make it show this

be changed to show nothing at all.......?

please help thank you
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 04:01:05 PM
Did you activate in the admin panel?
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 04:05:37 PM
yes is did,,,

i dont think you unerstand me.....

i have it set to show in the forum and it shows the dull stars when no one has voted and the bright stars when some one dose vote, i dont want to see the dull stars i only want to see the stars when some one votes....


i have found a way to do this with out coding i have changed the .png to this a see though .png with no stars lol
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 04:29:24 PM
i have messed with all the .png files just to show the rate they have

IE: zero stars 1 star 2 stars and so on, so here they are fell free to use them
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 04:39:56 PM
id use them if i could get them to display. As of now it only displays numbers 0 - 5
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 04:50:07 PM
wot do you mean..? i am no expert
dose it work on the default theme...?
Title: Re: Rate That Topic
Post by: madman71 on October 20, 2008, 05:12:49 PM
Nope, stars do not work on any theme. Not even default :(
Title: Re: Rate That Topic
Post by: MarkS on October 20, 2008, 05:33:46 PM
Quote from: madman71 on October 20, 2008, 05:12:49 PM
Nope, stars do not work on any theme. Not even default :(

maybe the install did not go right have you done a re-install
Quote from: Wajalot on September 07, 2008, 06:15:04 PM

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
this would be a great add to a great mod and make my life very easy as we will use this to find the top rated photos each week

so how about it....?

Quote from: Wajalot on October 06, 2008, 09:04:57 AM
Hi [SiNaN]

I dont want members can rate ther own topics, how can i do it?

Thanks!!

allso i would too like to do this
Title: Re: Rate That Topic
Post by: MarkS on October 21, 2008, 02:04:13 PM
Quote from: [SiNaN] on September 11, 2008, 10:36:58 AM
As a note for all; anyone who wants can take over the mod.

has any one had a go at this i would like it to have a few more things like:

1,have permitions for mods so they can see the admin panel

2, show the top rated post with in any one week

3, show a rate table for the post rated

any one fancy giving this ago..........?

Title: Re: Rate That Topic
Post by: Wajalot on October 22, 2008, 06:56:07 AM
It seems like this mod is dead...

Another add could be the option of no one can reply a post before rating the post. Marks, I also have a digital photography page with votes for the bes t of the week. Actually, now i can´t use that option. What i´ve done is give permissions to mods to check the votes and they decide what photos are good enough to pass them to a gallery. But no the most rated one, cause we dont know wich one is.

Could be a very good improvement:

· Stats (most rate, and most rate in a week, in a month, in a year, even make categories, or most rated in a specific forum, etc)
· OPTION - People cannot vote themeselves
· OPTION - People cannot reply a post if they have not voted previously (for this one, should be good idea to have the rating box option inside the reply form)
· OPTION - To hide the stars until any vote is sent

If someone can do this...could be nice, i even would pay for it....

Cheers

Title: Re: Rate That Topic
Post by: [SiNaN] on October 22, 2008, 11:46:43 AM
Mod haven't died yet, but I don't have time anymore to update this mod.

http://www.simplemachines.org/community/index.php?topic=269092.0

People still requiring support; can you collect your problems in a post? I'll check them all tomorrow.
Title: Re: Rate That Topic
Post by: MarkS on October 22, 2008, 12:47:08 PM
Hi [SiNaN] 
thanks the mod is fine but for me i would love it to be taken to the next level
things i would like it to do

1, give permistions to mods to see the rateAdmin panel

2, People cannot vote themeselves

3,Stats most rated in a week/month/year

why i need this is i have this set in my gallery part of the forum so we use it to rate photos as my forum is photography
we want to put the top 10 voted threads/photos in to a weekly poll as a competetion we run

so some stats for this would be good as at the mo i have to manualy check every rated post, even cooler if it could do this and give me a rate table

NOTE the below image is not from my forum but is like how i would want it

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.inspiring-photography.com%2Fforum%2Fattachment.php%3Fattachmentid%3D6434%26amp%3Bd%3D1224189380&hash=dcd783f3f6f212621f6394c85d8670cf1fa11167)


For Wajalot  this is how to remove the no voted stars

Quote from: NIBOGO on August 28, 2008, 10:04:19 PM
Easy Way:

You can delete or change your "tr0.png" in your images dir

PHP Way:

Search in MessageIndex.template:

FIND:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])))
REPLACE:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])) && (!($topic['rating_average'] == 0)))



thanks mark
Title: Re: Rate That Topic
Post by: Wajalot on October 22, 2008, 03:29:13 PM
Quote from: [SiNaN] on October 22, 2008, 11:46:43 AM
Mod haven't died yet, but I don't have time anymore to update this mod.

http://www.simplemachines.org/community/index.php?topic=269092.0

People still requiring support; can you collect your problems in a post? I'll check them all tomorrow.

Ohh..., it´s very sad to hear that. I´m not good enough with php to handle a mod and also give support. This mod could be one of the greatest, but it's not finished. With the points mentioned by Marks inthe previous post could be done.... Hopefully someone take over the mod. As i said, even i'd pay for those improvements.
Title: Re: Rate That Topic
Post by: [SiNaN] on October 23, 2008, 11:49:23 AM
Quote1, give permistions to mods to see the rateAdmin panel
Create a new permission. (Related doc here (http://docs.simplemachines.org/index.php?topic=998)).

RateAdmin.php

Find:

isAllowedTo('admin_forum');

Replace:

isAllowedTo('your_permission');

If you mean the log, then you should change this:

isAllowedTo('moderate_forum');

Quote2, People cannot vote themeselves

Subs-Rating.php

Find:

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


Replace:

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

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

if($check['started'] == $ID_MEMBER)
return false;


Quote3,Stats most rated in a week/month/year

This needs time, that's what I don't have.
Title: Re: Rate That Topic
Post by: MarkS on October 23, 2008, 02:29:01 PM
thank you i have had a look at the link that you posted and it the mo its beond my skills
i have read it and better read it

i got stuck on the New language entries

i will give it another go soon but my heads massed in now.........
Title: Re: Rate That Topic
Post by: genieuk on October 28, 2008, 09:13:37 AM
Hi,

I had this error when i just installed and tried to rate:

Fix for "unable to load the 'rateadmin' template" error:

I noticed the fix and changed it in RateAdmin.php

i got another problem now.

When i go to a post and click the stars it takes me to the ratelog page, problem is it actually does not rate anything for some reason. nothing changes, no stars to show topic was rated or anything and nothing in the rate log.

Also when i hover mouse over the stars on the topic page they show as if they were one image, i mean i hover mouse over say the first star but it seems as it is the 5 stars is one image not seperate stars.

I am using SMF 1.1.6 installed via packaged manager with no errors, i changed rateadmin to RateAdmin as describe on the fix you provided, any solution to this?

Title: Re: Rate That Topic
Post by: MarkS on October 28, 2008, 09:17:35 AM
sounds like it working fine to me as you need to rate a topic here

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi333.photobucket.com%2Falbums%2Fm382%2Ftalomi6%2Fdeely.jpg&hash=2699685326e65c31f6a10d58fc65d0c66979f3cd)
Title: Re: Rate That Topic
Post by: [SiNaN] on October 28, 2008, 09:20:25 AM
Quote from: MarkS on October 28, 2008, 09:17:35 AM
sounds like it working fine to me as you need to rate a topic here

So everything is okay, or you have a problem?
Title: Re: Rate That Topic
Post by: genieuk on October 28, 2008, 09:25:57 AM
Rite i did not notice that i thought i had to click on the stars lol, i notice clicking on the stars takes you to the rate log page.

But i do have a problem thou, The message index that shows all the topics, after rating a topic i went to the message index and it does not display the stars on the topic message index?

Mathew
Title: Re: Rate That Topic
Post by: [SiNaN] on October 28, 2008, 09:29:46 AM
Check the mod settings if they are correctly set.
Title: Re: Rate That Topic
Post by: genieuk on October 28, 2008, 09:35:21 AM
Quote from: [SiNaN] on October 28, 2008, 09:29:46 AM
Check the mod settings if they are correctly set.

Works perfectly thank you :)

My fault i did not realise my custom theme has it own messageindex.template.php file.

Thanks for another great mod ;)

Mathew
Title: Re: Rate That Topic
Post by: [SiNaN] on October 28, 2008, 09:53:17 AM
You're welcome. ;)
Title: Re: Rate That Topic
Post by: MarkS on October 28, 2008, 10:00:38 AM
cool glad you got it working m8....


now [SiNaN] 
how about them stats i have put a payed request in the mod forum fancy it...?
Title: Re: Rate That Topic
Post by: [SiNaN] on October 28, 2008, 10:06:38 AM
Quote from: MarkS on October 28, 2008, 10:00:38 AM
now [SiNaN] 
how about them stats i have put a payed request in the mod forum fancy it...?

Moved it to Help Wanted (not for support) (http://www.simplemachines.org/community/index.php?board=50.0) board.

As I said, I don't have time unfortunately. If I had any, I'd have done it for public use.
Title: Re: Rate That Topic
Post by: madman71 on October 28, 2008, 11:09:36 AM
Sinan,

What would keep the stars from being displayed?
It will not display on my theme or on the default theme.  The mod only displays number 0-5.
I have added the png files to almost every image directory out of frustration trying to get them to display. LOL
Everything else works.  I can pm you ftp details if you like.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frapid-photo.com%2Fuploads%2F30untitled.JPG&hash=7c7732b76a7c61ac2eee9949f8d8fe6fa6fa9757) (http://rapid-photo.com/uploads/30untitled.JPG)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frapid-photo.com%2Fuploads%2F4untitled2.JPG&hash=0f2799057593846538d43167041f23667b207039) (http://rapid-photo.com/uploads/4untitled2.JPG)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frapid-photo.com%2Fuploads%2F1untitled3.JPG&hash=b36890c5d402196e4e258dc0ff4e75b02aa95151) (http://rapid-photo.com/uploads/1untitled3.JPG)
Title: Re: Rate That Topic
Post by: [SiNaN] on October 28, 2008, 11:11:26 AM
Okay, you can send me.
Title: Re: Rate That Topic
Post by: madman71 on October 28, 2008, 01:03:40 PM
PM sent :)

and thanks
Title: Re: Rate That Topic
Post by: imno007 on December 01, 2008, 05:15:22 PM
Seems to be running proper with 1.1.7 but is every post suppose to start with a 5-star rating by default? Because mine do....
Title: Re: Rate That Topic
Post by: MarkS on December 01, 2008, 05:18:04 PM
they all have a dull five star as some one rate the stars come brighter....... or you can remove the stars till some one votes

like so http://custom.simplemachines.org/mods/index.php?action-download;mod=1313;id=63409;image
Title: Re: Rate That Topic
Post by: KahneFan on December 01, 2008, 09:49:41 PM
Any chance this may be upgraded for 2.0? It appears to be an excellent mod.
Title: Re: Rate That Topic
Post by: SunilDVR on December 02, 2008, 10:51:59 AM
Quote from: KahneFan on December 01, 2008, 09:49:41 PM
Any chance this may be upgraded for 2.0? It appears to be an excellent mod.

I'm running this on 1.1.7 at the moment. I want to go to 2.0 in the long term, but a couple of mods which are very important to the forum in question - including this one - are not compatible.

So.... I'd very much like a 2.0-compatible mod as well, please!
Title: Re: Rate That Topic
Post by: imno007 on December 02, 2008, 04:19:57 PM
Quote from: MarkS on December 01, 2008, 05:18:04 PM
they all have a dull five star as some one rate the stars come brighter....... or you can remove the stars till some one votes

like so http://custom.simplemachines.org/mods/index.php?action-download;mod=1313;id=63409;image

Thanks for the reply, MarkS, much appreciated.
Title: Re: Rate That Topic
Post by: [SiNaN] on December 10, 2008, 06:19:48 AM
I don't think I'll have enough time to update this. Still looking for someone to take over the mod.
Title: Re: Rate That Topic
Post by: wildmck8 on December 12, 2008, 09:22:55 AM
Hello there,
I installed this mod on a 1.1.7 board and it worked fine.  Post installation I wanted to change the color of the stars a bit, so like a dummy I uninstalled the mod and deleted the files....pulled the .png files out of the zip file and changed them to the way I wanted it to look.  Reuploaded the mod and installed it.  For some reason, now when I enable the mod I have 10 stars.  I'm sure there is some line of code doubled somewhere, but not entirely sure where to fix it.

Looking back, I wish I had just pulled the images from the site, modified them and then repopulated them. Hindsight I guess.

Would appreciate any help on this.
Title: Re: Rate That Topic
Post by: [SiNaN] on December 17, 2008, 08:01:27 AM
Check the MessageIndex.template.php edit using this (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.7) manual installation instructions.
Title: Re: Rate That Topic
Post by: Phat^Trance on December 19, 2008, 12:56:02 PM
were is the option to activate this mod? cannot find it anywhere
Title: Re: Rate That Topic
Post by: cleanfiles on December 21, 2008, 04:46:36 PM
Fantastic mod, 5 star rating for this mod (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclean-files.net%2FThemes%2Fdefault%2Fimages%2Ftr5.png&hash=3b6557666d3f1d6b3a07efe012261fab43c6531a)
Title: Re: Rate That Topic
Post by: [SiNaN] on December 22, 2008, 09:44:17 AM
Phat^Trance:

Admin CP >> Topic Rating Admin

cleanfiles:

Thanks, glad you liked it.
Title: Re: Rate That Topic
Post by: kL on December 23, 2008, 05:55:55 AM
Cool mod. I've modified it a little though. I've hardcoded these features myself but I think you should add them as features to the admin cp:

1. Custom star images (or at least an option to have nothing at all displayed for 0)
2. Minimum number of votes for a topic rating to show (This way, one single person can't go around giving low ratings to topics, and the star rating is also representative of what more than just one person thinks about the topic.)

It's a little dirty but here's what I editted this part of Subs-Rate.php to look like

$numratings = mysql_num_rows($request);

mysql_free_result($request);

if(!empty($return))
$average = round(array_sum($return) / count($return));
else
return 0;
if ($numratings>9) // There have to be at least 10 votes for the topic rating to show
return $average;
else
return 0;


Screenshot of Message Index:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg71.imageshack.us%2Fimg71%2F1272%2Fpicture1wr6.jpg&hash=307bdd93246106082fda68794b03179ff4f1f489) (http://imageshack.us)

Screenshot of a thread:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg134.imageshack.us%2Fimg134%2F9773%2Fpicture2ym2.jpg&hash=ab1149b56780e5d784e01f09d67c0654ca5358aa) (http://imageshack.us)

I'm going to completely change the way it is in the thread with a simple click-to-vote thing (ajax).
Title: Re: Rate That Topic
Post by: KahneFan on December 23, 2008, 11:09:36 AM
I like the minimum vote needed, good idea.
Title: Re: Rate That Topic
Post by: foempspeedy on December 26, 2008, 09:17:29 PM
Hello , i cant see the select box at the right for rating
using 1.1.7 ,english and core theme..so dont understand why
no errors also.

Suggestions?
Title: Re: Rate That Topic
Post by: slinouille on December 27, 2008, 05:27:05 AM
Quote from: Blue Dream on December 10, 2008, 06:19:48 AM
I don't think I'll have enough time to update this. Still looking for someone to take over the mod.
Hello,
I've take over your mod to SMF2.0b4 :-)
It's a first version but seems to be fully functionnal ... soon on my 'in production" forum.
How do I proceed ?
Thks
SLiN
Title: Re: Rate That Topic
Post by: [SiNaN] on December 28, 2008, 03:44:50 AM
foempspeedy:

Make sure you enable the mod from Admin CP >> Topic Rating Admin

slinouille:

Great. When you get a stable package ready, pm me a link so that I can go over the codes to see if everything is okay. Then I'll make the needed arrangements.
Title: Re: Rate That Topic
Post by: foempspeedy on December 28, 2008, 11:49:07 AM
Quote from: Blue Dream on December 28, 2008, 03:44:50 AM


Make sure you enable the mod from Admin CP >> Topic Rating Admin

I did, on default, admins arent excluded but if i put local board settings on default, i see only stars ,no box to choose, if i put local enabled its solved..
Title: Re: Rate That Topic
Post by: Drummingdw on December 29, 2008, 04:05:14 PM
Greetings,

Any help with this mod would be greatly appreciated.  I've been up and down these posts with no solution.  I installed the mod with no errors, I do have the admin panel, I have made the mod active and enabled the boards however on my posts, I don't see the rate it option at all?  I tried manual installation also with no success? I'm currently using SMF 1.1.7

Thank you in advance for any help to get this mod to work.

Kev
Title: Re: Rate That Topic
Post by: cleanfiles on December 30, 2008, 09:21:25 AM
Hello again, I have this mod working great on 3 themes, but for the life of me I just cant get it working on Aa New Damage  (http://custom.simplemachines.org/themes/index.php?lemma=738). I moved all the necessary images and files to the theme folder just like I did with the other themes, the edits in the Display.template.php is where it all goes astray, the theme has very  different code to the other themes.
Anyways here's my files that needed manual edits.
Any help would be appreciated.
Title: Re: Rate That Topic
Post by: cleanfiles on December 31, 2008, 07:42:45 PM
Hmmm not looking to good then lol.
Title: Re: Rate That Topic
Post by: etonyali on January 01, 2009, 02:33:12 PM
it doesnt show it guys please help
i enable and put it to local did everything what ya said its just the theme i guess
Title: Re: Rate That Topic
Post by: cleanfiles on January 01, 2009, 05:00:53 PM
Ok I spent ages trying to get this working, I managed to get it to display ok but it wont go through with the rating. It works just right on all my other themes.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fnha10elfxaf76g0c3rx.png&hash=d61a2640bab1b58245a2c52a62cd60718391cba7)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fd2o2blevsvqn46hgoae.jpg&hash=a53cc53de20c82786bdd1dc15c097018861bb304)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fwlinceszh8h3jkc7io7b.jpg&hash=7dd5747d71bf2f7a6b90915aa9d76731bcd88239)

It just stays unrated.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fnha10elfxaf76g0c3rx.png&hash=d61a2640bab1b58245a2c52a62cd60718391cba7)

Attached is the new Display.template.php
Title: Re: Rate That Topic
Post by: cleanfiles on January 04, 2009, 11:18:00 PM
guess i will have to keep plodding along by myself, no support for this mod.......
Title: Re: Rate That Topic
Post by: KahneFan on January 04, 2009, 11:33:56 PM
Quote from: Blue Dream on December 10, 2008, 06:19:48 AM
I don't think I'll have enough time to update this. Still looking for someone to take over the mod.
Quote from: cleanfiles on January 04, 2009, 11:18:00 PM
guess i will have to keep plodding along by myself, no support for this mod.......
Title: Re: Rate That Topic
Post by: Rasyr on January 10, 2009, 08:49:25 AM
First of all, I wan to say that I think that this is a very cool Mod!! And it installed fine and without a single bit of trouble.

I did have one issue though -- If I set it to allow  for changing the rating, if a person selects "---" from the drop list, it give back an error message about missing a parameter or something. Anybody have any ideas on how to make be a "remove my rating" choice? Or even just a change to a zero.

Also, Has anybody created an SSI function for pulling the top 10 rated threads and displaying them in some fashion?

Thanks in advance!!
Title: Re: Rate That Topic
Post by: ke4obt on January 29, 2009, 09:21:23 AM
ok, on my test site, I'm running SMF 1.1.7 with a number of mods.
I installed Ratings with a little bit of needed manual installation. Now, when I click to go to the rating log, I get "An Error Has Occurred!  Undefined ID input." Also, when I try to change my settings in the Admin, it takes me directly to the main page of the forum - the forum index not the main page of the site.  The address bar shows what should be the address for the action/sub-action. EXCEPT, it shows them in lower case, not upper.
I've double checked the files that are edited and can't find anything missing. Since I've added maybe 2 or 3 mods after  I installed ratings, I wanted to make sure they didn't mess around with the code.
I have no clue where to start looking or what to look for. So, if anyone can help me out, I would greatly appreciate it.

Thanks in advance,
Flip
Title: Re: Rate That Topic
Post by: ke4obt on January 30, 2009, 08:46:49 AM
I did some more "testing" and research into my problem. The errors I'm getting in my Admin error log are all the same. I made a text file to make it a little easier to keep track of.
Here's what my errors are:

When in admin and click save for settings, get this error twice:

Quote
ke4obt   Today at 08:26:26 

http://hamradioadvisors.net/test2/index.php?action=RateAdmin;sa=defaultsettings;save 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


==================================

When in admin, trying to go to board settings, get this error twice:


ke4obt   Today at 08:29:17 

http://hamradioadvisors.net/test2/index.php?action=RateAdmin;sa=boardlist 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466



=================================

When trying to go to rate log from board:

1 - takes you to screen that shows: An Error Has Occurred! Undefined ID input.

2 - when category is collapsed/expanded, get these errors twice:

ke4obt   Today at 08:30:48 

http://hamradioadvisors.net/test2/index.php?action=collapse;c=1;sa=expand 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


   ke4obt   Today at 08:30:40 

http://hamradioadvisors.net/test2/index.php?action=collapse;c=1;sa=collapse; 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


The code that is on lines 455 through 482 in boardindex.template.php is
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}



This is the ONLY thing giving me an error. I'm trying to figure out why the file it says it has the error with is the boardindex.template.php. I have no clue where Rate that topic has the call for that file, if it even does. Or why it would.
So, Please help!!!!    :'(

Thanks,
The stumped ones - Flip & Mickey
Title: Re: Rate That Topic
Post by: M-DVD on January 30, 2009, 10:32:09 AM
Quote from: ke4obt on January 30, 2009, 08:46:49 AM
I did some more "testing" and research into my problem. The errors I'm getting in my Admin error log are all the same. I made a text file to make it a little easier to keep track of.
Here's what my errors are:

When in admin and click save for settings, get this error twice:

Did you have installed a MOD to chat?

If you have not already, try delete this:

, ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat']

Title: Re: Rate That Topic
Post by: ke4obt on January 30, 2009, 07:31:55 PM
M-DVD,
I have Flash Chat Integration Mod installed. I removed that section of the line and that stopped the errors from showing up in the forum error log. Also, it removed the listing from the users on line section in the stats section on the front page.
However, it STILL won't let me edit the settings, view the rate log or anything!! The only thing that changed is that I don't have to see my error log filling up. :)
For the moment, until I get it all worked out, this will have to work.
If I don't get it worked out so that Rate that Topic works correctly, I'll have to dump it - much as I hate to.

Thanks,
Flip
Title: Re: Rate That Topic
Post by: ke4obt on January 30, 2009, 08:22:13 PM
disregard my last post.
I downloaded the RateAdmin.php that Blue Dream had edited for somebody else back on page 2 or so. Uploaded that to my server, checked to see if it worked- it did. Reverted my edits for the boardindex.template.php and uploaded that too.
Now, it's all working without any errors!! YIPPEEEEEE!!!!!!!!!
I'll keep an eye on it for a couple of days to make sure that it doesn't mess up again.

Thanks again for the help, guess it just was a little something I missed in my edits - imagine that :)

Thanks,
Flip
Title: Re: Rate That Topic
Post by: [SiNaN] on January 31, 2009, 04:48:03 PM
cleanfiles:

I try to provide support as much as I can but I was lately On Hiatus. Do you still require assistance? If yes, what does work on your other themes, but broken in your custom theme?

Rasyr:

Thanks for the nice comments. I know that this mod is wide open for development but I don't have time for that. Hopefully slinouille will take over the mod soon.
Title: Re: Rate That Topic
Post by: TechPrince on February 11, 2009, 08:19:00 AM
I am back :P, installed this mod, edited display.template.php but getting nothing. Topic Ratings are enabled from the Settings, my member group is not excluded.

// Rate that Topic
echo '
<td width="20%">';
if(!empty($context['can_rate']))
{
echo '
<div class="smalltext" style="float:right;">
<form action="', $scripturl, '?action=rate" method="post" name="topicRating" accept-charset="', $context['character_set'], '">
', $context['can_rate'] == 1 ? $txt['rate_topicAgain'] : $txt['rate_topicNew'], '
<select name="rate">
<option value="">---</option>
<option value="1"', $context['user_rating'] == 1 ? 'selected="selected"' : '', '>1</option>
<option value="2"', $context['user_rating'] == 2 ? 'selected="selected"' : '', '>2</option>
<option value="3"', $context['user_rating'] == 3 ? 'selected="selected"' : '', '>3</option>
<option value="4"', $context['user_rating'] == 4 ? 'selected="selected"' : '', '>4</option>
<option value="5"', $context['user_rating'] == 5 ? 'selected="selected"' : '', '>5</option>
</select>
<input type="submit" name="rateTopic" value="', $txt['rate_topicGo'], '" />
<input type="hidden" name="topic" value="', $context['current_topic'], '" />
<input type="hidden" name="board" value="', $context['current_board'], '" />
</form>
</div>';
}
echo '</td>';


This is the code added in Musiconica Theme.

Output :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimagohosting.co.cc%2Fimage-DD61_4992D013.jpg&hash=f765ef21e639a3e028520f672226840d95eeb058)
Title: Re: Rate That Topic
Post by: TechPrince on February 11, 2009, 08:30:33 AM
OOPS i didnt enabled that board :P Problem Solved :)
Title: Re: Rate That Topic
Post by: [SiNaN] on February 11, 2009, 09:24:14 AM
Mod is taken over by slinouille (http://www.simplemachines.org/community/index.php?action=profile;u=68142).
Title: Re: Rate That Topic
Post by: shanksta13 on February 11, 2009, 12:31:34 PM
Few questions.  First off, looks great I just installed and it went through with out a glitch.

However, the star rating does not appear in the "unread posts" list.  Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).  Would it be possible to get these features worked out? 

I can provide screenshots if needed.
Title: Re: Rate That Topic
Post by: slinouille on February 11, 2009, 12:51:58 PM
I suggest it's for the version of the mod for SMF2 ?
QuoteHowever, the star rating does not appear in the "unread posts" list
I think I can add it in a next release.

Quote
Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).
I can provide screenshots if needed.
Yes please ! I don't see what you mean (sorry for english)
Title: Re: Rate That Topic
Post by: shanksta13 on February 11, 2009, 01:35:39 PM
Quote from: slinouille on February 11, 2009, 12:51:58 PM
I suggest it's for the version of the mod for SMF2 ?
QuoteHowever, the star rating does not appear in the "unread posts" list
I think I can add it in a next release.

Quote
Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).
I can provide screenshots if needed.
Yes please ! I don't see what you mean (sorry for english)

I'm running SMF 2.0 RC 1 If that was your question.  Here are some screenshots to help.  Also, I noticed in my message index that there is a line break between the title of the topic and the star images.  They should be in-line right?  I included a screenshot for that too (example 1)
Title: Re: Rate That Topic
Post by: KahneFan on February 11, 2009, 02:25:17 PM
The only settings that I see anywhere in my admin (RC1) are to enable ratings and to enable ratings on index (under modifications sections). I don't see any place to set permissions and for some reason my regular members can not vote. How do/can I allow my members to vote?
Title: Re: Rate That Topic
Post by: slinouille on February 11, 2009, 02:37:27 PM
@shanksta13: okay I see what you want ... good ideas ... I'll add them soom ... thanks  ;)

@KahneFan: ratethattopic has to be enabled by board.
Title: Re: Rate That Topic
Post by: KahneFan on February 11, 2009, 02:52:46 PM
I just looked in the board I've been testing in and it shows to be enabled.
Title: Re: Rate That Topic
Post by: shanksta13 on February 11, 2009, 03:21:20 PM
Actually, now that I look at it, I don't see the permissions anywhere and I'm having the same issue.
Title: Re: Rate That Topic
Post by: slinouille on February 11, 2009, 03:43:12 PM
Ok guys ... it seems I have badly manage my package versionning on this mod ... really sorry !
I've noticed that on my own site, this mod was not "working" as if I install the package from this site on a fresh install of SMF  :o ... oops ... !
I'll put in a few moment a corrected package.

For your permission problem, if you are in the board setting and permission, you'll see that the checkbox is checked. You have to save it if you want the mod to be enabled in your board. Indeed I don't why I put "status" checked on this chechbox  :-[

Soon corrected

Title: Re: Rate That Topic
Post by: slinouille on February 11, 2009, 04:02:15 PM
Ok new release 0.2.3 is available.

I really hope you like it  :P
Title: Re: Rate That Topic
Post by: KahneFan on February 11, 2009, 04:12:50 PM
Still not allowed to rate (as a member)
Title: Re: Rate That Topic
Post by: slinouille on February 11, 2009, 04:17:52 PM
Quote from: KahneFan on February 11, 2009, 04:12:50 PM
Still not allowed to rate (as a member)
Use new release and refresh cache
Title: Re: Rate That Topic
Post by: shanksta13 on February 11, 2009, 04:21:25 PM
I tried to clear the cache with the new install and it still isn't working.  Although I haven't actually found where the permissions are.  Could you tell us exactly where we can change the permissions?
Title: Re: Rate That Topic
Post by: KahneFan on February 11, 2009, 06:06:28 PM
Ditto: cleared cache, still doesn't seem to work.

And, suppose it has something to do with the issue that it's not enabled on the board; should the drop down disappear when it's not allowed on a certain board? If the drop down is there, but not enabled, that's asking for a bunch of members to notify us of an error which doesn't technically exist.
Title: Re: Rate That Topic
Post by: shanksta13 on February 11, 2009, 06:25:44 PM
Hey Kahne, were you able to find the permission for it at all?  I didn't see any permissions in the admin panel and I looked long and hard.  So I'm thinking maybe the edits that were supposed to make the thing show up in the admin panel aren't set up or working properly.  Meaning the permission is actually there, but there's no way to modify it currently from the admin panel.
Title: Re: Rate That Topic
Post by: KahneFan on February 11, 2009, 06:53:06 PM
The permissions are per board. If you go into each board and "modify" the board you'll see the new check box.

I even tried unckecking it --> save --> re-checking it --> save, and it still doesn't work for regular members.

I'm wondering if there should be a permission within the membergroups of "allow vote" or something in order to allow certain groups the right to vote.
Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 02:47:54 AM
Hello,

In order to use this mod on SMF2, here is how you have to do:
1- select in "Modification" to enable the ratethattopic mod.
2- go into Forum / Boards / Modify boards
3- select a board on which you want to authorized members to rate topics and click on "modify"
4- enable ratethattopic with checkbox
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fmods%2Findex.php%3Faction-download%3Bmod%3D1313%3Bid%3D86036%3Bimage&hash=61b085d8f59ee690ac5d6190aa5363500932aae7)
5- save

QuoteI'm wondering if there should be a permission within the membergroups of "allow vote" or something in order to allow certain groups the right to vote.
Perhaps but for the moment I've just tried to reproduce the exact SMF1 version.
Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 03:46:13 AM
Okay ... I've taken some time in order to check the install.php file ... and indeed I've found some mistakes that can explain your problems  O:)

I've uploaded new release 2.1.4 ... please test it and tell me if it's ok.
Title: Re: Rate That Topic
Post by: shanksta13 on February 12, 2009, 08:44:12 AM
Is it working for anyone else?  Still not working for me...
Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 09:25:23 AM
Quote from: shanksta13 on February 12, 2009, 08:44:12 AM
Is it working for anyone else?  Still not working for me...
very very strange ... I've installed a fresh SMF2rc1 on a fresh database ... and no problem this time

have you enabled RTT for a board? have you enabled RTT? Check if database things are ok ?
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 11:18:05 AM
Steps I took before reinstalling new mod...
I) Uninstalled previous version
II) Deleted previous version
III) (manually) Dropped .rt. table in db
IV) Installed new version

Quote from: slinouille on February 12, 2009, 02:47:54 AM
1- select in "Modification" to enable the ratethattopic mod. DONE
- note these are prechecked (should that be the case?)
2- go into Forum / Boards / Modify boards DONE
3- select a board on which you want to authorized members to rate topics and click on "modify" DONE
4- enable ratethattopic with checkbox DONE
- note with the new version this was now unchecked.
5- save DONE

Quote from: result
You are not allowed to rate.

I also tried unchecking everything, clearing cache, rechecking everything... same error result (as regular member)
Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 12:25:19 PM
Roooohhhhh sorry ... your explanation was really clear and I've finally understood  O:)

I've understood why ...

just to be sure, can you please copy the next file and replace the one existing (in Sources directory) ?

*****
Question : do you want that I add an option for enabling rating by membergroup also ?

SliN
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 01:07:05 PM
YAY!! That worked... rating by membergroup isn't needed for me, but others may like that option.

Also, as stated above, the stars are making a new row when they should be inline. I'll try to fix it for my version, but you may want to change it for the default mod.

edit: Even when a board is not checked for ratings, members can still rate them (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fipostyoupost.com%2FSmileys%2Fdefault%2Fdontknow.gif&hash=0824a10d1d54a78e07b6f7df2f42364b05062f5d)
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 01:30:35 PM
As for location, it is specific to my theme, but I actually put the stars in their own column.
Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 01:32:01 PM
Concerning the stars ... this is strange ... see what I have (ever under FF or IE7)

Concerning the fact that members can rate on a not "ratable" board is strange ... because I cant' reproduce that on my forum ::) I've tested with a "normal" member ... it seems ok on my side.

You still confirm ?
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 01:38:31 PM
This is a screenshot from a board which is not allowed for ratings.

It's strange, the stars don't show up within the post, but sure enough they display on the message list view...

I would think it would be good, if rating is not allowed, to not even display the drop down/submit for ratings.

Title: Re: Rate That Topic
Post by: slinouille on February 12, 2009, 04:22:40 PM
I see that you have done some modification of the mod ... the displaying of stars on boards depends on this variable "$context['topic_rating_enabled_for_this_board']"

Can you put an "echo $context['topic_rating_enabled_for_this_board'];" just to check what is the value you have ?
It should be 0 for disabled board an 1 for enabled board

Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 04:47:08 PM
I must've had old code when I did the first manual edit. I used the new codes and it appears to be correct now. Thanks!

Let me ask, I have that ratings in a <td> {code here} </td>, do you know what I would use to make that column disappear if ratings are not active on that board?
Title: Re: Rate That Topic
Post by: shanksta13 on February 12, 2009, 04:50:57 PM
Hey Kahne, when you get that code finished up with the extra column, can you post it here?  I think that extra column looks alot cleaner and would love to use it on my site.  Thanks man!
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 04:58:03 PM
I would, but I think most sites use a <div> container whereas the author of my theme used <table>'s.

hint/request: Maybe slinouille would modify it so that a column could/would appear when the ratings are enabled on a board(?).

It would also be nice if we could click on that new column to sort by ratings.
Title: Bugs on re-install
Post by: PerryM on February 12, 2009, 07:58:21 PM
The first thing I do with a new module is to 1) install it, 2) un-installed it, 3) install it again.

Your module gave the following error when installing for the second time:

Table 'm4inform_smf.log_rt' doesn't exist
File: /home/m4inform/public_html/smf/Packages/temp/installDatabase.php
Line: 35

So once you un- install it you are in trouble.

Hope this can be fixed since this is a fantastic module.
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 08:06:35 PM
For some reason, when you try to reinstall this mod you will need to manually delete that table from your database (backup first). I have not yet figured out if this is a 2.0x issue or not, but I've had this happen on other mods as well. Once you've manually deleted the table from your database, it will reinstall with no issues.
Title: Re: Rate That Topic
Post by: PerryM on February 12, 2009, 11:06:39 PM
Quote from: KahneFan on February 12, 2009, 08:06:35 PM
For some reason, when you try to reinstall this mod you will need to manually delete that table from your database (backup first). I have not yet figured out if this is a 2.0x issue or not, but I've had this happen on other mods as well. Once you've manually deleted the table from your database, it will reinstall with no issues.

Thanks, which table is it?
Title: Re: Rate That Topic
Post by: KahneFan on February 12, 2009, 11:11:28 PM
It should be listed as smf_log_rt
Title: Re: Rate That Topic
Post by: PerryM on February 12, 2009, 11:48:22 PM
Quote from: KahneFan on February 12, 2009, 11:11:28 PM
It should be listed as smf_log_rt

Thanks, deleted it and re-installed just fine.

I'll use this as this is really a great module.

Thanks much.
Title: Re: Rate That Topic
Post by: slinouille on February 13, 2009, 02:51:06 AM
@Kahne: great that it finally work ... and thank you for the support you gave to PerryM  ;)

Quotehint/request: Maybe slinouille would modify it so that a column could/would appear when the ratings are enabled on a board(?).

It would also be nice if we could click on that new column to sort by ratings.                      

Ok I'll do that ... I think also that it's a good thing to have in particular when the subject of a post is quite long.
For information, I've change the way to rate a topic by replacing the droplist by a "dynamic star rate" (much nicer)  ;)
Title: Re: Rate That Topic
Post by: slinouille on February 13, 2009, 05:15:45 AM
I've uploaded version 2.1.6

Changes are:
o new "rating selector"
o on messages index, the rating stars are in a dedicated column
o non members can't see the "rating selector"

For those who experiment  difficulties with upgrading database, you can use next SQL queries

ALTER TABLE <prefix>_messages ADD rate smallint(5) NOT NULL DEFAULT 0;
ALTER TABLE <prefix>_boards ADD rateTopic_board_enable tinyint(4) NOT NULL DEFAULT 0;
CREATE TABLE `<prefix>_log_rt` (
  `id_member` mediumint(8) NOT NULL default '0',
  `id_topic` mediumint(8) NOT NULL default '0',
  `rate` smallint(5) NOT NULL default '0',
  `time` text NOT NULL
);

Note : change "<prefix>" by your table prefix ("smf" by default).
Title: Re: Rate That Topic
Post by: PerryM on February 13, 2009, 08:54:35 AM
Love the floating star concept.

However the new module makes the first post of a thread look weird (smf 2.0 RC1)

Perry
Title: Re: Rate That Topic
Post by: jayman2 on February 13, 2009, 10:44:50 AM
Hi,
I think this mod is a great addition to a site.  I just have one question.  Only the highest rating shows.  What I mean is, if someone rates a topic a 5, then that's it.  It's over.  After that if 50 more people come along and 40 people only rate the topic between 1 and 3, the rating stays at 5 stars.  So it can be a very unpopular topic but it's going to retain that highest rating.  It only shows the number of votes, not what was voted.  Am I wrong, or am I missing something?
Title: Re: Rate That Topic
Post by: shanksta13 on February 13, 2009, 11:10:55 AM
What were the updates from 2.1.5 to 2.1.6?
Title: Re: Rate That Topic
Post by: slinouille on February 13, 2009, 01:00:05 PM
@PerryM: strange ... do you have a specific theme? are you using 2.1.6 release?

@jayman2: I've tested with 4 users ... I'm using an average of all ratings done by topic. So I think you have missed something. Indeed my code is doing a sum of all rates divided by the number of rates, which gives me the average.

@ shansta13: I've corrected some behaviors such as members could note vote (a big issue indeed), I've added a new way for rating, average rating is shown in a cdedicated column
Title: Re: Rate That Topic
Post by: PerryM on February 13, 2009, 01:35:35 PM
Quote from: slinouille on February 13, 2009, 01:00:05 PM
@PerryM: strange ... do you have a specific theme? are you using 2.1.6 release?
...

Yep, new install of RC1 and 2.1.6
Title: Re: Rate That Topic
Post by: jayman2 on February 13, 2009, 02:10:36 PM
Quote from: slinouille on February 13, 2009, 01:00:05 PM

@jayman2: I've tested with 4 users ... I'm using an average of all ratings done by topic. So I think you have missed something. Indeed my code is doing a sum of all rates divided by the number of rates, which gives me the average.

Thanks, slinouille.  I'm using it on my test site and I've only tested it with 2 users on one topic and I can't get an average that way, so I see your point.  I'm going to test it with more users.  Thanks for your reply.
Title: Re: Rate That Topic
Post by: Angie on Dialysis on February 14, 2009, 10:49:07 PM
So is this mod only for 2.0 beta or is it for 1.1.8 too?

There are no settings for the permissions. Don't see where we can change any permissions that are not there.

This is what we are seeing: (2 screenshots but in one image)

No drop down menu, no admin option for it .. just stars that gave an error til we changed the code using SiNaN's methods (http://www.simplemachines.org/community/index.php?topic=256732.0).. now it works but not correctly as the ratings don't save or list. We need support for this mod for this version which the mod site (http://custom.simplemachines.org/mods/index.php?mod=1313) says it does support ... And all your screenshots except 1 are for 2.0 though so really hard to even see what to change...  I see no admin panel of this mod at all and looked everywhere..

This was attempted on the theme: Dilber MC Theme by HarzeM. Is that why it won't work??
Title: Re: Rate That Topic
Post by: edi67 on February 15, 2009, 04:07:03 AM
seems to be very useful thx
Title: Re: Rate That Topic
Post by: edi67 on February 15, 2009, 07:08:05 AM
Everything is ok installing mod but with Neonnshoutbox your mod write me always this error in box:

QuoteNotice: Undefined index: topic in /home/crazyzone/data/www/crazyzone.biz/Sources/Load.php on line 1737

Quote//RateThatTopic mod
Line 1737   if ( $_GET['topic'] ){
      $context['html_headers'] .= '
         <link rel="stylesheet" type="text/css" href="'. $settings['default_theme_url']. '/css/rating.css" />';
   }

Some solution ?
Title: Re: Rate That Topic
Post by: M-DVD on February 15, 2009, 11:57:52 AM
if (isset($_GET['topic']))

:)
Title: Re: Rate That Topic
Post by: 6d4vdub on February 15, 2009, 08:04:56 PM
Love this Mod and only have one problem.

If I enable Topic Ratings on Message Index I get 15 stars next to each topic.

How can I get just 5 stars to show up there.

Thank You
Jack
Title: Re: Rate That Topic
Post by: slinouille on February 16, 2009, 03:19:49 AM
@Perry: Ok I've been able to reproduce your problem (seems to be avalable on IE ... and I'm not using IE). I'll do an update of the package very soon.

@edi67: yep I confirm what M-DVD had written ... that is corrected in next release.

@6d4vdub: I think you are using a "non standard" theme, no? if yes you have to adapt perhaps some CSS things ;)
Title: Re: Rate That Topic
Post by: slinouille on February 16, 2009, 05:21:21 AM
Version 2.1.7 has been released ... please give me your feedback  :)
Title: Re: Rate That Topic
Post by: Garry1953 on February 16, 2009, 06:46:44 AM
Version 2.1.7 Installs fine for me on RC1, and gives no errors in the logs.
Great Mod thanks :D
Title: Re: Rate That Topic
Post by: 6d4vdub on February 16, 2009, 07:55:30 AM
Quote from: slinouille on February 16, 2009, 03:19:49 AM


@6d4vdub: I think you are using a "non standard" theme, no? if yes you have to adapt perhaps some CSS things ;)


I'm using the Default theme SMF v1.1.8

Thank you
Jack
Title: Re: Rate That Topic
Post by: robinrobin on February 16, 2009, 09:17:00 AM
Even though the theme doesn't have any of the files that this mod modifies (it uses most of the default theme's files) there are no graphical changes anywhere in Crip's OrangeLine theme but in the ACP after the installation which was said to be successfully installed.
Title: Re: Rate That Topic
Post by: slinouille on February 17, 2009, 03:06:36 AM
@Garry1953: thank you

@6d4vdub: ahh SMF1.1.8!!! ... I've not created the mod for this version ... strange that you have some graphical troubles on a default theme. Perhaps need to reinstall ?

@robinrobin: sorry I didn't understand a word you've written.
Title: Re: Rate That Topic
Post by: robinrobin on February 17, 2009, 10:03:58 AM
lol, well let me try again then. Installing the latest version of this mod did not have any visible modifications to my theme, except the options in the admin control panel. I'm using OrangeLine by Crip and SMF 2 RC1. When i checked out how to install this mod manually for this version of SMF, i didn't see any files that the mod modifies that the OrangeLine theme has. This theme uses most of the Default theme's files, which got properly modified by the package installer. Yet, it is as the mod wasn't installed.

Any idea what's going on or how i can try and fix this?
Title: Bug on re-install
Post by: PerryM on February 17, 2009, 05:28:21 PM
Just installed 2.1.7 and still get the error:

Table 'm4inform_smf.log_rt' doesn't exist
File: /home/m4inform/public_html/smf/Packages/temp/installDatabase.php
Line: 35

When I install - un-installed- re-install.

I know how to delete the log_rt record from the mySql but I can't release this to my Admins until this is fixed.

Thanks for the effort.
Title: Re: Rate That Topic
Post by: slinouille on February 18, 2009, 02:25:16 AM
@PerryM: it seems that this probleme is a issue for SMF2rc1, not the mod. Indeed I've got this error with already installed mods.

@robinrobin: You must enable rating on the boards.
- go into Forum / Boards / Modify boards
- select a board on which you want to authorized members to rate topics and click on "modify"
- enable ratethattopic with checkbox(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fmods%2Findex.php%3Faction-download%3Bmod%3D1313%3Bid%3D86036%3Bimage&hash=61b085d8f59ee690ac5d6190aa5363500932aae7)
- save
And that's it ... it should work with the theme you are using  ;)
Title: Re: Rate That Topic
Post by: robinrobin on February 18, 2009, 10:18:51 AM
Ooh, i see! Thank you slinouille. The mod is looking real slick! Nice work!
Title: Re: Rate That Topic
Post by: PerryM on February 18, 2009, 12:14:43 PM
Quote from: slinouille on February 18, 2009, 02:25:16 AM
@PerryM: it seems that this probleme is a issue for SMF2rc1, not the mod. Indeed I've got this error with already installed mods.

...

This may be the case but I'm using 40+ mods and this is the only one that has problems of uninstalling and then installing again.
Title: Re: Rate That Topic
Post by: Filipina on February 27, 2009, 04:59:45 PM
Hello I have seen this  "Unable to load the 'rateadmin' template." error mentioned on this first page of the topic.  I also saw it mentioned on another post but was is the solution? I have tried both  'RateAdmin' and 'rateadmin' and i get the same error either way.

Anyone can offer me advice? :)
Title: Re: Rate That Topic
Post by: Lady Ambrosia on February 28, 2009, 01:38:42 AM
I also, am having the same issue, with the error "Unable to load the 'RateAdmin' template."  I have tried the solution mentioned in the first post, but still get the error, any ideas?
Title: Re: Rate That Topic
Post by: GazOutEast on March 03, 2009, 07:50:07 AM
Trying to install Rate that topic on SMF2 RC1 I get the following test fail on /Sources/Subs-Boards.php before install

Find [Select]
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.id_profile,
Add After [Select]
b.rateTopic_board_enable,

I notice that the find string actually has - b.member_groups, b.member_groups_view, b.id_theme, - in it, that is " b.member_groups_view, " is not present in the search string.

I think this is an optional setting within the SMF admin panel for whether or not to show groups online - Can't find it now to try turning it off (just spent 30 minutes looking for it)

If I'm right about that, then install XML will need an either / or search

Gaz


Title: Re: Rate That Topic
Post by: GazOutEast on March 03, 2009, 08:18:24 AM
Re: my last post - it seems to be a conflict caused by the View-only Boards mod

This would suggest the install order is for the ratings mod THEN the view-only mod because of the code

Off to test that theory

Gaz
Title: Re: Rate That Topic
Post by: GazOutEast on March 03, 2009, 08:49:20 AM
Yup - that did it - if you have the " view-only boards " mod installed, you need to uninstall it, then install the Rate that Topic mod and enable it, then reinstall the view-only boards mod.

Installs and works perfectly if you do that

Gaz
Title: Re: Rate That Topic
Post by: Anub1s on March 04, 2009, 07:52:27 PM
erm im kinda missing this ultimate admin pannel for this mod someware in the new version.

im using rc1 and its noware to be seen.

strange realy as i want to restrict ratings to only acouple of groups not all. and there is nothing in the permisions section.

Title: Re: Rate That Topic
Post by: giovannie_a2a on March 08, 2009, 05:53:10 PM
I am using the Runet template (SMF 2.0 RC1)

What should I change in Display.template.php, MessageIndex.template.php & ManageBoards.template.php..

Because the Default line's at this mod are not the same as in Runet's phpfiles..
Title: Re: Rate That Topic
Post by: DeviDarkL on March 18, 2009, 07:54:08 PM
Great Mod ;)

Here is the Portuguese Translation:

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin mod RatingTopic
$txt['rateTopic_allow'] = 'Activar a Classificação de Tópicos no fórum?';
$txt['rateTopic_enable_message_index'] = 'Classificação de Tópicos no Índice dos Posts?';
$txt['rateTopic_go'] = 'Ir!';
$txt['rateTopic_New'] = 'Classificar Tópico:';
$txt['rateTopic_Again'] = 'Classificação que deste:';
$txt['permissiongroup_rateTopic'] = 'Classificação de Tópicos';
$txt['rateTopic_votes'] = 'votos';
$txt['rating'] = 'Classificação';

$txt['rate_undefined_type'] = 'Tipo da entrada não definida.';
$txt['rate_undefined_id'] = 'ID da entrada não definida.';
$txt['rate_missing_info'] = 'Falta informação que precisa de ser aprovada.';
$txt['rate_not_allowed'] = 'Não estás autorizado a Classificar um Tópico.';
$txt['rate_not_in_range'] = 'A tua Classificação não se encontra dentro de alcance.';

$txt['rateTopic_board_enable'] = 'Activar Classificações de Tópicos';
$txt['rateTopic_board_enable_desc'] = 'Esta opção permite classificar os tópicos que os utilizadores estão a ler.';
//End mod RatingTopic
]]></add>
</operation>
</file>
Title: Re: Rate That Topic
Post by: slinouille on March 19, 2009, 01:36:13 PM
@Gaz : thank you for installation suggestion

@giovannie_a2a : try to follow install.xml file to adapt it

@DeviDarkL : thank you! I'll implement that in next release
Title: Re: Rate That Topic
Post by: C4G-TK on March 22, 2009, 11:38:43 PM
I've installed this on my forum and it looks to be working correctly.  The forum is V2 RC1.  I had no fails show up when installing, but I did get the following error (attached) in my Error Log when I checked just after installing.  What do I need to do to correct this?  Thanks!

Title: Re: Rate That Topic
Post by: slinouille on March 23, 2009, 03:50:21 AM
@C4G-TK: it seems to be an error generated during database modification. Can you please check those 3 points:
1- do you have a table "log_rt" with 4 fields (id_member, id_topic,  rate, time)
2- check that in table 'boards", the new field "rateTopic_board_enable" is created
3- check that in table "messages", the new field "rate" is created

Thanks

SliN
Title: Re: Rate That Topic
Post by: C4G-TK on March 23, 2009, 10:33:42 AM
First, thanks for replying to my post.   :)

Ok, let's start with the good news and go to the "I have no clue news"   ;D


Quote from: slinouille on March 23, 2009, 03:50:21 AM
2- check that in table 'boards", the new field "rateTopic_board_enable" is created

The Boards DB looks good to go.  I don't see anything wrong there.  Yay!
(attached a pic for confirmation)

Ok, that was the end of the good news...


Quote from: slinouille on March 23, 2009, 03:50:21 AM
1- do you have a table "log_rt" with 4 fields (id_member, id_topic,  rate, time)

I do have a table created named "log_rt" with the 4 fields.  But, I'm not sure if this is a problem or not because under indexes it says "No defined indexes".
(attached a pic)


Quote from: slinouille on March 23, 2009, 03:50:21 AM
3- check that in table "messages", the new field "rate" is created

I do have a the "messages" table with the "rate" field created.  But, once again I have three warnings.

a- Unique and Index keys should not both be set for column "id_topic"

b- Unique and Index keys should not both be set for column "id_member"

c- More than one Index key was made for column "id_member"




How do I proceed with correcting these?
Title: Re: Rate That Topic
Post by: slinouille on March 24, 2009, 03:54:54 AM
I'm not an mysql expert, but for me those warnings are not the cause of your problem.
The warning you have on log_rt table is normal due to the fact I've not created an index in this table ... this is what I wanted (in fact I forgot that but it will only have a performance impact when running queries on this table ... it is corrected for next release).
Concerning the other warning, this is not depending on the mod (but I don't have those warnings in my phpmyadmin either that I've got the same indexes ... must depend on an option in phpmyadmin).
All I see is that the need fields have been created which is good.

So the trouble you experiment with the mod is not coming from the DB installation ... are you sure you have activated in each board("Modify boards" page)?
Title: Re: Rate That Topic
Post by: C4G-TK on March 24, 2009, 10:57:21 AM
I guess I'll just keep an eye out for more errors.  Like I said, it installed without any "Tests Failed" and seems to be working properly.  But, for some reason I got those errors.  Maybe it was something to do with the cache?  (I have no clue there.)  Anyway, great mod and thanks for looking into it with me.
Title: Re: Rate That Topic
Post by: Lady Ambrosia on March 25, 2009, 07:22:36 PM
Okay I have done a manual install for this mod, and even did the solution mentioned in the first post, but I still keep getting this error in my Admin pannel when I try to go to Rate That Topic:

"Unable to load the 'RateAdmin' template."


Can someone PLEASE help me with this, as I'd love to use this mod, but as it is I can't do anything with it.
Title: Re: Rate That Topic
Post by: genusis on March 31, 2009, 11:43:58 AM
umm when i install rate that topic it come out with an error for two parts where it needs to add the b.rateTopic_board_enable, in the load.php and
b.rateTopic_board_enable, in the Subs-Boards.php. when this didn't happen i manually added them in but the issue is that when i did this and set it to rate that the starts or rating stuff did not appear where it was set too. Any ideas how to get this to work?

http://spirea.kozlowski.ws/forum
Title: Re: Rate That Topic
Post by: TechPrince on April 07, 2009, 01:26:14 PM
Topic owner should not allowed to vote :|
Title: Re: Rate That Topic
Post by: Tanks on April 20, 2009, 05:02:24 AM
I get this error when more users are trying to rate the same topic.. First user who rates it gets no error !


Duplicate entry '19573' for key 'PRIMARY'
File: \www\Sources\Subs-RateTopic.php
Line: 72


Please advice on how to fix it, cheers.
Title: Re: Rate That Topic
Post by: edi67 on April 21, 2009, 05:16:15 AM
works perfectly thx ;)
Title: Re: Rate That Topic
Post by: slinouille on April 21, 2009, 06:06:43 AM
@Lady Ambrosia and genusis: have you manage a solution? do you still need help?

@TechPrince: nice suggestion ... I'll add it!

@Tanks: latest version? please check if table "log_rt" is well installed

@edi67: thank you for your return of experience ;)
Title: Re: Rate That Topic
Post by: Tanks on April 21, 2009, 06:20:38 AM
Yes i use latest version ( 2.1.8 ) - and i use 2.0 RC1 - Mod installed with no errors.

log_rt is in my database and it is being filled with rates.

Problem is that when the next user tries to rate a topic that has already been rated by someone else they get that error.

Any idea on how to fix it ? :)
Title: Re: Rate That Topic
Post by: Angelotus on April 21, 2009, 06:37:19 AM
Hi, nice mod. Trying to install it on my 2.0 boards, but keep getting this error:


Table 'weeklyfun_nl.boards' doesn't exist
File: /customers/weeklyfun.nl/weeklyfun.nl/httpd.www/forum/Packages/temp/installDatabase.php
Line: 74


I need some help please!
Title: Re: Rate That Topic
Post by: slinouille on April 21, 2009, 07:43:44 AM
@Angelotus: Hum...  'weeklyfun_nl.boards' ... I imagine that you have check that it exists (but I think SMF couldn't run without) ... perhaps that the dot in the name is not appreciated by the installdatabase script. But I'm not convinced because it is using the smf variable "table prefix" ...
I'll take a look.

@Tanks: I've not noticed such behaviour on my forum ... can you provide an url and a test account (by PM)?
Title: Re: Rate That Topic
Post by: Tanks on April 21, 2009, 07:47:30 AM
Yes i will send you a PM !

Don't mind going to my site. I removed the mod as it was causing to many errors.

Trying to sort ratings on other pages of messageindex will also cause errors. You can only sort on page 1.

Great mod - To bad it will not work on my forum
Title: Re: Rate That Topic
Post by: bicchet on April 21, 2009, 02:38:27 PM
Quote from: Tanks on April 20, 2009, 05:02:24 AM
I get this error when more users are trying to rate the same topic.. First user who rates it gets no error !


Duplicate entry '19573' for key 'PRIMARY'
File: \www\Sources\Subs-RateTopic.php
Line: 72


Please advice on how to fix it, cheers.


I have exactly the same problem, tested only in local server by now.
Title: Re: Rate That Topic
Post by: victoryrock on April 21, 2009, 03:06:48 PM
Where is the setting so that Guests can add a rating?

Thanks,
victoryrock
Title: Re: Rate That Topic
Post by: Babyloniia on April 22, 2009, 12:38:17 PM
Thanks for a great mod, i have after hours managed to get it installed on extreme 6 forum SMF version 1.1.8

Under rate that admin panel ive enablet rating, but i cant add rating when i try greating a new topic or rate topics that was made before this mode

What do i do rong? it seeems to installed correctly with the mod emulator

Sorry for my bad english.
Title: Re: Rate That Topic
Post by: Babyloniia on April 22, 2009, 02:20:02 PM
I have the rating system enabled by defualt for ALL i didnt change any to local.
Title: Re: Rate That Topic
Post by: webline on April 23, 2009, 06:40:21 AM
Quote from: bicchet on April 21, 2009, 02:38:27 PM
Quote from: Tanks on April 20, 2009, 05:02:24 AM
I get this error when more users are trying to rate the same topic.. First user who rates it gets no error !


Duplicate entry '19573' for key 'PRIMARY'
File: \www\Sources\Subs-RateTopic.php
Line: 72


Please advice on how to fix it, cheers.


I have exactly the same problem, tested only in local server by now.


me to same error... i am happy is on a testings erver
Title: Re: Rate That Topic
Post by: Babyloniia on April 23, 2009, 10:07:09 AM
Anyone who know my problem?
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 11:34:55 AM
For those who have the "duplicate entry error", did you have this mod previously installed?
Is the id different than the one shown on Tanks example?
Where is writting this error? (in the forum page directly or in the errors log)
When installing it on a test forum, is it a clean database or an existing database?
Can some one, send me the sql extraction of table "smf_log_rt"?

Thanks for any more details because, I jsut don't manage to reproduce it on my test forum?

SliN
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 12:57:53 PM
okay guys I think I found the problem!
I think it's a problem in the installdatabase, I've put a "primary" key on field "id_topic" which is wrong.

FOr those who experiment the problem, please:
- open phpmyadmin
- in your database, open structure of table "smf_log_rt"
- you should see in the table called "Index", a PRIMARY key on "id_topic"
- delete this primary key

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.vag-technique.fr%2Ffichiers%2Fimages%2Fbug_rtt.png&hash=d9b81c17998f9307c2d8d79d1b9b52e94e613421)

That's it !

I'll update the package tonight.

SliN
Title: Re: Rate That Topic
Post by: Tanks on April 23, 2009, 01:38:45 PM
Works perfect - thanks for the fix ;)

Now on to the next issue:

When you try to sort topics after rating on other pages than page 1 you will get this error:


Unknown column 'mf.rate' in 'order clause'
File: \Sources\MessageIndex.php
Line: 360


This happens on page 2 3 4 5 6 7 ... 111 112 123 etc etc.... but not on page 1
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 02:02:12 PM
Thanks :)

Version 2.1.9 have been uploaded. It is only a package integrating this correction.
Title: Re: Rate That Topic
Post by: Tanks on April 23, 2009, 02:05:56 PM
Look up - i wrote about another bug :)

Same thing will happen if you sort after rating and then click on page 2, 3 or 4... you get the picture
Title: Re: Rate That Topic
Post by: bicchet on April 23, 2009, 02:51:00 PM
Quote from: slinouille on April 23, 2009, 12:57:53 PM
okay guys I think I found the problem!
I think it's a problem in the installdatabase, I've put a "primary" key on field "id_topic" which is wrong.

It  worked for me too, many thanks!
Title: Re: Rate That Topic
Post by: Sudhakar Arjunan on April 23, 2009, 02:54:54 PM
Good Update slinouille.
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 03:03:51 PM
Concerning the second bug found by Tanks, here is the new package correcting it
Can someone use it, it seems ok on my own forum.

Thanks Tanks for your debugging session  ;D

Title: Re: Rate That Topic
Post by: Tanks on April 23, 2009, 03:06:47 PM
Ouch - Do i really have to uninstall.. for some reason it tells me that uninstall fails on /Sources/ManageSettings.php

So is there a manual fix to this issue so i don't have to uninstall ?

Cheers
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 03:17:36 PM
Yes there is :

File : $sourcedir/MessageIndex.php
Replace
'rating' => 'mf.rate',
By
'rate' => 'mf.rate',

File : $themedir/MessageIndex.template.php
Replace
<th class="catbg3 headerpadding" width="80px" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=rating', $context['sort_by'] == 'rating' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['rating'], $context['sort_by'] == 'rating' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
By
<th class="catbg3 headerpadding" width="80px" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=rate', $context['sort_by'] == 'rate' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['rating'], $context['sort_by'] == 'rate' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';

My variable name was not the good one.

SliN
Title: Re: Rate That Topic
Post by: Tanks on April 23, 2009, 03:24:12 PM
OK you have the cool support that all good mod's deserve, thanks. :)

I found out that i was unable to uninstall because of another mod that had changed the /Sources/ManageSettings.php

Fix that and uninstalled fine.. then download your new version.. try to install and get an error


Database Error: Can't DROP 'PRIMARY'; check that column/key exists
Apply Filter: Only show the errors from this file
File: Packages/temp/installDatabase.php
Line: 66


This must be because i deleted that primary thing earlier LOL :D

So now i installed the 2.1.8 version and I'm going to do the edits manual :)

Edit: Did the manual changes but still getting the same error when trying to sort:


Unknown column 'mf.rate' in 'order clause'
File: \Sources\MessageIndex.php
Line: 360
Title: Re: Rate That Topic
Post by: slinouille on April 23, 2009, 04:15:13 PM
QuoteFix that and uninstalled fine.. then download your new version.. try to install and get an error
Yep I've notice that, I've updated my test in the install script

QuoteEdit: Did the manual changes but still getting the same error when trying to sort:
okay finaly found it  :-X

Manually edit :

File : $sourcedir/MessageIndex.php
Replace
                INNER JOIN {db_prefix}messages AS ml ON (ml.id_msg = t.id_last_msg)' : (in_array($context['sort_by'], array('starter', 'subject')) ? '
by
                INNER JOIN {db_prefix}messages AS ml ON (ml.id_msg = t.id_last_msg)' : (in_array($context['sort_by'], array('starter', 'subject', 'rating')) ? '
Note: if you have version 2.1.9, then change 'rating' by 'rate'

I'll do a fresh and clean package tomorrow morning ... I'm tired ;)

SliN
Title: Re: Rate That Topic
Post by: Tanks on April 23, 2009, 04:23:53 PM
It works :) Thanks, you are a great coder ! ;)

I always get the creeps when i have to edit inside php files :)
Title: Re: Rate That Topic
Post by: Filipina on April 23, 2009, 04:40:07 PM
Quote from: Filipina on February 27, 2009, 04:59:45 PM
Hello I have seen this  "Unable to load the 'rateadmin' template." error mentioned on this first page of the topic.  I also saw it mentioned on another post but was is the solution? I have tried both  'RateAdmin' and 'rateadmin' and i get the same error either way.

Anyone can offer me advice? :)

Hello me and Lady Ambrosia posted about this a while back but I think it was missed. Thanks for any assistance.
Title: Re: Rate That Topic
Post by: Babyloniia on April 23, 2009, 05:20:59 PM
is the packages also fixed for the 1.1.8? or no body fix the issue for that version
Title: Re: Rate That Topic
Post by: willerby on April 23, 2009, 06:55:05 PM
Latest version 2.1.10 installed on RC1 and before enabling mod the following errors appeared in admin error log..

2e6254f93f32ddebac45da9b4ad6844a
URL http://www.xxx/forum/index.php?action=admin;area=packages;sa=install2;package=RateThatTopic.2.1.10.zip;pid=0
8: Undefined variable: altered_mem_table_3
File: /home2/xxx/public_html/forum/Packages/temp/installDatabase.php
Line: 120
   
2e6254f93f32ddebac45da9b4ad6844a
URL http://www.xxx.com/forum/index.php?action=admin;area=packages;sa=install2;package=RateThatTopic.2.1.10.zip;pid=0
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home2/xxx/public_html/forum/Packages/temp/installDatabase.php
Line: 69
   
2e6254f93f32ddebac45da9b4ad6844a
URL http://www.xxx.com/forum/index.php?action=admin;area=packages;sa=install2;package=RateThatTopic.2.1.10.zip;pid=0
8: Undefined variable: boards_columns
File: /home2/xxx/public_html/forum/Packages/temp/installDatabase.php
Line: 69

???
Title: Re: Rate That Topic
Post by: Angelotus on April 23, 2009, 06:56:25 PM
Quote from: Angelotus on April 21, 2009, 06:37:19 AM
Hi, nice mod. Trying to install it on my 2.0 boards, but keep getting this error:


Table 'weeklyfun_nl.boards' doesn't exist
File: /customers/weeklyfun.nl/weeklyfun.nl/httpd.www/forum/Packages/temp/installDatabase.php
Line: 74


Got this error captured in the new version as well?

I need some help please!
Title: Re: Rate That Topic
Post by: slinouille on April 24, 2009, 02:41:05 AM
@willerby: ok I'll do a clean install ... but those errors are safe, you can delete them. It's the installDatabase script that generates them during installation ... I was quite tired yesterday evening and I've forgotten some "good ciding practices" ;)

@Angelotus: I've answered you with some questions some time ago. Can you do those check? I'll take also a look to thise 74 line.

@Filipina & Lady Ambrosia: what is the SMF version you are using?

@Babyloniia: no I'm only working on SMF2.X version now. I've not really understood your problem, can you please be more precise, is it the same problem as Filipina?

Title: Re: Rate That Topic
Post by: willerby on April 24, 2009, 02:55:21 AM
Thanks Slin...
Title: Re: Rate That Topic
Post by: Babyloniia on April 24, 2009, 05:20:38 AM
Quote from: slinouille on April 24, 2009, 02:41:05 AM


@Babyloniia: no I'm only working on SMF2.X version now. I've not really understood your problem, can you please be more precise, is it the same problem as Filipina?

No, I Have the Extreme 6 Theme
I Installed Rate that topic mode with emu because its not for the 1.1.8
In My Control Panel i get a new choise "RateAdmin"
In There I have tryied to enable for all my board by defualt / by local / and for each board (3 different tryes)

After that in my board there is nothing appear where i can rate a topic? it dosent shows anything new,

I think ppl other than me had this problem and fixed it by reading this topic, but im not sure how?

my forum www.babyloniia.dk/forum

I have it installed now you can log in with those user and check that is  no rating choise to be seen
User : Tine
Pass : Ishtar08I

User: 9nette83
Pass : Ishtar08I
Title: Re: Rate That Topic
Post by: Babyloniia on April 24, 2009, 07:01:14 AM
Maybe More details, the stars bar where to put the rating dont show up any where,


Sorry for my bad english :-)
Title: Re: Rate That Topic
Post by: Filipina on April 25, 2009, 11:29:04 AM
Quote from: slinouille on April 24, 2009, 02:41:05 AM
@Filipina & Lady Ambrosia: what is the SMF version you are using?

Mine is SMF 1.1.8 default.
Title: Re: Rate That Topic
Post by: Angelotus on April 25, 2009, 04:36:12 PM
Quote from: slinouille on April 21, 2009, 07:43:44 AM
@Angelotus: Hum...  'weeklyfun_nl.boards' ... I imagine that you have check that it exists (but I think SMF couldn't run without) ... perhaps that the dot in the name is not appreciated by the installdatabase script. But I'm not convinced because it is using the smf variable "table prefix" ...
I'll take a look.

Yes, boards does exists. Weeklyfun_nl is the name of the database, the prefix of the table is forum_ , but the error just say weeklyfun_nl.boards???
Title: Re: Rate That Topic
Post by: CrazyHorse80 on April 26, 2009, 05:03:21 AM
Is it safe to install version 1.0 of this mod with SMF 1.1.8? Is there any known bug at the moment?
Thanks,
PS
Title: Re: Rate That Topic
Post by: th6 on April 26, 2009, 01:45:38 PM
Mod is doing good for me on 1.1.8.

I was wondering if there's any way to sort topics using the rating. (on 1.1.8 )

Great Mod.
Title: Re: Rate That Topic
Post by: Babyloniia on April 29, 2009, 06:11:06 AM
Any 1 who did understand my problem?, look for my earlier posts in here :((

Thanks a lot.
Title: Re: Rate That Topic
Post by: C4G-TK on April 29, 2009, 01:59:00 PM
Quote from: Babyloniia on April 29, 2009, 06:11:06 AM
Any 1 who did understand my problem?, look for my earlier posts in here :((

Thanks a lot.

Did you do all the edits for the mod that pertain to anything inside the Theme/ files for your theme? 

(BTW, I like the crispness of the theme you are using.  Looks nice.)
Title: Re: Rate That Topic
Post by: Babyloniia on April 29, 2009, 02:20:39 PM
Which modifications?

I know there is many posted here but i dont know which one :)

And what do you mean by crispness? & dude thanks for answering me, ive waited for days.
Title: Re: Rate That Topic
Post by: [dazed] on April 29, 2009, 02:32:22 PM
Installed it on 2.0RC without any other mods and it didn't appear on the topic desplay, plus some of the options were missing in "modifications".

Package folder temp problem has been fixed by my host two weels ago, so it isn't that.

Any ideas without having to hack the files by hand?
Title: Re: Rate That Topic
Post by: Babyloniia on April 30, 2009, 04:39:47 AM


Did you do all the edits for the mod that pertain to anything inside the Theme/ files for your theme? 

(BTW, I like the crispness of the theme you are using.  Looks nice.)
[/quote]

Ah Crispness, thank U, and the big thanks goes to the author of Extreme 6 theme :).

Any Why can any 1 precise for me what modifications i have to do exactly to get it to  work?

Thank U All
Title: Re: Rate That Topic
Post by: C4G-TK on April 30, 2009, 02:48:34 PM
Quote from: Babyloniia on April 30, 2009, 04:39:47 AM
Any Why can any 1 precise for me what modifications i have to do exactly to get it to  work?

Which package did you download from the Mod Site for this mod?


Also, what language are you using?
Title: Re: Rate That Topic
Post by: Babyloniia on April 30, 2009, 03:26:13 PM
Quote from: C4G-TK on April 30, 2009, 02:48:34 PM
Quote from: Babyloniia on April 30, 2009, 04:39:47 AM
Any Why can any 1 precise for me what modifications i have to do exactly to get it to  work?

Which package did you download from the Mod Site for this mod?


Also, what language are you using?

Thanks for replying me,

I did download the One for 1.X . Im using SMF 1.1.8 with the Extreme 6 Theme
You can check it here www.babyloniia.dk/forum

You can use this login to the forum (its not the admin :) login )

Tine
Ishtar08I
Title: Re: Rate That Topic
Post by: PrizeLive.com on April 30, 2009, 03:28:50 PM
Does this work with 1.8 at all?
Title: Re: Rate That Topic
Post by: PrizeLive.com on April 30, 2009, 04:19:28 PM
What is the time period for the "Rate again wait time:"? Should you enter in seconds or minutes.
Title: Re: Rate That Topic
Post by: CrazyHorse80 on April 30, 2009, 05:23:10 PM
Quote from: MoneyTalkPro.com on April 30, 2009, 04:19:28 PM
What is the time period for the "Rate again wait time:"? Should you enter in seconds or minutes.

I'd like to know, too!
I've got this installed since a couple of days in my SMF 1.1.8 forum and it's doing its duty greatefully!
Bye,
PS
Title: Re: Rate That Topic
Post by: C4G-TK on April 30, 2009, 06:19:56 PM
@ Babyloniia

I sent you a private message.
Title: Re: Rate That Topic
Post by: slinouille on May 01, 2009, 02:32:59 AM
@C4G-TK: thanks for taking some part of the support on 1.1.8 ... very cool ;) Indeed I don't reaaly know 1.1.8 SMF version and code :(

@all on SMF1.X: I'm sorry but the only help I can give on that version is to invit you to follow the install.xml instruction and do the modifications manually if you have a specific theme. If someone can post here any specific modification for SMF1.1.8, please feel free. I can also compile it in a new package if someone can give me the install.xml dedicated for SMF1.1.8 ;)

@MoneyTalkPro.com & CrazyHorse80: this function doesn't exist in this mod for SMF2. Nevertheless it's a really good idea and I'll implement it in a next release.
Title: Re: Rate That Topic
Post by: Babyloniia on May 01, 2009, 06:27:15 AM
Quote from: slinouille on May 01, 2009, 02:32:59 AM
@C4G-TK: thanks for taking some part of the support on 1.1.8 ... very cool ;) Indeed I don't reaaly know 1.1.8 SMF version and code :(

@all on SMF1.X: I'm sorry but the only help I can give on that version is to invit you to follow the install.xml instruction and do the modifications manually if you have a specific theme. If someone can post here any specific modification for SMF1.1.8, please feel free. I can also compile it in a new package if someone can give me the install.xml dedicated for SMF1.1.8 ;)

Dont be Sorry, Youre all ready did a great job greating this mod, and the other guys / girls in here are also doing a fantastisk job helping me and other with the 118 issue and other as i see / read, Best community i ever seen indeed.
@MoneyTalkPro.com & CrazyHorse80: this function doesn't exist in this mod for SMF2. Nevertheless it's a really good idea and I'll implement it in a next release.
Title: Re: Rate That Topic
Post by: Babyloniia on May 01, 2009, 06:27:58 AM
Quote from: Babyloniia on May 01, 2009, 06:27:15 AM
Quote from: slinouille on May 01, 2009, 02:32:59 AM
@C4G-TK: thanks for taking some part of the support on 1.1.8 ... very cool ;) Indeed I don't reaaly know 1.1.8 SMF version and code :(

@all on SMF1.X: I'm sorry but the only help I can give on that version is to invit you to follow the install.xml instruction and do the modifications manually if you have a specific theme. If someone can post here any specific modification for SMF1.1.8, please feel free. I can also compile it in a new package if someone can give me the install.xml dedicated for SMF1.1.8 ;)


@MoneyTalkPro.com & CrazyHorse80: this function doesn't exist in this mod for SMF2. Nevertheless it's a really good idea and I'll implement it in a next release.

Dont be Sorry, Youre all ready did a great job greating this mod, and the other guys / girls in here are also doing a fantastisk job helping me and other with the 118 issue and other as i see / read, Best community i ever seen indeed.
Title: Re: Rate That Topic
Post by: Babyloniia on May 01, 2009, 10:49:30 AM
C4G - Ive sendt you those fail by email.
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 11:04:01 AM
I'm just waking up here.  (I know it's 11am, but I don't go to bed til like 4am. lol)

I got your email.  If you didn't have the Modification.english-utf8, that isn't a problem.
Let me see what I can figure out here for you.
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 01:30:36 PM
OK, lots of things that I can see right now...

FIRST:

It looks like some of the edits were completed and some weren't.  It looks like the Mod was never fully installed because the only edit that was completed was the Sources/MessageIndex.php file.  Nothing else was completed from the files you gave me.

I completed the edits for:
1) Index.php
2) Sources/Display.php
3) Sources/Subs.php

as well as the:
4) MessageIndex.template.php
5) Modifications.english.php
6) Display.template.php

The above files 1-6 have all been edited and replaced on your server for you.




SECOND:

The Image files were never placed into the Theme folders, so I went ahead and was able to put the images into 2 of the 3 Extreme theme folders, but one folder wouldn't let me do the transfer.  It is the one titled "Extreme 6".  (I was able to put it into the ones marked "ex6" and "extreme61" though.)




THIRD:

I moved the RateAdmin.template to all three Extreme 6 folders because that wasn't done either.




The only thing that I need you to check is to go into your Admin controls on the forum and to allow the boards to use the mod.  I don't have access to that from the info you gave me, but it should be finished as far as I can tell.

Go to ADMIN > TOPIC RATING ADMIN > and then Default Settings and Board Settings to set the mod.
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 03:42:59 PM
I logged onto your forum as Admin and enabled the mod for the category of "Salater"

Picture 1 shows where it says that I rated the one thread a "5"
(I just couldn't get the stars to appear, but it might be because of the last post where I said it wouldn't allow me to transfer the images to that folder.)


Picture 2 shows where you can rate the other threads by using the dropdown box.

I think it is done for you.  Let me know if something isn't working.  This was my first attempt in helping someone other than myself work on their forum.  If I did anything incorrect, I really want to know and wish you all the best!

Title: Re: Rate That Topic
Post by: Babyloniia on May 01, 2009, 04:20:10 PM
Quote from: C4G-TK on May 01, 2009, 03:42:59 PM
I logged onto your forum as Admin and enabled the mod for the category of "Salater"

Picture 1 shows where it says that I rated the one thread a "5"
(I just couldn't get the stars to appear, but it might be because of the last post where I said it wouldn't allow me to transfer the images to that folder.)


Picture 2 shows where you can rate the other threads by using the dropdown box.

I think it is done for you.  Let me know if something isn't working.  This was my first attempt in helping someone other than myself work on their forum.  If I did anything incorrect, I really want to know and wish you all the best!

Man what can i say, thank you so much, even it is your first attemp tp help, but it is like a prof :), now those stars it dosent matters,maybe i can put the image later on but maybe it is better without :).

THAAAAAAAAAAAAAAAAAAANKS. 99 Stars from me to you and your help
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 04:31:00 PM
No problem.  I'm glad to get it working for you.  I've had a lot of people help me here over the year and wanted to "give back" so to speak.  Good luck to you! 8)
Title: Re: Rate That Topic
Post by: divecall on May 01, 2009, 05:29:44 PM
A question:

how many members must rating a topic, that the ratings are shows in the message index ? is one rating enough, that the overall-rating is showing in the message index ?

and is a way, that zero-ratings are not showing in the message index? i mean, that only this topics are shown, what is rated, that not all the topics have stars (in the index) ?

by the way: great mod.

thanks, gracias, danke.
Title: Re: Rate That Topic
Post by: Shonick on May 01, 2009, 05:31:14 PM
sometimes, I try to rate a topic. I got this error

Duplicate entry '5' for key 1

Can anyone tell me what it is? and how to fix it

Thanks
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 05:43:01 PM
Quote from: divecall on May 01, 2009, 05:29:44 PM
A question:

how many members must rating a topic, that the ratings are shows in the message index ? is one rating enough, that the overall-rating is showing in the message index ?

and is a way, that zero-ratings are not showing in the message index? i mean, that only this topics are shown, what is rated, that not all the topics have stars (in the index) ?

by the way: great mod.

thanks, gracias, danke.

I think there is a setting which asks whether or not you want the rating displayed on the index or not.  Check to make sure that it is enabled for it.
Title: Re: Rate That Topic
Post by: divecall on May 01, 2009, 05:53:25 PM
thank you for the fast reply!  :-*

well, i know only "Topic Ratings on Message Index?" and this is enabled. my problem is that ALL the topics have rating stars in the message index. included this topics, what are not rated now. exactly for this non-rated topics, i want that no stars are showing in the message index.

i hope you understand...
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 05:59:46 PM
I think I understand you. 

If it is enabled, it will show the 5 stars, BUT if the Thread isn't rated they are the more translucent stars that show that it is unrated.  Once the topic gets a rating (let's say 1 star for example) that rating on the index should show 1 BOLD YELLOW star and 4 translucent yellow stars to show that it has a rating of 1.

Are you asking that it show NO stars if the topic isn't rated yet?  I don't think this is a feature of how this mod is set up.

Title: Re: Rate That Topic
Post by: divecall on May 01, 2009, 06:06:56 PM
@C4G-TK:

exactly this i mean.

can somebody tell me a way how i can change this, what i need to change in the PHP-code ?

thank you for all the help.

regards

DC
Title: Re: Rate That Topic
Post by: C4G-TK on May 01, 2009, 06:18:19 PM
I wish I could help you.  I'm good with performing edits, but have no clue when it comes to actually writing code. 
Title: Re: Rate That Topic
Post by: divecall on May 01, 2009, 06:28:32 PM
i know what u mean.... ;)

thank you

can somebody help ?

Title: Re: Rate That Topic
Post by: CrazyHorse80 on May 02, 2009, 05:12:18 AM
Quote from: divecall on May 01, 2009, 06:28:32 PM
i know what u mean.... ;)

thank you

can somebody help ?



Fast solution: edit tr0.png and make it fully transparent (you could also resize it to 1x1 pixels). This should solve, but it's not so elegant... ;-)
Bye,
PS
Title: Re: Rate That Topic
Post by: divecall on May 02, 2009, 06:05:14 AM
Hey, sounds good !

i will give a try, thank you.

i post the result here....

:D :-*

THANK YOU SO MUCH
Title: Re: Rate That Topic
Post by: divecall on May 02, 2009, 08:51:29 AM
My problem was fixing, see picture...

nice idea, well done. i set the transparency tr0.png to 100% and this was exactly what i needed.

danke, gracias, merci,...
Title: Re: Rate That Topic
Post by: CrazyHorse80 on May 02, 2009, 09:09:40 AM
Quote from: divecall on May 02, 2009, 08:51:29 AM
My problem was fixing, see picture...

nice idea, well done. i set the transparency tr0.png to 100% and this was exactly what i needed.

danke, gracias, merci,...

I'm not really a PHP coder, but sometimes it's not needed to be for solving my issue! ;-)
Anyway, you forgot to say "grazie" (this is the Italian for thanks). =)
Bye,
PS
Title: Re: Rate That Topic
Post by: Shonick on May 02, 2009, 02:19:22 PM
Quote from: viet on May 01, 2009, 05:31:14 PM
sometimes, I try to rate a topic. I got this error

Duplicate entry '5' for key 1

Can anyone tell me what it is? and how to fix it

Anyone has any idea about my problem?
Thanks
Title: Re: Rate That Topic
Post by: Lady Ambrosia on May 02, 2009, 06:39:32 PM
I am using SMF 1.1.8, and after reading C4G-TK's post about various edits not being done, which mine were, I put my RateAdmin.template.php file into the Theme I am using...and what do you know...BAM worked like magic!!

So, although you really wasn't helping me personally C4G-TK...THANK YOU SOO MUCH!!  I no longer get an error, and everything is working VERY smoothly!  Who would have thought that one file was causing my error, as it doesn't say to put it in the theme you are using, only to put it in the defualt theme.

So, for those who are using SMF 1.1.8 - BE SURE that you put your RateAdmin.template.php file INTO the theme you are using for your forum, or you will get a RateAdmin not found error ;)
Title: Re: Rate That Topic
Post by: C4G-TK on May 02, 2009, 07:09:35 PM
That's just one of those things you start to learn or pick up the more you install the mods.

If you are installing a mod manually or checking problems, go into the package parser of the mod and scroll to the bottom.  Most of the time there is a list of "other" things included in the package that are specific to the mod which need to be placed in certain areas.  In this case, there was that RateAdmin.template and like 6 images that needed to be moved.

Glad I could help in a roundabout way! ;)
Title: Re: Rate That Topic
Post by: Angelotus on May 04, 2009, 09:28:58 AM
Quote from: Angelotus on April 25, 2009, 04:36:12 PM
Quote from: slinouille on April 21, 2009, 07:43:44 AM
@Angelotus: Hum...  'weeklyfun_nl.boards' ... I imagine that you have check that it exists (but I think SMF couldn't run without) ... perhaps that the dot in the name is not appreciated by the installdatabase script. But I'm not convinced because it is using the smf variable "table prefix" ...
I'll take a look.

Yes, boards does exists. Weeklyfun_nl is the name of the database, the prefix of the table is forum_ , but the error just say weeklyfun_nl.boards???

Still not solved. Still need help!
Title: Re: Rate That Topic
Post by: Babyloniia on May 04, 2009, 09:35:46 AM
Quote from: C4G-TK on May 01, 2009, 01:30:36 PM




SECOND:

The Image files were never placed into the Theme folders, so I went ahead and was able to put the images into 2 of the 3 Extreme theme folders, but one folder wouldn't let me do the transfer.  It is the one titled "Extreme 6".  (I was able to put it into the ones marked "ex6" and "extreme61" though.)



Hey Againg, I succeded to make the stars show up :9

I copy and past the images folder from ex6 theme folder to : /forum/Themes/default/

And Wupti it showed up hehe

Thanks
Title: Re: Rate That Topic
Post by: Shonick on May 04, 2009, 03:44:47 PM
Quote from: viet on May 01, 2009, 05:31:14 PM
sometimes, I try to rate a topic. I got this error

Duplicate entry '5' for key 1

Can anyone tell me what it is? and how to fix it

Thanks

Any one has any idea about my problem?

thanks
Title: Re: Rate That Topic
Post by: C4G-TK on May 04, 2009, 09:08:45 PM
Wish I could help.
Title: Re: Rate That Topic
Post by: kriss666 on May 07, 2009, 01:56:57 PM
i'm sorry but i don't found an aswer :

I don't have any error message with this mod, so i can make a rate on a post. other members can rate , unfortunatly, i don't see stars in the messages index.
I have smf 1.1.7 and modify MessageIndex.template.php with this

Find: [Select]

         if (!empty($settings['seperate_sticky_lock']))

Replace With: [Select]

         if(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])))
            echo ($context['can_moderate_forum'] ? '<a href="' . $scripturl . '?action=ratelog;id=' . $topic['id'] . '">' : '') . '<img src="' . $settings['default_images_url'] . '/tr' . $topic['rating_average'] . '.png" align="right" alt="' . $topic['rating_average'] . '" />' . ($context['can_moderate_forum'] ? '</a>' : '');

         if (!empty($settings['seperate_sticky_lock']))

thanks to help me
Title: Re: Rate That Topic
Post by: MatrixIS on May 07, 2009, 02:46:08 PM
how do i install this on the extreame 6 theme? i stopped the normal installing because when clicked to install in on the custom theme every file o the custom theme had a error
Title: Re: Rate That Topic
Post by: C4G-TK on May 07, 2009, 04:58:28 PM
Quote from: MatrixIS on May 07, 2009, 02:46:08 PM
how do i install this on the extreame 6 theme? i stopped the normal installing because when clicked to install in on the custom theme every file o the custom theme had a error

Was it just the Theme files with the error?

If so, you just need to manually edit those files.

1) -Go to the mod on the mod site and select your SMF version.
2) -Parse the version and it will tell you what edits to do.
    -Just look for the ones that are Theme files and do those edits in your custom theme.

Then, scroll down to the bottom of the page and move the files/images to the same areas within the custom theme, too.
Title: Re: Rate That Topic
Post by: kriss666 on May 07, 2009, 05:16:18 PM
it's ok now.. for a strage reason, i don't save my modify !!! now it's ok
thanks for this awesome mod
Title: Re: Rate That Topic
Post by: MatrixIS on May 08, 2009, 12:43:09 AM
Quote from: C4G-TK on May 07, 2009, 04:58:28 PM
Quote from: MatrixIS on May 07, 2009, 02:46:08 PM
how do i install this on the extreame 6 theme? i stopped the normal installing because when clicked to install in on the custom theme every file o the custom theme had a error

Was it just the Theme files with the error?

If so, you just need to manually edit those files.

1) -Go to the mod on the mod site and select your SMF version.
2) -Parse the version and it will tell you what edits to do.
    -Just look for the ones that are Theme files and do those edits in your custom theme.

Then, scroll down to the bottom of the page and move the files/images to the same areas within the custom theme, too.

most places dont match the 'find XXX' so its hard to know where to put the coding :-[
Title: Re: Rate That Topic
Post by: C4G-TK on May 08, 2009, 01:25:08 AM
Quote from: MatrixIS on May 08, 2009, 12:43:09 AM
Quote from: C4G-TK on May 07, 2009, 04:58:28 PM
Quote from: MatrixIS on May 07, 2009, 02:46:08 PM
how do i install this on the extreame 6 theme? i stopped the normal installing because when clicked to install in on the custom theme every file o the custom theme had a error

Was it just the Theme files with the error?

If so, you just need to manually edit those files.

1) -Go to the mod on the mod site and select your SMF version.
2) -Parse the version and it will tell you what edits to do.
    -Just look for the ones that are Theme files and do those edits in your custom theme.

Then, scroll down to the bottom of the page and move the files/images to the same areas within the custom theme, too.

most places dont match the 'find XXX' so its hard to know where to put the coding :-[

Attach a copy of the files in a zip on here and I'll look over your edits.  (BTW, what version of SMF are you using again?)

If your theme doesn't have one of the files needed to be changed, be sure to give me your default file in its place.

I have some time on Friday (today) between 8-11pm eastern time.  Otherwise, I can help you starting Monday.
Title: Re: Rate That Topic
Post by: MatrixIS on May 08, 2009, 01:11:45 PM
Quote from: C4G-TK on May 08, 2009, 01:25:08 AM
Quote from: MatrixIS on May 08, 2009, 12:43:09 AM
Quote from: C4G-TK on May 07, 2009, 04:58:28 PM
Quote from: MatrixIS on May 07, 2009, 02:46:08 PM
how do i install this on the extreame 6 theme? i stopped the normal installing because when clicked to install in on the custom theme every file o the custom theme had a error

Was it just the Theme files with the error?

If so, you just need to manually edit those files.

1) -Go to the mod on the mod site and select your SMF version.
2) -Parse the version and it will tell you what edits to do.
    -Just look for the ones that are Theme files and do those edits in your custom theme.

Then, scroll down to the bottom of the page and move the files/images to the same areas within the custom theme, too.

most places dont match the 'find XXX' so its hard to know where to put the coding :-[

Attach a copy of the files in a zip on here and I'll look over your edits.  (BTW, what version of SMF are you using again?)

If your theme doesn't have one of the files needed to be changed, be sure to give me your default file in its place.

I have some time on Friday (today) between 8-11pm eastern time.  Otherwise, I can help you starting Monday.

sent you a pm :)
Title: Re: Rate That Topic
Post by: PrizeLive.com on May 08, 2009, 02:39:40 PM
Quote from: slinouille on May 01, 2009, 02:32:59 AM
@MoneyTalkPro.com & CrazyHorse80: this function doesn't exist in this mod for SMF2. Nevertheless it's a really good idea and I'll implement it in a next release.

I'm using it on 1.1.8.. So is it seconds or minutes?
Title: Re: Rate That Topic
Post by: C4G-TK on May 08, 2009, 08:15:29 PM
@ MatrixIS

What version of SMF are you using?  1.1.8?  or something else?  I just want to know, so I know which edits to actually do for you.
Title: Re: Rate That Topic
Post by: MatrixIS on May 08, 2009, 10:23:57 PM
Quote from: C4G-TK on May 08, 2009, 08:15:29 PM
@ MatrixIS

What version of SMF are you using?  1.1.8?  or something else?  I just want to know, so I know which edits to actually do for you.

2.0rc1
Title: Re: Rate That Topic
Post by: C4G-TK on May 09, 2009, 10:37:21 AM
OK, thanks.
I'll let you know when I'm done.  I won't be home until later on tonight to start on it probably around 9pm.  (10:36am right now)
Title: Re: Rate That Topic
Post by: MatrixIS on May 09, 2009, 02:11:33 PM
Quote from: C4G-TK on May 09, 2009, 10:37:21 AM
OK, thanks.
I'll let you know when I'm done.  I won't be home until later on tonight to start on it probably around 9pm.  (10:36am right now)

no worries ,i got it to work :)
Title: Re: Rate That Topic
Post by: Filipina on May 15, 2009, 03:52:53 PM
Quote from: Filipina on April 25, 2009, 11:29:04 AM
Quote from: slinouille on April 24, 2009, 02:41:05 AM
@Filipina & Lady Ambrosia: what is the SMF version you are using?

Mine is SMF 1.1.8 default.
Title: Re: Rate That Topic
Post by: Bjuan on May 18, 2009, 12:30:32 PM
First of all, thanks for creating this mod...

I've tried to read through the topic and saw that some people had it working on 1.1.8...
Could anyone help me please how to get this great mod working on version 1.1.8?

Thank you in advance!
Title: Re: Rate That Topic
Post by: ElectroPheonix on May 22, 2009, 02:38:28 AM
I'm just starting to install this mod. I tried when my forum was 1.1.7 but failed. We really need it now so I am giving it another go. I've updated to 1.1.9.

There are no manual instruction for it in the mod page. So... how can I get it installed and working?

Is there any other mod that does a similar thing?
Any help would be fantasitic
Title: Re: Rate That Topic
Post by: fdLP. on May 22, 2009, 03:00:28 PM
when i click on the stars i get this :


An Error Has Occurred!
Unable to load the 'rateadmin' template.


using 1.1.9
Title: Re: Rate That Topic
Post by: fdLP. on May 23, 2009, 03:56:32 AM
bump
Title: Re: Rate That Topic
Post by: [SiNaN] on May 23, 2009, 04:03:47 AM
Check first post.
Title: Re: Rate That Topic
Post by: fdLP. on May 23, 2009, 04:13:00 AM
Quote from: Blue Dream on May 23, 2009, 04:03:47 AM
Check first post.

thanks
Title: Re: Rate That Topic
Post by: MCK on May 30, 2009, 12:06:06 PM
Quote from: fdLP. on May 22, 2009, 03:00:28 PM
when i click on the stars i get this :


An Error Has Occurred!
Unable to load the 'rateadmin' template.


using 1.1.9

fdLP, can you kindly explain how you got that far? I am trying to install this mod on 1.1.9 and installer flat out refuses. Did you install manually? Your help will be most appreciated. Thank you!
Title: Re: Rate That Topic
Post by: [SiNaN] on May 31, 2009, 03:39:10 AM
Use version 1.0.
Title: Re: Rate That Topic
Post by: MCK on May 31, 2009, 09:53:21 AM
Ok. Slight diversion. I made a copy of my forum and upgraded it to RC 1-1. Now trying this mod there. It installed fine and I see the config checkboxes but when I goto the forum I don't see the Rating option on the topics. What should I check? Apologes for all the questions. And thanks!!!
Title: Re: Rate That Topic
Post by: Drover on May 31, 2009, 05:20:38 PM
I'm confused.  It seems people are using this with 1.1.x but it says:
Quote
This mod is compatible with SMF 2.0 Beta 4 Public and above only.

I'd like to use with 1.1.9.  What version should I use?
Title: Re: Rate That Topic
Post by: [SiNaN] on June 01, 2009, 09:43:29 AM
Quote from: [SiNaN] on May 31, 2009, 03:39:10 AM
Use version 1.0.
Title: Re: Rate That Topic
Post by: Drover on June 01, 2009, 10:37:19 AM
Hmmmm....yeah that's what I was trying to use.  It blows up.  I get some error that says "Hacker?"

And a ton of php errors across the top:

Quote// Topic Rating Mod $txt['rate_adminTitle'] = 'Topic Rating Admin'; $txt['rate_adminHelp'] = 'This panel gives you possibilty to change the Topic Rating settings.'; $txt['rate_adminDesc'] = 'Topic Rating control panel.'; $txt['rate_defaultTitle'] = 'Default Settings'; $txt['rate_defaultDesc'] = 'Panel which allows you to change default settings for the mod.'; $txt['rate_boardsTitle'] = 'Board Settings'; $txt['rate_boardsDesc'] = 'Panel which allows you to change board specific settings for the mod.'; $txt['rate_enabled'] = 'Enable Topic Rating?'; $txt['rate_againType'] = 'Rate again type:'; $txt['rate_againTypeOp'] = 'Disable|Change Rating|Rate Again'; $txt['rate_againWait'] = 'Rate again wait time:'; $txt['rate_showMessageIndex'] = 'Topic Ratings on Message Index?'; $txt['rate_showMessageIndexOp'] = 'Disable|Exclude Sticky|Enable'; $txt['rate_excludedGroups'] = 'Excluded Groups:'; $txt['rate_reset'] = 'Reset Topic Ratings'; $txt['rate_resetConfirm'] = 'Are you sure to reset topic ratings?'; $txt['rate_resetSuccess'] = 'All topic ratings are reset.'; $txt['rate_resetFail'] = 'An Error Occured: Topic Rating could not be reset.'; $txt['rate_boardsName'] = 'Name'; $txt['rate_boardsModify'] = 'Modify'; $txt['rate_typeDefault'] = 'Default'; $txt['rate_typeLocal'] = 'Local'; $txt['rate_qtDisable'] = 'Disable'; $txt['rate_qtEnable'] = 'Enable'; $txt['rate_qtDefault'] = 'Set Default'; $txt['rate_qtLocal'] = 'Set Local'; $txt['rate_qtGo'] = 'Go!'; $txt['rate_qtConfirm'] = 'Are you sure?'; $txt['rate_undefined_type'] = 'Undefined type input.'; $txt['rate_undefined_id'] = 'Undefined ID input.'; $txt['rate_undefined_board'] = 'Undefined board input.'; $txt['rate_missing_info'] = 'There are missing info need to be passed.'; $txt['rate_not_allowed'] = 'You are not allowed to rate.'; $txt['rate_not_in_range'] = 'Your rating is not in range.'; $txt['rate_average'] = 'Average Rating'; $txt['rate_topicNew'] = 'Rate Topic:'; $txt['rate_topicAgain'] = 'Change your rate:'; $txt['rate_topicGo'] = 'Go!'; $txt['rate_logTitle'] = 'Rating Log'; $txt['rate_logRate'] = 'Rating'; $txt['rate_logTime'] = 'Time'; // Topic Rating Mod
Title: Re: Rate That Topic
Post by: M-DVD on June 01, 2009, 06:17:32 PM
Quote from: Drover on June 01, 2009, 10:37:19 AM
Hmmmm....yeah that's what I was trying to use.  It blows up.  I get some error that says "Hacker?"

And a ton of php errors across the top:

Edit your Modifications.languaje.php

And move ?> at the end of the file.
Title: Re: Rate That Topic
Post by: Nas187 on June 08, 2009, 11:01:08 AM
Does this work with 1.1.9 ?
Title: Re: Rate That Topic
Post by: MaXiForum.cz on June 08, 2009, 02:49:41 PM
Quote from: Nas187 on June 08, 2009, 11:01:08 AM
Does this work with 1.1.9 ?

Check version RateThatTopic1.0.zip ;)

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1313;attach=65500;smf_version=1.1.9
Title: Re: Rate That Topic
Post by: jimbob2z on June 09, 2009, 07:43:48 PM
Hi all!
I love this mod, but whenever I enable the stars to be shown in the messgae index, the image displays twice, so if a topic is rated 5 stars, ten are shown, and if a topic is rated 2 then the image for 2 stars is displayed twice, next to each other.
Any help and ideas to fix this?
Thanks in advance.
Title: Re: Rate That Topic
Post by: jimbob2z on June 10, 2009, 09:03:49 PM
Quote from: jimbob2z on June 09, 2009, 07:43:48 PM
Hi all!
I love this mod, but whenever I enable the stars to be shown in the messgae index, the image displays twice, so if a topic is rated 5 stars, ten are shown, and if a topic is rated 2 then the image for 2 stars is displayed twice, next to each other.
Any help and ideas to fix this?
Thanks in advance.

Bump!
Title: Re: Rate That Topic
Post by: C4G-TK on June 11, 2009, 10:47:31 AM
Quote from: Eclipse16V on June 09, 2009, 11:46:36 PM
No one how can help me?

I wish I could help.  I know how to perform edits, but not what the actual code means.




Quote from: jimbob2z on June 10, 2009, 09:03:49 PM
Quote from: jimbob2z on June 09, 2009, 07:43:48 PM
Hi all!
I love this mod, but whenever I enable the stars to be shown in the messgae index, the image displays twice, so if a topic is rated 5 stars, ten are shown, and if a topic is rated 2 then the image for 2 stars is displayed twice, next to each other.
Any help and ideas to fix this?
Thanks in advance.

Bump!

Did you install this mod twice?  It sounds like the edits were possibly done two times.

Are you on SMF 2.0 or SMF 1.1.X ??
Title: Re: Rate That Topic
Post by: Neverhurry on June 11, 2009, 11:37:04 AM
Quote from: fdLP. on May 22, 2009, 03:00:28 PM
when i click on the stars i get this :


An Error Has Occurred!
Unable to load the 'rateadmin' template.


using 1.1.9

i got the same problem, using 1.1.9, when i try to repair it according to post 1, i found out there is nothing to repair because the ../Sources/RateAdmin.php file has been updated with "   loadTemplate('RateAdmin');".

thanks.
Title: Re: Rate That Topic
Post by: C4G-TK on June 11, 2009, 05:16:08 PM
Did you both do this mod manually?

If you did, you need to make certain that these files were placed in the correct areas.  There is a file that is placed into SOURCES directory and there is one that goes into THEMES.  If it is talking about a template file, then you need to check to make sure the THEMES file is present.  If not, unzip the package on your computer and find the file and FTP it to the correct directory.


Move the included file "RateAdmin.php" to "./Sources".
Move the included file "Subs-Rate.php" to "./Sources".
Move the included file "RateAdmin.template.php" to "./Themes/default".
Move the included file "tr0.png" to "./Themes/default/images".
Move the included file "tr1.png" to "./Themes/default/images".
Move the included file "tr2.png" to "./Themes/default/images".
Move the included file "tr3.png" to "./Themes/default/images".
Move the included file "tr4.png" to "./Themes/default/images".
Move the included file "tr5.png" to "./Themes/default/images".
Title: Re: Rate That Topic
Post by: Neverhurry on June 12, 2009, 06:28:33 AM
QuoteDid you both do this mod manually?

no, i didn't do it manually.
i installed it through ACP. thanks.
Title: Re: Rate That Topic
Post by: SosniTo.sk on June 14, 2009, 06:27:27 AM
Hi,
Please make for SMF 1.1.9 same rate as in SMF 2.0
I like this mod, but I would like to SMF 1.1.9 a new version.
(Forgive me for my poor English)
Title: Re: Rate That Topic
Post by: MaXiForum.cz on June 14, 2009, 07:52:45 AM
Quote from: SosniTo.sk on June 14, 2009, 06:27:27 AM
Hi,
Please make for SMF 1.1.9 same rate as in SMF 2.0
I like this mod, but I would like to SMF 1.1.9 a new version.
(Forgive me for my poor English)

No, není ti rozumět :-D
Title: Re: Rate That Topic
Post by: SosniTo.sk on June 14, 2009, 08:53:45 AM
čo narobíš :-D A ty vieš čo som chcel povedať ? Mohol by si preložiť ak by si bol taký dobrý :)
Title: Re: Rate That Topic
Post by: MaXiForum.cz on June 14, 2009, 10:54:39 AM
Quote from: SosniTo.sk on June 14, 2009, 08:53:45 AM
čo narobíš :-D A ty vieš čo som chcel povedať ? Mohol by si preložiť ak by si bol taký dobrý :)

Spíš napiš co jsi potřeboval. Já jsem to také nepochopil :-)
Title: Re: Rate That Topic
Post by: SosniTo.sk on June 14, 2009, 11:22:14 AM
používam smf 1.1.9 ale chcel by som také hodnotenie príspevkov, ktoré je na smf 2.0 čiže keď ukážem na 4 hviezdičky rozsvietia sa 4 :)
Title: Re: Rate That Topic
Post by: MaXiForum.cz on June 14, 2009, 02:10:41 PM
Já viděl, že používáš 1.1.9, ale tato modifikace je i pro tuto verzi.
Stále jsem mimo. Pokud tento mod funguje jinak na v 1.1.9 a jinak na v 2.0 mi není zmámo.
Máme to také jen na 1.1.9 a svítí průměr... takže podle toho kdo co hlasuje :)
Takže o co přesně jde?
Title: Re: Rate That Topic
Post by: SosniTo.sk on June 14, 2009, 03:41:31 PM
no ale na smf je staršia verzia. Tam je menu dropdown a s toho menu musi vybrať svoje hodnotenie. v SMF 2.0 staci kliknut na hviezdicku.
Title: Re: Rate That Topic
Post by: jimbob2z on June 14, 2009, 08:12:58 PM
Quote from: C4G-TK on June 11, 2009, 10:47:31 AM
Quote from: Eclipse16V on June 09, 2009, 11:46:36 PM
No one how can help me?

I wish I could help.  I know how to perform edits, but not what the actual code means.




Quote from: jimbob2z on June 10, 2009, 09:03:49 PM
Quote from: jimbob2z on June 09, 2009, 07:43:48 PM
Hi all!
I love this mod, but whenever I enable the stars to be shown in the messgae index, the image displays twice, so if a topic is rated 5 stars, ten are shown, and if a topic is rated 2 then the image for 2 stars is displayed twice, next to each other.
Any help and ideas to fix this?
Thanks in advance.

Bump!

Did you install this mod twice?  It sounds like the edits were possibly done two times.

Are you on SMF 2.0 or SMF 1.1.X ??

I am on 1.1.9 and it's installed just the once.
Title: Re: Rate That Topic
Post by: C4G-TK on June 14, 2009, 08:19:10 PM
Can you attach a copy of your Display.template.php file?  (I think that's the one it would be.)
Title: Re: Rate That Topic
Post by: MaXiForum.cz on June 15, 2009, 02:09:14 AM
Quote from: SosniTo.sk on June 14, 2009, 03:41:31 PM
no ale na smf je staršia verzia. Tam je menu dropdown a s toho menu musi vybrať svoje hodnotenie. v SMF 2.0 staci kliknut na hviezdicku.

Tak to je možné.
Ovšem je to tak důležité?
Nyní už ti rozumim. Pro 1.1.9 je jen to, co píšeš...
Title: Re: Rate That Topic
Post by: Shark-Time on August 14, 2009, 01:54:25 PM
Im using SMF 1.1.10 and i installed this mod.. well the installation was succussful.. but it didnt took any affect.. even in default theme its not showing the rating??
do we have to enable it from admin panel then please tell where from admin panel i can enable it??
Title: Re: Rate That Topic
Post by: Shark-Time on August 14, 2009, 02:08:32 PM
ok i found it, it was disabled by default after installation... after enabling it and setting boards now i can see those rating thing on Default but how to make it work with Custom theme.. cuz its not appearing in custom theme...
Title: Re: Rate That Topic
Post by: Shark-Time on August 15, 2009, 12:51:59 PM
i want to change the look rating with good looking dropdown kind of rating..

well here is the rating which appears on my forum..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi341.photobucket.com%2Falbums%2Fo377%2Fpakistanihaider%2F1m.jpg&hash=4754983138dedc2edfbd30b0f9a354f6d35e5af2)

and i want it little better like it shows good excellent etc etc and also show stars thing..like the below ones..these below caps are from VB's forums..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi341.photobucket.com%2Falbums%2Fo377%2Fpakistanihaider%2F1l.jpg&hash=f273d00f684e3e5c398bceca50c3c28edfc90813)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi341.photobucket.com%2Falbums%2Fo377%2Fpakistanihaider%2F1k.jpg&hash=3205b38efb3893a1118f5b71543ceaf01c6d83b8)

These below caps look much better.

can you make changes in it.. or can you help me to have a better look like show in 2nd and 3rd screen cap...
Title: Re: Rate That Topic
Post by: Baloch on August 22, 2009, 04:08:49 AM
is this compatible with smf 1.1.10?
Title: Re: Rate That Topic
Post by: mr.tess on September 09, 2009, 07:15:05 AM
Quote from: [SiNaN] on August 21, 2008, 06:24:19 AM
I think I got the error.

In some servers, files are case-sensitive. Let's try this:

../Sources/RateAdmin.php

Find:

loadTemplate('rateadmin');

Thank you it worked for me :)

Replace:

loadTemplate('RateAdmin');

But note that, when you click on those stars, you will see the rate log. If you want to rate, you select your rate from the select box at the right, and click "Go!".
Title: Re: Rate That Topic
Post by: Neverhurry on September 15, 2009, 08:47:24 AM
Hi,

does this mod work in the principle of average points. Say, user1 rates it 4 stars, user2 rates it 1 star, user3 rates 1 star, so in average the topic should have 2 star, does it do like that?
Title: Re: Rate That Topic
Post by: Shark-Time on September 15, 2009, 08:55:44 AM
Yup i guess so..

common guys do any one see on the problems i post..
Title: Re: Rate That Topic
Post by: Neverhurry on September 15, 2009, 09:01:12 AM
Quote from: Shark-Time on September 15, 2009, 08:55:44 AM
Yup i guess so..

common guys do any one see on the problems i post..

THanks!

I guess you should install it manually, using the parse code in the mod download page.
Title: Re: Rate That Topic
Post by: Shark-Time on September 15, 2009, 11:48:40 AM
no mate i have already installed this mod.. i was asking for better look.. see my above posts with screen shots..
Title: Re: Rate That Topic
Post by: vkot on October 12, 2009, 03:00:15 AM
The number of votes should be displayed along with the stars. A topic with 5 stars by one voter probably is not a "better" topic than one with an average of 4.5 stars by 100 voters, if you get what I mean...

Also, a distribution of the votes would be useful. Simple, like the one in this page: http://www.athinorama.gr/cinema/data/movies/default.aspx?id=8993 (see it below the video)
Title: Re: Rate That Topic
Post by: SunilDVR on October 19, 2009, 06:00:16 PM
Quote from: vkot on October 12, 2009, 03:00:15 AM
The number of votes should be displayed along with the stars. A topic with 5 stars by one voter probably is not a "better" topic than one with an average of 4.5 stars by 100 voters, if you get what I mean...

Also, a distribution of the votes would be useful. Simple, like the one in this page: http://www.athinorama.gr/cinema/data/movies/default.aspx?id=8993 (see it below the video)

I've run a few reports which include the distribution of votes, but they're in pure SQL - I've not had the need for it to be displayed on the forum I run, so I've not incorporated it into a page. I might look into it, but I've never made a mod and the whole environment will be new to me from a coding perspective - so I wouldn't hold your breath...
Title: Re: Rate That Topic
Post by: Kays on October 20, 2009, 08:19:48 PM
Hi, it has been brought to my attention that there's a conflict between this mod and one of my mods. In MessageIndex.php, my mod alters the following lines:

'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['first_subject'] . '</a>'


This mod adds a line in between those lines breaking my mod. I could compensate for this in my mod. But this would cause an error installing this mod if my mod is installed first. Could you possibly change the search position in this mod to avoid this conflict?

Thanks.
Title: Re: Rate That Topic
Post by: anewhobby on November 16, 2009, 01:42:16 AM
What default theme is this meant to work on.. i upgraded to the latest smf (SMF 2.0 RC2) ..... but when i tried to install the package i got these errors.

10. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
1. Add Before ./Themes/default/ManageBoards.template.php Test failed


and

13. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Add After ./Themes/default/MessageIndex.template.php Test failed
2. Replace ./Themes/default/MessageIndex.template.php Test failed


So... should I just execute the install and then manually do these edits? Is there a diffrent theme that comes with the full version install of SMF?

I am using SMF Default Theme - Core (Uploaded FRESH form the full install pack) .... ??

<----- EDIT

Yea... I tried to manually edit those files... but the search string dosn't seam to be in there at all... can anyone tell me where i am meant to make these edits on the default smf core theme?
Title: Re: Rate That Topic
Post by: C4G-TK on November 16, 2009, 06:08:46 PM
Quote from: anewhobby on November 16, 2009, 01:42:16 AM
What default theme is this meant to work on.. i upgraded to the latest smf (SMF 2.0 RC2) ..... but when i tried to install the package i got these errors.

10. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
1. Add Before ./Themes/default/ManageBoards.template.php Test failed


and

13. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Add After ./Themes/default/MessageIndex.template.php Test failed
2. Replace ./Themes/default/MessageIndex.template.php Test failed


So... should I just execute the install and then manually do these edits? Is there a diffrent theme that comes with the full version install of SMF?

I am using SMF Default Theme - Core (Uploaded FRESH form the full install pack) .... ??

<----- EDIT

Yea... I tried to manually edit those files... but the search string dosn't seam to be in there at all... can anyone tell me where i am meant to make these edits on the default smf core theme?

There were a lot of changes between SMF RC1.2 and SMF RC2.0.  Currently, this mod doesn't say that it is available for RC2.0, so that is probably the main reason for the error and the missing strings.
Title: Re: Rate That Topic
Post by: anewhobby on November 16, 2009, 07:16:59 PM
oh lol.. well that would explain it :) Bummer....

Has anyone been able to get it running in rc2? This modis perfect for my needs.
Title: Re: Rate That Topic
Post by: anewhobby on November 18, 2009, 02:51:00 AM
I installed a new copy of "SMF 1.1.10 " and it still will not install.. the mod says it is made for "1.1.7".... should I switch to 1.1.7  - I am still in the "setup stage there is no data i need to transfer...

Should I switch to 1.1.7?
Is there a way to get it to install on 1.1.10?
Is this Mod still in dev and there could be a update to RC2 soonish?... as in should i just wait a bit?
Title: Re: Rate That Topic
Post by: C4G-TK on November 18, 2009, 02:32:33 PM
I'm not 100% sure, but you should be able to manually install the mod by doing the edits needed and FTP the files (mostly images) to the appropriate directories in order to get it to work.  I no longer have a 1.1.X forum and have switched to SMF20 with RC1.2 and RC2 forums.

But, like I said, it should work if you manually install.
Title: Re: Rate That Topic
Post by: anewhobby on November 18, 2009, 08:06:43 PM
Well I am trying ot get the mod running in RC2.... but there is just 2 edits that error in the pack install.... . .
Title: Re: Rate That Topic
Post by: mward29 on December 01, 2009, 10:51:41 PM
I would like to know the answer to this as well if possible.
Please modify for v2.0 RC2. Would be huge help.
Title: Re: Rate That Topic
Post by: mward29 on December 02, 2009, 02:29:47 PM
I'm manually installing this. Anyone get installDatabase.php to work?
Title: Re: Rate That Topic
Post by: karanthsrihari on December 11, 2009, 08:09:05 AM
Is there any plans of making it 1.1.11 compatible? Thanks.
Title: Re: Rate That Topic
Post by: Fjody on December 23, 2009, 02:58:23 PM
Hi,

it seems that "rate that topic" is exactly what I'm looking for. That's the main reason why I intend to use SMF instead of phpBB on my new website. But...
I tried SMF 1.1.11 and 2.0 RC2 and unfortunatelly it isn't working on neither of these versions.

Any chance to update it to get it work with SMF 2.0 RC2 or SMF 1.1.1? (Don't know which one is better and mostly used, as I'm just a fresh newbie).

Thanks for the answer.
Title: Re: Rate That Topic
Post by: Spoogs on December 23, 2009, 03:12:05 PM
Post Ratings (http://custom.simplemachines.org/mods/index.php?mod=2234) works great on RC2, just enable first post rating to use as a topic rating ;)
Title: Re: Rate That Topic
Post by: Fjody on December 23, 2009, 03:41:45 PM
Spoogs:
Thanks for your advice and yes I have already tried it. Unfortunately I need to see the average ratings next to the topic name list. Such rating should average all the posts ratings and be displayed in the topic list.

Example:
Topic: The quality of BMW cars.
Post no. 1: 3 stars, post no. 2: 5 stars, post no. 3: 1 star.
The rating of the whole topic is 3 stars in average. You can rate just your own post, not the other ones. So the average rating means the average meaning about the BMW quality.

I think "rate that topic" can do this, but I'm not sure about the "post rating".
Title: Re: Rate That Topic
Post by: Spoogs on December 23, 2009, 03:55:44 PM
Post Ratings is pretty flexible, maybe check with the mod author he might be able to help you with the settings you want or possibly add what you need. (just a thought)
Title: Re: Rate That Topic
Post by: SoLoGHoST on December 23, 2009, 04:03:35 PM
OK.  Post Ratings is for Posts Only.  However adding an average ratings for all posts within a topic is doable and can be displayed on the topic page.  So this is something I will add for this mod in the next update for you.  However, users are not able to rate their own posts.  I have coded it so that they are not able to rate their own posts.  It just didn't make any sense to me to allow users to rate their own post.  Is this what you want???  Because that is what I read.

Cheers :)
Title: Re: Rate That Topic
Post by: Fjody on December 23, 2009, 04:20:54 PM
SoLoGHoST:

Yes, exactly. Users should be able to RATE just their own POSTS, but NOT THE OTHER ONES.

It seems strange, but as I wrote before, I need to find out the average OPINIONS of the USERS about the TOPIC.
So, when the Topic name is "BMW quality" and everyone writes a post and rates only his own post, you can see the average meaning of the people about the BMW quality. In the topic lists you would see all the average ratings for Audi, Mercedes etc. - just an example.

P.S. I use the SMF just for one day but I am pretty supprised by it's possibilities and ease of use. It seems much better and flexible than phpBB. Now I'm just looking for such TOPic RATING mod :-)
Title: Re: Rate That Topic
Post by: SoLoGHoST on December 23, 2009, 04:24:09 PM
Are you saying that users should be able to rate all posts within their OWN TOPICS ONLY??  I still don't follow you on this.  And if you are saying this, than what about other users??  Other users will not be able to rate any posts within that topic, only the Topic creator, right?  But Still, only 1 rating for each post within this topic.  Though I can see how this could be useful.  Let me know if this is what you want, k?

If users are only able to rate their own posts, than the most ratings you will have for each post is 1!  The user rating their own post.  How does this help at all???  What's to stop that user from rating his post 5 STARS for every post?  And everyone else will do the same thing.  All topics will have an average of 5 STARS.  Again, I ask, how does this help??
Title: Re: Rate That Topic
Post by: Fjody on December 23, 2009, 04:55:37 PM
SoLoGHoST: I mean rating my own POSTS, not my own THREAD, TOPIC. Anyone can write a post and rate his own post to the topic. The TOPIC should then display the average rating for all the posts, all the users.

I think example could help me to describe the main idea:

I start a topic: What do you think of the BMW quality, write and rate JUST MY OWN POST: "BMW is just an average car", 3 stars rating.
Someone else will write: "I got my own BMW and it's an excellent car". 5 stars rating.
Someone else will write: "I had 3 BMW's, but it was a junk". 1 star rating.

The average rating in the TOPIS LIST would be (3+5+1 / 3) = 3 stars. Users can write a second post in the topic, but they can't rate it for the second time. When someone comes on the the website he can see the "average ratings (average opinions)" for every single topic:

Topic: What is the BMW quality: 3 stars (average rating of all the e.g. 346 people)
Topic: How about Audi?: 5 stars (average rating of all the 996 people)
Topis: What is your rating for Mercedes? 2 stars (average rating of all the 4573 people)
etc.

Let me know if you have any other questions.

Thanks :-)
Title: Re: Rate That Topic
Post by: SoLoGHoST on December 23, 2009, 05:25:52 PM
Ohh, I follow you now.  You are gearing more towards a Topic Ratings MOD, where the user places their rating with their posts, rating the first post within that topic. hmmmm.

This will take a lot of work to implement.  Perhaps I will add this ability and there will be 2 options to choose from within the Post Ratings Admin Panel for this.  Post Ratings or Topic Ratings.  If user selects Post Ratings, than this will be the options and features that it already has now, if Topic Ratings are selected, than users will be able to place a rating when posting or editing their posts instead.

Well, like I said this requires a lot more work and more thought behind it, but I see how this could be helpful.  And posts will still display the rating, and create an average rating for the Topic as well.  I think the name of this mod may need to be changed from Post Ratings to just Ratings, but maybe not.  We'll see.

Cheers, and thanks for explaining this a bit better.
Title: Re: Rate That Topic
Post by: Spoogs on December 23, 2009, 05:33:10 PM
SoLo... maybe adding an option to enable Rate 1st post only would provide an actual topic rating feature (since some seem to be looking for that) The name would still be Post Rating ;)
Title: Re: Rate That Topic
Post by: SoLoGHoST on December 23, 2009, 05:41:43 PM
No, I don't think that is the answer to this, as users may want to still have Post Ratings enabled and allow the 1st post to be rated.  So this would actually take away a feature.  No probs, will still keep the name as Post Ratings, since users are actually leaving their ratings within posts still.

Cheers :)
Title: Re: Rate That Topic
Post by: Fjody on December 23, 2009, 06:43:24 PM
I think, the individual rating should be visible in every post.
So you can see how the Topic/Subject (e.g. BMW quality) was rated by every single person, that wrote a Post/Opinion. Then, in the Topic list, the average rating should be visible

1. Please see the attachment picture. It is from "Rate that topic" mod and the "started by" column is not necessary, but the "topic rating stars" are displayed in a very nice way.
2. Maybe some people would welcome 10 instead of just 5 stars, or some kind of percentage rating 0-100 %.
Title: Re: Rate That Topic
Post by: anakmacan on January 20, 2010, 09:52:07 PM
Sooo apparently when i click http://sadadadsad.com/forum/index.php?action=RateAdmin;sa=defaultsettings and http://dsadsad.com/forum/index.php?action=RateAdmin;sa=boardlist  Both lead me back to my forum page.

http://asdad.com/forum/index.php?action=rateadmin is working, but the other two (default & board settings) link are not.
Title: Re: Rate That Topic
Post by: divecall on January 31, 2010, 02:59:09 PM
Please, an update for SMF 2 RC 2 must be nice.

can somebody do that ?
Title: Re: Rate That Topic
Post by: 7s-1k on February 01, 2010, 10:05:00 AM
Quote from: divecall on January 31, 2010, 02:59:09 PM
Please, an update for SMF 2 RC 2 must be nice.

can somebody do that ?

#2
Title: Re: Rate That Topic
Post by: divecall on February 03, 2010, 04:08:05 PM
A friend of my was changing this mod and he tells me, i can use with SMF 2 RC2.

The installion looks good, but only one mistake appear, during the installation:
QuoteTable 'DBxxxxxx.log_rt' doesn't exist
File: /mnt/web1/22/62/yyyyyyyyyy/htdocs/nameofmypage/Packages/temp/installDatabase.php
Line: 72

Maybe i need to  install this missing table in my DB manually ?

Can somebody try ? And How i can do this ?
Title: Re: Rate That Topic
Post by: Snogmarr on February 03, 2010, 04:18:26 PM
http://www.simplemachines.org/community/index.php?topic=5292.0

Title: Re: Rate That Topic
Post by: divecall on February 04, 2010, 05:51:34 PM
@xnathansxdadx:

Thank you for the fast answer, but this isn´t a really good help for a newbie...
Title: Re: Rate That Topic
Post by: Robbo_ on February 11, 2010, 08:11:58 PM
Here is a version I just ported to 2.0 RC2.

Title: Re: Rate That Topic
Post by: divecall on February 12, 2010, 05:43:30 PM
sound good and the installation is working fine. GOOD WORK

but...

i use SMF 2 RC2 Curve-Theme, there is no rating possibility. nothing, nada, for to give stars...!
Title: Re: Rate That Topic
Post by: Snogmarr on February 12, 2010, 05:47:42 PM
yeah I have the same  problem bit if you look at the post profile the stars seem to come under the profile picture. I have 5 stars under my username...
Title: Re: Rate That Topic
Post by: divecall on February 12, 2010, 05:53:21 PM
in the package manager, i have this MOD double !!!

i never see some stars, not under my username, not in the message index - nothing.
Title: Re: Rate That Topic
Post by: divecall on February 12, 2010, 06:08:03 PM
what a pitty.

i was thinking there is a permission problem with the boards, but there isn´t...

well, i think, this is a small problem...
Title: Re: Rate That Topic
Post by: divecall on February 12, 2010, 06:16:42 PM
SOLVED AND ITS WORKING !

THANK YOU!

Its a permission problem:

go to:

admin>Forum>Boards

click on "modify" (on the right side)

scroll down then you can see: "enable ratings on board"

WOW !
Title: Re: Rate That Topic
Post by: Snogmarr on February 12, 2010, 06:31:30 PM
WTG

I never thought about that!
Title: Re: Rate That Topic
Post by: divecall on February 12, 2010, 06:35:46 PM
me too, but iam happy about that.

THANKS FOR ROBBO_

For all the people, who are using SMF 2 RC2:

The version what was ROBBO_ posting is working !

Please visit his site and give some thank you, kudos, besos, or donations.
Title: Re: Rate That Topic
Post by: dry3210 on March 01, 2010, 04:30:06 PM
Anyone having issues with rating another person's thread in firefox with this mod? 
Title: Re: Rate That Topic
Post by: dry3210 on March 02, 2010, 03:05:40 PM
Quote from: dry3210 on March 01, 2010, 04:30:06 PM
Anyone having issues with rating another person's thread in firefox with this mod? 

Nevermind to this issue.  I figured it out...was a theme issue.

However, is there an easy way (or even a not so easy way) for a person to remove their vote?

And if I uninstall and reinstall this mod will it save the votes?
Title: Re: Rate That Topic
Post by: dry3210 on March 04, 2010, 02:27:45 PM
Also, anyway someone can write coding so that someone can remove their votes entirely?
Title: Re: Rate That Topic
Post by: _sebas_ on March 23, 2010, 02:50:23 AM
hi !

is possible add this mod in a BoardIndex.Template for a simply show stars in a list of recent post in  Info Center ?

thanks

Title: Re: Rate That Topic
Post by: _sebas_ on March 23, 2010, 09:26:02 PM

for example:

very utility
Title: Re: Rate That Topic
Post by: 7s-1k on March 29, 2010, 09:40:06 AM
Already updated to RC3?
Title: Re: Rate That Topic
Post by: TugaBin on April 01, 2010, 01:48:16 AM
Quote from: 7s-1k on March 29, 2010, 09:40:06 AM
Already updated to RC3?
+1
Title: Re: Rate That Topic
Post by: ormuz on April 06, 2010, 07:57:43 PM
Does the smf 1.1.x version add the option to Sort by ratings in board view?
Title: Re: Rate That Topic
Post by: flapjack on April 06, 2010, 07:59:35 PM
depends on the theme in use
Title: Re: Rate That Topic
Post by: ormuz on April 06, 2010, 08:02:55 PM
Quote from: flapjack on April 06, 2010, 07:59:35 PM
depends on the theme in use

?
Title: Re: Rate That Topic
Post by: flapjack on April 06, 2010, 08:14:26 PM
depende del tema en uso. permite que algunos y otros no
Title: Re: Rate That Topic
Post by: ormuz on April 06, 2010, 08:22:04 PM
Quote from: flapjack on April 06, 2010, 08:14:26 PM
depende del tema en uso. permite que algunos y otros no

That's not true... We should be able to do it in all themes. Anyone know who to do it in a custom theme?
Title: Re: Rate That Topic
Post by: flapjack on April 06, 2010, 08:25:32 PM
so you are correcting me saying that what I say is not true, only to contradict yourself in next sentence? makes no sense at all
Title: Re: Rate That Topic
Post by: ormuz on April 06, 2010, 08:28:38 PM
Quote from: flapjack on April 06, 2010, 08:25:32 PM
so you are correcting me saying that what I say is not true, only to contradict yourself in next sentence? makes no sense at all

Do you read my question? I'm talking about the "Sort by ratings in board view" function. If the mod support that function in smf 1.1.x it have to work in all themes...
Title: Re: Rate That Topic
Post by: flapjack on April 06, 2010, 08:33:20 PM
...once you add it manually to that particular theme. and my first reply was to point it out - it's up to a particular theme, whether it works with RTT or not.
Title: Re: Rate That Topic
Post by: ormuz on April 06, 2010, 09:20:34 PM
Quote from: flapjack on April 06, 2010, 08:33:20 PM
...once you add it manually to that particular theme. and my first reply was to point it out - it's up to a particular theme, whether it works with RTT or not.

The mod is working... It just do not have an option to sort the topics by ratings!
Title: Re: Rate That Topic
Post by: sevamaster on April 19, 2010, 01:09:37 PM
Hi there,
I read all pages and did not understand.
Is it updated for rc3?
Title: Re: Rate That Topic
Post by: aw06 on April 20, 2010, 12:41:04 PM
Will this work on Rc3 as many people are asking ? I guess i will try to emulate it
Title: Re: Rate That Topic
Post by: Robbo_ on April 20, 2010, 12:58:06 PM
The mod author hasn't logged in for a long time now. I will most likely recreate this mod with a few extra features some time in the future.
Title: Re: Rate That Topic
Post by: aw06 on April 20, 2010, 01:14:43 PM
Quote from: Robbo_ on April 20, 2010, 12:58:06 PM
The mod author hasn't logged in for a long time now. I will most likely recreate this mod with a few extra futures some time in the future.

Please Do 8)
Title: Re: Rate That Topic
Post by: MATTEK on April 27, 2010, 03:32:15 PM
I'd really like this mod! I have the rate post mod but it gives the option to rate every post. I don't need that. I need a specific Thread rating mod.
Title: Re: Rate That Topic
Post by: aw06 on April 28, 2010, 06:28:47 PM
also, would love a version for 1.1.11
Title: Re: Rate That Topic
Post by: MATTEK on May 03, 2010, 12:12:22 AM
Can't get it to install without errors.
Title: Re: Rate That Topic
Post by: Arantor on May 03, 2010, 05:54:39 AM
Quote from: MATTEK on May 03, 2010, 12:12:22 AM
Can't get it to install without errors.

And we can't help because you haven't told us for instance... WHAT errors, what you're trying to install against, what other mods... we're not mind readers, the only information we have to help you is what you tell us.
Title: Re: Rate That Topic
Post by: divecall on May 29, 2010, 06:12:04 PM
A nice idea for the future issue is, when you can:

-set the rating to zero (no stars)
-see who was rating what (how many stars coming from what member (maybe only the admin ?)

waiting for the next version...
Title: Re: Rate That Topic
Post by: divecall on June 12, 2010, 12:54:50 PM
Something new here ?

I have a problem with the Background for Sticky Tpoics. Looks like this Mod "destroy" the background. For further informations looks like the attached Picture.
Title: Re: Rate That Topic
Post by: divecall on June 18, 2010, 03:51:20 PM
It would be nice, if somebody can make an update/upgrade to SMF 2 RC 3.... ;)
Title: Re: Rate That Topic
Post by: hcfwesker on August 03, 2010, 06:39:44 PM
Quote from: [SiNaN] on August 21, 2008, 06:24:19 AM
I think I got the error.

In some servers, files are case-sensitive. Let's try this:

../Sources/RateAdmin.php

Find:

loadTemplate('rateadmin');

Replace:

loadTemplate('RateAdmin');

But note that, when you click on those stars, you will see the rate log. If you want to rate, you select your rate from the select box at the right, and click "Go!".

Still getting the error.   Even when i disable message index view, and try to rate just in the topic itself.

Thanx for any help.
Title: Re: Rate That Topic
Post by: uygewliqt on September 14, 2010, 02:08:44 PM
Hello buddies, i have got a problem with this mod, first i got the "rateadmin templete error" like other guys, i cannot fix it until i upload a Rateadmin.php file from this topic given by somebody. Now it seems like normal but i also cannot rate the topics except my admin account. In other words i can only rate the topics as an admin. How can i fix the problem? Where is the mistake?

By the way hcfwesker, you might try a given rateadmin.php file by somebody in this topic like me ;)
Title: Re: Rate That Topic
Post by: scvoyager on November 26, 2010, 10:24:10 PM
Quote from: Robbo_ on February 11, 2010, 08:11:58 PM
Here is a version I just ported to 2.0 RC2.


Hey Robbo thanks for your edit. It installed perfect on 2.0 RC3






[/quote]
Title: Re: Rate That Topic
Post by: _sebas_ on November 27, 2010, 07:51:16 PM
hola people!

More people would vote if the choice of voting was as footnotes, not the top of page


I repeated the code to DISPLAY the action of voting is placed at the end of the page and not the beginning

but do not understand what happens:   "get an invalid session error"


Does anyone know why this happens?
Title: Re: Rate That Topic
Post by: Darkness_ on January 23, 2011, 01:43:09 PM
could someone help me with changing the star option to ponts.
so instair of rating it with start people can give +1 or -1 and the sum of this will be showed.
everything is the same only instead of stars the point.
Title: Re: Rate That Topic
Post by: Masterd on January 23, 2011, 01:51:49 PM
When you will update this mod for SMF 2.0 RC4?
Title: Re: Rate That Topic
Post by: bigbusey on January 29, 2011, 02:45:57 PM
yes this would be a great mod if it worked for 2.0 RC4
Title: Re: Rate That Topic
Post by: City Builder on February 05, 2011, 07:32:43 PM
Quote from: bigbusey on January 29, 2011, 02:45:57 PM
yes this would be a great mod if it worked for 2.0 RC4

Definitely Agree ^^

I tried the only other topic rating mod that I could find but it allows people to rate every single post and that goes beyond what we need it to do, we simply need the OP in each thread to be rate-able like this one does on our old 1.x forums.

Anybody, anybody?
Title: Re: Rate That Topic
Post by: RayParker on March 14, 2011, 07:53:37 PM
Hi,
I  have installed this mod, too. As a Admin it works fine and the Users and Board-Mods can vote normally, But just the ADMINS can see how many Stars the people has voted wiith the Click on the Stars (Ratelog). So I like to ask if there is a way to set this mod, so the normal and the Board-Mod can see this "Ratelog", too?

EDIT:
NOTE: I am using Version SMF 1.1.11 with german translation (utf-8) with Default Theme.

2. Question, if I uninstall the Mod, will be the Votes be gone? Or can I Backup them.



Title: Re: Rate That Topic
Post by: RayParker on March 15, 2011, 08:50:42 PM
Are there no Help here anymore?
Title: Re: Rate That Topic
Post by: RayParker on March 29, 2011, 06:16:10 PM
HELLO IS THIS THING ON? Is this not a help an a support Forum???
Title: Re: Rate That Topic
Post by: vkot on April 06, 2011, 04:22:34 PM
It's a pity that this mod is abandoned. The other similar mod, Topic Rating, is abandoned too. So, what will we do? Any ideas? Anyone that has modified the mod?
(I am using 2.0 RC3, and waiting for the 2.0 Final)
Title: Re: Rate That Topic
Post by: samurai-lupin on May 01, 2011, 10:56:25 AM
Hello,

I would like to remove the text "Average Rating:" which is shown in display.template.php

I think it is this line of code

', !empty($context['show_rate']) ? $txt['rate_average'] . ': ' . ($context['can_moderate_forum'] ? '<a href="' . $scripturl . '?action=ratelog;id=' . $context['current_topic'] . '">' : '') . '<img src="' . $settings['default_images_url'] . '/tr' . $context['rating_average'] . '.png" alt="' . $context['rating_average'] . '" />' . ($context['can_moderate_forum'] ? '</a>' : '') : '', '


When I remove $txt['rate_average'] . ': ' . I get a function error.

Can someone please let me know what code I need to change to make this work?

Thank you!
Title: Re: Rate That Topic
Post by: Masterd on May 02, 2011, 03:35:32 PM
Quote from: bigbusey on January 29, 2011, 02:45:57 PM
yes this would be a great mod if it worked for 2.0 RC4

There's an alternative for SMF 2.0 RC5.

http://dragomano.ru/page/mods-for-smf-english (http://dragomano.ru/page/mods-for-smf-english)
Title: Re: Rate That Topic
Post by: City Builder on May 03, 2011, 11:11:39 AM
Quote from: Masterd on May 02, 2011, 03:35:32 PM
Quote from: bigbusey on January 29, 2011, 02:45:57 PM
yes this would be a great mod if it worked for 2.0 RC4

There's an alternative for SMF 2.0 RC5.

http://dragomano.ru/page/mods-for-smf-english (http://dragomano.ru/page/mods-for-smf-english)

I'm trying to figure out if there is a way to limit what forum categories, forums, sub forums I can limit this mod to be used in (the one linked here), does anybody know if that's possible and if so where in the admin section it would be that I can do that?

Thanks,
Title: Re: Rate That Topic
Post by: City Builder on May 04, 2011, 11:34:07 AM
I'm also trying to figure out where the permission settings are for the mod listed 2 posts up so that I can limit which groups can use the rate this topic mod (the one listed 2 posts up)
Title: Re: Rate That Topic
Post by: Biology Forums on May 12, 2011, 11:22:50 PM
How can you make it so that guests can vote also?
Title: Re: Rate That Topic
Post by: studiowi33 on July 23, 2011, 04:13:49 PM
2.0 Final?
Title: Re: Rate That Topic
Post by: The Lurker on August 19, 2011, 07:10:25 PM
Hello,

I have a couple of questions:

1) Can this mod enable ratings for a specified board to apply to existing topics in it?
For example, a board has 100 topics in it.  I'd like to add voting buttons to all of them at once.

2) Can this mod disable or lock ratings as above?
For example, I'd like to enable ratings for two weeks and then disable them and publish the results.

3) Can this mod be used to only allow 1 rating (instead of 1-5) and count the number of people that rated it?

4) Can it run on SMF 1.1.14?


Reasons for asking (http://www.simplemachines.org/community/index.php?topic=447093.0).

Thank you!

Peace,
Lurker.
Title: Re: Rate That Topic
Post by: rocknrollover on April 29, 2012, 10:46:13 AM
I have a slew of errors when I try to install.

I know godaddy (the host) is notoriously difficult to work with, but has anyone installed here?

Lee
Title: Re: Rate That Topic
Post by: nixlike on May 11, 2012, 01:42:51 PM
Dear slinouille, will there be an update for latest SMF? 2.0.2 currently
Title: Re: Rate That Topic
Post by: nixlike on May 11, 2012, 04:53:03 PM
Quote from: aw06 on April 20, 2010, 01:14:43 PM
Quote from: Robbo_ on April 20, 2010, 12:58:06 PM
The mod author hasn't logged in for a long time now. I will most likely recreate this mod with a few extra futures some time in the future.

Please Do 8)

Yes, Please do :)
Title: Re: Rate That Topic
Post by: nixlike on October 30, 2012, 11:15:08 AM
Mod considered to be discontinued?
Title: Re: Rate That Topic
Post by: mikedijital on December 16, 2012, 02:58:47 PM
MAybe someone can help me with this. on the page where the actually rating stars are to pick 1 to 5 stars  it seems it makes the font in my SMF Packs shoutbox get huge but only on pages that have the star selection for you to rate, im assuming its something in this code because its on the same page, and the only time the font gets huge, its when this run of code gets implemented

this goes in the display template, same as the code for the shoutbox

<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], '', (!empty($modSettings['rateTopic_allow']) && !empty($context['rating_average'])) ?  ' - '.$context['rating_number'].' votes)&nbsp;<span class="inline-rating"><ul class="star-rating"><li class="current-rating" style="width: '.($context['rating_average'] / 5 * 100).'%"></li></ul></span>' : ')' , '</span>';
//Topic Rating
if( !empty($modSettings['rateTopic_allow']) && !empty($context['rateTopic_board_enable']) && !$context['user']['is_guest'] ){
echo '
<form action="', $scripturl, '?action=rate" method="post" name="topicRating" accept-charset="', $context['character_set'], '">
<div class="smalltext" style="margin-top:-20px;width:25%;float:right;text-align:right;">';
if ( $context['topic_starter_id'] == $context['user']['id'] )
echo '
<span class="inline-rating">'.
$txt['rateTopic_topic_author_cant_rate'].
'</span>';
else {
if ( $context['user_can_rate'] == 1 && $context['topic_starter_id'] != $context['user']['id'] )
echo '
', (!empty($modSettings['rateTopic_allow']) && !empty($context['user_rating'])) ? $txt['rateTopic_Again'] : $txt['rateTopic_New'], '
<span class="inline-rating">
<ul class="star-rating">
<li class="current-rating" id="current-rating" style="width: '.($context['user_rating'] / 5 * 100).'%"></li>
<li><a href="javascript:RateThatTopic(1)" class="one-star"></a></li>
<li><a href="javascript:RateThatTopic(2)" class="two-stars"></a></li>
<li><a href="javascript:RateThatTopic(3)" class="three-stars"></a></li>
<li><a href="javascript:RateThatTopic(4)" class="four-stars"></a></li>
<li><a href="javascript:RateThatTopic(5)" class="five-stars"></a></li>
</ul>
</span>';
else
echo '
<span class="inline-rating">'.
$txt['rateTopic_please_wait'].
'</span>';
}
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />
<input type="hidden" name="board" value="', $context['current_board'], '" />
<input type="hidden" name="rate" id="rate" value="" />
</div>
<script>
function RateThatTopic(value){
document.getElementById("rate").value = value;
document.topicRating.submit();
}
</script>
</form>';
}
echo '



Title: Re: Rate That Topic
Post by: Skaty on January 10, 2013, 03:34:34 PM
any update for 2.0.2 or 2.0.3 ?
Title: Re: Rate That Topic
Post by: dodos26 on January 27, 2020, 01:50:51 PM
Can update to 2.0.17?