Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1313)
Rate That TopicThis mod gives the users the ability to rate topics. Here are the features noted in a detailed way:
- An ultimate admin panel allows you to set every possible setting for the mod
- A settings to completely disable the feature
- Ability to disable or set the values and exclude groups for each board
- Supports both "Default" and "Local" setting for each board
- Feature to reset the topic ratings
- Ability to show ratings on message index
- "Do not show sticky topic ratings" feature
- Rating log feature feature
- Rate again and Change rate features
-[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)
IntroductionThis 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.
Featureso 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
InstallationSimply 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.
SupportPlease use the modification thread for support with this modification.
Changelog2.2.0 - 05th May 2008o Added: customizable delay before re-rating
2.1.11 - 25th April 2008o Added: topic author can't rate
o Bug correction: Database installation log errors
2.1.10 - 23th April 2009o Correction of a bug when sorting by rating. Thanks to Tanks ;)
2.1.9 - 23th April 2009o Correction of a bug in TableInstall script. Thanks to Tanks ;)
2.1.8 - 23th March 2009o Corrected and optimized database installation and update
2.1.7 - 16th February 2009o 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 2009o Debuging releases for full compliance with SMF2RC1
2.1.0 - 27th December 2008o Initial release
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!
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?
Nice Mod [SiNaN], this is a useful feature which I have seen in vBulletin. :)
Now, if only there was a SMF 2 Beta version....... ;)
would be so cool if this was also for SMF 2b :) Thanks anyway :)
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
[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. ;)
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?
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... ;)
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?
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!".
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 :)
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.
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.
Nice mod @Sinan
Thanks :)
[SiNaN]
in the default template is not working too
i made all modifications on my template and is not working
Can you see the Admin Panel of the mod?
no... i was searching it in the admin panel but i cant find it
any manual edits ? I cannot get this right...
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.
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?
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.
See this image, at the right:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1313;id=63411;image
Sinan , thanks for the reply quickly
i did the change u asked to
but still the same problem
any idea ?!!
Can you attach your RateAdmin.php file here?
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.
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.
okayz
heres my rate admin file
thank you .
I see that you didn't make the change I've mentioned. Can you try the one attached?
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
Weird. Did you make the change I gave in the first page?
BTW, why did you click on those stars?
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
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...
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.
I did the edit. yet the same problem.
That error seems to me like a mod_security problem. Maybe you try turning that off.
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..
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.
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..
Glad that did the trick. I'll fix it in the next version.
The idea sounds good to me, I'll consider that.
Thanks for your help. Its gonna be great to work on my users ratings.. :)
It was available on the first page. Now added to the first post.
http://www.simplemachines.org/community/index.php?topic=256732.msg1669067#msg1669067
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.
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.
If you have an idea about where we can put it instead, I can do it for you.
Hmmm anywhere in the vicinity I think, how about in the menu bar?
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.
Thanks Sinan your a gentleman. Right above the previous/next would be fine
@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. ;)
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. ;)
searchbox Sinan Thank you
:)
Excuse me Sinan.... How can I move the star rating to right in discussion?
Tnx ;)
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?
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 ::)
Hi again!
How do I add this feature into DilberMC theme?
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).
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.
attached,? where?
TechPrince:
Attach your files and I'll do them for you.
Rafferty:
Sorry, I forgot.
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.
I meant, can you show me codes to figure that out?
If it doesn't have Display.template.php, it should be working.
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
Okay, glad you get it working. :)
Awesome mod , really nice work, thanks sinan
Here are the scripts
NIBOGO:
Thanks.
TechPrince:
Your MessageIndex.template.php file is attached. But I need Display.template.php not BoardIndex.template.php.
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! :(
OOPS, here is the file :
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
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
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 :(
Sorry, I am lama :D
I will try...
Can you make option for don't show stars on Message Index where message rating is empty.
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)))
Nice work, thanks [SiNaN] ;D
CZ translation Modifications.czech-utf8.php THERE (http://www.maxiforum.cz/index.php?topic=18536)
TechPrince:
Sorry for delay. What is the theme you are using? Can you provide a link?
MaxiPes:
Thanks MaxiPes. I'll add it ASAP.
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
Open
../Themes/default/languages/Modifications.english.php
Find and Cut:
?>
Paste at the very end of the file.
I am using Musiconica Theme (http://custom.simplemachines.org/themes/index.php?lemma=139)
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!
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!!!!
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?
Looks great.
But I don't think that it's something that I need right now ;)
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.
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?
Have you enabled it for the boards you want to use it?
I thought I did. I had tried just about every option I could think of.
Can you provide me an admin account via pm to check it?
can you please work over the hover stars for this rating ? I am too much interested...please... would be great stuff to add in.... :)
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.
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 ?
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
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.
I have tried that and yet there is nothing.
go to the boards settings over there which is just next to that tab.. enabale it in the specific boards and check it.
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.
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
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
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
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.
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 :)
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
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 ?
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.
[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
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 ?
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
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
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.
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
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?
Hi [SiNaN]
I dont want members can rate ther own topics, how can i do it?
Thanks!!
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?
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 :)
ok, NM, i forgot to set it to LOCAL
all is good now :)
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?
Did the edits you posted on page two work for 1.1.6? . Now I get the following errors.
Undefined ID input.
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...?
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
First post here: http://www.simplemachines.org/community/index.php?topic=256732.0
tells you how to fix that issue.
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"
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
ahhh, :)
good to hear you have it fixed. Now only if someone can chime in to fix my missing stars issue :(
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
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.
ok m8...........
one more thing to ask is how can i make it so my mods can see who voted ant idea...?
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.
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
i tested it out and for me all it dose is stop the mod working lol.........says error when you click the stars
are you talking about that code that you posted above?
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
Did you activate in the admin panel?
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
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
id use them if i could get them to display. As of now it only displays numbers 0 - 5
wot do you mean..? i am no expert
dose it work on the default theme...?
Nope, stars do not work on any theme. Not even default :(
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
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..........?
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
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.
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
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.
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.
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.........
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?
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)
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?
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
Check the mod settings if they are correctly set.
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
You're welcome. ;)
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...?
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.
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)
Okay, you can send me.
PM sent :)
and thanks
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....
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
Any chance this may be upgraded for 2.0? It appears to be an excellent mod.
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!
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.
I don't think I'll have enough time to update this. Still looking for someone to take over the mod.
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.
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.
were is the option to activate this mod? cannot find it anywhere
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)
Phat^Trance:
Admin CP >> Topic Rating Admin
cleanfiles:
Thanks, glad you liked it.
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).
I like the minimum vote needed, good idea.
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?
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
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.
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..
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
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.
Hmmm not looking to good then lol.
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
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
guess i will have to keep plodding along by myself, no support for this mod.......
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.......
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!!
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
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
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']
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
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
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.
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)
OOPS i didnt enabled that board :P Problem Solved :)
Mod is taken over by slinouille (http://www.simplemachines.org/community/index.php?action=profile;u=68142).
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.
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)
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)
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?
@shanksta13: okay I see what you want ... good ideas ... I'll add them soom ... thanks ;)
@KahneFan: ratethattopic has to be enabled by board.
I just looked in the board I've been testing in and it shows to be enabled.
Actually, now that I look at it, I don't see the permissions anywhere and I'm having the same issue.
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
Ok new release 0.2.3 is available.
I really hope you like it :P
Still not allowed to rate (as a member)
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
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?
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.
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.
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.
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.
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.
Is it working for anyone else? Still not working for me...
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 ?
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)
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
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)
As for location, it is specific to my theme, but I actually put the stars in their own column.
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 ?
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.
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
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?
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!
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.
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.
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.
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?
It should be listed as smf_log_rt
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.
@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) ;)
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).
Love the floating star concept.
However the new module makes the first post of a thread look weird (smf 2.0 RC1)
Perry
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?
What were the updates from 2.1.5 to 2.1.6?
@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
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
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.
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??
seems to be very useful thx
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 ?
if (isset($_GET['topic']))
:)
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
@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 ;)
Version 2.1.7 has been released ... please give me your feedback :)
Version 2.1.7 Installs fine for me on RC1, and gives no errors in the logs.
Great Mod thanks :D
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
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.
@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.
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?
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.
@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 ;)
Ooh, i see! Thank you slinouille. The mod is looking real slick! Nice work!
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.
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? :)
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?
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
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
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
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.
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..
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>
@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
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!
@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
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?
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)?
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.
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.
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
Topic owner should not allowed to vote :|
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.
works perfectly thx ;)
@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 ;)
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 ? :)
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!
@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)?
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
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.
Where is the setting so that Guests can add a rating?
Thanks,
victoryrock
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.
I have the rating system enabled by defualt for ALL i didnt change any to local.
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
Anyone who know my problem?
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
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
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
Thanks :)
Version 2.1.9 have been uploaded. It is only a package integrating this correction.
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
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!
Good Update slinouille.
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
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
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
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
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
It works :) Thanks, you are a great coder ! ;)
I always get the creeps when i have to edit inside php files :)
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.
is the packages also fixed for the 1.1.8? or no body fix the issue for that version
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
???
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!
@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?
Thanks Slin...
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
Maybe More details, the stars bar where to put the rating dont show up any where,
Sorry for my bad english :-)
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.
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???
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
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.
Any 1 who did understand my problem?, look for my earlier posts in here :((
Thanks a lot.
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.)
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.
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?
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
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?
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
Does this work with 1.8 at all?
What is the time period for the "Rate again wait time:"? Should you enter in seconds or minutes.
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
@ Babyloniia
I sent you a private message.
@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.
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.
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.
C4G - Ive sendt you those fail by email.
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.
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.
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!
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
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)
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.
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
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.
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...
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.
@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
I wish I could help you. I'm good with performing edits, but have no clue when it comes to actually writing code.
i know what u mean.... ;)
thank you
can somebody help ?
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
Hey, sounds good !
i will give a try, thank you.
i post the result here....
:D :-*
THANK YOU SO MUCH
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,...
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
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
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 ;)
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! ;)
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!
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
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
Wish I could help.
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
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
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.
it's ok now.. for a strage reason, i don't save my modify !!! now it's ok
thanks for this awesome mod
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 :-[
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.
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 :)
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?
@ 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.
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
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)
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 :)
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!
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
when i click on the stars i get this :
An Error Has Occurred!
Unable to load the 'rateadmin' template.
using 1.1.9
bump
Check first post.
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!
Use version 1.0.
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!!!
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?
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
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.
Does this work with 1.1.9 ?
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
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.
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!
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 ??
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.
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".
QuoteDid you both do this mod manually?
no, i didn't do it manually.
i installed it through ACP. thanks.
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)
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
čo narobíš :-D A ty vieš čo som chcel povedať ? Mohol by si preložiť ak by si bol taký dobrý :)
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 :-)
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 :)
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?
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.
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.
Can you attach a copy of your Display.template.php file? (I think that's the one it would be.)
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š...
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??
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...
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...
is this compatible with smf 1.1.10?
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!".
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?
Yup i guess so..
common guys do any one see on the problems i post..
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.
no mate i have already installed this mod.. i was asking for better look.. see my above posts with screen shots..
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)
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...
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.
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?
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.
oh lol.. well that would explain it :) Bummer....
Has anyone been able to get it running in rc2? This modis perfect for my needs.
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?
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.
Well I am trying ot get the mod running in RC2.... but there is just 2 edits that error in the pack install.... . .
I would like to know the answer to this as well if possible.
Please modify for v2.0 RC2. Would be huge help.
I'm manually installing this. Anyone get installDatabase.php to work?
Is there any plans of making it 1.1.11 compatible? Thanks.
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.
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 ;)
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".
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)
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 :)
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 :-)
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??
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 :-)
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.
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 ;)
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 :)
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 %.
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.
Please, an update for SMF 2 RC 2 must be nice.
can somebody do that ?
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
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 ?
http://www.simplemachines.org/community/index.php?topic=5292.0
@xnathansxdadx:
Thank you for the fast answer, but this isn´t a really good help for a newbie...
Here is a version I just ported to 2.0 RC2.
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...!
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...
in the package manager, i have this MOD double !!!
i never see some stars, not under my username, not in the message index - nothing.
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...
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 !
WTG
I never thought about that!
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.
Anyone having issues with rating another person's thread in firefox with this mod?
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?
Also, anyway someone can write coding so that someone can remove their votes entirely?
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
for example:
very utility
Already updated to RC3?
Does the smf 1.1.x version add the option to Sort by ratings in board view?
depends on the theme in use
depende del tema en uso. permite que algunos y otros no
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?
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
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...
...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.
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!
Hi there,
I read all pages and did not understand.
Is it updated for rc3?
Will this work on Rc3 as many people are asking ? I guess i will try to emulate it
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.
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)
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.
also, would love a version for 1.1.11
Can't get it to install without errors.
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.
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...
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.
It would be nice, if somebody can make an update/upgrade to SMF 2 RC 3.... ;)
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.
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 ;)
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]
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?
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.
When you will update this mod for SMF 2.0 RC4?
yes this would be a great mod if it worked for 2.0 RC4
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?
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.
Are there no Help here anymore?
HELLO IS THIS THING ON? Is this not a help an a support Forum???
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)
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!
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)
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,
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)
How can you make it so that guests can vote also?
2.0 Final?
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.
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
Dear slinouille, will there be an update for latest SMF? 2.0.2 currently
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 :)
Mod considered to be discontinued?
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'], ' (', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], '', (!empty($modSettings['rateTopic_allow']) && !empty($context['rating_average'])) ? ' - '.$context['rating_number'].' votes) <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 '
any update for 2.0.2 or 2.0.3 ?
Can update to 2.0.17?