Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SoLoGHoST on October 27, 2009, 11:54:09 AM

Title: Post Ratings
Post by: SoLoGHoST on October 27, 2009, 11:54:09 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2234)

Languages Supported: English and Russian.
POST RATINGS 1.6
Allows your Posts to be rated on a scale of 1 - 5 stars.  Many features and options included for this.

Detailed Description:
Post Ratings allows your posts to be rated on a scale from 1 - 5 stars.  Users can not rate their own posts.  This mod is completely customizable.  You can choose the rated and non-rated images to display.  Put BBC and Smileys into the rating options.  And many more features.  You can Enable All Posts, and/or New Posts, or Disable All Posts, and/or New Posts from being rated.  You can choose to not allow the First post within a topic to be rated.  You can set the % values for each rating within the Ratings Threshold and also set the Ratings Threshold Strength.  You can also choose a limit on how many ratings each post can have as well as what to do when locking that topic.  If a message and/or topic is removed, all ratings within that message/topic will also be removed.  Also, permissions can be set to allow for enable/disable in topics and/or posts on a per Board basis via Board Profiles.

This mod lacks certain features that are presented in Post Ratings Pro (http://www.simplemachines.org/community/index.php?topic=344748.msg3887773#msg3887773), which can be downloaded here:  http://www.simplemachines.org/community/index.php?topic=344748.msg3887773#msg3887773
Post Ratings Pro provides everything the Post Ratings Mod has, plus the addional abilities listed below:

Note:  After installation, you should go to your SMF Permissions area and setup the permissions for Post Ratings before Enabling it, that way everything should work as planned once Post Ratings is Enabled in the Topic and Posts Admin Area of SMF.

Important Note:  To ensure Post Ratings Settings are correctly placed and loaded, you will be redirected so that your File Cache will be cleared, directly after installing Post Ratings.  After which, go to: Forum -> Posts and Topics -> Post Ratings and complete setup.  Than make sure you have your permissions set for each usergroup.  You will notice their are Board Profile permissions as well for enabling in topics and posts.
Title: Re: Post Ratings
Post by: Sudhakar Arjunan on October 27, 2009, 02:45:53 PM
Excellent mod will try it now.
Title: Re: Post Ratings
Post by: Marcus Forsberg on October 27, 2009, 02:47:36 PM
Great job on this. Nice programming, nice features, nice layout... Keep it up! :D
Title: Re: Post Ratings
Post by: SoLoGHoST on October 27, 2009, 03:04:40 PM
Thanks very much guys :)

Note:  This is the first mod I ever published that was approved by the SMF Customization Team the first time around and didn't have to be changed, other than my Next Topic Page mod (which is so easy and simple), and my SoLoSMiLeY's mod which is just smiley's, so it's good to know I'm finally getting the hang of making mods for SMF :)
Title: Re: Post Ratings
Post by: alex30 on October 27, 2009, 07:27:04 PM
1.1.10 please.  :D
Title: Re: Post Ratings
Post by: Arantor on October 27, 2009, 07:32:31 PM
Quote from: SoLoGHoST on October 27, 2009, 03:04:40 PM
Note:  This is the first mod I ever published that was approved by the SMF Customization Team the first time around and didn't have to be changed, other than my Next Topic Page mod (which is so easy and simple), and my SoLoSMiLeY's mod which is just smiley's, so it's good to know I'm finally getting the hang of making mods for SMF :)

And you've made a very fine job of it too :) (In case you're wondering, not all of mine - even now - get through first time)

This is a fantastic mod, please do keep it up!
Title: Re: Post Ratings
Post by: TwitchisMental on October 27, 2009, 07:32:45 PM
Great mod idea man.

Did you get the idea form a vbulliten mod? (Just wondering)
Title: Re: Post Ratings
Post by: SoLoGHoST on October 27, 2009, 07:57:25 PM
@ Arantor - WoW, now that is something I would've never expected.  Good to know that, not even, the Great Arantor is exempt from making mistakes. 8)

@ NBK*Twitch - Actually, No, I'm not very familiar with VB's mods as I never actually owned a copy of VB.  Actually, I got the idea from being a part of Graphics Mayhem (http://graphicsmayhem.com) where we create Logo's and Wallpaper's each month and it's a lot of fun, however, Shortie, the Lord of Mayhem, places the best logo's up top each month.  And I thought it would be a good idea for us to vote on which logo's we liked best.  So thus, Post Ratings was born.  Also, did a search here at SMF and discovered there were a few topics on this that users have previously requested for just this (or close enough to it), so this actually gave me more motivation to code it.

@ alex30 - If you know me, I don't make any mods for 1.1.10.  I have tried this and I just don't like doing it.  Sorry, but, the only way, I'll consider coding a mod for 1.1.10 is for $$.  It's just that I've put 1.1.10 behind me and not interested in looking back.  In short, like I say for all of my mods, if there is enough demand for it for SMF 1.1.10 with users willing to pay $20 USD, I will code it for 1.1.10 (Atleast 10 people).  Otherwise, it's just not worth it for me.

Thanks for liking this mod! :)
Title: Re: Post Ratings
Post by: MaXiForum.cz on October 28, 2009, 10:54:25 AM
Very nice modification! ;)
Title: Re: Post Ratings
Post by: SoLoGHoST on October 28, 2009, 01:40:06 PM
Thank You! :)
Title: Re: Post Ratings
Post by: Freedbot on November 04, 2009, 05:08:16 AM
Thank you!  Jeez, just what I was looking for.  Rate that Topic has a couple visual quirks and it lacks features, then I find this.  Again, thank you.  Now if I may make some demands, err... I mean reque... suggestions.  ;D

First, I'd like to be able to switch it up so it can be set to only rate topics, rather than topics and posts.  Of course, a column with star ratings on the boards so you can sort by rating (that'd be the whole point to rating in the first place).  I see you already plan on doing that for posts, I'm sure that won't be as easy to code since sorting posts dynamically isn't in the default GUI, but I look forward to it.  Anyway, lastly, I need to be able to disable/enable ratings by default on a per board basis.

I will be using, updating, and testing this mod for you starting.........   now!  :)
Title: Re: Post Ratings
Post by: SoLoGHoST on November 04, 2009, 08:59:43 AM
Hello Freedbot,

Thanks for your demands, err Suggestions ;)  There will be another update that will address all of the things you mentioned as well as many many more features that you haven't mentioned, soon.  Just can't pinpoint an exact date for ya.  Also, I may or may not make this newer version a PAID FOR mod, as I haven't decided on this yet.  Though, if I do, will be approx. $20 - $30 USD to purchase.  And if I do, I'll make the link available within this topic for where to purchase Post Ratings Pro at.  But, like I said, still considering this.

Cheers :)
Title: Re: Post Ratings
Post by: Freedbot on November 04, 2009, 07:17:22 PM
I am but a simple machine.  I haz not this "moniez" 4 which U ask.  I do however have a simple plan:  To increase my e-peen by learning web design and sharing the fruits of my digital labor with the world, so that the masses may have a place to congregate.  They shall marvel and weep at the erected site I hath wrought, and worship it's creator.  Thus is the dream of the freed bot.

Two months ago, with no prior knowledge of http or css, I began to enact my plan.  I happened upon a free copy of Dreamweaver, so I started there.  I tinkered with it and perused instructional videos over my free time.  A little later, I set up a free account on Awardspace, and hosted a simple placeholder page.  I had a truly liquid interface and some simple (poor) graphics designed and in place.  I struggled to center my navigation bar without any designated widths in place, but did not give up.  Next came the truly hard part.  I searched, for I needed a free forum that would get the job done.  All roads lead to SMF.

The install wasn't difficult, and the forum was speedy, but when I tried to introduce my required features through modification I discovered the dreaded PHP safe mode.  The fault lied with Awardspace.  I searched for a better free host, but Awardspace still appeared to be near the top of the list for features.  Rather than pay for a host I dug in my heals.  I had a Dell Optiplex GX260 in the other room as a backup computer.  I had been using it to teach myself of Linux.  I mercilessly reformatted and began the arduous task of setting up a functional Web/DNS/Mail host, again without prior knowledge.  I would not be denied my free access to "how to shot web"!

I now have a nearly completed basic format.  I just need some cleanup, and a whole buttload of content to put in it.  I am running a co.cc domain, but when I can get a donate button in, and enough people to cover a couple bucks a month, I will buy a domain name.  Victory shalll be mine.

The Freedbot

Sorry for waxing idiotic.  I do that sometimes. O:)
And I needed to get that off my chest.
I'm also working on making the Freedbot admin sort of a crazy mascot robot thing.  I have yet to decide if the idea is cool or just Royally Retarded.  :-\ It worked for ThinkGeek's monkey.

Anyway, My point is that while your mod will be exactly/perfectly what I need when you finish it.  I'm devoting myself to as little expense as possible on this since this is entirely self taught and I don't want to invest anything until I know it'll be popular.  I also wasn't lying when I said I'm broke.  My policy on this experience has been: "if the easy way costs money, do it the hard way".  I'm learning a lot this way and not regretting it so far.  If I have to pay for your mod, no offense, then I'd rather modify a lesser mod until it does the basics of what I need.  Or if I have to I'll just go out and learn enough PHP to make some crappy modifications from scratch.  I really don't want to do that because my attempt would be a pain to do, take forever, and be a poor hack compared to what you've got there. :P
Title: Re: Post Ratings
Post by: SoLoGHoST on November 04, 2009, 09:14:26 PM
New Update, found error in Post Ratings, hmmm, and Squashed it.  Hopefully no more errors.  Basically, if a topic was trying to be moved to another board, the is_ratings error would pop up and prevent this from happening, since $topicOptions did not have $ratings_mode defined.  Please note, if there is a function within any of you mods that call createPost and/or modifyPost functions within SMF, and you have Post ratings installed.  Within $topicOptions array, you'll need to have 'ratings_mode' => 1, defined in there.  And within $msgOptions array, you'll need to have 'ratings_enabled' => 1, in there.  Ofcourse setting this to 0 should make it disabled, but it's you're call on how you set it.

So, this MOD has been revised (still at version 1.0) so as to FIX this problem of preventing the topic from being moved when Moving topics from 1 board to another via posting Additional Options, etc..

The following edits should be made to ./Sources/MoveTopic.php (This has been included within the new REVISED Post Ratings Mod):
FIND:
'smileys_enabled' => 1,
ADD AFTER:

'ratings_enabled' => 0,


FIND:
'lock_mode' => 1,
ADD AFTER:

'ratings_mode' => 0,

That it.  You can make the edits manually if you already have the mod installed, as it will keep your current ratings within your posts.  Otherwise, if this doesn't matter to you, go ahead and uninstall and reinstall it.

Cheers :)

Oh, and bytheway Freedbot, nice to get to know you a little ;)
Title: Re: Post Ratings
Post by: Bruno36 on November 07, 2009, 02:50:50 AM
Hello!

I have an error message when I want to write a new topic

The database value you're trying to insert does not exist: is_ratings
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 04:45:21 AM
Wow, I see what you mean, will fix momentarilly and thanks for pointing that out.

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 05:02:44 AM
Hello, it's because you have it disabled, and I musta missed that :(

Here's how to fix it, and am currently reuploading the package right now.

Open up ./Sources/Post.php and do a search for:

ratings_mode

It should find it in there 2 times.  Where it gets defined in $topicOptions['ratings_mode'] change the last words in there from null to 0.  And that's it.

Cheers, will upload the package right now.
Title: Re: Post Ratings
Post by: C4G-TK on November 07, 2009, 12:30:26 PM
I see where it can be up to the author of a post to choose whether or not their post is able to be rated.  But, is there an option to make ALL posts automatically be required to have the post rated?
Title: Re: Post Ratings
Post by: Bruno36 on November 07, 2009, 12:49:40 PM
SoLoGHoST thank you for this great mod
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 01:08:31 PM
Thanks Very Much Bruno :)

Quote from: C4G-TK on November 07, 2009, 12:30:26 PM
I see where it can be up to the author of a post to choose whether or not their post is able to be rated.  But, is there an option to make ALL posts automatically be required to have the post rated?

If you want all posts automatically set to rated, go into Post Ratings Settings -> Automatic Ratings Setting for Topics, selecting -> All Topics (Enabled) will set all of your topics to enabled on your forum and automatically set new topics created to enabled as well.  selecting -> New Topics (Enabled) will not touch any of your old topics, it will only make it so that any topic created after you set this, will be automatically set to enabled.

If you don't want users to be able to enable/disable their own topics for rating it or not, you can do this on a PER BOARD BASIS, in Board Profile Permissions.  You should go to the Permissions section, select the membergroup you want to disable this for, and just make sure that Enable Post Ratings (underneath the Topics section) is unchecked for Own and unchecked for Any.  If you don't want them to be able to enable/disable rating of posts in any topic (including their own topics), you can also do this for Posts.  So underneath the Posts section of the Board Profile Permissions, you will see Disable Ratings (uncheck both, Own post and Any post).  There, they will have NO control now, over whether their posts/topics are being rated.  This will be completely dependant now on the Post Ratings Admin settings, unless someone who has the permission to do any post/any topic changes this.

Well, hopefully you guys understand as I felt this to be the best and most logical way to implement this.

Cheers :)
Title: Re: Post Ratings
Post by: C4G-TK on November 07, 2009, 02:08:00 PM
OK, great.  I've really liked the Rate That Topic mod, but wanted something that was for every post and not just the first post.  This looks to be like what I need then.  I kind of got confused with all the options on yours! (It doesn't take much.) 

 
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 02:59:32 PM
I hear ya.  Well, actually, it takes a lot more than you think.  It's extremely involved when dealing with posts as there are many options that are permitted for posts within SMF, Lock, Sticky, Modify, Disable Smilies, Announce, etc. etc. etc..  So this makes it exceedingly difficult, since you'd have to take all of this into consideration and than some on creating a mod that does anything to actual posts.  The options for Post Ratings are needed to provide flexibility within the mod (to suit your needs better), for all of the things that were considered when creating the mod, to give you control over how it works.  Since what's the point of having something new and/or different, if you have no control over it, or very limited control over it.  You might say that I'm a control freak when it comes to offering control to the END-USER of my projects...lol.  And it's also, because I can't decide on what to do myself.  So if I get stuck within coding on the decision of should I do this?  or should I do that?  I'll normally just say, ahhhh, what the %%&#, let the user decide on what they want and move on.

Cheers :)
Title: Re: Post Ratings
Post by: C4G-TK on November 07, 2009, 03:02:51 PM
LOL

I mean it doesn't take much to get me confused!  LOL :D
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 03:17:56 PM
hehe, OK, I gotcha.

Thanks for clearing that up :-X ;)
Title: Re: Post Ratings
Post by: Freedbot on November 07, 2009, 06:30:00 PM
I noticed when uninstalling and reinstalling the fixed version that uninstalling does not remove the files added to the custom theme folder.  Pretty sure it's only images, but I figured I should mention it.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 07, 2009, 07:06:38 PM
Custom Theme folder??  No files should be added by Post Ratings to a custom theme folder.  All files go within the default theme folder.

Are you saying that the files that go into the default theme folder do not all get removed?? 

Here are the files installed:<require-file name="PostRatings.php" destination="$sourcedir" />
<require-file name="postRatings.js" destination="$themedir/scripts" />
<require-file name="enable_ratings.png" destination="$imagesdir/buttons" />
<require-file name="disable_ratings.png" destination="$imagesdir/buttons" />
<require-file name="delete_ratings.png" destination="$imagesdir/buttons" />
<require-dir name="post_ratings" destination="$imagesdir" />



And Here is the uninstall xml code for removing the files installed...

<remove-file name="$sourcedir/PostRatings.php" />
<remove-file name="$themedir/scripts/postRatings.js" />
<remove-file name="$imagesdir/buttons/enable_ratings.png" />
<remove-file name="$imagesdir/buttons/disable_ratings.png" />
<remove-file name="$imagesdir/buttons/delete_ratings.png" />
<remove-dir name="$imagesdir/post_ratings" />
<code>postratingsUninstall.php</code>


Seems to be removing the images to me.  What images aren't removed??
Title: Re: Post Ratings
Post by: Freedbot on November 08, 2009, 05:48:55 AM
(copy-pasta'd directly) I mean this..

- Install in Other Themes

                Extract File       ./Themes/BacknBlack201/images/buttons/enable_ratings.png     
      Extract File    ./Themes/BacknBlack201/images/buttons/disable_ratings.png    
      Extract File    ./Themes/BacknBlack201/images/buttons/delete_ratings.png    
      Extract Tree    ./Themes/BacknBlack201/images/post_ratings

These are the same as the files installed to the default theme images folder, they aren't removed upon uninstallation.  This is of course using the packages manager.  It has the choice to install to the custom theme, but doesn't remember it has when you choose to uninstall.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 08, 2009, 10:18:20 AM
Well than this is a problem with SMF, nothing I can do about it as a mod author than.
Title: Re: Post Ratings
Post by: Arantor on November 08, 2009, 12:19:35 PM
Indeed, this is an SMF issue, because it's never recorded which other themes it has been installed on.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 08, 2009, 04:52:59 PM
Thank You Arantor :)
Title: Re: Post Ratings
Post by: Arantor on November 08, 2009, 04:54:48 PM
In fact, I even reported it: Bug #3966: Mods installed on non default themes don't get properly uninstalled again later (http://dev.simplemachines.org/mantis/view.php?id=3966)
Title: Re: Post Ratings
Post by: Freedbot on November 08, 2009, 07:30:58 PM
Hmm, that is unfortunate.  I hadn't noticed before.  :-[ I'll have to be careful when next I go to uninstall something.  With all the customization of the theme and color scheme I only use one theme.  I don't even allow the default theme as an option.  The only reason I ever go to the default is to debug any quirks I find on the other theme.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 09, 2009, 11:48:08 AM
Ok guys, Post Ratings now compatible with SMF RC2, and actually I like it better with Curve than with the Core theme.  But, than again, I think everything looks better in the Curve Theme as opposed to the Core Theme.

Cheers and Enjoy :)
Title: Re: Post Ratings
Post by: anewhobby on November 13, 2009, 11:34:17 PM
Dose this work on version 1.1.10?
Title: Re: Post Ratings
Post by: SoLoGHoST on November 14, 2009, 12:05:43 AM
No, if you want a 1.1.10 Version of this mod and are willing to pay $20 USD for it, I will do it once I have 10 people interested for this.

Cheers :)
Title: Re: Post Ratings
Post by: jdvarner on November 14, 2009, 08:39:18 AM
Very Nice mod. Interested in a 1.1.10 version.
Title: Re: Post Ratings
Post by: vkot on November 16, 2009, 10:22:07 AM
The number os voters should be displayed too! A rating gets more credibility when there are many voters and vice-versa.
A topic with a rating of 5 stars by one voter (probably by the creator of the topic) is not better that a rating of 4.5 stars by 100 voters.

This is what I told to the creator of this mod http://mods.simplemachines.org/index.php?mod=91 a long time ago. I haven't seen a rating mod that does what I told, and I wonder why it seems that no-one finds it necessary...
Title: Re: Post Ratings
Post by: SoLoGHoST on November 16, 2009, 01:32:42 PM
Hello vkot,
I agree, and in Post Ratings, it will tell you how many times the post has been rated... Rated 2 times.  And you are not able to rate your own posts or topics.  Have you tried this mod yet?

When I update this mod so that posts in a topic can be ordered by highest/lowest rating, I will be looking at how many times the post has been rated as well.

Cheers :)
Title: Re: Post Ratings
Post by: anewhobby on November 17, 2009, 08:43:06 AM
Can this mod be set up to only allow rating in the first post?  To basically turn it into a topic rating mod?
Title: Re: Post Ratings
Post by: SoLoGHoST on November 17, 2009, 01:12:55 PM
Actually, haven't thought of this or why someone would need this.  But will do in a future version.

Currently, I've been occupied with another mod which seems to be taking up most of my time, so I will get back to this mod eventually with tons of more options for it.

Cheers :)
Title: Re: Post Ratings
Post by: anewhobby on November 17, 2009, 07:53:25 PM
That would be awesome...
Title: Re: Post Ratings
Post by: Xarcell on November 20, 2009, 10:15:30 AM
Does this mod show the rating in the message index?
Title: Re: Post Ratings
Post by: SoLoGHoST on November 20, 2009, 02:03:20 PM
Hello, if you are referring to a url such as this:  index.php?board=#, than no, it doesn't display on such URLS.  It gets displayed within the topic, so topic must be defined (index.php?topic=#).  I haven't coded it to be able to view it when viewing topics, since this mod is for posts, not sure what rating would be displayed for the topic (perhaps an average of all ratings within that post?).

Well, hopefully this answers your question.  You should look at the pics, as it basically has all of the answers there.

Cheers :)
Title: Re: Post Ratings
Post by: anewhobby on November 20, 2009, 09:24:19 PM
Quote from: SoLoGHoST on November 17, 2009, 01:12:55 PM
Actually, haven't thought of this or why someone would need this.  But will do in a future version.

Well I know it is not what this mod was originally designed for but the "rate that topic (http://custom.simplemachines.org/mods/index.php?mod=1313)" mod seams to be abandoned.. the author hasn't even been on this site for near 6 months.

Basically I am building a site for the sharing of decks in a duel card game called Call of Cthulhu (http://www.fantasyflightgames.com/edge_minisite.asp?eidm=11&enmi=Call%20of%20Cthulhu%20LCG) (kinda like Magic the Gathering but a different game) The idea is that people upload decks and then users can rate the deck... so I only need the original post, or any post with a deck uploaded to be rated...

Is there some kind of way with this mod for teh post author to enable post ratings when he posts it? Like a check box in addition options... What I mean is having a rating on every single post is over kill for my needs but if there was a way to have the mod only have ratings enabled on certain posts in a thread this could work as well.

Title: Re: Post Ratings
Post by: Spoogs on November 20, 2009, 09:31:29 PM
You may accomplish this if you "enable 1st post rating" play around with the settings a little you might get it to do what you want
Title: Re: Post Ratings
Post by: SoLoGHoST on November 21, 2009, 01:44:19 AM
Quote from: anewhobby on November 20, 2009, 09:24:19 PM
...
Is there some kind of way with this mod for teh post author to enable post ratings when he posts it? Like a check box in addition options... What I mean is having a rating on every single post is over kill for my needs but if there was a way to have the mod only have ratings enabled on certain posts in a thread this could work as well.

Ok, than this MOD is exactly perfect for what you need.  Disable and Enable for posts and/or topics are provided within the Additional Options as you mentioned.  If the user doesn't have the board profile permission set to enable/disable ratings within posts/topics, they won't be able to do this.  I've already stated this in an earlier post in this topic, but I'll go ahead and do it again.

Go to the Post Ratings Admin Settings and for the Post Ratings Mode, select Disabled (All Topics) and place a checkmark in Enable First Post Rating.  Also, make sure that Enable Post Ratings (very first option in there) has a checkmark in it.  Click to save the settings.

Now go to Permissions, and select Regular Members (and also do the same thing for other members you want to be able to enable ratings within a post, since all posts will have ratings disabled by default) and select (within the Board Profile Permissions) under Post section, Disable Own.  SAVE this, and do it for each Usergroup you want to be able to enable ratings in posts (they will also be able to enable them also, but ONLY for their own posts).  If you want users to be able to enable/disable ratings in an entire topic that they created, this means all ratings within every post of that topic (including posts that do not belong to them), place a checkmark in Enable Own within the Topic section of the Board Profile Permissions for each usergroup, otherwise, leave this area unchecked.

Now, go into topics and posts and enable whichever one's you'd like enabled.  Just remember if you go back into the Post Ratings Admin Settings make sure that you select Disabled (New Topics) before clicking save, or it will disable all of the topics that have previously been enabled.  You can also, do it right after you do Disabled (All Topics) to make sure you don't accidentally Disable all topics again, since it loads up whatever option you had set before for this when going back to the Post Ratings Admin Settings.

Well, that's all!  All posts created will have Ratings Disabled by default, unless the user enables it manually (either within Additional Options or from the topic display).  All users who have permission to enable/disable their own posts will be able to do so either when creating posts, modifying them, and/or from within the topic (if you have the icons set to show (by default)).  Users who don't have permission to do this simply won't be able to and the ratings for their posts will be disabled by default.

Cheers :)
Title: Re: Post Ratings
Post by: anewhobby on November 21, 2009, 08:11:49 PM
excellent... thanks man...

Ok... I went to Forum/Post ratings and ticked Enable Post Ratings  - Automatic Ratings Setting for Topics - All Topics (Disabled) and Enable First Post Rating

Then in Members/Permissions/General Permissions/Regular Members ticked View Ratings and Rate Posts and Edit Own Rating

Then in Members/Permissions/Edit Profiles/Permissions Profile for Board/Regular Members and ticked Disable Ratings - Own Posts

Is that correct?

Also Guests can not seam to see the rating.. is there a way for them to see it but not to vote?
Title: Re: Post Ratings
Post by: SoLoGHoST on November 21, 2009, 10:31:21 PM
Yep, that seems to be correct.  If you want Guests to see Ratings, you have to enable View Ratings within the Guest Permissions.  So, in Permissions, click on Guest, tick on View Ratings.  Save and All Done.
Title: Re: Post Ratings
Post by: PalmBeachPreps on November 23, 2009, 08:59:36 PM
NM, uninstalled.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 24, 2009, 12:39:24 AM
To each their own!
Title: Re: Post Ratings
Post by: SoLoGHoST on November 25, 2009, 01:15:43 PM
For anyone who would like to Translate Post Ratings Mod to another language, I have attached the english.xml file zipped up, just change all english words in here to whatever language you are translating to, ofcourse, leave the title "Post Ratings" as is.

Cheers :)
Title: Re: Post Ratings
Post by: Freedbot on November 27, 2009, 11:37:14 PM
I must agree with anewhobby's requests, except for releasing for the old version.  Beware downgrade. ;D
Rate that Topic is too minimalistic and outdated.  My intent is to simply be able have users rate topics, and in some cases posts, so that the more useful and interesting submissions don't disappear into the ether just because there aren't any new posts.  Most boards will be submission based so topic rating is basically a requirement.  As for your progress sologhost, you don't have to explain or apologize for not making MOAR features and updates NOW.  I've been at a dead stop on my site progress for a couple weeks now just because I ran out of steam for it.  Maybe because I ran out of Reese's?  Someone go buy me a bag and I'll add the manga/anime review pages and music page.  In the future, all processes will be powered by Reese's!
Title: Re: Post Ratings
Post by: Arantor on November 28, 2009, 07:02:05 AM
Quote from: Freedbot on November 27, 2009, 11:37:14 PM
you don't have to explain or apologize for not making MOAR features and updates NOW.  I've been at a dead stop on my site progress for a couple weeks now just because I ran out of steam for it.

I'll remember that next time I get a PM on something.

The key thing here is that the mod author enjoys what they do, because nothing else really matters, IMO.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 28, 2009, 05:09:09 PM
Yep, this is true.  I enjoy building Mods for you all.  It gives me a sense of satisfaction to know that something I made is making someone else's day, week, month, and/or even year.  Since I know that the BEST THINGS in LIFE are FREE!  Why shouldn't everything else be also.  Just my mo-do for the most part.  Though, I have stated that I will sell mods and have seriously considered doing so and am still considering to this day.  My best work comes when I don't think about the pressures of it.  The pressures of selling it and than, if someone doesn't like it, having to accommodate them, since after all, they paid for it, so people expect more for their money and why shouldn't they?  Giving it away for FREE allows me to develop it in a way that I see fit, rather than the end-user.  And gives me a sense of Freedom in coding more, even if it's a false sense, it still feels good to create something that came entirely from you and not anyone else.

Well, just my 2 cents.
Title: Re: Post Ratings
Post by: Arantor on November 28, 2009, 05:15:18 PM
Spoken like a true coding fan :)
Title: Re: Post Ratings
Post by: Freedbot on November 28, 2009, 06:51:01 PM
It's almost like you're trying to make me look like the bad guy.
Ramblomatic ON
When I say I ran out of steam working on my site, I mean I no longer had the motivation to work on it 12 hours a day every day, which was about the pace I was at until a couple weeks ago, then when I was at the stage where all the bugs were worked out finally and it was time for content I stopped.  When I'm ready again in a couple days I'll shell out basically everything in a few sittings.  It's how I work.  Long bursts with long breaks.  Also, as I mentioned, I happened to run out of Reese's, and all other quick food/clean dishes.  It was either stop and work on other things or starve.  I may be a machine, but I'm not running on nuclear power ya know.  It also takes a lot longer to do stuff the first time through.  Do you know how many hours I put into figuring a way to "frame" my site content in such a way that the site was still liquid and the css didn't conflict (PHP Includes ftw btw).  I insisted on doing it so I'd only have to edit one file for global changes.  I also spent 5 hours troubleshooting my mail server only to find out that the first solution I'd tried was the correct one, only the answer I'd found conveniently forgot a forward slash at the end of the edit.

Oh, and I need to find someone with photoshop skills, my logo looks like frak droppings. :'(
Ramblomatic OFF.
Title: Re: Post Ratings
Post by: Arantor on November 28, 2009, 06:58:38 PM
Freedbot; Not at all!!

On the contrary, though it came off badly, I COMPLETELY agree with you. Unfortunately my PM inbox doesn't, and the number of requests I've had for making things with more features and doing it now is unbelievable. I originally suggested making a specific mod paid-for, and received 200 PMs, including many variations on 'want it free' and 'want it now'.
Title: Re: Post Ratings
Post by: Freedbot on November 28, 2009, 07:06:44 PM
WANT IT NOW
WANT IT FREE
I DON'T WANT
NO DAMN FEE

DON'T CARE WHY
DON'T CARE HOW
BUT YOU'RE A FAG
SO MAKE NOW

ALLRIIIIIIIGHT!

The Squeaky Wheel Troll Bossa Nova
By: Freedbot O:)
Title: Re: Post Ratings
Post by: SoLoGHoST on November 28, 2009, 07:33:02 PM
Quote from: Freedbot on November 28, 2009, 06:51:01 PM
...
...
Oh, and I need to find someone with photoshop skills, my logo looks like frak droppings. :'(
Ramblomatic OFF.

Become a member of Graphics Mayhem, make a request for what you want in a topic, and I'm sure they'll be able to help.  Link => http://graphicsmayhem.com
Title: Re: Post Ratings
Post by: Eclipse16V on December 02, 2009, 01:28:15 AM
Nice Mod

German Lang comes soon.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 02, 2009, 02:37:07 AM
Great, and Thanks.  If you want to you can download english.zip here within this topic (unzip and open up english.xml) => http://www.simplemachines.org/community/index.php?topic=344748.msg2375091#msg2375091 and translate.

Really Appreciate this!

Cheers :)
Title: Re: Post Ratings
Post by: Eclipse16V on December 02, 2009, 03:03:55 AM
Ok.
Any text strings I can't translate. If I habe time I post the rows.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 02, 2009, 03:05:44 AM
Sure, that would be fine.

Thanks Again :)
Title: Re: Post Ratings
Post by: Eclipse16V on December 02, 2009, 05:45:19 AM
Doesn´t find this in the lang
Title: Re: Post Ratings
Post by: Eclipse16V on December 02, 2009, 05:47:00 AM
Doesn´t find this in the lang
Title: Re: Post Ratings
Post by: SoLoGHoST on December 02, 2009, 12:29:41 PM
Wow, thanks I missed that one.  Ouch!

Just now fixed this and re-upped the entire mod with it pointing to:
$txt['remove_rating'] = 'Remove Your Rating';

Attached is the new english.xml file which has this lang string in there.

And Thanks Again! :)
Title: Re: Post Ratings
Post by: [SiNaN] on December 02, 2009, 04:20:43 PM
Idea and features look good. But I'm not sure why it required this much edits to SMF core, having a separate source file as well.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 02, 2009, 04:49:50 PM
Thanks for your opinions just the same.

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 10, 2009, 11:44:46 PM
Quote from: Eclipse16V on December 02, 2009, 03:03:55 AM
Ok.
Any text strings I can't translate. If I habe time I post the rows.
Hello, did you ever get the chance to finish this translation?
Title: Re: Post Ratings
Post by: Eclipse16V on December 11, 2009, 12:48:30 AM
I think times which I today with the translation become finished. If I still which find announce I me once again. The last time gives to work it here much and then could I not so much on the laptop make.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 11, 2009, 01:03:27 AM
Wow, that was a Brain Twister, reading that post ;)  I think I follow you though.  Thanks for the quick response, and I'll wait patiently than.

Cheers :)
Title: Re: Post Ratings
Post by: SISPro on December 12, 2009, 01:57:20 PM
this mod installed and works from what i see but the only thing  is when i try to put this line in them my site comes up with

Template Parse Error!

104: // Present a canonical url for search engines to prevent duplicate content in their indices.
105: if (!empty($context['canonical_url']))
106: echo '
107: <link rel="canonical" href="', $context['canonical_url'], '" />';
108:
109: // The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
110: echo '
111: <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2" />
112: <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />';

113: <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />

114: // Show all the relative links, such as help, search, contents, and the like.
115: echo '
116: <link rel="help" href="', $scripturl, '?action=help" />
117: <link rel="search" href="', $scripturl, '?action=search" />


<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />
Title: Re: Post Ratings
Post by: SoLoGHoST on December 13, 2009, 12:21:29 AM
Wow, ok, will recheck the package for this.  Seems that it has been taken out of the echo statement. hmmm.  It should look like this instead:echo
'<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />';


Thanks :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 13, 2009, 12:27:59 AM
Here's the operation: <operation>
<search position="before"><![CDATA[<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />]]></search>
<add><![CDATA[
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />]]></add>
</operation>


As you can see this is fine.  So don't understand exactly what went wrong.  As it should've added the line directly after /> So it should look like this instead:
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />';


Furthermore, I don't know why you'd want to try to put that line in it, as the Module package does this for you when you install it via Admin -> Browse Packages -> Download Packages (Upload a Package option in there at the bottom).

Cheers :)
Title: Re: Post Ratings
Post by: SISPro on December 13, 2009, 10:56:12 PM
i did use the package manager but i changed themes and had to add that to the new one and that is why it was showing that i went to the mod link here and just copy it from the setting they have on this site when you do a manual edit
Title: Re: Post Ratings
Post by: pointalk on December 19, 2009, 05:43:46 AM
Please compatible with smf1.1.8
Title: Re: Post Ratings
Post by: Arantor on December 19, 2009, 05:44:55 AM
Um, you really shouldn't be using 1.1.8, there are numerous vulnerabilities discovered and fixed since that release - 1.1.11 is the current 1.1.x version.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 19, 2009, 06:45:23 AM
If I code this for 1.1.x versions, I will be focusing on 1.1.11 specifically and can't guarantee that it will work in any other SMF 1.1.x version.  Though, honestly, I do not see a need to make this compatible for 1.1.x.

If you want a 1.1.x version of this mod and are willing to pay for it, send me a PM Please!  This goes for everyone else who reads this post and wants it made compatible with SMF 1.1.11 and are willing to pay.  Once I get about 8 people interested in paying for this mod, I'll code it, offer a 1 year commitment to updates for FREE, and than place the URL within this topic or someplace else for you all to purchase.

DO NOT POST UP ANY MESSAGE IN HERE, PERSONAL MESSAGE TO ME IS ALL I ASK!

Thank You!
Title: Re: Post Ratings
Post by: blokey on December 20, 2009, 11:20:22 AM
why do i get thid it takes ober the top of the post
Title: Re: Post Ratings
Post by: SoLoGHoST on December 20, 2009, 01:02:58 PM
Must be a Theme related issue for that specific Theme you are using.  Switch to the Curve Theme and try again and let me know if you are still getting that display, k?
Title: Re: Post Ratings
Post by: blokey on December 20, 2009, 02:30:57 PM
sure same thing,,, just found a prob with curve,,,,,,,,,, my prob not curves,,, anyway signed on as guest and it does not afffect it,,, see pic
Title: Re: Post Ratings
Post by: Arantor on December 20, 2009, 03:10:33 PM
The reason is that the right hand area - where the ratings bar is - will not appear until all the left hand profile side is done, and with all that stuff in your profile area, it pushes it all down.

Not sure how best to fix it though.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 20, 2009, 07:27:27 PM
I have a plan on fixing this and will be implemented in the next version.

Cheers :)
Title: Re: Post Ratings | Error
Post by: Vyache on December 23, 2009, 10:49:17 AM
Under Display.php in sources,

$messages_request = $smcFunc['db_query']('', ' SELECT id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body, smileys_enabled, poster_name, poster_email, approved,

' . (!empty($modSettings['post_ratings_enable']) ? ' ratings_enabled, rating, IFNULL(total_ratings, 0) as total_ratings, id_last_rating, ' : '') . '

I had to insert that line manually because I have in my array:

$messages_request = $smcFunc['db_query']('', '
SELECT
m.id_msg, m.icon, m.subject, m.poster_time, m.poster_ip, m.id_member, m.modified_time, m.modified_name, m.body, m.edit_reason,
m.smileys_enabled, m.poster_name, m.poster_email, m.approved,


Where are the "m"s coming from?
Title: Re: Post Ratings
Post by: Arantor on December 23, 2009, 10:50:44 AM
The m refers to the messages table, you should see further in that query a reference to {db_prefix}messages AS m.

It would seem you have a mod that already interferes in that query though...
Title: Re: Post Ratings
Post by: Vyache on December 23, 2009, 10:52:25 AM
Quote from: The Grinch on December 23, 2009, 10:50:44 AM
The m refers to the messages table, you should see further in that query a reference to {db_prefix}messages AS m.

It would seem you have a mod that already interferes in that query though...

What should I do?
Title: Re: Post Ratings
Post by: Arantor on December 23, 2009, 10:58:48 AM
So, are you trying to install this mod?
Title: Re: Post Ratings
Post by: Vyache on December 23, 2009, 11:02:06 AM
Yes,

I installed it, but I added that line in my previous post. Will it work that way or I need more modification?
Title: Re: Post Ratings
Post by: jasonwatkins on December 23, 2009, 11:09:24 AM
hi,

am i completely missing it or is there no uninstall feature ?

i tried this on my forum and it didn't seem to initially work properly, so i looked for an uninstall option and it wasn't available ..

i removed the package from the list but it's still there and a lot of posts still have the option to rate them.

any help much appreciated :)
Title: Re: Post Ratings
Post by: Vyache on December 23, 2009, 11:13:58 AM
Quote from: jasonwatkins on December 23, 2009, 11:09:24 AM
hi,

am i completely missing it or is there no uninstall feature ?

i tried this on my forum and it didn't seem to initially work properly, so i looked for an uninstall option and it wasn't available ..

i removed the package from the list but it's still there and a lot of posts still have the option to rate them.

any help much appreciated :)

What SMF are you using ?
Title: Re: Post Ratings
Post by: jasonwatkins on December 23, 2009, 11:51:39 AM
i'm using RC2 .. sorry, should have said that.  The users of my forum aren't keen on the mod anyway - it's nothing to do with the mod itself, they just voted against it.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 23, 2009, 01:34:14 PM
You are able to uninstall this mod.  I have already tested this and uninstalls just fine.  There is an additional option now when uninstalling that allows you to also uninstall the database changes, option says:  Remove all data associated with this modification. [ Details (#post_) ]  Perhaps you forgot to place a checkmark in this option before uninstalling.  Though, in any case, it should've uninstalled the feature from within your posts.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 23, 2009, 01:57:19 PM
Quote from: Vyache on December 23, 2009, 11:02:06 AM
Yes,

I installed it, but I added that line in my previous post. Will it work that way or I need more modification?

Ok, in your case Vyache, you'll need to change the query so that all columns have a m. in front of it for Post Ratings additions.  So your edit for this should be this:
' . (!empty($modSettings['post_ratings_enable']) ? ' m.ratings_enabled, m.rating, IFNULL(m.total_ratings, 0) as total_ratings, m.id_last_rating, ' : '') . '

Hope this helps.
Cheers :)
Title: Re: Post Ratings
Post by: Vyache on December 23, 2009, 10:20:38 PM
Thought so,

Thank you very much,

Happy Holidays!
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 07:50:46 PM
i just installed this and it works fine i had to manually put the images in the folder but anywho i have a serious problem now when i get a new member and try to approve and send email i get this error or when i send new member an activation email and they click the link to activate they get the same error


An Error Has Occurred!
The database value you're trying to insert does not exist: is_ratings

EDIT:
i have figured it out kinda !!!  if i uninstall this mod
http://custom.simplemachines.org/mods/index.php?mod=789
i get no error as soon as i reinstall the welcome topic mod the error returns also when welcome topic is installed it creates the welcome post well at least i see it in recent posts but it is nowhere in the forum there is no post really weird so for now i uninstalled the welcome topic mod as i want the post ratings one more but would be nice to have both  ??? ???
Title: Re: Post Ratings
Post by: SoLoGHoST on December 24, 2009, 09:06:02 PM
Ok, here's the problem, any mod that uses the createPost and/or modifyPost functions will need to have these indexes in $topicOptions and $msgOptions and defined as either true or false.

For $topicOptions, it will need the 'ratings_mode' index defined and either set to true or false.  Here is an example:
$topicOptions['ratings_mode'] = !empty($modSettings['post_ratings_enable']);
This will set this to true if post ratings is enabled, otherwise will be false.  If you don't want this topic to be rated at all, just set this to false.

For $msgOptions, it will need the 'ratings_enabled' index defined.  Example:
$msgOptions['ratings_enabled'] = !isset($_POST['nr']);
This example will disallow the post from being rated if the option for it to be rated was disabled, otherwise, it will be enabled.  You can also set this to true or false, whichever you prefer.

Well, there you go.  You can open up the other mod, and just edit where it uses createPost and modifyPost (if it uses this) and add these indexes into the $topicOptions and $msgOptions just before the createPost and/or modifyPost gets called, and tada will work like a charm.  You have to decide on whether or not you want these posts/topics to be rated though.

Cheers :)
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 09:11:30 PM
i am confused i have to add this to the mod itself or where?
Title: Re: Post Ratings
Post by: SoLoGHoST on December 24, 2009, 09:16:59 PM
Ok, open up WelcomeTopic2.php in your Sources folder.

FIND:$msgOptions = array(
'id' => 0,
'subject' => str_replace("[username]",$memberName,$row2['welcomesubject']),
'body' => str_replace("[username]",$memberName,$row2['welcomebody']),
'icon' => 'xx',
'smileys_enabled' => 1,
'attachments' => array(),
);
$topicOptions = array(
'id' => 0,
'board' => $modSettings['welcome_boardid'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);


REPLACE IT WITH:$msgOptions = array(
'id' => 0,
'subject' => str_replace("[username]",$memberName,$row2['welcomesubject']),
'body' => str_replace("[username]",$memberName,$row2['welcomebody']),
'icon' => 'xx',
'smileys_enabled' => 1,
'ratings_enabled' => !isset($_POST['nr']),
'attachments' => array(),
);
$topicOptions = array(
'id' => 0,
'board' => $modSettings['welcome_boardid'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'ratings_mode' => 0,
'mark_as_read' => false,
);


There, now it should work perfect.  Ratings for that topic/post will be disabled also.

This applies to all mods that use createPost and/or modifyPost functions, if you have Post Ratings installed.  Simply need to add these 2 array indexes.  1 for $topicOptions, and 1 for $msgOptions.  Their are security reasons why this needs to be this way.

Cheers :)
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 09:29:58 PM
made the edits and still the same thing nothing changed i registered a new member and sent an activation email and when i clicked tha ctivation email i got the same error

The database value you're trying to insert does not exist: is_ratings

then i went and looked and again the welcome post shows on my portal in recent posts but i click on it and there is no post there

damn very weird
Title: Re: Post Ratings
Post by: SoLoGHoST on December 24, 2009, 10:25:09 PM
Ok, try changing both values to false instead and place ratings_enabled underneath smileys_enabled and place ratings_mode underneath sticky_mode.

Let me know if that works, k?

I'm going to install it now on my test site and see if I can get it to work....

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 24, 2009, 10:34:17 PM
Well have just tried it at my test site and works perfect.  You can test for yourself... go ahead and register, than go to the General Discussion Category and you will see Hello [username] and a brief message.... go here => http://acs.graphicsmayhem.com/rc2/index.php

Here's what I have for this and it's unable to be rated also.
$msgOptions = array(

'id' => 0,

'subject' => str_replace("[username]",$memberName,$row2['welcomesubject']),

'body' => str_replace("[username]",$memberName,$row2['welcomebody']),

'icon' => 'xx',

'smileys_enabled' => 1,

'ratings_enabled' => !isset($_POST['nr']),

'attachments' => array(),

);

$topicOptions = array(

'id' => 0,

'board' => $modSettings['welcome_boardid'],

'poll' => null,

'lock_mode' => null,

'sticky_mode' => null,

'ratings_mode' => 0,

'mark_as_read' => false,

);
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 10:38:53 PM
OK i went to adjust those edits and noticed the original edits you posted weren't there so i re-did the original edits and saved it and just tested it a boom works like a dream you are da man i really appreciate the help

thank you so much :) :) :)
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 10:48:06 PM
forgot to say

MERRY CHRISTMAS!!!!!!!!!!!!!!!
Title: Re: Post Ratings
Post by: SoLoGHoST on December 24, 2009, 10:57:17 PM
Hey, Thanks and MERRY CHRISTMAS to you also!

Just got done wrapping all the presents, time to put them under the tree now :)
Title: Re: Post Ratings
Post by: sattninja on December 24, 2009, 10:59:29 PM
well glad you had time to help me

thanks again ;D ;D ;D
Title: Re: Post Ratings
Post by: falken on December 26, 2009, 10:03:42 AM
It's posible to allow only rating in the first post and not in the replies??

Thanks!  ::)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 26, 2009, 11:40:13 AM
No, but this is a simple edit that can be made to do just this.  Will see what I can do after the holidays.
Title: Re: Post Ratings
Post by: sattninja on December 26, 2009, 03:35:05 PM
is there any report function to this like to show a members overall rating
Title: Re: Post Ratings
Post by: SoLoGHoST on December 26, 2009, 04:38:54 PM
No, nothing of the sort.  Have planned on making a Post Ratings Pro version of this mod (PAID) that will allow this feature, as well as a Stats Page, and also allow posts within a topic to be ordered by Highest/Lowest rating, and many many more features.
Title: Re: Post Ratings
Post by: Bugo on December 27, 2009, 12:59:32 AM
Periodically there are following errors:

Undefined index: rating
Undefined index: total_ratings
Undefined index: id_last_rating
Undefined index: rating_enabled

File: /Sources/Display.php
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 01:22:21 AM
Can you be a bit more specific?  I will try and see if there is something on my end here, but I don't follow periodically.  Perhaps you can pin-point any 1 of these undefined index errors on an actual step by step basis of events??  That would be much more helpful.

Thank You :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 04:37:03 AM
Quote from: Arantor on December 20, 2009, 03:10:33 PM
The reason is that the right hand area - where the ratings bar is - will not appear until all the left hand profile side is done, and with all that stuff in your profile area, it pushes it all down.

Not sure how best to fix it though.

Well, this has been fixed and implemented it at a test site.  You can see its new display here, at the following URL:  http://acs.graphicsmayhem.com/rc2/index.php?topic=1.msg1#msg1

Basically, I am wondering on all of your input for this being the way it is.  If you like it, I will go ahead and update it using this style for the rating, instead of the rating being at the top within the inside of the post.

Thanks :)
Title: Re: Post Ratings
Post by: darubillah on December 27, 2009, 06:42:00 AM
Quote
it is giving error on running the maintenance task

The database value you're trying to insert does not exist: is_ratings

Why??  & if i enter  ~<div class="topContent">(.*)<\/div>~siU  in Regular Expression field it still gives error

you mod is working fine for me after uninstalling Post rating mod

But when it runs 2 time It duplicates the POSTs

I have installed the latest version of Post Rating mod & I saw that you had fixed all bugs

But still their some problem with Post rating mod

Its giving me problem with RSS feeder
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 06:45:26 AM
Strange, could you either point me to a URL to see the problem with the RSS Feeder, or describe the problem you are having with it in more detail please?

Thanks :)
Title: Re: Post Ratings
Post by: C4G-TK on December 27, 2009, 08:04:16 AM
Do you think you could put a larger space between the bar going across and the post that proceeds it than the post it refers to?  Because of it being less space, it looks like the bar actually refers to the post above than the post after it.  If someone is reading post 10 or something further down the thread, visually they may rate the wrong reply because it appears closer to the proceeding post. 
Title: Re: Post Ratings
Post by: blokey on December 27, 2009, 09:43:43 AM
Solo
Am seriously struggling to understand this,,, have installed another rc2 and it is clean with no mods yet,,, but as shown previously I am still getting the same problem, and I cant get it how you show on demo site with rating in topic header,,,,,,,,,, I am completely stumped
Help
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 11:07:15 AM
Quote from: blokey on December 27, 2009, 09:43:43 AM
Solo
Am seriously struggling to understand this,,, have installed another rc2 and it is clean with no mods yet,,, but as shown previously I am still getting the same problem, and I cant get it how you show on demo site with rating in topic header,,,,,,,,,, I am completely stumped
Help
I haven't updated the Post Ratings Mod with the new changes I am about to make that are shown at the following topic:  http://acs.graphicsmayhem.com/rc2/index.php?topic=1.0

So once I update it with these changes, I'll let you know and this should fix any display problems you may have.

Quote from: C4G-TK on December 27, 2009, 08:04:16 AM
Do you think you could put a larger space between the bar going across and the post that proceeds it than the post it refers to?  Because of it being less space, it looks like the bar actually refers to the post above than the post after it.  If someone is reading post 10 or something further down the thread, visually they may rate the wrong reply because it appears closer to the proceeding post. 

Ok, I have actually added more space, can you take another look at it and tell me if that is good enough?  Thanks :)
Title: Re: Post Ratings
Post by: C4G-TK on December 27, 2009, 12:57:14 PM
VERY GOOD!  LOVE IT!
;D ;D ;D ;D ;D ;D ;D
Looks great!
Title: Re: Post Ratings
Post by: Bugo on December 27, 2009, 01:57:43 PM
Quote from: SoLoGHoST on December 27, 2009, 01:22:21 AM
Can you be a bit more specific?  I will try and see if there is something on my end here, but I don't follow periodically.  Perhaps you can pin-point any 1 of these undefined index errors on an actual step by step basis of events??  That would be much more helpful.

Thank You :)
Usually errors appear after viewing by visitors of any page of a forum. Sometimes — after viewing by usual users.
Title: Re: Post Ratings
Post by: sattninja on December 27, 2009, 02:44:30 PM
Quote from: SoLoGHoST on December 26, 2009, 04:38:54 PM
No, nothing of the sort.  Have planned on making a Post Ratings Pro version of this mod (PAID) that will allow this feature, as well as a Stats Page, and also allow posts within a topic to be ordered by Highest/Lowest rating, and many many more features.

i would pay for those features

great mod thanks
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 03:20:51 PM
Quote from: Bugo on December 27, 2009, 01:57:43 PM
Quote from: SoLoGHoST on December 27, 2009, 01:22:21 AM
Can you be a bit more specific?  I will try and see if there is something on my end here, but I don't follow periodically.  Perhaps you can pin-point any 1 of these undefined index errors on an actual step by step basis of events??  That would be much more helpful.

Thank You :)
Usually errors appear after viewing by visitors of any page of a forum. Sometimes — after viewing by usual users.
Can you give me a Line # for this undefined index error in Display.php please?  In your Error Log, it should tell you the Line # that this error happens on.  This would be most helpful.

Thank You!
Title: Re: Post Ratings
Post by: blokey on December 27, 2009, 03:44:30 PM
Thanks
Title: Re: Post Ratings
Post by: SoLoGHoST on December 27, 2009, 03:54:32 PM
Quote from: sattninja on December 27, 2009, 02:44:30 PM
Quote from: SoLoGHoST on December 26, 2009, 04:38:54 PM
No, nothing of the sort.  Have planned on making a Post Ratings Pro version of this mod (PAID) that will allow this feature, as well as a Stats Page, and also allow posts within a topic to be ordered by Highest/Lowest rating, and many many more features.

i would pay for those features

great mod thanks
Cheers :)  Will let you know when it is ready.

Quote from: blokey on December 27, 2009, 03:44:30 PM
Thanks

You Welcome, will let you know.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 28, 2009, 03:55:46 PM
Ok guys, this is the last FREE Version of Post Ratings.  Just updated to version 1.2.  Need to update the pics to reflect the changes still, but here's what's changed/new:

1.2
! Fixes all undefined indexes that would populate the SMF Error Log if Post Ratings was disabled, or a post was not rated in a topic.  Yes, these are the undefined indexes that were mentioned to have been originating from the Display.php file.

+ Added Feature for SMF 2.0 RC2 ONLY:  Allows for a different Post Ratings Layout for ratings within your posts.  There is now a Header Style Layout to chose from for those users who'd prefer this style over the default Inner Style Layout.

ENJOY :)
Title: Re: Post Ratings | Bug
Post by: Vyache on December 28, 2009, 05:43:30 PM
Is this a bug?

./Themes/default/Display.template.php

<div id="forumposts">
<h3 class="catbg"


Missing ">" ?

', !empty($modSettings['post_ratings_layout_style']) && !empty($modSettings['post_ratings_enable']) && $context['pr_is_topic_enabled'] && !empty($modSettings['post_ratings_first_post']) ? ' style="margin-bottom: 0px; padding-bottom: 0px;"' : '', '

In my ./Themes/default/Display.template.php file I have:

<h3 class="catbg"><span class="left"></span>

Is this a mod conflict?

What should I do? Put that after "catbg"> ?

Let me know, thanks!

By the way, redirect isn't working right, I get sent to maintenance after install, but it installs okay with some minor editing because I have other conflicting mods...

Title: Re: Post Ratings
Post by: SoLoGHoST on December 28, 2009, 06:20:02 PM
you need to add:', !empty($modSettings['post_ratings_layout_style']) && !empty($modSettings['post_ratings_enable']) && $context['pr_is_topic_enabled'] && !empty($modSettings['post_ratings_first_post']) ? ' style="margin-bottom: 0px; padding-bottom: 0px;"' : '', '
directly after
<h3 class="catbg" and just before the >

I'll see if I can come up with a better edit for this.

IMPORTANT NOTE:  IT MUST BE the <h3 class="catbg"> that is directly after the <div id="forumposts">

If you don't have this in your Display.template.php file, than it should be fine without this edit.  Though the Curve Theme has this in there.

Cheers :)
Title: Re: Post Ratings
Post by: Vyache on December 28, 2009, 06:35:26 PM
Yes,

I got it working now. Thank You so much! I'm not sure why the redirect failed though...
Title: Re: Post Ratings
Post by: SoLoGHoST on December 28, 2009, 07:21:13 PM
OK, I just updated it once more.  Though just a revision.  Basically just made it so that if there is an error on that edit, it will just skip it.  Also, fixed a minor echo '<script>' problem.

P.S. - Any change I can get the website address where you guys are using Post Ratings on?  Would just like to see how others are using it in their SMF Forums.  If you don't want to post up the URL in this topic, you can PM me if you want.

Cheers :)
Title: Re: Post Ratings
Post by: Vyache on December 28, 2009, 07:29:59 PM
Quote from: SoLoGHoST on December 28, 2009, 07:21:13 PM
OK, I just updated it once more.  Though just a revision.  Basically just made it so that if there is an error on that edit, it will just skip it.  Also, fixed a minor echo '<script>' problem.

P.S. - Any change I can get the website address where you guys are using Post Ratings on?  Would just like to see how others are using it in their SMF Forums.  If you don't want to post up the URL in this topic, you can PM me if you want.

Cheers :)

Please tell me what changes you made, I don't really want to go through uninstalling it again. I'll add them in manually.

Thank you.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 28, 2009, 07:38:57 PM
Only change was in Admin.template.php.

Search for:if ($config_var['name'] == "post_ratings_layout_style")
{



Replace entire if statement in here with:  if ($config_var['name'] == "post_ratings_layout_style")
{
echo '
<script type="text/javascript"><!-- // --><![' . 'CDATA' . '[
var imgpath = "' . $settings['default_images_url'] . '/post_ratings/";

function prChange(obj)
{
if(obj.value == 0)
document.getElementById("prImage").src = imgpath + "inner.png";
else
{
if(obj.value == 1)
document.getElementById("prImage").src = imgpath + "header.png";
}
}

// ' . ']' . ']></script>';
}


That's really all I did, forgot the separate the CDATA [ [ and ] ] with dots so the echo can use it, since this doesn't work when placing directly into the XML file.
Title: Re: Post Ratings
Post by: Vyache on December 28, 2009, 08:32:51 PM
Thank you,

I made the changes you suggested in your update. It seems to be working fine, but I cannot rate the posts for some reason...

Edit, I see why:

./Themes/default/Display.template.php: Most of the lines were not added to this file for some reason during the install...

After the install of this mod I get this message:
Congrats, Post Ratings has been upgraded to Version 1.1 Successfully! To ensure all Post Ratings Settings are correctly placed and loaded, you will be redirected so that your File Cache will be cleared.

Isn't the version 2.1 ? It still takes me to my maintenance screen and not the area where my post rating is...

Otherwise the changes you made all work, thank you!
Title: Re: Post Ratings
Post by: SoLoGHoST on December 28, 2009, 10:31:56 PM
It should've said, Congrats updated to 1.2.  1.2 is the current version.  You can uninstall it and still keep all of the ratings you have (that is the database remains intact).  Just uninstall it (Do not place a checkmark in remove All stuff for this mod, which will be an option up top when uninstalling it, this is unchecked by default).  And than delete it.  Than download it on the mod site, and install from the full install of it.

Just out of curiosity, which version did you have installed prior to updating it??  Version 1.0 or Version 1.1?
Title: Re: Post Ratings
Post by: Vyache on December 28, 2009, 11:29:50 PM
Never mind,

Its cool. I have the right version. For some perverted reason, I thought it was off.

I have the current version 1.2 :D
Title: Re: Post Ratings | Another Bug
Post by: Vyache on December 28, 2009, 11:59:56 PM
After activation of a user for some reason I get this error that is related to the ratings...

"The database value you're trying to insert does not exist: is_ratings"
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 12:22:59 AM
What other Mods do you have installed??  Do you have the Welcome Topic Mod Installed?
Title: Re: Post Ratings
Post by: Vyache on December 29, 2009, 12:24:09 AM
Yes, Welcome topic mod is installed.

SOLVED :D
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 12:26:11 AM
Refer to this post within this topic here ==> http://www.simplemachines.org/community/index.php?topic=344748.msg2420479#msg2420479
Title: Re: Post Ratings
Post by: C4G-TK on December 29, 2009, 12:40:09 AM
Sweet, I'm on vacation, but should have time this week to update.  Looks awesome SG!
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 12:55:16 AM
Quote from: C4G-TK on December 29, 2009, 12:40:09 AM
Sweet, I'm on vacation, but should have time this week to update.  Looks awesome SG!

This is the very last FREE Update for this MOD.  Adding a ton of features and options, as well as 1 or 2 more additional Layouts, into this for Post Ratings Pro, which I'll post up a link to, once I'm finished with it's 1st version.  Stay Tuned!

Thanks :)

Quote from: Eclipse16V on December 11, 2009, 12:48:30 AM
I think times which I today with the translation become finished. If I still which find announce I me once again. The last time gives to work it here much and then could I not so much on the laptop make.

Added 4 more strings to this in case you are still interested in translating this mod to German, here they are:
$txt['post_ratings_layout_style'] = 'Post Ratings Layout';
$txt['post_ratings_layout_style_inner'] = 'Inner Style';
$txt['post_ratings_layout_style_header'] = 'Header Style';
$txt['post_ratings_layout_style_help'] = 'Choose the Layout Style for showing ratings within posts.  Currently only 2 styles to choose from, Inner Style and Header Style.  While Inner Style allows for all BBC and Smileys, Header Style is somewhat restricted on certain types of BBC tags, however, it does support smileys.';


Thanks Again :)
Title: Re: Post Ratings
Post by: blokey on December 29, 2009, 01:05:00 AM
Excellent
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 01:37:39 AM
Thanks blokey, this should fix all of your problems with this mod.

On another note...
I've been wondering, how come I never ever see any of my mods on the Featured Mods Block at the Mod Site??  It's as good as the other mods listed on there.  Just a thought, as I always see the same mods on the Featured Mods section of the Mod Site.  Oh well.  Life goes on...
Title: Re: Post Ratings
Post by: Bugo on December 29, 2009, 02:08:24 AM
Quote from: SoLoGHoST on December 27, 2009, 03:20:51 PM
Quote from: Bugo on December 27, 2009, 01:57:43 PM
Quote from: SoLoGHoST on December 27, 2009, 01:22:21 AM
Can you be a bit more specific?  I will try and see if there is something on my end here, but I don't follow periodically.  Perhaps you can pin-point any 1 of these undefined index errors on an actual step by step basis of events??  That would be much more helpful.

Thank You :)
Usually errors appear after viewing by visitors of any page of a forum. Sometimes — after viewing by usual users.
Can you give me a Line # for this undefined index error in Display.php please?  In your Error Log, it should tell you the Line # that this error happens on.  This would be most helpful.

Thank You!
Example:
8: Undefined index: total_ratings
File: /../Sources/Display.php
Line: 1413

Line 1413 in Display.php:
==>1413:
'post_rating_num' => GetPostRating('text', $message['id_msg'], $message['total_ratings'], $message['rating']),
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 02:14:00 AM
Thanks Bugo, I have already found this and fixed this in the newest update version 1.2.

Let me know if you get any errors with Post Ratings 1.2 installed.

Note, you can just upload it via the Package Manager in the Admin, and install it, and it should update it with the new edits.

Cheers :)
Title: Re: Post Ratings
Post by: mforum on December 29, 2009, 07:15:29 AM
Your mod is excellent !!!!! works great ,, except one conflict with smf download mod

when smf download tries to make a post in selected board , the following error occurs:

The database value you're trying to insert does not exist: is_ratings
Function: createPost

smf 2 rc2

subs-post.php
1859:  array(
1860: $topicOptions['board'], $posterOptions['id'], $posterOptions['id'], $msgOptions['id'],
1861: $msgOptions['id'], $topicOptions['lock_mode'] === null ? 0 : $topicOptions['lock_mode'], $topicOptions['sticky_mode'] === null ? 0 : $topicOptions['sticky_mode'], 0,
1862: $topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'],
1863: ),
1864: array('id_topic')
==>1865: );
1866: $topicOptions['id'] = $smcFunc['db_insert_id']('{db_prefix}topics', 'id_topic');
Title: Re: Post Ratings
Post by: ディン1031 on December 29, 2009, 09:52:08 AM
So i can help her ;).

The problem here is that the value is set null if it not preset.
If this happen than the value is even not set for SMF on a int value.
So that other mods can use the function now there is simple change needed:

$topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode'],


Code (Replace with) Select

$topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode'],


The diffrent now is the

$topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode']

With this there will be 0 in it if the createPosts is used without preset this option (what should be happen often if other mods use the same function).

I hope this help you as creator to improve you mod a little bit ;).

Bye
DIN1031
Title: Re: Post Ratings
Post by: mforum on December 29, 2009, 09:55:54 AM
Your fix worked for me  :)

Thank you !!!!!!!!!!
Title: Re: Post Ratings | Error Comment Tags
Post by: Vyache on December 29, 2009, 01:28:08 PM
For some reason, after installing this mod, I've noticed I cannot switch the comment tags on the post without going through the editing process.

I added those lines of code from the above suggestion as well:
            $topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode'],

I also get this browser error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 29 Dec 2009 18:36:54 UTC


Message: 'responseXML.getElementsByTagName(...).0' is null or not an object
Line: 1289
Char: 3
Code: 0
URI: http://theswimstrongfoundation.org/network/Themes/default/scripts/script.js?rc2


Message: 'responseXML.getElementsByTagName(...).0' is null or not an object
Line: 1289
Char: 3
Code: 0
URI: http://theswimstrongfoundation.org/network/Themes/default/scripts/script.js?rc2


Message: 'responseXML.getElementsByTagName(...).0' is null or not an object
Line: 1289
Char: 3
Code: 0
URI: http://theswimstrongfoundation.org/network/Themes/default/scripts/script.js?rc2

1278 // Event handler for clicking on one of the icons.
1279 IconList.prototype.onItemMouseDown = function (oDiv, sNewIcon)
1280 {
1281 if (this.iCurMessageId != 0)
1282 {
1283 ajax_indicator(true);
1284 this.tmpMethod = getXMLDocument;
1285 var oXMLDoc = this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl)   'action=jsmodify;topic='   this.opt.iTopicId   ';msg='   this.iCurMessageId   ';'   this.opt.sSessionVar   '='   this.opt.sSessionId   ';icon='   sNewIcon   ';xml');
1286 delete this.tmpMethod;
1287 ajax_indicator(false);
1288
1289 var oMessage = oXMLDoc.responseXML.getElementsByTagName('smf')[0].getElementsByTagName('message')[0];
1290 if (oMessage.getElementsByTagName('error').length == 0)
1291 {
1292 if (this.opt.bShowModify && oMessage.getElementsByTagName('modified').length != 0)
1293 setInnerHTML(document.getElementById('modified_'   this.iCurMessageId), oMessage.getElementsByTagName('modified')[0].childNodes[0].nodeValue);
1294 this.oClickedIcon.getElementsByTagName('img')[0].src = oDiv.getElementsByTagName('img')[0].src;
1295 }
1296 }
1297 }


var oMessage = oXMLDoc.responseXML.getElementsByTagName('smf')[0].getElementsByTagName('message')[0];


That used to work...
Edit: Actually its not from this mod... I removed this mod just to make sure. Dang where is it coming from...
What should I do?
Title: Re: Post Ratings
Post by: ŦώεαЖзяŁ on December 29, 2009, 02:07:54 PM
Is there a way to make post ratings work with custom forms mod ?
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 02:34:34 PM
Quote from: ディン1031 on December 29, 2009, 09:52:08 AM
So i can help her ;).

The problem here is that the value is set null if it not preset.
If this happen than the value is even not set for SMF on a int value.
So that other mods can use the function now there is simple change needed:

$topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode'],


Code (Replace with) Select

$topicOptions['poll'] === null ? 0 : $topicOptions['poll'], $msgOptions['approved'] ? 0 : 1, $msgOptions['approved'], $topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode'],


The diffrent now is the

$topicOptions['ratings_mode'] === null ? 0 : $topicOptions['ratings_mode']

With this there will be 0 in it if the createPosts is used without preset this option (what should be happen often if other mods use the same function).

I hope this help you as creator to improve you mod a little bit ;).

Bye
DIN1031
Thank You ディン1031, I will go ahead and implement this.  Cheers :)

Quote from: TweakerL on December 29, 2009, 02:07:54 PM
Is there a way to make post ratings work with custom forms mod ?

Not really sure what Custom Forms Mod does, will look into this.

Also, 1 more update coming soon for you guys that should address issue noted by:  ディン1031 as well as allow for Post Ratings to work in the RC2 Core Theme.

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 04:13:55 PM
Ok, LAST UPDATE for this MOD, just now updated to Version 1.3 (is upgradeable):

1.3
! Fixes error is_ratings when other mods use the SMF createPost() function to create a post.  Will automatically disable ratings within that topic.
+ Added SMF 2.0 RC2 Core Theme edits so that both layouts (Header Style, and Inner Style) will now, also, work in the Core Theme of SMF 2.0 RC2 as well as the ability to rate posts.

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 29, 2009, 07:43:49 PM
Quote from: TweakerL on December 29, 2009, 02:07:54 PM
Is there a way to make post ratings work with custom forms mod ?
Ok, Have looked at this mod some.  What do you want to do with it?  Do you want to enable ratings for this when it is used to create a post?  If so you'll need to edit the createPost() function in this mod to allow for ratings.  Just set the $topicOptions['ratings_mode'] = 1 and also set the $msgOptions['ratings_enabled'] = true and that should make it able to be rated.

EDIT:
@ ディン1031 - I have actually been thinking some about your edit and I think this would be a perfect opportunity to implement a means to allow the Admin the ability to enable/disable ratings within that post for all other mods that use the createPost() function.  So this can even be an option within the Post Ratings Settings.  Ofcourse it will be disabled by default unless the user selected to enable it for that specific mod.

Cheers :)
Title: Re: Post Ratings
Post by: pointalk on January 02, 2010, 03:01:15 AM
Please compatible with smf1.1.11 :)
Title: Re: Post Ratings
Post by: Spoogs on January 02, 2010, 03:26:06 AM
Quote from: pointalk on January 02, 2010, 03:01:15 AM
Please compatible with smf1.1.11 :)

Quote from: SoLoGHoST on December 19, 2009, 06:45:23 AM
If I code this for 1.1.x versions, I will be focusing on 1.1.11 specifically and can't guarantee that it will work in any other SMF 1.1.x version.  Though, honestly, I do not see a need to make this compatible for 1.1.x.

If you want a 1.1.x version of this mod and are willing to pay for it, send me a PM Please!  This goes for everyone else who reads this post and wants it made compatible with SMF 1.1.11 and are willing to pay.  Once I get about 8 people interested in paying for this mod, I'll code it, offer a 1 year commitment to updates for FREE, and than place the URL within this topic or someplace else for you all to purchase.

DO NOT POST UP ANY MESSAGE IN HERE, PERSONAL MESSAGE TO ME IS ALL I ASK!

Thank You!
Title: Re: Post Ratings
Post by: blokey on January 03, 2010, 04:43:39 AM
Solo just noticed this

one member votes  lets say ok
another member votes lets say good

topic header still says ok

Is this due to the threshold limits?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 03, 2010, 03:21:44 PM
Ok, this all depends on the numbers you have set for your Ratings threshold.

Please note:  The percentage scores are as follows.

Rating of 1 = 20
Rating of 2 = 40
Rating of 3 = 60
Rating of 4 = 80
Rating of 5 = 100

The percentage Thresholds are set differently.  Upon default the percentages are set at:

20, 50, 75, 90, 100 (all changeable, but the 100).

Ok, so a rating of ok = a Rating of 2 and a rating of good = a Rating of 3.

A Rating of 2 = 40 and a Rating of 3 = 60, to get the average add them together and divide these by 2 and you get 50.

So the rating score for this post = 50.  If you look at the default Threshold for this 50 = Rating of 2.  51 = a Rating of 3 however.  So if 1 more user rates this a 3 (Good) it will than go up to a Rating of 3 (Good).

Well hopefully you understand this.  Ofcourse, there is much more involved here than just those numbers.  Because, once you change the Ratings Strength from 1 to something else, the actual scores change, though the percentages (20, 40, 60, 80, and 100) remain the same.

Cheers :)
Title: Re: Post Ratings
Post by: blokey on January 03, 2010, 03:26:44 PM
Yes!
Thanks
Title: Re: Post Ratings
Post by: SoLoGHoST on January 03, 2010, 03:42:29 PM
You're Welcome :)
Title: Ratings Header wont display
Post by: hindian on January 04, 2010, 11:15:43 PM

I have enabled the post ratings and turned on the necessary permissions but for some reason the ratings header is not showing up. 

Someone please help...

hindian
Title: Re: Post Ratings
Post by: ŦώεαЖзяŁ on January 05, 2010, 12:31:38 AM
I'm still kinda noob in PHP so is this the modification i would be making?

Quote// Collect all necessary parameters for the creation of the post.
            $msgOptions = array(
               'id' =>  0,
               'subject' => $subject,
               'icon' => $icon,
               'body' => $output,
               'smileys_enabled' => true,
               'ratings_enabled' => true,
            );
            
            $topicOptions = array(
               'id' => 0,
               'board' => $board,
               'mark_as_read' => true,
               'ratings_mode' => 1,
            );

Thank you very much in advance :)
Title: Re: Post Ratings
Post by: SoLoGHoST on January 05, 2010, 12:48:49 AM
Quote from: TweakerL on January 05, 2010, 12:31:38 AM
I'm still kinda noob in PHP so is this the modification i would be making?

Quote// Collect all necessary parameters for the creation of the post.
            $msgOptions = array(
               'id' =>  0,
               'subject' => $subject,
               'icon' => $icon,
               'body' => $output,
               'smileys_enabled' => true,
               'ratings_enabled' => true,
            );
            
            $topicOptions = array(
               'id' => 0,
               'board' => $board,
               'mark_as_read' => true,
               'ratings_mode' => 1,
            );

Thank you very much in advance :)

That is correct! :)  That will enable post ratings by default, for that topic and post, within that Mod.  Though, to have it disabled by default, you don't need to do anything if you have the latest Post Ratings version installed.

Quote from: hindian on January 04, 2010, 11:15:43 PM

I have enabled the post ratings and turned on the necessary permissions but for some reason the ratings header is not showing up. 

Someone please help...

hindian

Does it show when you change the Layout Style to Inner Style?  Please note:  It is automatically on Inner Style by default, you have to change it to Header Style in Post Ratings Settings to see the Header Style.  Did you do this?
Title: Re: Post Ratings
Post by: C4G-TK on January 09, 2010, 07:47:49 PM
I finally installed just now and used the most recent package.  Installed it on my RC2 site.  I've been checking the error log after every mod that I install and have had no errors as of yet.  Then, I installed this one, and I have three pages of 44 errors with the same thing showing immediately after the installation.

Like I said, all the same error that didn't appear before the installation at all.

Subs.php file
somthing to do with an undefined index of a SmileyHeader??

Attached pics below
Title: Re: Post Ratings
Post by: SoLoGHoST on January 09, 2010, 08:05:26 PM
Hmmm, must be another mod doing something to Subs.php that causes this, but will update this mod in a few to not cause this undefined variable error.

Will let you know.  Give me a few mins.

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on January 09, 2010, 08:37:05 PM
There ya go, just revised it a bit and this should get rid of those pesky errors.  Well, in any case, can you please let me know, just to be sure.

Thanks :)

FYI

1.3 Revised
! Fixed possible undefined variable $smileyHeader in Subs.php.
* Changed Header and Inner Style preview pics so that they are above the selectbox instead of below it.  Just makes a bit more sense to me.

Note:  To Update, when uninstalling, please make sure you do not place a checkmark in "Uninstall all Data Associated with this Mod".  After uninstalling the mod, delete it, and install this one.
Title: Re: Post Ratings
Post by: C4G-TK on January 09, 2010, 08:39:20 PM
Sure thing.  GIve me just a second.
Title: Re: Post Ratings
Post by: C4G-TK on January 09, 2010, 08:46:52 PM
Worked for me!  Thanks SG!

No errors at all showing in the log now!
Title: Re: Post Ratings
Post by: SoLoGHoST on January 09, 2010, 09:59:00 PM
Okie Dokie.  Though I think it may be a problem if you are using the Header Style and you try adding smileys to any of the Ratings.  Not sure though.

Cheers :)
Title: Re: Post Ratings
Post by: C4G-TK on January 09, 2010, 10:26:45 PM
I'm using the header Style, but not putting  :) 's in it.  Tested on a few posts and no errors at all showing.
Title: Re: Post Ratings
Post by: SoLoGHoST on January 09, 2010, 11:12:27 PM
Ok, Thanks for your input.  Glad to hear this.

Cheers :)
Title: Re: Post Ratings
Post by: Elijah Bliss on January 11, 2010, 04:25:50 PM
I'm not sure if I missed it, but is it possible to show the ratings in the message index?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 12, 2010, 12:12:07 AM
If you are referring to where each topic name gets displayed, no, this is not possible in Post Ratings.  However, this will be possible in Post Ratings Pro.
Title: Re: Post Ratings
Post by: jani01 on January 12, 2010, 02:26:31 AM
great job man.  keep it up.
Title: Re: Post Ratings
Post by: SoLoGHoST on January 12, 2010, 03:17:33 AM
Thank You, Glad you like it :)  Was a ton of fun creating it :)
Title: Re: Post Ratings
Post by: Elijah Bliss on January 12, 2010, 05:33:32 PM
Quote from: SoLoGHoST on January 12, 2010, 12:12:07 AM
If you are referring to where each topic name gets displayed, no, this is not possible in Post Ratings.  However, this will be possible in Post Ratings Pro.


When can we expect that?
Title: Re: Post Ratings
Post by: Arantor on January 12, 2010, 05:47:04 PM
I guess I missed that in passing - is that a paid-for mod?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 12, 2010, 07:42:12 PM
Yeah, I am seriously considering this to be a paid-for-mod (Post Ratings Pro).  I am leaning towards paid-for at the moment, but you never know what my decision will be in the end.  As I also leaned towards my PM Attachments being a paid-for mod from the beginning, but when I finally completed it, decided to give it away for free.  So I suppose we'll see ;)

Quote from: Elijah Bliss on January 12, 2010, 05:33:32 PM
Quote from: SoLoGHoST on January 12, 2010, 12:12:07 AM
If you are referring to where each topic name gets displayed, no, this is not possible in Post Ratings.  However, this will be possible in Post Ratings Pro.


When can we expect that?
I would expect it in about 1 month, give or take a few days, since I am currently also working on Dream Portal as Lead Dev. and I probably won't do much coding on Post Ratings Pro until Dream Portal's next Beta Release as it's a lot more fun coding for Dream Portal than any other mod I ever coded.  But, Post Ratings is up at the top of my list of mods to update.

Cheers :)
Title: Re: Post Ratings
Post by: bork on January 16, 2010, 07:45:59 AM
Anyone else getting an install error?

Please see the attached image.

I do have some other mods installed so I'm guessing that's the problem?
Title: Re: Post Ratings
Post by: C4G-TK on January 16, 2010, 11:53:13 AM
Do you have other mods installed?

Something may have altered the code that it is looking for.  You just need to edit it manually for that particular edit.  If you need help, I'll be on later tonight probably around 6 or 7pm eastern time.  (It is noon right now.)

If you want, you can attach your Display.php file and I'll make that edit for you before you install.
Title: Re: Post Ratings
Post by: bork on January 16, 2010, 02:54:02 PM
Yeah, i've got a few other mods installed, almost certainly the problem.

Thanks for your kind offer but it's ok, I can do the manual edit  :D
Title: Re: Post Ratings
Post by: bork on January 17, 2010, 05:56:18 AM

Just in case anyone else has the same problem, the mod that was conflicting with this one was the Reason For Editing Mod (http://custom.simplemachines.org/mods/index.php?mod=349).

To correct the install error I did the following:
id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,

with:

id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body, edit_reason,As feedback I think this mod has a lot of potential but without any way to view the top rated posts is not that useful in it's current form.

The upcoming "pro" version with reporting/searching for rated posts will be excellent and I'll probably install it into my live forums.


Title: Re: Post Ratings
Post by: SoLoGHoST on January 17, 2010, 06:12:20 AM
Thanks for your feedback on the mod and quick fix for others who may have this problem installing this mod when coupled with the Reason for Editing Mod.

Cheers :)
Title: Re: Post Ratings
Post by: h78509 on January 20, 2010, 03:16:06 AM
Unless I'm mistaken, this mod lacks the option to have the only the original post on every thread to be rated.

There is an option of "Enable First Post Rating" but how can you have "Enable First Post Rating + Disable All Others"?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 20, 2010, 01:44:09 PM
You can't do this.  Will be available in Post Ratings Pro.
Title: Re: Post Ratings
Post by: THE BRA1N on January 20, 2010, 09:24:58 PM
Quote from: blokey on December 20, 2009, 11:20:22 AM
why do i get thid it takes ober the top of the post

I get the same error regardless of theme but it's only happening with IE. No problem when using Firefox. Im have it on RC2. Any solution for this?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 21, 2010, 02:40:14 AM
Can you please post up a link?

Thank You
Title: Re: Post Ratings
Post by: Mick. on January 30, 2010, 10:37:00 AM
Great mod sologhost,

Im in the automotive genre and i have a  1  board for vehicle registry.  Is there a way to select boards?

It seems this mod is for "all" topics including "all" boards.
Title: Re: Post Ratings
Post by: SoLoGHoST on January 31, 2010, 03:24:36 AM
I have not coded it to be able to select just 1 board to allow ratings in.  Ofcourse, this option will also be made available in Post Ratings Pro.  You are free to modify Post Ratings all you want to suit your needs on your forum.

Cheers :)
Title: Re: Post Ratings
Post by: Mick. on January 31, 2010, 09:08:06 AM
Quote from: SoLoGHoST on January 31, 2010, 03:24:36 AM
I have not coded it to be able to select just 1 board to allow ratings in.  Ofcourse, this option will also be made available in Post Ratings Pro.  You are free to modify Post Ratings all you want to suit your needs on your forum.

Cheers :)
great!
Title: Re: Post Ratings
Post by: Vyache on February 04, 2010, 08:56:25 PM
Hi,

Was this fixed yet?
http://www.simplemachines.org/community/index.php?topic=344748.msg2427461#msg2427461
Title: Re: Post Ratings
Post by: SoLoGHoST on February 06, 2010, 08:00:21 PM
Well, you can switch it to header style and it really shouldn't interfere with the switching of the message icon.  Though, honestly, I don't know why it would interfere with the switching of the post/topic icon anyhow.

Question:  Do you have the latest version of Post Ratings installed?  If no, than download it and switch to header style and try it than.  It really shouldn't effect the changing of the message icon.
Title: Re: Post Ratings
Post by: SoLoGHoST on February 19, 2010, 10:09:21 AM
Ok, just stopping by and wanted to inform all of you who are interested in the Post Ratings Pro version of this mod...  I am having personal issues with my life at the moment and am not able to finish this mod to the Pro version of it anytime soon.  With that said, you guys/gals are free to download this mod and add any features/options to it, change anything and re-upload it to the mod site.  All I ask is that you offer it for FREE and be sure to list me as the original author of the mod and have this link:  http://custom.simplemachines.org/mods/index.php?mod=2234 attached to whereever you post it up on the internet for people to download.  Also, if it's not too much trouble to also post up a link to graphicsmayhem.com.

For Example:
QuoteAuthor of Post Ratings (http://custom.simplemachines.org/mods/index.php?mod=2234):  SoLoGHoST from http://graphicsmayhem.com
or
QuoteThis mod has been adapted from Post Ratings, found at:  http://custom.simplemachines.org/mods/index.php?mod=2234
Created by:  SoLoGHoST of graphicsmayhem.com

I just wanted to let you all know of this, as it could be quite some time before I get back to coding for the Pro version of this mod.  Please note, I ask only the following of you all who want to use my code within this SMF Mod and modify it for any such purpose, including adding any features that I planned on adding in the Pro version of this mod.

Thank You very much!

Sincerely,
Solomon
Title: Re: Post Ratings
Post by: dry3210 on March 04, 2010, 11:31:12 AM
Quote from: SoLoGHoST on February 19, 2010, 10:09:21 AM
Ok, just stopping by and wanted to inform all of you who are interested in the Post Ratings Pro version of this mod...  I am having personal issues with my life at the moment and am not able to finish this mod to the Pro version of it anytime soon.  With that said, you guys/gals are free to download this mod and add any features/options to it, change anything and re-upload it to the mod site.  All I ask is that you offer it for FREE and be sure to list me as the original author of the mod and have this link:  http://custom.simplemachines.org/mods/index.php?mod=2234 attached to whereever you post it up on the internet for people to download.  Also, if it's not too much trouble to also post up a link to graphicsmayhem.com.

For Example:
QuoteAuthor of Post Ratings (http://custom.simplemachines.org/mods/index.php?mod=2234):  SoLoGHoST from http://graphicsmayhem.com
or
QuoteThis mod has been adapted from Post Ratings, found at:  http://custom.simplemachines.org/mods/index.php?mod=2234
Created by:  SoLoGHoST of graphicsmayhem.com

I just wanted to let you all know of this, as it could be quite some time before I get back to coding for the Pro version of this mod.  Please note, I ask only the following of you all who want to use my code within this SMF Mod and modify it for any such purpose, including adding any features that I planned on adding in the Pro version of this mod.

Thank You very much!

Sincerely,
Solomon

Sorry to hear you are having issues in life right now.  I was really looking forward to a version that would do thread voting.  Good luck sorting things out!
Title: Re: Post Ratings
Post by: Eclipse16V on March 15, 2010, 02:16:52 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Post Ratings
Post by: giveaway365.com on March 18, 2010, 05:15:22 AM
can you make it for 1.1.11 ?
I am looking for this feature in my forum.
Title: Re: Post Ratings
Post by: aw06 on March 25, 2010, 04:28:38 PM
Gonna try emulating this on rc3
Title: Re: Post Ratings
Post by: aw06 on March 25, 2010, 05:56:30 PM
Drats, getting some test fails.. tried to edit manually and nothing  ::)
Title: Re: Post Ratings
Post by: Eclipse16V on March 26, 2010, 01:14:59 AM
No it doesn´t run by manually install.  :'(
Title: Re: Post Ratings
Post by: SoLoGHoST on March 26, 2010, 03:53:59 AM
Hey, sorry guys, but this mod and all of my others will have to wait until I get a test site up with RC3 on it so that I can port it to RC3, if someone wants to put 1 up for me, that would surely speed this up.  Otherwise it could take awhile.
Title: Re: Post Ratings
Post by: Arantor on March 26, 2010, 08:10:01 PM
SoLo: I can set you one up readily enough. PM me and I can hook you up.
Title: Re: Post Ratings
Post by: SoLoGHoST on March 26, 2010, 08:19:15 PM
Wow, thanks for the generous offer.  You guys are amazing.  Thank You, I've gotten like a thousand PM's from member who have set me up already, or want to.

Wow, you guys ROCK!!

Thanks for making my day!

Cheers :)
Title: Re: Post Ratings
Post by: aw06 on March 26, 2010, 08:50:27 PM
Post rating is something we neeeeeeeeeeeeeeeeed :P
Title: Re: Post Ratings
Post by: SoLoGHoST on March 26, 2010, 09:22:57 PM
Quote from: aw06 on March 26, 2010, 08:50:27 PM
Post rating is something we neeeeeeeeeeeeeeeeed :P

hehe, lol ;)
Title: Re: Post Ratings
Post by: Arantor on March 26, 2010, 09:39:23 PM
Quote from: aw06 on March 26, 2010, 08:50:27 PM
Post rating is something we neeeeeeeeeeeeeeeeed :P

Not all of us neeeeeeeeeeeeeeeeeeeeeeed it ;) But some of us wannnnnnnnnnnnnnnnnnts it preciousssssssssssssssssssssssss gollum...
Title: Re: Post Ratings
Post by: aw06 on March 29, 2010, 04:43:35 AM
Quote from: Arantor on March 26, 2010, 09:39:23 PM
Quote from: aw06 on March 26, 2010, 08:50:27 PM
Post rating is something we neeeeeeeeeeeeeeeeed :P

Not all of us neeeeeeeeeeeeeeeeeeeeeeed it ;) But some of us wannnnnnnnnnnnnnnnnnts it preciousssssssssssssssssssssssss gollum...

Photography forums, defenately in neeeeeeeeeeeed of this mod :P
Title: Re: Post Ratings
Post by: SoLoGHoST on March 31, 2010, 11:39:45 AM
Ok, this mod updated for RC3.

Cheers :)
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 11:55:52 AM
Quote from: SoLoGHoST on March 31, 2010, 11:39:45 AM
Ok, this mod updated for RC3.

Cheers :)

First reply ......................

Wont get to install till later thou  8)
Title: Re: Post Ratings
Post by: Arantor on March 31, 2010, 11:58:52 AM
Congrats, SoLoGHoST :)
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 01:21:31 PM
Pick up 2 errors on install ... guess have to manual edit for now
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 01:40:09 PM
Lots of erros just by browsing around in the mod admin section clicking mini help...

Line 1256
'content' => '<i>(<a href="$1" target="_blank" onclick="this.parentNode.innerHTML = \'&lt;i\' + \'mg src=\\\'\' + this.href + \'\\\' /\' + \'>\'; return false;">' . $txt['remove_image_from_post'] . '</a>.)</i>',

Line 1264
'content' => '<i>(<a href="$1" target="_blank" onclick="this.parentNode.innerHTML = \'&lt;i\' + \'mg src=\\\'\' + this.href + \'\\\' /\' + \'>\'; return false;">' . $txt['remove_image_from_post'] . '</a>.)</i>',

Another mod conflict it seems ??
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 02:06:24 PM
Removed, other mod ,. problem solved.. no more errors. need this more then that other mod anyways :P
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 02:30:47 PM
Report:
Mod 'Seems' to be working stable on my 2.0Rc3 :)
All i need to do now is get some prettier stars :P

Suggestion: Can we get a showing a post rating when viewing the message index ?? Like in vbullitin.. see pic
As I'm seeing it now, ratings are anonymous, which is good .. but can admin be able to see a log of users who rated a post. ?
Title: Re: Post Ratings
Post by: giveaway365.com on March 31, 2010, 02:39:57 PM
it did not work :(
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 02:42:55 PM
Quote from: giveaway365.com on March 31, 2010, 02:39:57 PM
it did not work :(

What error you getting ?
Title: Re: Post Ratings
Post by: Eclipse16V on March 31, 2010, 03:24:15 PM
Thanks for the update

Where can i get the pro version of this mod?
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 03:25:48 PM
Just realised that evey post in a topic can be rated  ::) can that be disabled ?
Title: Re: Post Ratings
Post by: SoLoGHoST on March 31, 2010, 04:21:37 PM
Quote from: Eclipse16V on March 31, 2010, 03:24:15 PM
Thanks for the update

Where can i get the pro version of this mod?

Pro Version isn't quite ready yet Eclipse, but will be soon enough.  I will keep you all updated on it and as soon as it's ready, I will post up a link.  I'm glad to hear that you are interested in it.  Short Story:  I had to start all over from scratch as the separation from the wife was a bit dreadful and the move away from that house had me at a loss in more ways than one.  But, I'm slowly but surely getting things back together again!

Quote from: aw06 on March 31, 2010, 03:25:48 PM
Just realised that evey post in a topic can be rated  ::) can that be disabled ?

You can only enable/disable the first post from being rated with this mod.  The Pro version of this mod will have that feature plus many many more!  Please Read the info. for the mod, I describe most of the features that Post Ratings Pro will include.
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 04:28:25 PM
ok thanks.

Tried to use only 3 options, but it still left the stars and blank values for the other 2, any ideas ?
Title: Re: Post Ratings
Post by: SoLoGHoST on March 31, 2010, 04:52:38 PM
Not really sure what you are talking about?  Bytheway, Post Ratings does not put any stars on the message index as in your pic above.  That must be another mod that does that.
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 05:18:22 PM
Quote from: SoLoGHoST on March 31, 2010, 04:52:38 PM
Not really sure what you are talking about?  Bytheway, Post Ratings does not put any stars on the message index as in your pic above.  That must be another mod that does that.

Yeah man, i'm saying it would be good if post ratings could do that, so users viewing the message index can have an idea of which post get rated in the most..

Currently you allow for 5 Ratings ... If i want to use one 3 rating,, or 2, that other spots will show up just the same but with no options to rate ...
Title: Re: Post Ratings
Post by: Eclipse16V on March 31, 2010, 05:21:06 PM
Quote from: SoLoGHoST on March 31, 2010, 04:21:37 PM
Quote from: Eclipse16V on March 31, 2010, 03:24:15 PM
Thanks for the update

Where can i get the pro version of this mod?

Pro Version isn't quite ready yet Eclipse, but will be soon enough.  I will keep you all updated on it and as soon as it's ready, I will post up a link.  I'm glad to hear that you are interested in it.  Short Story:  I had to start all over from scratch as the separation from the wife was a bit dreadful and the move away from that house had me at a loss in more ways than one.  But, I'm slowly but surely getting things back together again!

Quote from: aw06 on March 31, 2010, 03:25:48 PM
Just realised that evey post in a topic can be rated  ::) can that be disabled ?

You can only enable/disable the first post from being rated with this mod.  The Pro version of this mod will have that feature plus many many more!  Please Read the info. for the mod, I describe most of the features that Post Ratings Pro will include.

OK
Thanks
I include first this version of the mod.
Title: Re: Post Ratings
Post by: SoLoGHoST on March 31, 2010, 05:21:41 PM
@aw06 - Please read the features that will be available in the Post Rating Pro Version.  These are the features you are talking about!
Look at where you download Post Ratings and scroll down the page until you see Post Ratings Pro in really big text, all features you are mentioning are in that list!

Cheers :)
Title: Re: Post Ratings
Post by: aw06 on March 31, 2010, 09:32:20 PM
OK, gotcha, a feature you may want to look into for the pro version, or even this one..

Rating a post will contribute a point to karma 8) that would be sweet
Title: Re: Post Ratings
Post by: TugaBin on April 01, 2010, 12:27:38 AM
Quote from: SoLoGHoST on March 31, 2010, 04:21:37 PM
Quote from: aw06 on March 31, 2010, 03:25:48 PM
Just realised that evey post in a topic can be rated  ::) can that be disabled ?

You can only enable/disable the first post from being rated with this mod.  The Pro version of this mod will have that feature plus many many more!  Please Read the info. for the mod, I describe most of the features that Post Ratings Pro will include.

We'll have to wait for Pro and purchase it just to have that feature? You're not planning on adding just that feature in the normal mod?

For what I saw we're a some of them waiting for this feature, but will it be enough to make a buy?

In our forum, members mostly use to post a topic for things they find useful on the web and then people reply according to that, so the main 'event' in the topic is just the first post, after that it's just chatting about it, there's nothing to rate after 1st post...

And why not letting the poster rate it too, he could have an opinion about it too...


Anyway, thanks man for what's already done, even if I wanted, I would never done something such as this mod, it's smooth and nice, and it's well place in every theme I tried, cheers.

C.ya
Title: Re: Post Ratings
Post by: Eclipse16V on April 01, 2010, 04:08:48 AM
There is a error in the settings or is it so ok?
Title: Re: Post Ratings
Post by: ukhalik2 on April 01, 2010, 08:17:43 AM
is there any way to enable the rating in the FIRST post only?

means people would only rate topics not all posts in the topics :)

please help me!

I am using smf 2.0 rc3
Title: Re: Post Ratings
Post by: aw06 on April 01, 2010, 08:20:28 AM
Quote from: ukhalik2 on April 01, 2010, 08:17:43 AM
is there any way to enable the rating in the FIRST post only?

means people would only rate topics not all posts in the topics :)

please help me!

I am using smf 2.0 rc3

He say this is coming in the pro version ...
But i think it should be standard option 8)
Title: Re: Post Ratings
Post by: SoLoGHoST on April 01, 2010, 11:24:43 AM
This is a Post Ratings Mod, hence the name of the mod, not a topic ratings mod.  I will allow for this possibility in Post Ratings Pro however.

Currently, the only way to make the first post to be rated in a topic is to allow people to disable ratings in their own posts via permissions.  Than these people will have to disable it each time they create a post in that topic.  You can play with the permissions and the Post Ratings options in the Admin Panel, but seriously, this MOD was geared more towards posts, not topics.  Doing just topics would've been a hell of a lot easier.

Cheers :)
Title: Re: Post Ratings
Post by: aw06 on April 01, 2010, 12:34:48 PM
Just realize their is now way to see how much ratings as user has accumulated .... or is their a way to see it ?
Title: Re: Post Ratings
Post by: SoLoGHoST on April 01, 2010, 02:23:08 PM
Again, this will be in the Pro Version.
Title: Re: Post Ratings
Post by: TugaBin on April 01, 2010, 03:11:11 PM
Quote from: aw06 on April 01, 2010, 08:20:28 AM
Quote from: ukhalik2 on April 01, 2010, 08:17:43 AM
is there any way to enable the rating in the FIRST post only?

means people would only rate topics not all posts in the topics :)

He say this is coming in the pro version ...
But i think it should be standard option 8)
......
Quote from: SoLoGHoST on April 01, 2010, 11:24:43 AM
...Doing just topics would've been a hell of a lot easier.

Don't want to be ungrateful, coz what you did is already a nice mod, but I found at least one member asking for it in each page of the topic.

And since you say it's even easier than topic rate, I can't stop thinking why wouldn't you make such a mod.
If I had a 1/3 of your knowledge I would do it, but if I do it now, the result would be no one could use their forum anymore... :P

Because I don't see the point of rating someone who said : 'yeah, that's nice!' following by one saiyng 'I prefered the other' and follows another 'so go get it' ... 
There's nothing to rate at ALL besides the first post which actually is only reason for the topic to have been made.

Thanks anyway, maybe someday....
Title: Re: Post Ratings
Post by: aw06 on April 01, 2010, 03:21:47 PM
karma should be used to rate individual post ..

having this + karma is redundant in a sense .. but hey, i love the mod, just have to settle with it.. :P
Title: Re: Post Ratings
Post by: SoLoGHoST on April 01, 2010, 03:41:38 PM
Quote from: TugaBin on April 01, 2010, 03:11:11 PM

And since you say it's even easier than topic rate, I can't stop thinking why wouldn't you make such a mod.
If I had a 1/3 of your knowledge I would do it, but if I do it now, the result would be no one could use their forum anymore... :P

Because I don't see the point of rating someone who said : 'yeah, that's nice!' following by one saiyng 'I prefered the other' and follows another 'so go get it' ... 
There's nothing to rate at ALL besides the first post which actually is only reason for the topic to have been made.

Thanks anyway, maybe someday....

There is already a Rate That Topic (http://custom.simplemachines.org/mods/index.php?mod=1313) mod.  What's wrong with that??

Also, there are many reasons why Rating Posts would be helpful.

Informative reasons, where you have over 100 posts in any given topic, where reading all answers to that question would be hopeless.  You can disable the first post from being rated.  Helps speed up time, cause now you can see how many ratings that answer got, and if it has a high rating, it would be worth reading that post, instead of reading all posts within that topic, hoping to get the answer for the question somewhere on some page of that topic.

Contest Reasons, or just plain Art/Graphics, Software Development, Critique anything really... and many many more reasons.  You're only limited by your imagination really!

For Example:  You can have a Board Called: "Graphics & Art" and this board can have topics in it entitled:  "Emoticons", "Web Design & Layouts", "Wallpapers", "Paintings", "Sketches", etc. etc.  You can post up the rules for each post submission in the first topic (when you create it), for that topic's submissions, now when other people reply to that topic and post up their art/graphics to it, others can rate it.  May be a good idea to disable First Post Ratings in the Admin for this option.  In any case, you can always disable it after creating the topic.

Sorry, but You need to think outside of the box.  The example I posted up above, keeps your boards better organized, and structured into topics (instead of having a Board/Child Board for each section of Graphics & Art).  There are many many many other ways to think of this also and apply it into your forum(s).  It really just depends on what type of audience your forum(s) will attract before you can figure out how useful it could be to you.

Cheers :)
Title: Re: Post Ratings
Post by: TugaBin on April 01, 2010, 05:35:52 PM
Quote from: SoLoGHoST on April 01, 2010, 03:41:38 PM
There is already a Rate That Topic (http://custom.simplemachines.org/mods/index.php?mod=1313) mod.  What's wrong with that??
Not compatible with RC3, besides, yours is nicer, it's just simply graphicaly perfect :)

Quote
Informative reasons, where you have over 100 posts in any given topic, where reading all answers to that question would be hopeless.  You can disable the first post from being rated.  Helps speed up time, cause now you can see how many ratings that answer got, and if it has a high rating, it would be worth reading that post, instead of reading all posts within that topic, hoping to get the answer for the question somewhere on some page of that topic.
....

I undestand that completely, I'm aware of that, like in a forum for computer help, if some one asks for help for something, it's the right mod to identify which response is more likely to solve topic creator's problem.
I was just saying that since you said it would be even easier to do a topic mod than this one, you'll find useful to distribute it, but no harm done, I'll just wait fo the Rate That Topic mod to be compatible with RC3. ;)


Cheers too... :D

Title: Re: Post Ratings
Post by: aw06 on April 01, 2010, 10:59:28 PM
I may install on rc3, gonna try emulate it... cause rate all post is not quite what i need :-X ...
Title: Re: Post Ratings
Post by: giveaway365.com on April 06, 2010, 06:38:16 AM
the uninstall of this mod leaves lot of traces of this mod.
Title: Re: Post Ratings
Post by: SoLoGHoST on April 06, 2010, 07:48:57 PM
It's using the <database> tag, you should place a checkmark in Remove all data associated with this modification when uninstalling the mod or else it will leave all database columns/rows/tables as is and won't remove them.  Also, if you install in other themes you should uninstall in other themes also.
Title: Re: Post Ratings
Post by: kenso on April 09, 2010, 03:18:04 AM
Hi Guys using RC3 just install into the default theme got a success and a green light in the packages area, but have no "enable post rating box" in topics or any other thing anywhere to say it was even installed. Any ideas where I went wrong? Should it be under forum / posts and topics / topic settings?
Title: Re: Post Ratings
Post by: giveaway365.com on April 09, 2010, 06:48:07 AM
same problem so I uninstalled it ... even uninstall leaves some traces of this mod ...
Title: Re: Post Ratings
Post by: SoLoGHoST on April 09, 2010, 11:47:31 AM
Quote from: kenso on April 09, 2010, 03:18:04 AM
Hi Guys using RC3 just install into the default theme got a success and a green light in the packages area, but have no "enable post rating box" in topics or any other thing anywhere to say it was even installed. Any ideas where I went wrong? Should it be under forum / posts and topics / topic settings?

Quote from: giveaway365.com on April 09, 2010, 06:48:07 AM
same problem so I uninstalled it ... even uninstall leaves some traces of this mod ...

Ok, you have to enable it first within the Admin Panel, and than you need to set the permissions for it.  There are 9 pictures for you to look at on this mod.  I do believe that is close, if not a record.  Most mod authors don't go to such great lengths to show you every aspect of the mod.  As far as installing in other themes, There is also a pic and STEP BY STEP instructions on how to do this, directly from the page that you downloaded the mod from.  I couldn't make it any easier for you unless I did it for you myself.

Cheers :)
Title: Re: Post Ratings
Post by: DeKAR on April 10, 2010, 04:55:48 PM
Help me please! How can I add more starts? I need to rate posts not from 1 to 5 but from 1 to 10. What should I add to xml or php file?
Title: Re: Post Ratings
Post by: SoLoGHoST on April 11, 2010, 09:14:57 PM
Sorry, this is not available in Post Ratings, only allows for 5 Stars.  Will be made available in Post Ratings Pro.

Solomon
Title: Re: Post Ratings
Post by: SoLoGHoST on April 13, 2010, 07:28:35 PM
Ok, just wanted to let you all know that live627 has agreed to turn this mod into the Pro version, as I'm too busy atm with Dream Portal and other things in my life to focus my attention on the Pro Version of this mod.  You can purchase the Pro version of this mod from live627 when he has completed it.

Cheers :)
Title: Re: Post Ratings
Post by: aw06 on April 20, 2010, 12:24:32 PM
This mod start to act funny... post ratings just vanish... i get this error sometimes..

QuoteUnable to rate this post. Possible causes: The topic is locked, ratings is disabled in this topic and/or post, the ratings limit for this post has been reached. Please fix these possible causes and try again.

Have to go in the settings and enable the mod again :-\
Title: Re: Post Ratings
Post by: SoLoGHoST on April 20, 2010, 01:20:14 PM
Are you saying that you are getting this error message when Post Ratings is disabled in the Admin Panel??

If so, may I ask what url or what you click on that produces this error message?
Title: Re: Post Ratings
Post by: aw06 on April 20, 2010, 02:04:11 PM
I logged on yesterday and noticed all post ratings were gone .... so i went in admin panel and re-enable it ...

Today i try to rate a post and got that error, on refresh all ratings vanished again, went back to admin panel and enable it. same thing happen a few hours later.

I have changed nothing on my forums, so I'm figuring as the mad says i may have too much ratings overall so it's acting strange..  :-\
Title: Re: Post Ratings
Post by: SoLoGHoST on April 20, 2010, 05:02:31 PM
I seriously doubt that you have too much ratings.  Though I would like to help you, I'm afraid I can't really do much without seeing the problem myself, since your explanations are not helpful to me.  If you'd like to make me a temp Admin on your site so I can check your settings for Post Ratings, etc. to help you, please PM me with the info..  I'll go ahead and see if I can fix it for you.  If you edited Post Ratings manually than I really wouldn't be able to help you much.

Cheers,
Solomon
Title: Re: Post Ratings
Post by: aw06 on April 20, 2010, 05:30:03 PM
it's kool, removed mod for now .. looking to get topic ratings instead..
Title: Re: Post Ratings
Post by: SoLoGHoST on April 20, 2010, 06:33:28 PM
ok than.

Cheers :)
Title: Re: Post Ratings
Post by: MATTEK on April 20, 2010, 07:44:06 PM
I can't seem to get this one to work. I've checked all settings and made sure my member groups have the correct permissions. Still...no option anywhere to rate a post. I'me using Curve default as my theme.
Title: Re: Post Ratings
Post by: SoLoGHoST on April 21, 2010, 01:54:46 AM
If you want all posts to be able to be rated, place checkmark in First Post rating, and select All Topics (Enabled) from the list.  Make sure there is a checkmark in "Enable Post Ratings" and make sure your permissions are set up correctly for posts and topics as well as the main permissions.  It would be easier for me to do it for you rather than to tell you.

And also, this mod isn't compatible with SMF 1.1.x versions.
Title: Re: Post Ratings
Post by: MATTEK on April 22, 2010, 08:45:25 PM
Quote from: SoLoGHoST on April 21, 2010, 01:54:46 AM
If you want all posts to be able to be rated, place checkmark in First Post rating, and select All Topics (Enabled) from the list.  Make sure there is a checkmark in "Enable Post Ratings" and make sure your permissions are set up correctly for posts and topics as well as the main permissions.  It would be easier for me to do it for you rather than to tell you.

And also, this mod isn't compatible with SMF 1.1.x versions.

I've figured it out, however some posts don't have the option to be rated. Little odd. Probably something I've overlooked.
Title: Re: Post Ratings
Post by: MATTEK on April 22, 2010, 10:18:58 PM
Quote from: SoLoGHoST on April 21, 2010, 01:54:46 AM
If you want all posts to be able to be rated, place checkmark in First Post rating, and select All Topics (Enabled) from the list.  Make sure there is a checkmark in "Enable Post Ratings" and make sure your permissions are set up correctly for posts and topics as well as the main permissions.  It would be easier for me to do it for you rather than to tell you.

And also, this mod isn't compatible with SMF 1.1.x versions.

I've figured it out, however some posts don't have the option to be rated. Little odd. Probably something I've overlooked.


Also, sometimes people have a huge space between their post and signatures. How can that be fixeD?

Here's a comparison between two posts that in the same thread.
Title: Re: Post Ratings
Post by: GoldieFR on April 23, 2010, 07:10:08 AM
Hello,

I'd love to install this mod but I have a little problem when I try to install it.
(I'm on 2rc2).

here it is:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnsa14.casimages.com%2Fimg%2F2010%2F04%2F23%2F100423010948803276.png&hash=140c3ea75ea8bd110eff72c45bf95de5fb184577)

can anyone help ?
what should I do ?
Title: Re: Post Ratings
Post by: SoLoGHoST on April 23, 2010, 11:02:17 AM
Quote from: GoldieFR on April 23, 2010, 07:10:08 AM
Hello,

I'd love to install this mod but I have a little problem when I try to install it.
(I'm on 2rc2).

here it is:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnsa14.casimages.com%2Fimg%2F2010%2F04%2F23%2F100423010948803276.png&hash=140c3ea75ea8bd110eff72c45bf95de5fb184577)

can anyone help ?
what should I do ?
Is that your error log?  Strange that there's no drop down to show you exactly which edit is in error.  I'll look into this.  Thanks.

Quote from: MATTEK on April 22, 2010, 10:18:58 PM
Quote from: SoLoGHoST on April 21, 2010, 01:54:46 AM
If you want all posts to be able to be rated, place checkmark in First Post rating, and select All Topics (Enabled) from the list.  Make sure there is a checkmark in "Enable Post Ratings" and make sure your permissions are set up correctly for posts and topics as well as the main permissions.  It would be easier for me to do it for you rather than to tell you.

And also, this mod isn't compatible with SMF 1.1.x versions.

I've figured it out, however some posts don't have the option to be rated. Little odd. Probably something I've overlooked.


Also, sometimes people have a huge space between their post and signatures. How can that be fixeD?

Here's a comparison between two posts that in the same thread.
hmmm, another strange thing, possibly conflicting with another mod you have installed.  Do you have another mod installed, perhaps something to do with Signatures?
Title: Re: Post Ratings
Post by: Arantor on April 23, 2010, 11:09:48 AM
There's no dropdown because it's not "test failed", it's saying "parse error in modification". Usually that means either an XML file is missing/can't be found for some reason, or it's physically messed up.
Title: Re: Post Ratings
Post by: SoLoGHoST on April 23, 2010, 11:21:59 AM
Thanks Arantor, that's what I was afraid of.  But honestly, after looking through these files I'm not seeing anything wrong with them...
Title: Re: Post Ratings
Post by: SoLoGHoST on April 23, 2010, 11:35:45 AM
Hello GoldieFR, I've taken away a few files and possibly fixed the issue, I believe.  Well attached is a package for you to try out.  Let me know if you get any errors when trying to install this one, k?

Thanks
Title: Re: Post Ratings
Post by: GoldieFR on April 25, 2010, 02:44:27 AM
Quote from: SoLoGHoST on April 23, 2010, 11:35:45 AM
Hello GoldieFR, I've taken away a few files and possibly fixed the issue, I believe.  Well attached is a package for you to try out.  Let me know if you get any errors when trying to install this one, k?

Thanks

thank you so much for your work !!!!
I'll have a look at this and I'll let you know asap.
Title: Re: Post Ratings
Post by: GoldieFR on April 25, 2010, 02:48:30 AM
Congrats, Post Ratings installed successfully!                                   (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forumdediscussion.org%2FSmileys%2FLightB%2FSmiley-IPB-238.gif&hash=29be50946ab694bfd812d85bf293f94fb9209dbe)

thanks a lot !!!  ;D
my members will love it.
great job !! ;D
Title: Re: Post Ratings
Post by: SoLoGHoST on April 25, 2010, 03:03:58 AM
Sure, so I take it this package worked for you with no errors?
Title: Re: Post Ratings
Post by: SoLoGHoST on April 25, 2010, 03:05:33 AM
Sure thing :)
Title: Re: Post Ratings
Post by: twotonetwo on May 11, 2010, 05:41:14 AM
Hi im trying to chnage the word "enabled and disabled" in the post for an image, but i cant find it in teh language files using teh parser. can you tell me how i can change the words "enabled" and "disabled" into images, or rather where i can find the text so i can change it for an image instead please? Thank you!!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi534.photobucket.com%2Falbums%2Fee350%2Fsurrealkiller_photos%2Fenabled.png&hash=46da41652fd82d5775236304faf5c4aaab434376)

Greta mod btw having alot of fun with this one  ;D
Title: Re: Post Ratings
Post by: jani01 on May 11, 2010, 06:19:44 AM
really a great mod.  already paid thanks also count my thanks too.

cheers


:)

Title: Re: Post Ratings
Post by: SoLoGHoST on May 11, 2010, 09:22:45 AM
Quote from: twotonetwo on May 11, 2010, 05:41:14 AM
Hi im trying to chnage the word "enabled and disabled" in the post for an image, but i cant find it in teh language files using teh parser. can you tell me how i can change the words "enabled" and "disabled" into images, or rather where i can find the text so i can change it for an image instead please? Thank you!!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi534.photobucket.com%2Falbums%2Fee350%2Fsurrealkiller_photos%2Fenabled.png&hash=46da41652fd82d5775236304faf5c4aaab434376)

Greta mod btw having alot of fun with this one  ;D

If you are using any other theme besides Core or Curve and you didn't select to install into other themes upon installation of this mod, than you will have to follow the 5 step process on adding in the images located where you download the mod:  Post Ratings Mod (http://custom.simplemachines.org/mods/index.php?mod=2234).  After you get the images to show, than you can simply open up Display.template.php and the bit of code that you would be interested in is located within here:

<li class="', $message['ratings_enabled'] ? 'enable_ratings_button' : 'disable_ratings_button', '"><a href="', $scripturl, '?action=postratings;sa=', ($message['ratings_enabled'] ? 'disable' : 'enable'), ';topic=', $context['current_topic'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', $message['ratings_enabled'] ? $txt['enable_ratings_post_alt'] : $txt['disable_ratings_post_alt'], '">', ($message['ratings_enabled'] ? $txt['enable_ratings_post'] : $txt['disable_ratings_post']), '</a></li>';

The $txt['enable_ratings_post'] and $txt['disable_ratings_post'] is the actual text for this ("Enabled", and "Disabled").  You should be able to figure out how to change it if you want.

If you don't want the image that gets put in here, than you'll have to edit this whole thing so that it can link to a css class where the images are defined, but don't mess with the <a> tags href attribute or there will be problems.

Cheers :)

Title: Re: Post Ratings
Post by: twotonetwo on May 11, 2010, 09:25:23 AM
Thats great thnks!
Title: Re: Post Ratings
Post by: Xarcell on May 11, 2010, 04:19:19 PM
Quote from: MATTEK on April 20, 2010, 07:44:06 PM
I can't seem to get this one to work. I've checked all settings and made sure my member groups have the correct permissions. Still...no option anywhere to rate a post. I'me using Curve default as my theme.

you can't rate your own topics...  :D
Title: Re: Post Ratings
Post by: giveaway365.com on May 12, 2010, 02:25:35 AM
There seems to be some confusion.
I want to enable all topics ratings (old & New). 
These are my settings:
Automatic Ratings Setting for Topics -  All topics enabled.
Enable First Post Rating - checked


Problem is that by default I have topics disabled. I have to manually enable each one of the new/old topics. I have done the file cache in routine maintanance.

Please advise what to do?
Title: Re: Post Ratings
Post by: SoLoGHoST on May 12, 2010, 02:58:47 AM
Just so people don't think I'm talking to myself here, as I thought for a sec...lol, but than realized that the user must've deleted the post, so for whatever reason, I won't mention the username....
Quote
There seems to be some confusion.
I want to enable all topics ratings (old & New).
These are my settings:
Automatic Ratings Setting for Topics -  All topics enabled.
Enable First Post Rating - checked


Problem is that by default I have topics disabled. I have to manually enable each one of the new/old topics. I have done the file cache in routine maintanance.

Please advise what to do?
Make sure you have Post Ratings enabled as well.

And to be sure, because I placed a check in here to check in $modSettings if it was already selected to not do it again, since this could take some time to perform this, and people may not think to change the setting from All Topics enabled to a different setting.  So here's what you do...

1. Make sure you have Post Ratings enabled (very first option in the settings).
2. Change "Automatic Ratings Setting for Topics" to New Topics enabled
3. Click on the SAVE Button at the bottom.

Now after it saves, change "Automatic Ratings Setting for Topics" to All topics enabled and Click the SAVE Button.

Let me know how that goes for you.

P.S. -> And don't forget about the Permissions for Post Ratings.
Title: Re: Post Ratings
Post by: dmacleo on May 23, 2010, 02:19:00 PM
first, on smf 2 rc3 it works reat, thank you.

I would like to know how to move the post rating options/rate this post bar further up on the post itself. top right would be awesome but really anything to move up a bit would be nice.

I think this is not really a mod question but probably some template.css edit needed, I was hoping you could just point me where to look so I can learn.

thanks for the cool mod :)
Title: Re: Post Ratings
Post by: SoLoGHoST on May 23, 2010, 09:05:07 PM
Look in Display.template.php, this is where all of the code gets put for displaying Post Ratings when viewing topics.  Let me know if you require more info on this.

Cheers :)
Title: Re: Post Ratings
Post by: dmacleo on May 24, 2010, 06:39:43 AM
I will look at that later today and play around with it, thanks very much :)
Title: Re: Post Ratings
Post by: dmacleo on May 24, 2010, 04:40:44 PM
LOL  I got no idea what to do there.
I think its in this area. possibly in the section I bolded and underlined?

Quote// Post Ratings BEGIN...
      //

      // Inner Style?
      if(empty($modSettings['post_ratings_layout_style']))
      {
         // is it enabled or not??
         if ($message['ratings_enabled'] && $message['topic_enabled'] && $message['first_enabled'] && allowedTo('postratings_view'))         
         {
            echo '<table class="inner" style="border-top: none;" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" valign="top" style="white-space: nowrap;">';
            
            // does the post have any ratings yet?
            if (!$message['has_ratings'])
            {
                  echo parse_bbc($modSettings['post_ratings_not_rated']);
            }
            else
            {
               $textOut = 'post_ratings_text' . $message['post_rating_num'];
               
               echo $message['post_rating_stars'] . '</td>
               <td align="left" valign="middle" width="100%"><div> ' . parse_bbc($modSettings[$textOut], true) . '</div>';
               
               if (!empty($modSettings['post_ratings_show_quantity']))
                  if (!empty($message['post_rating_totals']))
               echo '</td><td class="smalltext" align="right" valign="middle" style="white-space: nowrap;">' . $txt['postratings_count1'] . ' <strong>' . $message['post_rating_totals'] . '</strong> ' . ($message['post_rating_totals'] < 2 ? $txt['postratings_count2'] : $txt['postratings_count3']);
            }   
            echo '</td></tr></table>';
         }
      }         
      //
      // Post Ratings END!

Title: Re: Post Ratings
Post by: SoLoGHoST on May 25, 2010, 02:48:10 AM
No, that is where the rating for the post gets shown.  If I understood you right, you want to change the position of where the user rates a post within the post itself right??

Is so, you want this bit of code:
if (!$context['is_ratings_locked'])
{
if ($message['can_postratings_rate'] || !empty($message['rating']) && !$user_info['is_guest'])
{
$is_enabled = $message['ratings_enabled'] && $message['topic_enabled'] && $message['first_enabled'] ? true : false;

// Is it the POST CREATOR
if ($is_enabled && $message['not_your_post'])
{
// only show it if we need it for anything...
if (($message['can_postratings_rate'] && !$message['reached_ratings_limit']) || $message['rating']['can_postratings_edit'] || $message['rating']['can_delete_own_rating'])
{
$can_delete_only = false;


echo '<div style="clear: both;">
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/postRatingsRC23.js"></script>';

$rating_nonrated_img = $boardurl . '/' . $modSettings['post_ratings_image_nonrated'];
$rating_rated_img = $boardurl . '/' . $modSettings['post_ratings_image_rated'];
$is_collapsed = empty($modSettings['post_ratings_auto_expanded']) || ($modSettings['post_ratings_auto_expanded'] == 2 && !empty($message['rating']['already_rated'])) ? true : false;

$ratingOpt = $message['can_postratings_rate'] && empty($message['rating']['already_rated']) ? parse_bbc($modSettings['post_ratings_not_expanded_rate'], true) : parse_bbc($modSettings['post_ratings_not_expanded_edit'], true);

// echo the right text link for them to click on
echo '<div onClick="javascript:doExpandCollapse(\''.$message['id'].'\', \''.$settings['images_url'].'\');" style="cursor:pointer; padding-bottom: 5px;"><span><img id="img' . $message['id'] . '" src="' . $settings['images_url'] . '/' . (!$is_collapsed ? 'collapse' : 'expand') . '.gif" /> ' . $ratingOpt . '</span></div>
<div id="pr' . $message['id'] . '"' . (!$is_collapsed ? ' class="expanded"' : ' style="display: none;"') . '>';

echo '<table cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="middle" style="white-space: nowrap; align: left; padding: 5px 0px 5px 5px;">', !empty($message['rating']['already_rated']) ? $txt['postratings_your_rating'] : $txt['postratings_rate_it'], '</td><td align="left" valign="middle" style="white-space: nowrap; align: left; padding: 5px 5px 5px 0px;">';

$da_rating = !empty($message['rating']['your_rating']) ? $message['rating']['your_rating'] : 0;

// able to rate and/or edit ratings...
if ((($message['can_postratings_rate'] && !$message['reached_ratings_limit']) && empty($message['rating']['already_rated'])) || $message['rating']['can_postratings_edit'])
{
// Rate this post, or EDIT your Rating
for($i = 1; $i <= 5;$i++) {

$combo[$i-1] = 'img' . $message['id'];

echo '<input type="image" name="rating" id="' . $combo[$i-1] . '' . $i . '" src="'. $rating_nonrated_img . '" value="' . $i . '" border="0" onMouseOver="submitVote(\''.$message['id'].'\', \''. $i .'\'); doMover(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \''. $da_rating .'\', \'' . $combo[$i-1] . '\',\'' . $i . '\'); textOutput(\''. $message['id'] . '\', \''. $i .'\');" onMouseout="doMout(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \'' . $da_rating . '\', \'' . $message['id'] . '\'); textOutput(\''. $message['id'] . '\', \''. $da_rating . '\');" onClick="doSubmit(\'rate\', \''.$message['id'].'\', \''.$scripturl.'\', \''.$context['session_var'].'\', \''.$context['session_id'].'\');" style="border: none; background: transparent;" />';

// input is hidden, but necessary so we can get the ratings from the user...
echo '<input type="radio" id="rat'. $message['id'] . $i . '" name="rating" value="' . $i . '" style="display: none;" />';
}


// ok, now let's do the other hidden <input> tags...
echo
'
<input type="hidden" name="pr_messageid' . $message['id'] . '" value="' . $message['id'] . '" />
<input type="hidden" name="pr_topicid' . $message['id'] . '" value="' . $message['topic_id'] . '" />';
}
elseif ((!$message['can_postratings_rate'] && !$message['rating']['can_postratings_edit']) || $message['rating']['can_delete_own_rating'] || (!empty($message['rating']['already_rated']) && $message['can_postratings_rate']))
{
// do you have any rating to delete?
if (!empty($message['rating']['your_rating']))
{
$can_delete_only = true;

for($i=0; $i < 5; $i++) {
if ($i < $message['rating']['your_rating'])
echo '<img src="', $rating_rated_img, '" alt="*" border="0" />';
else
echo '<img src="', $rating_nonrated_img, '" alt="*" border="0" />';
}

echo '</td><td align="left" width="100%" valign="middle" style="align: left; padding: 5px;"><div id="dRate' . $message['id'] . '" style="position: relative; left: 0px;"></div></td>';
echo '
<script language="JavaScript" type="text/javascript">
setInnerHTML(document.getElementById("dRate"+' . $message['id'] . '), "' . addslashes(parse_bbc($modSettings['post_ratings_text' . $da_rating], true)) . '");
</script>';
}
}

if (!$can_delete_only)
{
echo '</td><td align="left" width="100%" valign="middle" style="align: left; padding: 5px;"><div id="dRate' . $message['id'] . '" style="position: relative; left: 0px;"></div></td>';

if (!empty($message['rating']['your_rating']))
echo '
<script language="JavaScript" type="text/javascript">
alreadyRated(\'' . $rating_rated_img . '\', \'' . $rating_nonrated_img . '\', \'' . $message['id'] . '\', \'' . $message['rating']['your_rating'] . '\');
setInnerHTML(document.getElementById("dRate"+' . $message['id'] . '), "' . addslashes(parse_bbc($modSettings['post_ratings_text' . $message['rating']['your_rating']], true)) . '");
</script>';
}

if (!empty($message['rating']))
if ($message['rating']['can_delete_own_rating'] && !$message['reached_ratings_limit'])
{
echo '<td align="right" valign="middle" style="white-space: nowrap; padding-right: 5px;">

<a href="javascript:void(0);" onClick="doSubmit(\'delete\', \''.$message['id'].'\', \''.$scripturl.'\', \''.$context['session_var'].'\', \''.$context['session_id'].'\');">' . $txt['remove_rating'] . '</a>
<input type="hidden" name="pr_del' . $message['id'] . '" value="' . $message['id'] . '">

</td>';

}

echo '
</tr></table></div></div>';
}
}
}
}



Ofcourse, if you don't know what you're doing, it would be better for me to do it for you, though honestly I'm a bit too busy with a different project at the moment.  If you have a test site, test it on there.  The code above is the entire code for rating a post, so it's basically the entire code above, would just get moved to a different area of the template.

Good Luck :)
Title: Re: Post Ratings
Post by: dmacleo on May 25, 2010, 12:11:25 PM
what I would like to TRY (key word :) ) to do is move the  Post Rating Options (Rate this post) (rate1 attachment) up to the top of the post section possibly above the post options (rate 2) area to remove the excess space that each post takes up on a page.
does that make sense?

I will try out that code in a bit, thanks.
Title: Re: Post Ratings
Post by: SoLoGHoST on May 25, 2010, 07:00:43 PM
Yeah, so the code I posted is the code you will need to search for and move the entire code up further in the template, above where those buttons are defined and outputted within the template.

EDIT:
Though, like I said, it would be better for me to do it for you.  Or maybe someone else could.

Perhaps if you post up your Display.template.php file, either myself, or someone else here could do it for you.

Cheers :)
Title: Re: Post Ratings
Post by: dmacleo on May 27, 2010, 03:31:17 PM
sorry it took so long to respond, I did not get a chance to try that out yet
I could post mine if you would not mind.
then I could look at the differences and learn from it.
I thank you for the help.
Title: Re: Post Ratings
Post by: SoLoGHoST on May 27, 2010, 10:06:08 PM
Ok, so just to be clear here on where you want it.  Do you want it above the 2nd pic that you attached?  Or below it?  Or what exactly...

I mean do you want it at the very top above everything, even the Post Subject Title itself?

Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on May 27, 2010, 10:30:47 PM
Well, here it is above everything.  I haven't tested it out, so it would be wise to test first...

The lines of code are from Lines #566 To 671.  I left a little gap up top and to the bottom so you can see this.  I believe I got it in between the right <div> tags, but if not than you can play with it to get it just right for the way you want it than.

Cheers :)
Title: Re: Post Ratings
Post by: dmacleo on May 30, 2010, 04:49:52 PM
I wlil try that in a few moments, thanks so very much.
Title: Re: Post Ratings
Post by: rd on May 30, 2010, 04:50:47 PM
This is pretty good, I use it here: http://duke.xadro.net

Title: Re: Post Ratings
Post by: dmacleo on May 30, 2010, 04:56:19 PM
ok it has changed the position to top of post but the top of the whole post is now at bottom edge of the user profile section.
very odd, LOL
the positions are right where they need to be as far as the mod, its how the user info seems to affect everything that is the issue.
I wonder, and I am bad at this, if it is a div tag issue. I will experiment with it, thanks so much for the help.
Title: Re: Post Ratings
Post by: SoLoGHoST on May 30, 2010, 05:11:06 PM
Yeah, I believe it's a <div> tag issue, play with the <div> tags above and below it a little and you should get it looking the way you want to.
Title: Re: Post Ratings
Post by: dmacleo on May 30, 2010, 05:14:20 PM
thats what I am trying in a bit, going to cut/move the block in those lines up/down to see how it affects it.
will be good training for me :)
Title: Re: Post Ratings
Post by: Davagator on June 04, 2010, 10:51:30 AM
smf 2.0rc3, template: Bright Forest Theme v2.3 by Aaron
Mod works great in the default theme (curves) but I can't get it to display rating in bright forest theme.    I manually added the one css line to index.template but ratings are still not showing up.  Any thoughts?
Title: Re: Post Ratings
Post by: SoLoGHoST on June 05, 2010, 12:22:16 AM
@ Davagator - have you tried changing the layout in PR Settings?  There are 2 different types of layouts:  Header Style and Inner Style, switch between the 2 and tell me if either one works, k?

If not than you'll need to edit your Display.template.php file manually for the Bright Forest Theme, since it would seem that this Theme may have it's own Display.template.php file.  Though honestly, you didn't provide a link for it, and a search on SMF Themes for "Bright Forest Theme" gives me 111 pages to search through and I don't have that much time on my hands.
Title: Re: Post Ratings
Post by: MaNaRa on June 05, 2010, 04:36:03 PM
I cant install this mod in the RC3 :-\
this is the list of installed mods...
Title: Re: Post Ratings
Post by: SoLoGHoST on June 05, 2010, 09:46:29 PM
Please upload your Post.php and Display.php files located in your ./Sources directory, of where SMF is installed on your server, and I'll have a look, k?

Do Not Install Post Ratings yet.

Cheers :)
Title: Re: Post Ratings
Post by: MaNaRa on June 06, 2010, 02:08:29 PM
Quote from: SoLoGHoST on June 05, 2010, 09:46:29 PM
Please upload your Post.php and Display.php files located in your ./Sources directory, of where SMF is installed on your server, and I'll have a look, k?

Do Not Install Post Ratings yet.

Cheers :)

ok, here are  ;)
Title: Re: Post Ratings
Post by: SoLoGHoST on June 06, 2010, 11:51:58 PM
Ok, replace those files with the files I have attached (backup the old one's first, just in case, as always), than install Post Ratings.  You shouldn't get any errors this time.  Was clashing when calling the database for a mod that you had installed, having hiddenOptions, hiddenValues, etc. columns, so I moved these into a different area within the query so that you can install Post Ratings naturally now.

Let me know how this works for you, but all should go just fine.

Cheers :)
Title: Re: Post Ratings
Post by: MaNaRa on June 07, 2010, 09:39:08 PM
Now it's perfect! thanks a lot for your help :)
Title: Re: Post Ratings
Post by: SoLoGHoST on June 08, 2010, 11:27:00 AM
Cheers, you're welcome :)
Title: Re: Post Ratings
Post by: PurpleCrow on June 13, 2010, 01:09:43 PM
I'm getting ratings_topic in my Moderation log all the time (see attatched image), any ideas as to why its appearing there?

Title: Re: Post Ratings
Post by: SoLoGHoST on June 13, 2010, 02:12:37 PM
I'm sorry, I'm unable to take a look at this problem right now and/or fix it.  Post Ratings doesn't do anything within the moderation logs, so maybe this is the problem, as it should probably do something in here to skip this part in ratings_topic.  Shouldn't be that difficult to implement though, but I'm not able to help right now with this....  Check your error logs, though, if that is showing up in there, than most likely no errors in the error log either...

Sorry, hopefully I should be able to help in a few days or so...

Bytheway, what area of the moderation log are you seeing this in?  Reported Posts area?
Title: Re: Post Ratings
Post by: SoLoGHoST on June 25, 2010, 07:02:56 PM
Hello again PurpleCrow, just following up on your issue with Post Ratings.  Maybe you can answer my question so that I can help you, i.e., if you still need help on this.  In any case, let me know.  What url are you going to relative to your $boardurl that has Action, Date, Member, and Position in the titlebar?

Quote from: SoLoGHoST on June 13, 2010, 02:12:37 PM
Bytheway, what area of the moderation log are you seeing this in?  Reported Posts area?

Thanks
Title: Re: Post Ratings
Post by: ToeJam on July 02, 2010, 02:46:21 PM
Hi Solo,

I might have missed the setting or perhaps this is beyond the original scope.  Is there a way to see the current rating of the original post in 'Recent Posts' or within the Board category were all topics are listed? i.e. prefixed or suffixed to the post title?  The idea would be to draw attention to items with a higher user rating.  Any hlep is greatly appreciated!
Title: Re: Post Ratings
Post by: SoLoGHoST on July 02, 2010, 05:35:37 PM
Hi ToeJam,

No, this is not possible because it wasn't coded in that respect.  But honestly, as many times as this has been requested it wouldn't be very difficult to add in this ability to both Recent Posts and/or Board Categories.  My idea for this, if I ever get around to coding the Post Ratings Pro version of this myself, since live627 may have given up on coding the Pro version, is to offer the ability in the PR Admin Panel to show this in several different places, as many as the Admin selects, and to offer the ability to either show the first post rating percentage (first post) or the overall topic ratings average percentage (all posts).  In any case, I have given up on coding as I don't have the time for this anymore in my life to code for FREE.  Don't even have the time to code for $$$ either.  Because, I've got too much going on in my life right now, not to mention, I'm living with my sister and using her computer which isn't a good developing environment either.  Going to School, working, and trying to see my daughter as much as possible in between all of this.  Separated from the wife back in February and things have been hectic ever since.  So life has gotten in the way of all of this and my love for SMF and coding for SMF has decreased tremendously since than.

But honestly, this is not hard at all to do, for anyone with half a brain for coding that is.  I haven't touched any of the source or template files that deal with showing the Categories and Recent Posts, so this is just a matter of adding in the relevant code to the source and template files.

You guys are free to alter the code for Post Ratings however you see fit.  I would like to see your modified version of it, if that would be OK.  All I ask is that, if you do make a modified version of Post Ratings, that you include me as the original author and include a link to where the original mod can be downloaded here on SMF.  That's all.

Cheers
Title: Re: Post Ratings
Post by: Welovea1 on July 24, 2010, 07:56:34 PM
This looks like a mod that would be very useful for our forum if we were able to rate our own posts. We are a book club and it would be terrific if the users could rate a book that has been reviewed.  The only caveat is that the original poster would like to be able to rate the book they've reviewed, as well.  In this application we wouldn't be rating the post but the book being discussed in the post.  Any possibility that we could use your mod for this purpose?  Thanks!
Title: Re: Post Ratings
Post by: SoLoGHoST on July 25, 2010, 12:25:21 AM
This is an extremely easy edit.  I may update it with this possibility in the PR Admin Panel.  Perhaps a checkbox setting, something like:  Allow Rating of Own Posts.  I'll see what I can do to update it with this ability.  Once I'm done I'll get back with you in this topic.

Warning - This could take me some time, like a week or 2 since it's not really a priority of mine and I work and go to school as well and can't find that much time to do much these days.  And furthermore, because I would be coding on-the-fly since I lack certain resources/programs on this computer and unable to install them since it's not my computer.  But I'll see what I can do, just have a little patience please.

Cheers :)
Title: Re: Post Ratings
Post by: Welovea1 on July 25, 2010, 05:22:05 AM
Quote from: SoLoGHoST on July 25, 2010, 12:25:21 AM
This is an extremely easy edit.  I may update it with this possibility in the PR Admin Panel.  Perhaps a checkbox setting, something like:  Allow Rating of Own Posts.  I'll see what I can do to update it with this ability.  Once I'm done I'll get back with you in this topic.

Warning - This could take me some time, like a week or 2 since it's not really a priority of mine and I work and go to school as well and can't find that much time to do much these days.  And furthermore, because I would be coding on-the-fly since I lack certain resources/programs on this computer and unable to install them since it's not my computer.  But I'll see what I can do, just have a little patience please.

Cheers :)

A week or two is certainly not a long time and will be well worth the wait.  I'm really excited about the possibility of using your mod for this purpose.  Thanks so very much for your willingness to do this!!!!
Title: Re: Post Ratings
Post by: Welovea1 on July 25, 2010, 06:13:18 PM
Quote from: SoLoGHoST on July 25, 2010, 12:25:21 AM
This is an extremely easy edit.  I may update it with this possibility in the PR Admin Panel.  Perhaps a checkbox setting, something like:  Allow Rating of Own Posts.  I'll see what I can do to update it with this ability.  Once I'm done I'll get back with you in this topic.

Warning - This could take me some time, like a week or 2 since it's not really a priority of mine and I work and go to school as well and can't find that much time to do much these days.  And furthermore, because I would be coding on-the-fly since I lack certain resources/programs on this computer and unable to install them since it's not my computer.  But I'll see what I can do, just have a little patience please.

Cheers :)

How difficult would it be to change the word "post" in the image to "book"?  We're pretty good with photoshop so is this something that we could do?
Title: Re: Post Ratings
Post by: SoLoGHoST on July 25, 2010, 11:57:13 PM
What image are you talking about?  Maybe you can show me a pic of the image you are referring to?
Title: Re: Post Ratings
Post by: ToeJam on July 26, 2010, 11:37:03 AM
Quote from: SoLoGHoST on July 02, 2010, 05:35:37 PM
Hi ToeJam,

No, this is not possible because it wasn't coded in that respect.  But honestly, as many times as this has been requested it wouldn't be very difficult to add in this ability to both Recent Posts and/or Board Categories.  My idea for this, if I ever get around to coding the Post Ratings Pro version of this myself, since live627 may have given up on coding the Pro version, is to offer the ability in the PR Admin Panel to show this in several different places, as many as the Admin selects, and to offer the ability to either show the first post rating percentage (first post) or the overall topic ratings average percentage (all posts).  In any case, I have given up on coding as I don't have the time for this anymore in my life to code for FREE.  Don't even have the time to code for $$$ either.  Because, I've got too much going on in my life right now, not to mention, I'm living with my sister and using her computer which isn't a good developing environment either.  Going to School, working, and trying to see my daughter as much as possible in between all of this.  Separated from the wife back in February and things have been hectic ever since.  So life has gotten in the way of all of this and my love for SMF and coding for SMF has decreased tremendously since than.

But honestly, this is not hard at all to do, for anyone with half a brain for coding that is.  I haven't touched any of the source or template files that deal with showing the Categories and Recent Posts, so this is just a matter of adding in the relevant code to the source and template files.

You guys are free to alter the code for Post Ratings however you see fit.  I would like to see your modified version of it, if that would be OK.  All I ask is that, if you do make a modified version of Post Ratings, that you include me as the original author and include a link to where the original mod can be downloaded here on SMF.  That's all.

Cheers

Thank you so much for your response and I'm sorry to have taken this long to get back to you.  Sorry to hear of your personal challenges.  From someone who's been there too... it does get better and if you're lucky, you might just end up with a better version of yourself as a result.  At least that was my experience.  Good luck. 

I think I'm going to start a new topic to see if there is anyone interested in helping me with this mod.  Unfortunately I'm not a coder.  I can do some light edits, and can follow the the jist of code when I read it, but that's about it.   We have a mod that moves recent posts up top under the news bar.  I like the ideas for adding the ratings to the recent posts.  We want to replace recent posts with highest rated, with the ability to retire a particular thread if it's been up too long, maybe.  We're also considering something that highlights our busier polls. 
Title: Re: Post Ratings
Post by: ToeJam on July 26, 2010, 12:03:11 PM
Quote from: SoLoGHoST on July 02, 2010, 05:35:37 PM
Hi ToeJam,

No, this is not possible because it wasn't coded in that respect.  But honestly, as many times as this has been requested it wouldn't be very difficult to add in this ability to both Recent Posts and/or Board Categories.  My idea for this, if I ever get around to coding the Post Ratings Pro version of this myself, since live627 may have given up on coding the Pro version, is to offer the ability in the PR Admin Panel to show this in several different places, as many as the Admin selects, and to offer the ability to either show the first post rating percentage (first post) or the overall topic ratings average percentage (all posts).  In any case, I have given up on coding as I don't have the time for this anymore in my life to code for FREE.  Don't even have the time to code for $$$ either.  Because, I've got too much going on in my life right now, not to mention, I'm living with my sister and using her computer which isn't a good developing environment either.  Going to School, working, and trying to see my daughter as much as possible in between all of this.  Separated from the wife back in February and things have been hectic ever since.  So life has gotten in the way of all of this and my love for SMF and coding for SMF has decreased tremendously since than.

But honestly, this is not hard at all to do, for anyone with half a brain for coding that is.  I haven't touched any of the source or template files that deal with showing the Categories and Recent Posts, so this is just a matter of adding in the relevant code to the source and template files.

You guys are free to alter the code for Post Ratings however you see fit.  I would like to see your modified version of it, if that would be OK.  All I ask is that, if you do make a modified version of Post Ratings, that you include me as the original author and include a link to where the original mod can be downloaded here on SMF.  That's all.

Cheers

Sorry for the challenges on the personal front.  Been there too.  All I can say is that it gets better. 

I appreciate your response, sorry for my delayed reply to you. 

We use a mod now that put's recent posts up top below the news bar.  We are trying to find something that would show where our heavier activity is on the board, i.e. highest rated topics, most voted polls, new posts, featured content, etc...   Maybe as a ticker, or scrolling type item.  I'm going to see about posting a new topic to see if there's any interest in something like this.  Unfortunately, I'm not a coder.  I will have to hope someone else is interested in it. 

Thanks!
Title: Re: Post Ratings
Post by: SoLoGHoST on July 26, 2010, 05:03:21 PM
@ ToeJam, I do plan to create a module for Dream Portal (if time permits), once released, that will do exactly this, but you'll need to have Dream Portal installed and the Post Ratings Mod.  Basically, it will provide several different options in the module itself to sort by...  Highest Rating, Most Rated, Most Recently Rated, etc. etc., and give the option of how many you want shown.  So this would be kinda along the lines of what you are talking about.  But it would be made into a Dream Portal Module that you can upload and install, once you have Dream Portal installed, ofcourse.

Cheers :)
Title: Re: Post Ratings
Post by: rodol on July 26, 2010, 11:34:17 PM
Quote from: SoLoGHoST on April 21, 2010, 01:54:46 AM
If you want all posts to be able to be rated, place checkmark in First Post rating, and select All Topics (Enabled) from the list.  Make sure there is a checkmark in "Enable Post Ratings" and make sure your permissions are set up correctly for posts and topics as well as the main permissions.  It would be easier for me to do it for you rather than to tell you.

And also, this mod isn't compatible with SMF 1.1.x versions.


As do the opposite of just the first post is rated?.

Thank you.

Sorry for my English, I use the google translator.
Title: Re: Post Ratings
Post by: Welovea1 on July 27, 2010, 07:39:14 PM
Quote from: SoLoGHoST on July 25, 2010, 11:57:13 PM
What image are you talking about?  Maybe you can show me a pic of the image you are referring to?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi271.photobucket.com%2Falbums%2Fjj150%2FBoaterLady%2FRatethispost.jpg&hash=1d281dfa73f52ee68afe77e34f7a3422cce657cc)

We'd be happy to pay you for your time in making these changes as it would add real value to our forum.  Many thanks!
Title: Re: Post Ratings
Post by: SoLoGHoST on July 27, 2010, 08:17:22 PM
Tell, you what, this is simple, you don't need to pay me for this.

What do you want it to say instead??

I can't change the screenshot image, since that was an image not created by me and I don't own the original psd file.  Besides, this isn't that important as it's only the screenshot for Post Ratings, and you seem to be talking about the inner workings for this module, even though you are using the screenshot as an example.
Title: Re: Post Ratings
Post by: Welovea1 on July 27, 2010, 08:51:11 PM
Quote from: SoLoGHoST on July 27, 2010, 08:17:22 PM
Tell, you what, this is simple, you don't need to pay me for this.

What do you want it to say instead??

I can't change the screenshot image, since that was an image not created by me and I don't own the original psd file.  Besides, this isn't that important as it's only the screenshot for Post Ratings, and you seem to be talking about the inner workings for this module, even though you are using the screenshot as an example.

I think I understand what you're saying.  What about replacing these 3 instances of "post" with "book" because that's what the users will see?  Thanks, SoLoGHoST

Shelly for welovea1
Title: Re: Post Ratings
Post by: SoLoGHoST on July 27, 2010, 09:11:32 PM
Ok, here is a package for you to install, if you have Post Ratings already installed, uninstall it first (but DO NOT Remove the database edits when uninstalling), delete it, and than upload and install the package that is attached within this post.

Note, this doesn't include the edits that are required for one to be able to rate their own posts as you requested.  This will be an actual update to Post Ratings when it is complete and will inform you within this topic, with another package specifically for you and your Book Ratings (NOT Post Ratings).  So you may want to wait until I'm completely finished with your request for users to be able to rate their own posts, or whatever, it's up to you.

Cheers :)
Title: Re: Post Ratings
Post by: Welovea1 on July 27, 2010, 09:39:47 PM
Quote from: SoLoGHoST on July 27, 2010, 09:11:32 PM
Ok, here is a package for you to install, if you have Post Ratings already installed, uninstall it first (but DO NOT Remove the database edits when uninstalling), delete it, and than upload and install the package that is attached within this post.

Note, this doesn't include the edits that are required for one to be able to rate their own posts as you requested.  This will be an actual update to Post Ratings when it is complete and will inform you within this topic, with another package specifically for you and your Book Ratings (NOT Post Ratings).  So you may want to wait until I'm completely finished with your request for users to be able to rate their own posts, or whatever, it's up to you.

Cheers :)

You're terrific!!!!  I'll install it tomorrow in our test forum and let you know how it goes.

Cheers,
Shelly
Title: Re: Post Ratings
Post by: Welovea1 on July 29, 2010, 08:16:59 PM
We love it!!! This will be a great enhancement to our forum.  If we go ahead and start using it now, will the data be maintained when we switch over to the change allowing users to rate their own books? We're so very appreciative!

Shelly for welovea1
Title: Re: Post Ratings
Post by: rodol on July 29, 2010, 08:49:19 PM
Quote from: SoLoGHoST on July 27, 2010, 09:11:32 PM
Ok, here is a package for you to install, if you have Post Ratings already installed, uninstall it first (but DO NOT Remove the database edits when uninstalling), delete it, and than upload and install the package that is attached within this post.

Note, this doesn't include the edits that are required for one to be able to rate their own posts as you requested.  This will be an actual update to Post Ratings when it is complete and will inform you within this topic, with another package specifically for you and your Book Ratings (NOT Post Ratings).  So you may want to wait until I'm completely finished with your request for users to be able to rate their own posts, or whatever, it's up to you.

Cheers :)

This is a update?
Title: Re: Post Ratings
Post by: SoLoGHoST on July 29, 2010, 11:58:50 PM
@ rodol ->  No this isn't an update, this just changed words like "post" to "book" instead.  Even Post Ratings, was changed to "Book Ratings".

@ Welovea1 -> When I finish with the update which will allow one to rate their own posts (or in your case, books), I'll need to create a separate package for you, that I'll add into this topic, so as to maintain the word "Book" and "book" instead of "Post" and "post".  So, you won't be downloading the update, instead, I'll have a separate download just for you within this topic, will attach it for you to download and let you know that this is an update.  I'll also explain details on how you should install it, just in case you need this too.

Quote from: Welovea1 on July 29, 2010, 08:16:59 PM
If we go ahead and start using it now, will the data be maintained when we switch over to the change allowing users to rate their own books?

In short, YES, the data will be maintained.  I'll explain a step by step instructional guide for how to update, please follow this STEP BY STEP when the update becomes available for you.  I'll attach it within this topic for ONLY YOU!  All others can update via the Mod Site.

Cheers :)
Title: Re: Post Ratings
Post by: rodol on July 30, 2010, 01:43:38 AM
@ ==> SoLoGHoST Thanks for answering. But I have another question, Sorry is this is something basic but I really have not found an answer in support of Spanish (or rather in the Spanish forum as there is no real support for this mod in Spanish), my question is how I can do so only The first post is qualified and not the answers?. Commented that they can do, but did not explain how, would appreciate someone to help me.
Thank you in advance.
Title: Re: Post Ratings
Post by: SoLoGHoST on July 30, 2010, 08:23:45 AM
Hello again rodol, you can try this:

Place Post Ratings as Disabled (All Posts) in the Post Ratings Admin Panel.  Make sure Post Ratings is Enabled.  Make sure First Post Rating is enabled.  Save this.  Than make sure you have permissions set for usergroups that you want to be able to enable Post Ratings for.  Now, you or someone else that has permission to, can open up any topic within your boards, in your forum, and Enable the first post within a topic to be rated.  Done!  This will have to be done manually to do this for Topics where you want them to be rated that are already topics on your forum.

Also, now when people create topics, they will have to place a checkmark in Enable Post Ratings in Additional Options, when creating that topic, so that the 1st post can be rated.  Ofcourse, they will be able to do this for other posts as well, but it will be Disabled by default.  So this will only have the 1st post allowed to be rated, as long as other people don't select Enable Post Ratings in Additional Options for replies to that topic.

So this is what you want, and is the only way it can be done.

Cheers :)
Title: Re: Post Ratings
Post by: rodol on July 30, 2010, 05:08:51 PM
Thank you so much for your help. I'll see if playing with the permissions I can achieve something more specific to what I want, but it is a good solution.

Thanks again and greetings!.
Title: Re: Post Ratings
Post by: Welovea1 on July 31, 2010, 01:32:54 PM

@ Welovea1 -> When I finish with the update which will allow one to rate their own posts (or in your case, books), I'll need to create a separate package for you, that I'll add into this topic, so as to maintain the word "Book" and "book" instead of "Post" and "post".  So, you won't be downloading the update, instead, I'll have a separate download just for you within this topic, will attach it for you to download and let you know that this is an update.  I'll also explain details on how you should install it, just in case you need this too.

Quote from: Welovea1 on July 29, 2010, 08:16:59 PM
If we go ahead and start using it now, will the data be maintained when we switch over to the change allowing users to rate their own books?

In short, YES, the data will be maintained.  I'll explain a step by step instructional guide for how to update, please follow this STEP BY STEP when the update becomes available for you.  I'll attach it within this topic for ONLY YOU!  All others can update via the Mod Site.

Cheers :)
[/quote]

All that I have to say is that you are awesome!!!!!
Title: Re: Post Ratings
Post by: Welovea1 on August 14, 2010, 11:55:14 AM
Hi  SoLoGHoST,

We have created a brand new test forum and attempted to install the special "book" ratings mod but it doesn't write to any of the files even though they are all writable.  We had no problem installing it to other test forums.  Our members are really excited about the mod but my question at this point is should we try to resolve why the mod won't write to any of the files or wait until you've completed our "special book ratings mod.  Thanks!!!!

welovea2
Title: Re: Post Ratings
Post by: SoLoGHoST on August 16, 2010, 10:28:11 PM
Quote from: Welovea1 on August 14, 2010, 11:55:14 AM
Hi  SoLoGHoST,

We have created a brand new test forum and attempted to install the special "book" ratings mod but it doesn't write to any of the files even though they are all writable.  We had no problem installing it to other test forums.  Our members are really excited about the mod but my question at this point is should we try to resolve why the mod won't write to any of the files or wait until you've completed our "special book ratings mod.  Thanks!!!!

welovea2


Post/Book Ratings does not write to any files.  It only creates, edits, and/or deletes entries in the database.  So not sure what you are saying here.  If this mod isn't working for you, than their could be something wrong with your database.  You must have SMF installed on your forum before this MOD will work, and it must be SMF 2.0+.  This Mod does not support SMF 1.x versions.

Also, I have decided not to do this for free, sorry, but I don't really have much time for Free Services anymore unless they require simple language edits from Post Ratings to Book Ratings.  If you want I can create the feature you speak of for a price.  Hit me up via PM if you are still interested and I'll let you know.  Sorry, but I just can't find time to do this and not get anything in return for it.  My time is a lot more valuable to me these days.

Cheers :)
Title: Re: Post Ratings
Post by: Welovea1 on August 17, 2010, 09:09:58 AM
I will PM you.
Title: Re: Post Ratings
Post by: rocknroller on September 04, 2010, 12:52:06 PM
greetings, tnx for cool mod.

is there way to tell me what need change in this code. I want other stars color for "my vote(rated image)" Not for main Feedback, just for users vote.
and if passable i want put direct link to the image. somewhere in you code. here is link
http://www.logooff.net/smf2/Themes/default/images/post_ratings/starFullp.png

do you know what i mean?

echo '<input type="image" name="rating" id="' . $combo[$i-1] . '' . $i . '" src="'. $rating_nonrated_img . '" value="' . $i . '" border="0" onMouseOver="submitVote(\''.$message['id'].'\', \''. $i .'\'); doMover(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \''. $da_rating .'\', \'' . $combo[$i-1] . '\',\'' . $i . '\'); textOutput(\''. $message['id'] . '\', \''. $i .'\');" onMouseout="doMout(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \'' . $da_rating . '\', \'' . $message['id'] . '\'); textOutput(\''. $message['id'] . '\', \''. $da_rating . '\');" onClick="doSubmit(\'rate\', \''.$message['id'].'\', \''.$scripturl.'\', \''.$context['session_var'].'\', \''.$context['session_id'].'\');" style="border: none; background: transparent;" />';
Title: Re: Post Ratings
Post by: SoLoGHoST on September 04, 2010, 09:51:15 PM
Quote from: rocknroller on September 04, 2010, 12:52:06 PM
greetings, tnx for cool mod.

is there way to tell me what need change in this code. I want other stars color for "my vote(rated image)" Not for main Feedback, just for users vote.
and if passable i want put direct link to the image. somewhere in you code. here is link
http://www.logooff.net/smf2/Themes/default/images/post_ratings/starFullp.png

do you know what i mean?

echo '<input type="image" name="rating" id="' . $combo[$i-1] . '' . $i . '" src="'. $rating_nonrated_img . '" value="' . $i . '" border="0" onMouseOver="submitVote(\''.$message['id'].'\', \''. $i .'\'); doMover(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \''. $da_rating .'\', \'' . $combo[$i-1] . '\',\'' . $i . '\'); textOutput(\''. $message['id'] . '\', \''. $i .'\');" onMouseout="doMout(\''. $rating_rated_img . '\', \''. $rating_nonrated_img . '\', \'' . $da_rating . '\', \'' . $message['id'] . '\'); textOutput(\''. $message['id'] . '\', \''. $da_rating . '\');" onClick="doSubmit(\'rate\', \''.$message['id'].'\', \''.$scripturl.'\', \''.$context['session_var'].'\', \''.$context['session_id'].'\');" style="border: none; background: transparent;" />';


You do not need to change the code at all!

You should upload the image to your server (if not already on your server), within the SMF Root anywhere, than you can link to it within the Post Ratings Admin Panel, within "Posts and Topics" section of the Admin.  You change the path within the Images sub-section of the PR Admin Panel.  For Example, if you have the image located here (via your SMF Root):  "Themes/default/images/post_ratings/starFullp.png", and you need to do is place this path into the image path you want it to show for in the PR Admin Panel.  And than click on the save button at the bottom to update the image(s).  It will than use those images instead of the image(s) that come with Post Ratings.
Title: Re: Post Ratings
Post by: rocknroller on September 05, 2010, 04:16:13 AM
I made myself Post Ratings Layout, all i was put in the header style. and it is look like this.(attachment)
Is it passable to change stars in admin control panel in that way?
Title: Re: Post Ratings
Post by: SoLoGHoST on September 06, 2010, 02:38:41 AM
Quote from: SoLoGHoST on September 04, 2010, 09:51:15 PM
You should upload the image to your server (if not already on your server), within the SMF Root anywhere, than you can link to it within the Post Ratings Admin Panel, within "Posts and Topics" section of the Admin.  You change the path within the Images sub-section of the PR Admin Panel.  For Example, if you have the image located here (via your SMF Root):  "Themes/default/images/post_ratings/starFullp.png", and you need to do is place this path into the image path you want it to show for in the PR Admin Panel.  And than click on the save button at the bottom to update the image(s).  It will than use those images instead of the image(s) that come with Post Ratings.

I do not provide support for those who are modifying my code.  Please try the following I stated already above.


Cheers :)
Title: Re: Post Ratings
Post by: rocknroller on September 06, 2010, 03:08:51 PM
Quote from: SoLoGHoST on September 06, 2010, 02:38:41 AM
Quote from: SoLoGHoST on September 04, 2010, 09:51:15 PM
You should upload the image to your server (if not already on your server), within the SMF Root anywhere, than you can link to it within the Post Ratings Admin Panel, within "Posts and Topics" section of the Admin.  You change the path within the Images sub-section of the PR Admin Panel.  For Example, if you have the image located here (via your SMF Root):  "Themes/default/images/post_ratings/starFullp.png", and you need to do is place this path into the image path you want it to show for in the PR Admin Panel.  And than click on the save button at the bottom to update the image(s).  It will than use those images instead of the image(s) that come with Post Ratings.

I do not provide support for those who are modifying my code.  Please try the following I stated already above.


Cheers :)

This is not modify of you code, come on, yust small adaptation for my custom theme.
Title: Re: Post Ratings
Post by: SoLoGHoST on September 06, 2010, 11:27:36 PM
Quote from: SoLoGHoST on September 04, 2010, 09:51:15 PM
You should upload the image to your server (if not already on your server), within the SMF Root anywhere, than you can link to it within the Post Ratings Admin Panel, within "Posts and Topics" section of the Admin.  You change the path within the Images sub-section of the PR Admin Panel.  For Example, if you have the image located here (via your SMF Root):  "Themes/default/images/post_ratings/starFullp.png", and you need to do is place this path into the image path you want it to show for in the PR Admin Panel.  And than click on the save button at the bottom to update the image(s).  It will than use those images instead of the image(s) that come with Post Ratings.

Did you try this?  Does it not work?  If so, what problem are you getting?
Title: Re: Post Ratings
Post by: iPete on September 23, 2010, 10:26:35 AM
Thank you so much for developing this mod. I desperately need a topic rating mod though for 2.0 RC3, so do you know when the pro version will be available?
Title: Re: Post Ratings
Post by: SoLoGHoST on September 23, 2010, 06:15:08 PM
Well, I was working on the Pro Version and was very glad with it's development, until someone offered me money to create a different MOD for them, so I am currently working on this other MOD (Paid For Mod) instead, and hopefully will get back to the Pro Version of Post Ratings after that.  Ofcourse, $$$$ Talks.

- Solomon
Title: Re: Post Ratings
Post by: Infitima on October 29, 2010, 03:35:14 PM
Um.. when I hit a star nothing happens. But none of the installation part failed.
Title: Re: Post Ratings
Post by: SoLoGHoST on October 30, 2010, 03:49:49 PM
Are you getting any javascript errors?  Turn js error reporting on and check if any errors occur when you click on the star.  What browser are you using?  Version of SMF?  I need a bit more info. than what you stated in order to help you debug this issue.
Title: Re: Post Ratings
Post by: Infitima on October 30, 2010, 05:19:19 PM
JS errors? You mean debugging?
And SMF 2.0 RC3.
Firefox latest.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 02, 2010, 03:25:40 PM
Yeah, javascript errors.  Any errors showing up in the Firefox error log?
Title: Re: Post Ratings
Post by: fox0r on November 11, 2010, 01:24:30 PM
Any hope for 2.0 RC4?  I tired the option to mimic RC3 but it just errors :(
Title: Re: Post Ratings
Post by: fox0r on November 11, 2010, 02:04:18 PM
Okay I went ahead and did a manual install, but my settings wont save.  I enable it, click save, and when the page reloads the box isn't ticked on.  Any ideas?


ETA:  I got it to stay on.. but nothing is showing on posts to set ratings or anything.  In my admin panel I had boxes with 0's, I set them to 1 for options I ticked on.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 12, 2010, 12:16:27 AM
Give me a week or so, will update to SMF RC4.
Title: Re: Post Ratings
Post by: dmacleo on November 12, 2010, 09:03:03 AM
awesome, thank you.
Title: Re: Post Ratings
Post by: fox0r on November 12, 2010, 12:03:33 PM
Quote from: SoLoGHoST on November 12, 2010, 12:16:27 AM
Give me a week or so, will update to SMF RC4.

Can you help me with my issue I've posted about?
Title: Re: Post Ratings
Post by: SoLoGHoST on November 12, 2010, 01:44:09 PM
Quote from: fox0r on November 12, 2010, 12:03:33 PM
Quote from: SoLoGHoST on November 12, 2010, 12:16:27 AM
Give me a week or so, will update to SMF RC4.

Can you help me with my issue I've posted about?

Undo whatever you did, uninstall it manually, than wait about a week for it to support RC4.  Than install it automatically.
Title: Re: Post Ratings
Post by: NanoSector on November 12, 2010, 01:56:53 PM
I hope this gets released for 2.0 RC4 in a week or so...I wantz this.
Title: Re: Post Ratings
Post by: fox0r on November 12, 2010, 02:32:39 PM
Quote from: SoLoGHoST on November 12, 2010, 01:44:09 PM
Undo whatever you did, uninstall it manually, than wait about a week for it to support RC4.  Than install it automatically.

I guess that's what I'll have to do. =/  Still doesn't explain why it isn't working (I can't imagine RC3 to RC4 is THAT big of a difference) when I got all of the code installed correctly, and the database installs went through fine.

Thanks for upgrading it, though!
Title: Re: Post Ratings
Post by: SoLoGHoST on November 14, 2010, 01:47:52 AM
Post Ratings 1.5 now supports RC4!

Enjoy :)
Title: Re: Post Ratings
Post by: Jade Elizabeth on November 14, 2010, 09:25:42 AM
Would it be possible to have this enable topic ratings? I want topic only ratings in some boards and post ratings in others, and nothing in others lol.

Have I confused you yet? :P
Title: Re: Post Ratings
Post by: NanoSector on November 14, 2010, 10:45:23 AM
Quote from: Jade Elizabeth on November 14, 2010, 09:25:42 AM
Would it be possible to have this enable topic ratings? I want topic only ratings in some boards and post ratings in others, and nothing in others lol.

Have I confused you yet? :P
Not me. You want post ratings in some boards and topic ratings in the others :P

I am gonna liekz this.
Title: Re: Post Ratings
Post by: SoLoGHoST on November 14, 2010, 04:51:40 PM
Quote from: Jade Elizabeth on November 14, 2010, 09:25:42 AM
Would it be possible to have this enable topic ratings? I want topic only ratings in some boards and post ratings in others, and nothing in others lol.

Have I confused you yet? :P

I understand you quite fine.  This has been requested already and is something to be added in Post Ratings Pro, if I ever get around to it.  But I have to ask, in the topic ratings, will you be wanting ONLY the first post in the topic to be rated and members would rate that topic within the topic itself, and than the average of those ratings will be calculated and shown for the topic when viewing the topics list of a Category?  Or would you prefer that the topic get rated from viewing the list of topics when clicking on a Category?

I believe that the 1st one would be best, but just wondering on what everyone else thinks.

Cheers :)
Title: Re: Post Ratings
Post by: Jade Elizabeth on December 06, 2010, 02:24:45 AM
Quote from: SoLoGHoST on November 14, 2010, 04:51:40 PM
Quote from: Jade Elizabeth on November 14, 2010, 09:25:42 AM
Would it be possible to have this enable topic ratings? I want topic only ratings in some boards and post ratings in others, and nothing in others lol.

Have I confused you yet? :P

I understand you quite fine.  This has been requested already and is something to be added in Post Ratings Pro, if I ever get around to it.  But I have to ask, in the topic ratings, will you be wanting ONLY the first post in the topic to be rated and members would rate that topic within the topic itself, and than the average of those ratings will be calculated and shown for the topic when viewing the topics list of a Category?  Or would you prefer that the topic get rated from viewing the list of topics when clicking on a Category?

I believe that the 1st one would be best, but just wondering on what everyone else thinks.

Cheers :)


I want the first post to be rated for topics :). Maybe have an overall topic rating allowed in boards that rate posts :).
Title: Re: Post Ratings
Post by: fox0r on December 06, 2010, 04:05:47 PM
I am trying to install 1.5, and I got an error about my database already having the tables.  This was after I manually uninstalled 1.4 from all of my forum files.  I attempted to uninstall 1.4 through the admin panel and it's giving me this error:

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


This is the error it gives when I try to install 1.5:

Duplicate key name 'id_last_rating_id_msg'
File: E:\Webserver\websites\forums.hellestar.com\Packages\temp\postratingsInstallRC23.php
Line: 170
Title: Re: Post Ratings
Post by: SoLoGHoST on December 06, 2010, 04:31:56 PM
Quote from: fox0r on December 06, 2010, 04:05:47 PM
I am trying to install 1.5, and I got an error about my database already having the tables.  This was after I manually uninstalled 1.4 from all of my forum files.  I attempted to uninstall 1.4 through the admin panel and it's giving me this error:

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


This is the error it gives when I try to install 1.5:

Duplicate key name 'id_last_rating_id_msg'
File: E:\Webserver\websites\forums.hellestar.com\Packages\temp\postratingsInstallRC23.php
Line: 170

The reason you are unable to install Post Ratings is because when you uninstalled 1.4, you forgot to place a checkmark in "Remove all data associated with this modification. [Details]"  And since you are installing to a new version, and there is no UPDATE data for this new version, you can do either of 2 things:

1. This option should keep all of your rated posts in their respective topics as well as all of your settings for PR, which topics are enabled/disabled, etc.:

Open up package-info.xml found within the PR package .zip/.tar.gz file and remove the following line from within the <install for="2.0 RC4"> tag or for whatever version of SMF you are installing PR on:  <database>postratingsInstallRC23.php</database>
Save it and repackage all of the files back up and upload and install it.

OR (if you don't mind losing your PR ratings within topics, settings, etc., or want to start fresh)

2.  Unpack PR package, and upload the following file to your SMF root directory:  postratingsUninstallRC23.php, run this file from within your browser:  yourforumURL/postratingsUninstallRC23.php (this will remove your PR database tables only).  Than upload the PR package and install it.

Either one of these options will do the trick.

Cheers :)
Title: Re: Post Ratings
Post by: fox0r on December 06, 2010, 09:33:22 PM
I just went ahead and deleted the line/section in the installer where it was giving me problems.  It installed fine after that.  But now I am getting problems when I try to make new posts.  It is telling me:

An Error Has Occurred!
The database value you're trying to insert does not exist: id_board

From the error log, it points me to Sub-Post, and this is the code around that line:

$smcFunc['db_insert']('',
'{db_prefix}messages',
array(
'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : 'string-65534'),
'poster_name' => 'string-255', 'poster_email' => 'string-255', 'poster_time' => 'int', 'poster_ip' => 'string-255',
'smileys_enabled' => 'int', 'ratings_enabled' => 'int', 'modified_name' => 'string', 'icon' => 'string-16', 'approved' => 'int',
),
array(
$topicOptions['board'], $topicOptions['id'], $posterOptions['id'], $msgOptions['subject'], $msgOptions['body'],
$posterOptions['name'], $posterOptions['email'], time(), $posterOptions['ip'],
$msgOptions['smileys_enabled'] ? 1 : 0, $msgOptions['ratings_enabled'] ? 1 : 0, $msgOptions['icon'], $msgOptions['approved'],
),
array('id_msg')
);
$msgOptions['id'] = $smcFunc['db_insert_id']('{db_prefix}messages', 'id_msg');
Title: Re: Post Ratings
Post by: SoLoGHoST on December 07, 2010, 02:54:10 AM
REPLACE THAT BIT OF CODE with this instead:

$smcFunc['db_insert']('',
'{db_prefix}messages',
array(
'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : 'string-65534'),
'poster_name' => 'string-255', 'poster_email' => 'string-255', 'poster_time' => 'int', 'poster_ip' => 'string-255',
'smileys_enabled' => 'int', 'ratings_enabled' => 'int', 'modified_name' => 'string', 'icon' => 'string-16', 'approved' => 'int',
),
array(
$topicOptions['board'], $topicOptions['id'], $posterOptions['id'], $msgOptions['subject'], $msgOptions['body'],
$posterOptions['name'], $posterOptions['email'], time(), $posterOptions['ip'],
$msgOptions['smileys_enabled'] ? 1 : 0, $msgOptions['ratings_enabled'] ? 1 : 0, '', $msgOptions['icon'], $msgOptions['approved'],
),
array('id_msg')
);
$msgOptions['id'] = $smcFunc['db_insert_id']('{db_prefix}messages', 'id_msg');


Save it and upload via FTP.  You are missing a required array value ('') before $msgOptions['icon'] in the 2nd array.

Cheers :)
Title: Re: Post Ratings
Post by: fox0r on December 07, 2010, 12:55:33 PM
Thanks!
Title: Re: Post Ratings
Post by: SoLoGHoST on December 07, 2010, 04:50:50 PM
You're welcome, glad I could be of some help.

Cheers :)
Title: Re: Post Ratings
Post by: neo67 on January 20, 2011, 09:27:12 AM
Hi SoLoGHoST,

I install this mod in RC 4, in a modified SilentWave Theme.
The Install wents finde, it's activated, the rights are active, cache is deleted. But nothing appears.
Below the post I see the button "Enable Ratings". I can press him 1000 times, the page load, and the button is still "Enable Ratings".
I have looked into the error log, nothing that belongs to "Ratings".
The database entry at this message has the following entries (Image)

I have test this with the admin account

Any idea?

Thanks & Greatz
Juergen
aka neo67


Title: Re: Post Ratings
Post by: SoLoGHoST on January 21, 2011, 12:02:59 AM
Can you show me a pic of the button in which you speak of...  There are several ways to enable ratings, button, checkbox, topic button, and more...  I need specific button image to be sure which one it is.

QuoteBut nothing appears.
Below the post I see the button "Enable Ratings". I can press him 1000 times, the page load, and the button is still "Enable Ratings".
Title: Re: Post Ratings
Post by: neo67 on January 25, 2011, 04:02:32 AM
Hi SoLoGHoST,

yes, here they are.
Screenshot 1 shows the button, which has no function.
And screenshot 2 shows the configuration. I get no idea, whats wrong...

you?
:-)

Greetz & Thanks
neo67



Title: Re: Post Ratings
Post by: SoLoGHoST on January 25, 2011, 11:40:18 PM
Ok, so that button, Enable Ratings at the bottom of each topic should set the topic to be able to be rated.  BUT if all posts within that topic are set to DISABLED for ratings, than this will be disabled.  It would seem that something else might be conflicting with that button when clicked on.  It is supposed to change to Disable Posts when it is clicked on, so not sure where it went wrong, because I have tested on a fresh install of SMF RC4 and it works fine for me.
Title: Re: Post Ratings
Post by: SrMorte on February 05, 2011, 09:09:08 AM
Hello

I have a question.
It is possible to rate only the first message on topics ?

Regards


PS-How i can add the portuguese_pt language to the Post Ratings ?
Title: Re: Post Ratings
Post by: NanoSector on February 05, 2011, 10:17:44 AM
Quote from: SrMorte on February 05, 2011, 09:09:08 AM


PS-How i can add the portuguese_pt language to the Post Ratings ?
1. Download the package (seems logical if you want it's language files)
2. Extract it.
3. go into the folder where it has extracted.
4. look for ***.portuguese_pt.php and copy them to Themes/default/languages on your server.

Or see

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Post Ratings
Post by: SrMorte on February 05, 2011, 06:11:22 PM
Quote from: Simple Series team on February 05, 2011, 10:17:44 AM
Quote from: SrMorte on February 05, 2011, 09:09:08 AM


PS-How i can add the portuguese_pt language to the Post Ratings ?
1. Download the package (seems logical if you want it's language files)
2. Extract it.
3. go into the folder where it has extracted.
4. look for ***.portuguese_pt.php and copy them to Themes/default/languages on your server.

Or see

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)


Sorry about the mistake.
The language i was talking about is  for the "Post Ratings", not the language of the SMF.
How can i translate the files of Post Ratings ?

Regards
Title: Re: Post Ratings
Post by: NanoSector on February 05, 2011, 06:13:54 PM
Quote from: SrMorte on February 05, 2011, 06:11:22 PM
Quote from: Simple Series team on February 05, 2011, 10:17:44 AM
Quote from: SrMorte on February 05, 2011, 09:09:08 AM


PS-How i can add the portuguese_pt language to the Post Ratings ?
1. Download the package (seems logical if you want it's language files)
2. Extract it.
3. go into the folder where it has extracted.
4. look for ***.portuguese_pt.php and copy them to Themes/default/languages on your server.

Or see

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)


Sorry about the mistake.
The language i was talking about is  for the "Post Ratings", not the language of the SMF.
How can i translate the files of Post Ratings ?

Regards
Oh! Like that!

Well,

1. Download & unpack the modification.
2. Search for the language files inside.
3. Open them up.
4. Start translating!!
Title: Re: Post Ratings
Post by: City Builder on February 11, 2011, 08:37:59 PM
I'm trying to reinstall this mod, but I get an error message as such


Duplicate key name 'id_last_rating_id_msg'
File: /home/account1/my.com/Packages/temp/postratingsInstallRC23.php
Line: 170


Yes I did have it installed before but then uninstalled it and now I'd like to reinstall it and try it again.

How do I go about fixing this?

Thank you
Title: Re: Post Ratings
Post by: SoLoGHoST on February 12, 2011, 03:02:43 AM
You should run the PostRatingsUninstall.php file.  You need to upload it to your Root SMF directory.  Than simply run it in your browser.  Than Install Post Ratings through the SMF Package Manager.

OR

If you want to keep your ratings in your posts, simply open up package-info.xml and remove the call to PostRatingsInstall.php from within the <install> tag for the version of SMF you are installing on.  Re-Zip it all up and install the packager from within the SMF Package Manager.

Cheers :)
Title: Re: Post Ratings
Post by: City Builder on February 12, 2011, 03:36:25 AM
I've tried running the PostRatingsUninstall.php file but all it does is give me back the error message:
Database Error

No database selected
File: /home/account1/my.com/postratingsUninstall.php
Line: 62

When I try to run postratingsUninstallRC23.php, the browser just returns a blank page.

I've tried installing again after both above actions and it still retuns the error:

Duplicate key name 'id_last_rating_id_msg'
File: /home/account1/my.com/Packages/temp/postratingsInstallRC23.php
Line: 170

I am running SMF 2 RC4 if that helps any.

I've looked at the package-info.xml but don't understand where I'm supposed to remove the call to PostRatingsInstall.php  The only line that I find it on is this one:
<database>postratingsInstallRC23.php</database>

Am I to comment out that line and try to run the install through the package manager?

Thank you for the help
Title: Re: Post Ratings
Post by: SoLoGHoST on February 14, 2011, 12:07:57 AM
QuoteWhen I try to run postratingsUninstallRC23.php, the browser just returns a blank page.

That is what it is supposed to do.  Once you run postratingsUninstallRC23.php, than just install the package normally after this.  You shouldn't get any errors when installing the package after you remove the database tables/columns that get installed when you install Post Ratings.
Title: Re: Post Ratings
Post by: watchhorse on February 15, 2011, 03:06:28 PM
Is there a deadline for the Post Ratings Pro?
Title: Re: Post Ratings
Post by: Jayne Louise on February 15, 2011, 08:48:52 PM
I installed Post Ratings on RC4 and it all worked great except it was effecting the message and signature areas too much so I removed it. Having done that I see the space between the date (the last rated time/date area) has remained larger than it used to (see attached pic of what I mean exactly). Any ideas how I might fix that?

Also when I uninstalled it I selected remove all the Post Rating data but view and rate ratings is still in the database in the permissions table (theres about 20 of them). Is it safe to delete those?
Title: Re: Post Ratings
Post by: City Builder on February 15, 2011, 08:53:03 PM
Quote from: SoLoGHoST on February 14, 2011, 12:07:57 AM
QuoteWhen I try to run postratingsUninstallRC23.php, the browser just returns a blank page.

That is what it is supposed to do.  Once you run postratingsUninstallRC23.php, than just install the package normally after this.  You shouldn't get any errors when installing the package after you remove the database tables/columns that get installed when you install Post Ratings.

Yes I've done that but it still returns the error listed below.  It's as if the uninstall is not removing everything that it should have:

Duplicate key name 'id_last_rating_id_msg'
File: /home/account1/my.com/Packages/temp/postratingsInstallRC23.php
Line: 170
Title: Re: Post Ratings
Post by: agent47 on March 13, 2011, 07:48:36 AM
Truly an amazing mod sir. And the fact that it was your first published mod makes it even more.
Keep up the awesome stuff mate.
However just a small issue. Once the post is rated all it shows is "Rated 2 times" on the titlebg. The actual rating (in stars) isn't shown?
Title: Re: Post Ratings
Post by: SoLoGHoST on March 14, 2011, 12:02:12 AM
This was not my first published mod.

Anyways, can you try changing the header option within the Admin Panel for Post ratings?  Does that have any affect?
Title: Re: Post Ratings
Post by: agent47 on March 14, 2011, 06:50:28 PM
Well according to Post #3 of this thread, you've stated that this was your first ever published mod that was ACCEPTED by SMF so I just thought. :)

Ok so I tried changing to "Inner style" and it works although when I use "Header style" all it displays is "Rated 1 Time" and not the actually said rate. Just thought I should report this. I use SMF RC3.
Title: Re: Post Ratings
Post by: Spoogs on March 14, 2011, 06:54:25 PM
 This is the first mod I ever published that was approved by the SMF Customization Team the first time around and didn't have to be changed
Title: Re: Post Ratings
Post by: Xarcell on March 14, 2011, 07:09:00 PM
I have a request...

I would love to see an option to just use thumbsup and thumbsdown instead of stars. Kinda like a "Like" and "Dislike". The thumbsup and thumbsdown images are located in the default theme > images > post.

I would also like to see it update via ajax.

;)
Title: Re: Post Ratings
Post by: Spoogs on March 14, 2011, 07:17:32 PM
IIRC you can use your own images (doesn't have to be stars)
Title: Re: Post Ratings
Post by: Enc0der on April 07, 2011, 10:39:34 AM
Quote from: Xarcell on March 14, 2011, 07:09:00 PM
I have a request...

I would love to see an option to just use thumbsup and thumbsdown instead of stars. Kinda like a "Like" and "Dislike". The thumbsup and thumbsdown images are located in the default theme > images > post.

I would also like to see it update via ajax.

;)

^^^ thumbsup  :P
Title: Re: Post Ratings
Post by: Stern on April 13, 2011, 07:58:35 PM
Thank you for nice Mod, SoLoGHoST!
One question:
How to allow vote ONLY for the first post in any topics?
Title: Re: Post Ratings
Post by: SoLoGHoST on April 14, 2011, 10:42:02 AM
This ability was not coded into the module because it is a POST RATINGS, not a TOPIC RATINGS module.  I'm not sure if I get the time ever, but when I do, I will upgrade the module for this ability.  Kinda have a lot on my plate of life currently.
Title: Re: Post Ratings
Post by: yes100 on April 27, 2011, 04:13:33 AM
Hey thanks for your work on this just wanted to ask if you will update this in near future für 2.0 RC5.
Theres no Topic rating Mod compatibel with it at the moment so I'm considering to uninstall it and go for RC4.

Thank you for your help/answer in advance!

Edit: Manged to install it with version emulation.
Is there still planned to add options for :

- auto-add rating function to topics only and not allowing members to disable it?
- sorting by best rated topics within categories and not within topics?

I also posted a mod request were I offer to pay a little for something like that:

http://www.simplemachines.org/community/index.php?topic=431866.0
Title: Re: Post Ratings
Post by: SoLoGHoST on April 28, 2011, 01:36:37 PM
Ok, I am having financial difficulties in my life....  SOOO, I will make a deal.  I will finish coding Post Ratings Pro and release it to the public for $50 USD.  If you are willing to PAY $50 USD for Post Ratings Pro, Private Message me!  To see a list of all of the features that will be presented in Post Ratings Pro, when finished, go here:  http://custom.simplemachines.org/mods/index.php?mod=2234

Scroll down the page and you will see all of the features that will be presented upon completion of Post Ratings Pro.  If enough people PM me on this I will create it and than provide a link to where you can go to purchase this, once it is complete.  It shouldn't take me more than 3 weeks to code and finish Post Ratings Pro.

IF INTERESTED in POST RATINGS PRO and you will wait for approximately 3 weeks for its completion, and are willing to PAY $50 USD to me to make this, AND YOU ARE SERIOUS, PRIVATE MESSAGE ME (http://www.simplemachines.org/community/index.php?action=pm;sa=send;u=198712) ONLY!  DO NOT RESPOND IN THIS TOPIC!

Thank You,
Solomon
Title: Re: Post Ratings
Post by: live627 on June 21, 2011, 07:49:00 PM
The first public version of Post Ratings Pro is now available for purchase at http://livemods.net/index.php?action=mods#83!
Title: Re: Post Ratings
Post by: SoLoGHoST on June 21, 2011, 10:46:35 PM
Cheers live627 :)  So anyone interested in the Pro version of this Mod, please visit this link and purchase it, at only $40 USD.  $10 off of what I was going to sell it at if I were to do it.
Title: Re: Post Ratings
Post by: Ali_ on July 07, 2011, 12:30:26 AM
I would love to support you by paying 40$, however that subscription link doesn't work, nor does the new site it asks you to visit after you attempt to do so.

If it's ready for SMF 2.0 GM.  Let us know, I'm willing to use paypal.
Title: Re: Post Ratings
Post by: live627 on July 07, 2011, 12:43:17 AM
I updated the link in the above post. Can you try it? And thanks for your interest. You'll need to register there to subscribe.
Title: Re: Post Ratings
Post by: yes100 on July 13, 2011, 10:59:14 AM
Hi, as you know I'm very interested in Post Ratings Pro.
Just one thing i have to know:

Is it possible to Order all topics within a board by highest/lowest rating and will the rating of each topic be visible in the board next to the topic like it is with replies/hits etc.?

Thank you in advance,

yes100
Title: Re: Post Ratings
Post by: live627 on July 13, 2011, 06:43:14 PM
Yeah I believe I added that to go with the flow... IIRC click the header to change the order.
Title: Re: Post Ratings
Post by: goodtimes247 on July 13, 2011, 09:48:33 PM
I just upgraded to 2.0 and tried installing this postrating through the package installer. I'm getting error saying it's not compatible with this version of SMF. Am I doing something wrong? Do I need to upgrade to the latest RC? Thanks.
GT
Title: Re: Post Ratings
Post by: Spoogs on July 13, 2011, 09:50:33 PM
Go to Admin>> Package Manager... scroll down, click Advanced, change 2.0 to 2.0 RC4 and try to install again, if the mod installs, just remember to change back to 2.0
Title: Re: Post Ratings
Post by: goodtimes247 on July 14, 2011, 02:01:19 AM
Thanks Spoogs, it installed but it's not showing. I've enabled it in the Settings. Any ideas?
Title: Re: Post Ratings
Post by: goodtimes247 on July 14, 2011, 03:05:49 AM
Nm, I got it to work, it was the permissions.

Does anyone know if we can show the ratings on the topics list level instead of having to open the topic and seeing the rating?
Title: Re: Post Ratings
Post by: live627 on July 14, 2011, 10:50:32 AM
Only in Pro
Title: Re: Post Ratings
Post by: goodtimes247 on July 14, 2011, 01:01:13 PM
Thanks Live 627

Is everyone getting a clean install when install postrating? I've got it to work but I'm getting red bombs like file errors or wasn't able to install certain files. I'll have to send a screen capture.
Title: Re: Post Ratings
Post by: live627 on July 14, 2011, 01:22:07 PM
Yes a screenshot would help.
Title: Re: Post Ratings
Post by: yes100 on August 13, 2011, 07:25:00 PM
I try it over this forum since Post Ratings Pro still isn't working since I subscribed it 1 month ago.
Since 2 weeks I get no reaction on my asks for support anymore.
Till now, I have payed 30$ for a non-working mod.

Would be really great to get this mod running finally.


Thanks yes100
Title: Re: Post Ratings
Post by: SoLoGHoST on September 12, 2011, 09:41:09 PM
Hello, yes100, sorry to hear about your problem(s) with the pro version.  I have PM'd live627 on the problems that I encountered with it when I gave it a quick test run.  Dunno, what his intentions are with this mod right now.

Again, truly sorry, but I'm too busy with Dream Portal to focus on any other mods right now in my life.

Good Luck bro.
Title: Re: Post Ratings
Post by: nixlike on December 05, 2011, 07:58:30 PM
I'd like to give it a try, although I'd rather have a topics only rating system, but nevertheless I think this is going to the trick as well if it even would be compatible with latest SMF version. maybe there is something you can do about it SoLoGHoST :)
Title: Re: Post Ratings
Post by: SoLoGHoST on December 05, 2011, 10:46:44 PM
Not sure what you are asking....  If you are referring to me updating this mod for compatibility with SMF 2.0.1, I'd have to decline.  I won't be updating any of my mods at all until Dream Portal 1.1 is finished and is approved here at the SMF site.  I also have a ton of ideas on mods that I'd like to create for SMF, when all of this is finished that would enhance the hell out of SMF, and make SMF that much more fun to use, but like I said, Dream Portal 1.1 is top priority, than updating my mods, than creating more mods.  Those are the steps in which I will take.
Title: Re: Post Ratings
Post by: nixlike on December 05, 2011, 11:33:55 PM
alright, got your point. taking that Im a complete dream portal noob - when would "when dp 1.1 is done" approx. be?
Title: Re: Post Ratings
Post by: SoLoGHoST on December 11, 2011, 11:20:48 PM
Should be done by the end of this month, but than there is the long await here at SMF for it's approval/unapproval process.... argg!
Title: Re: Post Ratings
Post by: shazoo! on April 19, 2012, 09:51:06 AM
Has anyone tried this on 2.0.2?
Title: Re: Post Ratings
Post by: Eclipse16V on April 20, 2012, 08:32:02 AM
Yes and it works without errors.
Title: Re: Post Ratings
Post by: FrizzleFried on May 06, 2012, 02:36:03 AM
I am getting the following error when I ENABLE this mod... the error shows up when I attempt to read any message in the forum...

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ratings_enabled, rating, IFNULL(total_ratings, 0) as total_ratings, id_last_rati' at line 5
File: /home/ahaforum/public_html/Sources/Display.php
Line: 1127
Back

Any suggestions?

Default (though modified) theme...

Title: Re: Post Ratings
Post by: FrizzleFried on May 06, 2012, 07:28:41 AM
I got this mod up and running...  It's pretty kickass. 
Title: Re: Post Ratings
Post by: FrizzleFried on May 07, 2012, 06:01:36 PM
What would it entail to move the rating from a post header and move that bad boy to a post footer below the signature (or even just above)?

Title: Re: Post Ratings
Post by: SoLoGHoST on May 07, 2012, 11:18:05 PM
Quote from: FrizzleFried on May 07, 2012, 06:01:36 PM
What would it entail to move the rating from a post header and move that bad boy to a post footer below the signature (or even just above)?

Just a few edits in Display.template.php is all.
Title: Re: Post Ratings
Post by: Robert. on May 08, 2012, 03:26:55 AM
Nice mod :)
Title: Re: Post Ratings
Post by: FrizzleFried on May 26, 2012, 04:03:45 PM
I am seriously considering purchasing the PRO version of this mod... but I have some reservations as the only input I see here about the PRO version is from one person who's having issues.

Has anyone gotten the PRO version to work with SMF 2.0.2?   If so,  did you upgrade from the free version?  If so,  did the ratings from the free version carry over to the paid version?

SMF 2.0.2 here with default (but modified) theme...

Thanks!
Title: Re: Post Ratings
Post by: FrizzleFried on June 13, 2012, 01:51:46 PM
When members EDIT their posts... this mod is automatically checkmarking "DISABLE RATINGS" and my members aren't noticing ... so when they save the ratings are turned off.  If the OP modifies their post... 9/10 they don't notice that ratings are checked to be disabled and the ratings are turned off for the whole post.

Is there any way to disable or even completely remove the option to disable ratings for a post by members?

Thanks!
Title: Re: Post Ratings
Post by: SoLoGHoST on July 14, 2012, 10:12:59 PM
Quote from: FrizzleFried on June 13, 2012, 01:51:46 PM
Is there any way to disable or even completely remove the option to disable ratings for a post by members?

Thanks!

Under Post Permissions...  There is a Disable Ratings - Own Post and Any Post option, uncheck Own Post and that should do it.  So, they will not have the ability to disable ratings for their posts, thus their posts will automatically be enabled for ratings as long as you have the "Automatic Ratings Setting for Topics" setting set to:  All Topics (Enabled).

Sorry for taking so long to get back with you on this, been quite busy with other things in my life.
Title: Re: Post Ratings
Post by: FrizzleFried on July 14, 2012, 11:12:42 PM
Quote from: SoLoGHoST on July 14, 2012, 10:12:59 PM
Quote from: FrizzleFried on June 13, 2012, 01:51:46 PM
Is there any way to disable or even completely remove the option to disable ratings for a post by members?

Thanks!

Under Post Permissions...  There is a Disable Ratings - Own Post and Any Post option, uncheck Own Post and that should do it.  So, they will not have the ability to disable ratings for their posts, thus their posts will automatically be enabled for ratings as long as you have the "Automatic Ratings Setting for Topics" setting set to:  All Topics (Enabled).

Sorry for taking so long to get back with you on this, been quite busy with other things in my life.

No problem... I think it's a bug as I've already set the permissions to disable deleting ratings... and posts were still getting disabled...  I've not pin pointed a cause... I thought it might be when someone goes in to a rated thread and modifies,  on save I thought it disabled them but I can't say for 100% sure.   I went in and hacked out all the code I could find that had to do with disabling the ratings ... and it still does it occasionally... maybe 10% of the time.

:)

I'll live...
Title: Re: Post Ratings
Post by: SoLoGHoST on July 15, 2012, 12:15:58 AM
Ok, will look into this in more depth when I update this mod for SMF 2.0.2.

Thanks :)
Title: Re: Post Ratings
Post by: FrizzleFried on August 16, 2012, 02:22:01 PM
Perhaps someone can help me with a "whitespace" issue.

When viewing posts that are not ratable... the amount of white space on small posts is perfectly fine with the signature moving up above and next to the information at the left side... (see image #2)

However... when viewing posts that ARE ratable... the amount of white space on small posts is extended to the length of the information at the left side... (see image #1)

It's as if the "ratings" drop down is attached to the left side somehow and drops down depending on how long that "column" is... while posts without the rating icon are free of that attachment and can move up next to the info...

Anyone have any idea how I can stop the posts that are ratable from being "attached" to the left column so it mimics small posts that are not ratable as far as whitespace is concerned?

Yes,  this is this mod... I just removed the text and added an image instead...(I also tried to remove the + / - graphic but failed miserably and gave up because it's not that big of a deal ... but if someone could help me remove that as well I'd be greatly appreciative as well!)

Thanks!

Title: Re: Post Ratings
Post by: live627 on August 16, 2012, 11:53:04 PM
sounds to me as if the rating div is using a clearfix;... just a wild guess though, completely forgot what the code if this mod is like.
Title: Re: Post Ratings
Post by: live627 on August 17, 2012, 12:03:28 AM
I think I found it...

echo '<div style="clear: both;">

Change that to

echo '<div class="clear_right">

and see what happen. It might not even need the clear.
Title: Re: Post Ratings
Post by: FrizzleFried on August 17, 2012, 01:34:09 AM
That did it Live...

Thank you sir!

Title: Re: Post Ratings
Post by: live627 on August 17, 2012, 01:38:50 AM
You're welcome! Now we just need Solomon to incorporate the change.
Title: Re: Post Ratings
Post by: SoLoGHoST on August 17, 2012, 10:13:51 AM
Ok, will be updating my mods for SMF 2.0.2 next week.  Starting on Sunday... so will take a look at this change also.

Thanks :)
Title: Re: Post Ratings
Post by: Tiensg on August 17, 2012, 12:18:47 PM
does this have any conflict with the advance reputation system mod?
Title: Re: Post Ratings
Post by: FrizzleFried on August 17, 2012, 02:26:51 PM
Quote from: Tiensg on August 17, 2012, 12:18:47 PM
does this have any conflict with the advance reputation system mod?

Nope... i'm running both fine.  The current version of the mod WILL give a couple of errors on install.  FWIW... those edits don't seem to be necessary for 2.0.2.

Title: Re: Post Ratings
Post by: live627 on August 17, 2012, 09:58:22 PM
Did you emulate 2.0 RC4? IIRC, that gave the least amount of errors.
Title: Re: Post Ratings
Post by: FrizzleFried on August 20, 2012, 02:22:48 PM
Man... I sure would love to figure out why ratings are being disabled in threads somehow... I have set it so no one has permission to disable or enable the ratings... and it kept happening... so I removed any code I could find that relates to disabling the ratings by users... and it still is happening.

I can't find any "pattern" that it follows...

I want ALL posts to have ratings enabled ... period... and they all do start with ratings enabled.  At some point during their lifetime they just become... disabled... and it's bumming me out.

I'd venture to guess this happens to a good 20%+ of the posts... I thought it was less for a while but looking around it's happening quite often.

Hell,  one long thread we have going I've had to re-enable the damn ratings at least 3 times now... maybe 4... and it's MY thread...

Any help would be greatly appreciated.  Again,  I just want the ratings to be enabled at all times... no option to disable... even if that means I,  as admin,  lose the option to enable/disable.   

Thanks!!
Title: Re: Post Ratings
Post by: SoLoGHoST on August 20, 2012, 05:09:05 PM
I don't understand what you have edited in the Post Ratings Mod.  But this options is available automatically bro....  In Post Ratings Settings, there is an option to ENABLE ALL TOPICS, just click it and all topics in ALL Boards will be enabled!  In Permissions, you set it according to who you want to be able to disable/enable ratings in the Posts section and Topics section.  There is an OWN and ANY, so just uncheck both of these for people you don't want to have permission to disable ratings.  I don't know what else to say.  This is already available!  If you edited the mod yourself, than most likely you have messed this up.

FYI:  I will be updating this mod sometime this week so that it installs perfectly with SMF 2.0.2.

Note:  EVERY EDIT this mod does is IMPORTANT.  If you installed this mod, and operations have failed, and you just installed it anyways, without those operations, than this most likely is your problems also!  Although the operation has failed, the EDIT to that file is still CRITICAL!  It just can't find the actual code that it is searching for, because SMF 2.0.2, has changed it structure a bit.  BUT THAT OPERATION is still CRITICAL!  So, until I update the mod, you can figure out what operations have failed, and than do a search for part of what it was searching for to figure out where that replace code needs to go and edit the replace/before/after operation accordingly in that file manually.  Or you can just wait for my Mod Update on this.
Title: Re: Post Ratings
Post by: FrizzleFried on August 20, 2012, 05:36:24 PM
Quote from: SoLoGHoST on August 20, 2012, 05:09:05 PM
I don't understand what you have edited in the Post Ratings Mod.  But this options is available automatically bro....  In Post Ratings Settings, there is an option to ENABLE ALL TOPICS, just click it and all topics in ALL Boards will be enabled!  In Permissions, you set it according to who you want to be able to disable/enable ratings in the Posts section and Topics section.  There is an OWN and ANY, so just uncheck both of these for people you don't want to have permission to disable ratings.  I don't know what else to say.  This is already available!  If you edited the mod yourself, than most likely you have messed this up.

FYI:  I will be updating this mod sometime this week so that it installs perfectly with SMF 2.0.2.

Note:  EVERY EDIT this mod does is IMPORTANT.  If you installed this mod, and operations have failed, and you just installed it anyways, without those operations, than this most likely is your problems also!  Although the operation has failed, the EDIT to that file is still CRITICAL!  It just can't find the actual code that it is searching for, because SMF 2.0.2, has changed it structure a bit.  BUT THAT OPERATION is still CRITICAL!  So, until I update the mod, you can figure out what operations have failed, and than do a search for part of what it was searching for to figure out where that replace code needs to go and edit the replace/before/after operation accordingly in that file manually.  Or you can just wait for my Mod Update on this.

Yes... the ENABLE RATINGS IN ALL POSTS is clicked... and like I said,  every post STARTS with the ratings enabled... but sometimes,  when responses are added,  the ratings get disabled for no reason.  That is the problem.  Like I said... I have a thread (with a few hundred replies) that I've had to re-enabled the ratings on over and over because they are disabled for no apparent reason.

Let me post the portion of the install that fails...

Here is the first edit that fails:

Searches for:
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc3" />

Which adds this after:

<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc3" />

The 2nd edit is actually for the CORE theme but shows up in the DEFAULT area on the package manager and is the same edit as above.

Now,  I am not sure what CSS would have to do with the ratings being disabled but I admit I am pretty new at this stuff.

:)

Thanks!

EDIT: BTW - This behavior happened before I started removing things (hence the actual REASON why I started editing things... >grin<).

I look forward to your update for sure.  Any chance you'll add  a few things to the mod like ratings on the index, etc?

:)

Title: Re: Post Ratings
Post by: SoLoGHoST on August 20, 2012, 11:12:38 PM
No, I will not be adding any additional features to Post Ratings at this time.  I will ONLY update it to work on a fresh install of SMF 2.0.2.  I will, however, create a module that will show complete STATISTICS of all ratings in all posts on your forum.  You will be able to download this module and use it in DREAM PORTAL 1.1.
Title: Re: Post Ratings
Post by: FrizzleFried on August 21, 2012, 09:56:22 AM
That is unfortunate.  I assume the "mod" for Dream Portal won't easily convert to a PHP block for Simple Portal by chance?

I already paid some $$ to have the SMFPacks alert mod work with the ratings... it would really be awesome to be able to get it to work ... "all the time".

I guess my best bet is to wait for the new version and then use Beyond Compare to see where the changes are and manually apply them in hopes of eliminating this DISABLING issue.

Title: Re: Post Ratings
Post by: SoLoGHoST on August 25, 2012, 05:22:57 AM
Post Ratings now updated to version 1.6 and now installs perfectly fine on SMF 2.0.2.

Quote from: FrizzleFried on August 21, 2012, 09:56:22 AM
That is unfortunate.  I assume the "mod" for Dream Portal won't easily convert to a PHP block for Simple Portal by chance?

Might be a bit difficult, since Dream Portal uses parameters, depends on how well you know PHP.

Also, I have tested to make sure that when the Automatic Ratings Setting for Topics is set to either All Topics (Enabled) or New Topics (Enabled), that all topics created after that are Automatically Enabled for rating, and the poster is unable to change this if they do not have permission to do so.  Ofcourse, All Topics (Enabled), sets all current topics on your forum to be enabled for rating, as well as any new topics.
Title: Re: Post Ratings
Post by: redding99 on September 02, 2012, 03:11:02 PM
I'm having problems with a fresh install on 2.0.2

It all seems ok but when you try to rate a post by selecting the number of stars you get the error:

'Unable to rate this post due to no rating being selected'

I have tried on different browsers with the same result
Title: Re: Post Ratings
Post by: bertii on January 04, 2013, 03:29:25 PM
This mod not works in the version 2.0.3 ?  :-\
Title: Re: Post Ratings
Post by: SoLoGHoST on January 05, 2013, 02:20:27 AM
@ bertii - Thanks, will look into this!
Title: Re: Post Ratings
Post by: SoLoGHoST on January 05, 2013, 02:45:05 AM
Ok, have tested this mod with SMF version 2.0.3.  Works PERFECTLY!
Title: Re: Post Ratings
Post by: Powerslaved on January 05, 2013, 06:30:51 AM
Well as far as i can see ive followed the instructions,set permissions for the usergroups,set the mod settings,cleared file cache.
Theres no option in the posts to leave ratings.Im running 2.03.
Any ideas why i cant see the rating options pls
Title: Re: Post Ratings
Post by: SoLoGHoST on January 05, 2013, 08:29:01 PM
You have to enable ratings for ALL TOPICS within the Post Ratings Admin Section or you can enable the topic for rating within the topic itself (by modifying the first post in that topic).  You can only rate posts that aren't yours!  That is to say, you can't rate your own posts!

FYI:  Providing a site url would be most helpful...
Title: Re: Post Ratings
Post by: jashars on February 26, 2013, 04:26:48 PM
Hello, I am using this mod quite a long time, but none of the rated pages where crawled as rich snippets in google, is there anything I need to configure?
Also, could you add rating in topic index as this mode does? - http://www.simplemachines.org/community/index.php?topic=464537.0
Title: Re: Post Ratings
Post by: Draffi on May 26, 2013, 07:02:59 PM
indeed...THIS would be a nice addition...

QuoteAlso, could you add rating in topic index as this mode does? - http://www.simplemachines.org/community/index.php?topic=464537.0
Title: Re: Post Ratings
Post by: Arantor on May 26, 2013, 07:08:24 PM
How would that work, displaying a rating per *topic* when this is a per *post* score?

Unless you habitually rank every post in every topic, or you take the average of every user's score for every post in each topic on display (which is insanely expensive to actually compute when you have more than a few posts), it just doesn't work.
Title: Re: Post Ratings
Post by: SoLoGHoST on May 28, 2013, 12:06:14 AM
Thanks Arantor.  Seems people really want ratings posted up in the message index where all topics get displayed, and quite frankly, I haven't been able to actually understand myself, on how to accomplish such a task, when this is really not what this mod is aimed for.  Displaying a rating on a per topic basis would be inaccurate if only showing the rating in the first post of each topic (ofcourse, this would rely on First Post Rating being enabled), but than if we were to average all ratings in each post of each topic, it would than be a huge performance drain IMO.  I think people misunderstand the meaning of this mod and want, both a topic and post rating system.  This is just a Post Rating System, not meant to be a topic rating, however, it could be used for rating a topic, depending on how you use it, but it was not orginally built for Topic Ratings in mind.  I still need to properly update this mod for SMF 2.0.4, however, it's not going to get any new features in it than what it already has, which, IMO, is more than enough!
Title: Re: Post Ratings
Post by: FragaCampos on June 07, 2013, 09:41:56 AM
Hi there.
I want to install this mod, but I would like to know if the Statistics page is already available and where.
The mod's page talks about a PRO version. I'm willing to pay for it if and when it's available.

Thank you.
Title: Re: Post Ratings
Post by: FrizzleFried on June 07, 2013, 10:54:28 AM
There is a "pro" version someone else sells.  It's not ready for prime time and should be avoided IMHO.   May I suggest you check out SMFPACK's Facepunch ratings mod.  I don't run it,  I have a "non-released" Facepunch mod running that I acquired from the author but it's "non-released".... SMFPacks version looks quite spiffy but I have so much invested in to this version that I'm not changing myself but you might want to check it out...

http://www.smfpacks.com/page/sa=facepunch
Title: Re: Post Ratings
Post by: MechSpecs on June 13, 2013, 09:36:28 AM
I installed the PRO version of this mod but am having a few issues with it...

Issue #1

Quote
Core Theme
      Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
      1.    Add Before    ./Themes/core/MessageIndex.template.php    Test failed
      2.    Add Before    ./Themes/core/MessageIndex.template.php    Test failed
Vivanto
      Execute Modification    ./Themes/vivanto_20/MessageIndex.template.php    Test failed
      1.    Add Before    ./Themes/vivanto_20/MessageIndex.template.php    Test failed
      2.    Add Before    ./Themes/vivanto_20/MessageIndex.template.php    Test failed

I am assuming this is preventing it from showing the STAR rating for each thread on the message index page? Is there a way to manually correct this?

Issue #2

Users who utilize IE9 can view ratings and can hover over the stars (at the bottom of each post) with the little hand (like it's a link or a selectable option) but they can't actually select the stars. So far Firefox seems to work fine?!?!? The Developer (Live) has been pretty helpful thus far but is closing his site on June 30 so not quite sure were to go for support after shelling out $40 for the Pro version :o

Anyone have any ideas on how to make this a little more compatible for IE folks?

Issue #3

None of the stats show up in the MORE STATS link nor do they show up in a users profile?
Title: Re: Post Ratings
Post by: FrizzleFried on June 13, 2013, 12:09:08 PM
Quote from: MechSpecs on June 13, 2013, 09:36:28 AM
I installed the PRO version of this mod but am having a few issues with it...

Issue #1

Quote
Core Theme
      Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
      1.    Add Before    ./Themes/core/MessageIndex.template.php    Test failed
      2.    Add Before    ./Themes/core/MessageIndex.template.php    Test failed
Vivanto
      Execute Modification    ./Themes/vivanto_20/MessageIndex.template.php    Test failed
      1.    Add Before    ./Themes/vivanto_20/MessageIndex.template.php    Test failed
      2.    Add Before    ./Themes/vivanto_20/MessageIndex.template.php    Test failed

I am assuming this is preventing it from showing the STAR rating for each thread on the message index page? Is there a way to manually correct this?

Issue #2

Users who utilize IE9 can view ratings and can hover over the stars (at the bottom of each post) with the little hand (like it's a link or a selectable option) but they can't actually select the stars. So far Firefox seems to work fine?!?!? The Developer (Live) has been pretty helpful thus far but is closing his site on June 30 so not quite sure were to go for support after shelling out $40 for the Pro version :o

Anyone have any ideas on how to make this a little more compatible for IE folks?

Issue #3

None of the stats show up in the MORE STATS link nor do they show up in a users profile?

See my response above.  Unfortunately it doesn't help... but I did try at least.

:(
Title: Re: Post Ratings
Post by: MechSpecs on June 13, 2013, 12:24:30 PM
Quote from: FrizzleFried on June 13, 2013, 12:09:08 PM

See my response above.  Unfortunately it doesn't help... but I did try at least.

:(

Thanks :)

Unfortunately Facepunch doesn't display the ratings the way I would like. For instance this Post Ratings Pro mod shows the rating for each thread at the top left (I have it set to only allow ratings on the first post so that is all that is displayed at the top left). Also the actual ratings area (the stars that you can click on) is not quite as "ZOMG HERE I AM CLICK ME" as the facepunch one. Finally, without seeing a demo of the facepunch I really can't decide if its something worthwhile or not. It is a "buy before you try" type scenario and I'm not a fan of that.
Title: Re: Post Ratings
Post by: FrizzleFried on June 13, 2013, 12:39:02 PM
For TOPIC ONLY rating... Bugo's rating mod (free) works great... have you tried that?

Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 04:36:50 PM
I tried this mod on my 2.0.4 forum but keep getting this error during install (1st image).

When I check the parse this is what it says (2nd image)

But even after adding the code I still get the same error. (3rd image)


Also I notice theres an extra definition in the code, thats not on their list and theres no way for me to even rate anything from the forums now
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 04:43:18 PM
GluenStuff

How did you add the code?

Did you use notepad ##?

How many times did you try and install?
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 04:44:45 PM
No notepad it was a simple edit, just added that last small bit. And yes I tried installing quite a few times
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 04:46:58 PM
The thing is..if you look closely you'll see t.id_new in the code....there's doesnt show that, but its in mines.
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 04:47:13 PM
Quote from: GluenStuff on June 21, 2013, 04:44:45 PM
No notepad it was a simple edit, just added that last small bit. And yes I tried installing quite a few times

You should never use notepad.

The majority of folks on smf use notepad##

;)
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 04:51:43 PM
Yeah, it was just a small manual edit so I didnt use notepad. I just inserted (copy and pasted) it after where it instructed too, but thats when I noticed that extra command
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 04:54:34 PM
Also as you tried to install the mod more than once there may be code which has since been doubled.

What is the link to your forum?

Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 05:00:04 PM
http://hobbymafia.com/Home/index.php


Here's what I did, I uninstalled and checked the option to remove all associations from the mod, then I went to my database to double check and didnt see it, but its obvious I still must have done somethin incorrect. Man this newb post verification process here is hard on the eyes
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 05:02:17 PM
QuoteMan this newb post verification process here is hard on the eyes

Three more posts and ya done with it.

:)
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 05:04:22 PM
Your forum won't load for me.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 05:06:56 PM
http://hobbymafia.com/Home/index.php?action=forum
Title: Re: Post Ratings
Post by: Colin on June 21, 2013, 05:28:49 PM
Wait a minute,

Did you come up with that code in which you used to modify the modification? The modification defines that edit as "Add After" not "Replace". Your edit would be rendering duplicate code.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 05:32:27 PM
Yes you're correct, and I only added that small bit of code afterwards as instructed
Title: Re: Post Ratings
Post by: Colin on June 21, 2013, 05:49:06 PM
Will you please attach Display.php
Title: Re: Post Ratings
Post by: colby2152 on June 21, 2013, 05:51:29 PM
Neat mod.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 05:57:17 PM
Here you are as requested

Title: Re: Post Ratings
Post by: Colin on June 21, 2013, 06:05:14 PM
Note -  If you already installed this mod and then didn't properly uninstall it you will have issues.

Please upload and replace Display.php with the version I have attached. Once done, install the modification. DO NOT continue if errors are reported. Revert your edit to the modification. Leave it as default. To be safe you may want to redownload the modification from the SMF customization site and upload it stock.
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:07:39 PM
Quote from: Colin on June 21, 2013, 06:05:14 PM
Note -  If you already installed this mod and then didn't properly uninstall it you will have issues.

Please upload and replace Display.php with the version I have attached. Once done, install the modification. DO NOT continue if errors are reported. Revert your edit to the modification. Leave it as default. To be safe you may want to redownload the modification from the SMF customization site and upload it stock.

Make a BACKUP too.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:09:41 PM
OK I'll try now...thank you


WHOO HOO No more post verifications ! LOL
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:13:22 PM
One more quick thing...as I uninstall is it correct to use the UNINSTALL ACTIONS feature that will remove all data associated with this modification ?

I have attached a screenshot
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:16:08 PM
Normally that is when the mod is to be completely uninstalled inclusive of the ratings already on the forum.

Mod related data will then be lost.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:19:04 PM
Thats ok then because there was never any data associated with the mod because it wasnt visible on any posts.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:32:24 PM
No dice
Fatal error: Cannot redeclare loadRatingsInfo() (previously declared in /home/loadedpa/public_html/HobbyMafia.com/Home/Sources/Display.php:1994) in /home/loadedpa/public_html/HobbyMafia.com/Home/Sources/Display.php on line 2193
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:38:34 PM
Quote from: GluenStuff on June 21, 2013, 06:32:24 PM
No dice
Fatal error: Cannot redeclare loadRatingsInfo() (previously declared in /home/loadedpa/public_html/HobbyMafia.com/Home/Sources/Display.php:1994) in /home/loadedpa/public_html/HobbyMafia.com/Home/Sources/Display.php on line 2193

Remember what was said about code being doubled?

This is exactly what has happened.

Time to use the mods parser.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:42:19 PM
How could this have happened ?

And Im new to this, exactly what is parcer...I probably will just uninstall and delete and reupload my original display php...one mod isnt worth all the trouble
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:45:12 PM
wow i dont even have the mod activated from the adminal panel and i still get the error
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:46:39 PM
http://custom.simplemachines.org/mods/index.php?action=parse

This is the link ya need.


In the attachment for another mod I highlighted where the parse can be found.

The link I highlighted takes you to the page I gave you the link too.

:)
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:49:42 PM
OK thank you, I will download and hold on to that image for future reference. In light of all that has happened regarding the mod....I think I'll just delete it and look for another mod that can allow people to leave ratings on posts. I've fiddled around with it too long as is I think.
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:52:32 PM
There is a mod waiting to be given the ok which shows 'Likes' in a similar way to the facebook likes.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:54:21 PM
Is it available for download now ?
What I was looking for was something like that or maybe a kudos system
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 06:56:02 PM
Quote from: GluenStuff on June 21, 2013, 06:54:21 PM
Is it available for download now ?
What I was looking for was something like that or maybe a kudos system

No not yet.
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 06:56:49 PM
Any indication how long it will remain in a holding pattern ?
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 07:02:48 PM
Quote from: GluenStuff on June 21, 2013, 06:56:49 PM
Any indication how long it will remain in a holding pattern ?

That is down to the Customizers and the mods author.

Anyways that's getting a tad off topic for the mod so.......

;)
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 07:09:21 PM
Ok thank you for your time and troubles, youre very kind. In the time that it took to delete uninstall and delete I wound up installing facebook comments in the first post so I guess its a fair trade off
Title: Re: Post Ratings
Post by: TheListener on June 21, 2013, 07:12:01 PM
Quote from: GluenStuff on June 21, 2013, 07:09:21 PM
Ok thank you for your time and troubles, youre very kind. In the time that it took to delete uninstall and delete I wound up installing facebook comments in the first post so I guess its a fair trade off

Thanks for ya comments.

Am around somewhere with me zimmerframe if ya need me.

But mind what my sig says though won't ya?

;)
Title: Re: Post Ratings
Post by: GluenStuff on June 21, 2013, 07:18:00 PM
Ha haaaaaa...dont worry I wont go pokin and proddin your PM's...LOL
Title: Re: Post Ratings
Post by: SoLoGHoST on June 22, 2013, 12:20:45 PM
I am working on the Post Ratings Pro version of this mod.  It will cost $100 US dollars and won't have any bugs in it for sure, if anyone is interested, you can PM me.  I will have it done by tomorrow night!  I already have several buyers, but just wanted to give you all a heads up in case anyone else is interested.

Again, if interested, PM me, please do not reply in this topic.  Thank you!
Title: Re: Post Ratings
Post by: TheListener on June 22, 2013, 12:24:04 PM
£64 is way OTT for a mod IMHO.

???
Title: Re: Post Ratings
Post by: FrizzleFried on June 22, 2013, 12:28:35 PM
Quote from: SoLoGHoST on June 22, 2013, 12:20:45 PM
...It will cost $100 US dollars...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi83.photobucket.com%2Falbums%2Fj297%2Froadblock50%2FNot_sure_if_serious.jpg&hash=29c303e93cf9a1642d627f0eb65042f2bc6dc8ea) (http://media.photobucket.com/user/roadblock50/media/Not_sure_if_serious.jpg.html)
Title: Re: Post Ratings
Post by: SoLoGHoST on June 22, 2013, 12:31:43 PM
Quite Frankly, didn't want to even do it.  But yeah, that is the price, take it or leave it.  I'm not coding it for anything less.  There is always the Post Ratings, bug-free, basic version for FREE that I offer.  And there are other alternatives as already mentioned in this topic.
Title: Re: Post Ratings
Post by: SoLoGHoST on July 04, 2013, 12:52:11 AM
For those who are interested in this mod, you can purchase Post Ratings Pro here:  http://dream-portal.net/index.php?page=postratingspro

After you purchase this mod, an email with a link to download it will be in your inbox.  And you will get 1 year FREE UPDATES!  Updates to this mod are expected on a monthly basis for feature enhancements as well as new features.
Title: Re: Post Ratings
Post by: FrizzleFried on July 04, 2013, 10:58:41 AM
Good luck with that...

PS: $30 x (for example) 15 is a lot more than $100 x 0 or even $100 x 1 or 2....

...just keepin' it real.  Looks nice.  If I didn't already have a $100+ Facepunch mod installed already myself I might have been a customer.

;)
Title: Re: Post Ratings
Post by: SoLoGHoST on July 04, 2013, 01:33:15 PM
Well, to tell you the truth...  I didn't set the price, the Customers did!  It wouldn't be fair to sell to some people at $100 dollars and to others at a lower rate!  Whether or not I get anymore purchases of this mod is unimportant to me.  It's really not about the money at this point, it's about FAIRNESS!
Title: Re: Post Ratings
Post by: kkmixs on November 27, 2013, 01:04:11 AM
It is possible to allow the member to vote once in every 24 hours.I mean to allow the member to vote again features.I have find the another mod which include the vote again features but it is topic rating mod.I want the Post rating mod with same vote again features.

Topic rating mod with vote again features:
http://custom.simplemachines.org/mods/index.php?mod=1313

Can i have the same features with this post rating mod.....
Title: Re: Post Ratings
Post by: SoLoGHoST on November 27, 2013, 03:38:54 PM
Hello, kkmixs, this Mod's features are on FREEZE in favor of the Post Ratings Pro Mod.  Sounds interesting and will consider it in Post Ratings Pro.
Title: Re: Post Ratings
Post by: SoLoGHoST on December 22, 2013, 09:39:07 AM
For anyone interested in this mod...  There is a Holiday Special on Post Ratings Pro, now only $50 dollars and updated just in time for the holidays with tons of incredible, "must have", features.  Get it here:  https://dream-portal.net/index.php?page=postratingspro

Note:  This is a holiday special, which means that there is an expiration date on this steal-of-a-deal.
Title: Re: Post Ratings
Post by: SoLoGHoST on January 04, 2014, 12:18:55 PM
Didn't think it would matter anyways.  And I suppose I was right.  1x100 > 1x50
Title: Re: Post Ratings
Post by: vkot on January 07, 2014, 05:09:21 AM
Quote from: SoLoGHoST on November 16, 2009, 01:32:42 PM
Hello vkot,
I agree, and in Post Ratings, it will tell you how many times the post has been rated... Rated 2 times.  And you are not able to rate your own posts or topics.  Have you tried this mod yet?

When I update this mod so that posts in a topic can be ordered by highest/lowest rating, I will be looking at how many times the post has been rated as well.

OK, 4+ years have passed since my question and your answer, but I still haven't installed any post ratings mod.
I saw in your demo site that the number of times that a thread was rated is displayed only when you enter the thread, not on the board index.

A thread with 5 stars from 1 rating (and maybe not so trustworthy) will show higher than a tread with 4.9 stars with 10 ratings of 5,5,5,5,5,5,5,5,5,4, but the second is more trustworthy. I don't know if there is a way to automatically manage this, this is why I was thinking that the number of times should be shown everywhere where there is the rating and the viewer can come to his own conclusions.
For example: 5 (1) and 4.9 (10)... or ***** (1) and ***** (10)

I guess I could modify the mod myself, but I'm too lazy lately. Are we entitled to any small customization like this if we buy the mod?
Title: Re: Post Ratings
Post by: SoLoGHoST on January 07, 2014, 09:13:35 AM
If you purchase Post Ratings Pro, yes, you can make requests.  You will be given access to a board where others have made requests that have been added already and where you can do the same.  You will need to register on the Dream Portal site first ofcourse to be given access to this Board.  Also, there are tons of new features and fixes for Post Ratings in the Pro version of the mod.  You don't have to lose any of your ratings either, you just uninstall Post Ratings, without checking the "Remove all associated data..." field (leaving this field empty), and than just install Post Ratings Pro.  Besides showing ratings on the board index, there are also Statistic settings for this mod that you can fully customize on how you want the ratings to be ordered.  Furthermore, Post Ratings Pro fixes all bugs in the Post Ratings Mod that is offered for free, which you may or may not have discovered (but I have).  Also, at half the price you are getting a steal, and if you need support for any themes (for example, if there are problems in any of your custom themes), I will work with you to get it up and running perfectly in that theme.

There has been 3 updates to Post Ratings Pro since I first posted it up approximately 5 months ago.  But you will receive FREE Updates for 1 year after purchase...  even thinking of extending this to 2 years.

As far as ratings are concerned, that is why there is the Ratings Threshold Settings.  You set this yourself.  Ofcourse, if you are wanting other features, not found in Post Ratings Pro, than just let me know and I'd be happy to add them in.
Title: Re: Post Ratings
Post by: blogmexicano on January 07, 2014, 10:53:33 PM
thx for the mod
Title: Re: Post Ratings
Post by: SoLoGHoST on November 01, 2015, 04:58:45 PM
For anyone interested, I will upload the latest version of Post Rating Pro here, which is version 1.6.  It will not be available for purchase anymore, since the Dream Portal site is no longer around.  I have the latest version on my computer, and just need to test it with the latest version of SMF 2.0.11, and possibly with the 2.1 version as well.  If, it's not too much trouble to code, I'll update it for 2.1 also and upload on this site for FREE.

After which, I plan to not code any further customizations for SMF.  This will be the last customization I will do.  Thanks to all of those interested in my work and those that have followed my work on Customizing for SMF from the beginning.
Title: Re: Post Ratings
Post by: Jade Elizabeth on November 06, 2015, 10:38:36 PM
Why are you moving away from SMF Sologhost? :(
Title: Re: Post Ratings
Post by: SoLoGHoST on November 08, 2015, 12:55:46 AM
I've lost interest in coding for SMF.  The code is great, the people are great, but I don't believe in the software anymore as having a prominent future on the www.  I liked the idea of sm.Core, and to be honest, I think SMF needs to expand past forum software in order to be taken seriously as a website.

Not interested in wasting years of my life on a software that will eventually die and/or be archived.  Also, the many updates to SMF has convinced me (as a Mod Developer) that what I code today, will not be useful to anyone tomorrow.
Title: Re: Post Ratings
Post by: Kindred on November 08, 2015, 08:25:51 AM
Well, mods which were written for SMF 2.0RC5 and above still work on 2.0.11 (with only a few exceptions)

Mods which are written completely with hooks will work between 2.0.x and 2.1.x (with only a few tweaks, if the mod involves new templates)

So -- I am unsure of what you mean by that last statement, since there are mods in use with 2.0.11 which were written years ago.
Title: Re: Post Ratings
Post by: watchhorse on November 11, 2015, 10:21:46 AM
Quote from: SoLoGHoST on November 01, 2015, 04:58:45 PM
For anyone interested, I will upload the latest version of Post Rating Pro here, which is version 1.6.  It will not be available for purchase anymore, since the Dream Portal site is no longer around.  I have the latest version on my computer, and just need to test it with the latest version of SMF 2.0.11, and possibly with the 2.1 version as well.  If, it's not too much trouble to code, I'll update it for 2.1 also and upload on this site for FREE.

After which, I plan to not code any further customizations for SMF.  This will be the last customization I will do.  Thanks to all of those interested in my work and those that have followed my work on Customizing for SMF from the beginning.

Too bad you leave smf :(

You will put the mod here in the topic?
Title: Re: Post Ratings
Post by: live627 on November 12, 2015, 03:30:32 AM
Quote from: SoLoGHoST on November 01, 2015, 04:58:45 PM
For anyone interested, I will upload the latest version of Post Rating Pro here, which is version 1.6.  It will not be available for purchase anymore, since the Dream Portal site is no longer around.  I have the latest version on my computer, and just need to test it with the latest version of SMF 2.0.11, and possibly with the 2.1 version as well.  If, it's not too much trouble to code, I'll update it for 2.1 also and upload on this site for FREE.

After which, I plan to not code any further customizations for SMF.  This will be the last customization I will do.  Thanks to all of those interested in my work and those that have followed my work on Customizing for SMF from the beginning.
Will you release your mods under an open source license, like MIT or similar so someone can  fork them?

Quote
Not interested in wasting years of my life on a software that will eventually die and/or be archived.
I see. Guys, time to pack things and go, SMF may not be around in 50-100 years.

Technological advancements will always leave stuff behind. Apple IIe. Commodore 64. Atari 2600 COBALT. BASIC. Windows 95.

QuoteAlso, the many updates to SMF has convinced me (as a Mod Developer) that what I code today, will not be useful to anyone tomorrow.
Updates to Windows lave left my old apps defunct.
Title: Re: Post Ratings
Post by: La Friki on December 03, 2015, 06:18:48 AM
Where I can modify the language of this mod?

I want to translate to Spanish, but I can't find the language file anywhere...
Title: Re: Post Ratings
Post by: margarett on December 03, 2015, 06:56:10 AM
Just check the manual installation instructions ;)
This MOD touches Help.english.php and Modifications.english.php, so you need to translate the required string in the corresponding Spanish files ;)
Title: Re: Post Ratings
Post by: La Friki on December 03, 2015, 07:38:03 AM
Quote from: margarett on December 03, 2015, 06:56:10 AM
Just check the manual installation instructions ;)
This MOD touches Help.english.php and Modifications.english.php, so you need to translate the required string in the corresponding Spanish files ;)

I LOVE YOU, thanks so much!!! ♥
Title: Re: Post Ratings
Post by: rexall9000 on March 06, 2016, 11:29:03 PM
Mon 7 Mar 2016, 11:25 am

Hi ForumMates!

I realize this thread is rapidly aging.  However, has anyone been able to install Post Ratings on 2.0.11?  I did on http://www.KhonKaenForum.net (http://www.khonkaenforum.net) an as Admin, I can see the stars and the system seems to be working, but it is not displaying for regular members.  I added the code that SoLoGHoST suggested to  function template_html , but no joy!

I am not technical, so low skill set suggestions appreciated.

Thanks.
Title: Re: Post Ratings
Post by: live627 on March 07, 2016, 12:47:35 AM
Did you check the permissions?
Title: Re: Post Ratings
Post by: FragaCampos on June 17, 2016, 06:19:11 PM
Hi there.

I was about to buy this mod and found out that it is no longer supported.  :(
Did the Pro version ever been made available, like SoLoGHoST said a few months ago?
Title: Re: Post Ratings
Post by: SoLoGHoST on August 07, 2016, 07:40:17 PM
Yes, I made the Pro Version available for purchase only.  There was many great features in it, and was beginning to expand it even further, but I lost interest due to the strict templating structure of SMF.  I than thought of giving it away for free, but lost all of the code for it as it was on a computer that I don't have anymore.  I might have backed it up somewhere, but not entirely interested in updating it for the latest version of SMF if it is going to be too much trouble.  I will look into it, if still interested...

Let me know.
Title: Re: Post Ratings
Post by: FragaCampos on August 08, 2016, 04:45:05 PM
Hi, SoLoGHoST.
Thank you for your reply.

Yes, I'm still interested in purchasing this mod.
I'm with version 2.0.11, so that won't be a problem, for now.
Title: Re: Post Ratings
Post by: SoLoGHoST on August 16, 2016, 01:07:42 AM
Ok, I will see if I can hunt it down, and get back to you on this by this weekend.  Cheers :)
Title: Re: Post Ratings
Post by: SoLoGHoST on August 21, 2016, 04:12:24 PM
Here is the Post Ratings Pro Mod version 1.6.  I have found it and performed a quick test of it on SMF 2.0.11 on a fresh install from the current download available here online in the downloads section.  Install functions without error and seems to be working fine, despite over 2 years since the Post Ratings Pro mod has had any modifications to it.

I am giving this mod to everyone here for FREE, as it's been over 2 years since I have done any work on it and this being the very last Modification that I will give away for SMF.  I will not provide any theme support for it, nor will any updates be made to it.  Have fun, and enjoy.  Thanks to all of those who purchased this mod over 2 years ago.  1 of the last features I added, besides the statistics page addition, is the ability to see who all rated the posts/topics from those who have the permissions to do this.  This is a link that can be clicked on from the "Rated {x} times" text.

- Solomon
Title: Re: Post Ratings
Post by: d3vcho on August 21, 2016, 04:27:23 PM
Thank you for the release, it will be very helpful on my forum.

Amazing job. Regards :)
Title: Re: Post Ratings
Post by: FragaCampos on August 23, 2016, 11:28:32 PM
Hi, SoLoGHoST.
First of all, thank you very much for providing this free of charge. I would like to pay or donate for it, so if you're willing to accept that, please contact me in private.

It's sad that you're abandoning SMF and your mods. I understand your reasons and it's with heavy heart that I see more and more people walk away from this software. Maybe things will change in the future, who knows.

Take care and thank you once more.
Title: Re: Post Ratings
Post by: SoLoGHoST on August 26, 2016, 12:17:51 AM
No need to pay anything.  I am making more money than I have ever made right now, doing this type of work on other platforms and am still having very much fun doing it.  SMF was fun while it lasted though.  Currently converting a site from Umbraco to Wordpress CMS.  Anyways, just Enjoy it!  Keep your money, don't need it.

Cheers :)
Title: Re: Post Ratings
Post by: iMiKK on December 06, 2016, 03:13:01 PM
Thank SoLoGHoST :)
Title: Re: Post Ratings
Post by: ob on September 19, 2018, 11:26:31 PM
Does anyone know if this mod works with 2.0.15?
Title: Re: Post Ratings
Post by: dodos26 on December 29, 2019, 06:25:56 PM
Nope i try and see only permits but don't see effects :(
Title: Re: Post Ratings
Post by: -Rock Lee- on December 30, 2019, 10:12:08 AM
Quote from: dodos26 on December 29, 2019, 06:25:56 PM
Nope i try and see only permits but don't see effects :(

Did it give you problems installing? Does the error log mark you something?


Regards!
Title: Re: Post Ratings
Post by: dodos26 on December 30, 2019, 12:46:14 PM
Quote from: Rock Lee on December 30, 2019, 10:12:08 AM
Quote from: dodos26 on December 29, 2019, 06:25:56 PM
Nope i try and see only permits but don't see effects :(

Did it give you problems installing? Does the error log mark you something?


Regards!

No dint have problems when install. I am stupid all mods are on by default for each thread and are not here. In addition, it is done in such a way that it is hard to notice :D This work with 2.0.15 :)
Title: Re: Post Ratings
Post by: -Rock Lee- on December 30, 2019, 01:19:40 PM
It is taken into account some modifications are somewhat old and sometimes it happens more than how SMF is being updated (something that is now normal layers before it was not). I try it at home is perfect what is great considering the time it takes ...


Regards!
Title: Re: Post Ratings
Post by: dodos26 on December 30, 2019, 08:20:32 PM
Unfortunately, it won't work with most custom themes
Title: Re: Post Ratings
Post by: -Rock Lee- on December 31, 2019, 09:33:07 AM
I have not been able to try it with any custom theme but it sure can be adapted without problems if you understand some code :).


Regards!
Title: Re: Post Ratings
Post by: dodos26 on December 31, 2019, 09:53:41 AM
Yuuup but see it :(   can do all this to me, but I have a problem as an administrator with icons. Use sunrise
(https://s6.ifotos.pl/img/ePNG_qaxnahe.png)
Title: Re: Post Ratings
Post by: -Rock Lee- on December 31, 2019, 10:55:20 AM
It would have to adapt taking into account the rules that it uses to be adaptable, that's why the icon gives you problems because of the way it works to adapt to many resolutions. I will try to take some time to try it on my test website and any news I publish. Happy 2020


Regards!
Title: Re: Post Ratings
Post by: dodos26 on February 05, 2020, 10:44:05 AM
Ok i fix it. Full instruction see down. But all "Custom changes beter displayed:" the globally changing way you view ratings, you won't be able to change this in settings. But I shared it because it fits very well.

Install Bug:
    3.    Dodaj po    ./Themes/SunRise20/Display.template.php

Ignore

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Install Bug:
    4.    Dodaj po    ./Themes/SunRise20/Display.template.php    Porażka

Find and replace: (Fix error when install mod index.template.php num 2)

<h5 id="subject_', $message['id'], '" style="display:none;">

Replace:

<h5 id="subject_', $message['id'], '" style="display:none;" style="margin-bottom: 1em;">

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Install Bug:
    5.    Dodaj po    ./Themes/SunRise20/Display.template.php    Porażka

Find and add: (Fix error when install mod index.template.php num 3 - And change it now can click here to see rates user)

                                    <div class="time_posted">
                                        <a href="', $message['href'], '" class="time_posted_href">
                                            <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], '
                                        </a>';

Add:

                                        if (!empty($modSettings['post_ratings_show_lastratedtime']))
                                            if ($message['ratings_enabled'] && $message['first_enabled'] && $message['topic_enabled'] && allowedTo('postratings_view') && $message['has_ratings'] && !empty($message['rating']['last_rated_time']))
                                                echo ', <a href="' . $scripturl . '?action=postratings;sa=view;board=' . $context['current_board'] . ';topic=' . $message['topic_id'] . ';msg=' . $message['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" class="time_posted_href" onclick="return reqWin(this.href);">', $txt['last_rated_time'], ' ', $message['rating']['last_rated_time'], '</a>';

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Display Bug: ./Themes/SunRise20/Display.template.php

Find and replace: (Fix bugs when display button enable disable and remove all rates)

        if (!$context['is_ratings_locked'])
        {
        // Let them know if it is enabled or disabled and give them an option to enable/disable it if they are permitted.
        if (!empty($modSettings['post_ratings_posts_enable_icon']))
            if ($message['can_enable_disable_postratings'] && $message['first_enabled'] && $message['topic_enabled'])
                echo '
                        <li class="', $message['ratings_enabled'] ? 'enable_ratings_button' : 'disable_ratings_button', '"><a href="', $scripturl, '?action=postratings;sa=', ($message['ratings_enabled'] ? 'disable' : 'enable'), ';board=', $context['current_board'], ';topic=', $context['current_topic'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', $message['ratings_enabled'] ? $txt['enable_ratings_post_alt'] : $txt['disable_ratings_post_alt'], '">', ($message['ratings_enabled'] ? $txt['enable_ratings_post'] : $txt['disable_ratings_post']), '</a></li>';
   
   
        // How about deleting post ratings from this particular post?
        if (!empty($modSettings['post_ratings_posts_delete_icon']))
            if (allowedTo('postratings_administrate') && !empty($message['ratings_enabled']) && $message['first_enabled'] && $message['topic_enabled'] && $message['has_ratings'])
                echo '
                            <li class="remove_ratings_button"><a href="', $scripturl, '?action=postratings;sa=deleteall;board=', $context['current_board'], ';msg=', $message['id'], '" title="', $txt['delete_ratings_post_alt'], '">', $txt['delete_ratings_post'], '</a></li>';

        }

Replace:

        if (!$context['is_ratings_locked'])
        {
        // Let them know if it is enabled or disabled and give them an option to enable/disable it if they are permitted.
        if (!empty($modSettings['post_ratings_posts_enable_icon']))
            if ($message['can_enable_disable_postratings'] && $message['first_enabled'] && $message['topic_enabled'])
               
                            echo '<li class="enable_disable_rates_button"><a class="tooltip" title="', $message['ratings_enabled'] ? $txt['enable_ratings_post_alt'] : $txt['disable_ratings_post_alt'], '" href="', $scripturl, '?action=postratings;sa=', ($message['ratings_enabled'] ? 'disable' : 'enable'), ';board=', $context['current_board'], ';topic=', $context['current_topic'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"><span>', ($message['ratings_enabled'] ? $txt['enable_ratings_post'] : $txt['disable_ratings_post']), '</span></a></li>';
   
        // How about deleting post ratings from this particular post?
        if (!empty($modSettings['post_ratings_posts_delete_icon']))
            if (allowedTo('postratings_administrate') && !empty($message['ratings_enabled']) && $message['first_enabled'] && $message['topic_enabled'] && $message['has_ratings'])
                            echo '<li class="remove_rates_button"><a class="tooltip" title="', $txt['delete_ratings_post_alt'], '" href="', $scripturl, '?action=postratings;sa=deleteall;board=', $context['current_board'], ';msg=', $message['id'], '"><span>', $txt['delete_ratings_post'], '</span></a></li>';

        }


File change: ./Themes/SunRise20/css/index.css
Find and add after:

ul.quickbuttons li.modify_button a:before, .button_strip_edit:before {
    content: "\f044";
}

Add:

ul.quickbuttons li.enable_disable_rates_button a:before, .button_strip_edit:before {
    content: "\f5c0";
}
ul.quickbuttons li.remove_rates_button a:before, .button_strip_edit:before {
    content: "\f005";
}

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Install Bug:
    3.    Zastąp    ./Themes/SunRise20/MessageIndex.template.php    Porażka

Find and replace:

                    </td>
                    <td class="stats taphoNone ', $color_class, '">

Replace:

                    </td>';
            if (isset($topic['ratings']) && !empty($topic['ratings']))
            echo '
                    <td align="center" class="ratings ', $alternate_class, '">', $topic['ratings'], '</td>';

            echo '
                    <td class="stats taphoNone ', $color_class, '">

---------------------------------------
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
---------------------------------------

Custom changes beter displayed: ./Themes/SunRise20/Display.template.php

Find and remove: (Remove code for display rate inside post)

        //
        // Post Ratings BEGIN...
        //
       
        // Inner Style?
        if(empty($modSettings['post_ratings_layout_style']))
        {
            // Inner - is it enabled or not??
            if ($message['ratings_enabled'] && $message['topic_enabled'] && $message['first_enabled'] && allowedTo('postratings_view'))           
            {
                echo '<table cellpadding="0" cellspacing="0"><tr><td align="left" valign="middle" style="white-space: nowrap;">';
               
                // does the post have any ratings yet?
                if (!$message['has_ratings'])
                {
                    echo parse_bbc($modSettings['post_ratings_not_rated']);
                }
                else
                {
                    $textOut = 'post_ratings_text' . $message['post_rating_num'];

                    echo $message['post_rating_stars'] . '</td>
                    <td align="left" valign="middle" width="100%"><div> ' . parse_bbc($modSettings[$textOut], true) . '</div>';

                    $view_ratings =  $view_ratings && !empty($message['ratings_enabled']) && $message['topic_enabled'];

                    if (!empty($message['post_rating_totals']))
                    {
                        if (!empty($modSettings['post_ratings_show_quantity']))
                            echo '
                                </td><td class="smalltext" align="right" valign="middle" style="white-space: nowrap;">', ($view_ratings ? '<a href="' . $scripturl . '?action=postratings;sa=view;board=' . $context['current_board'] . ';topic=' . $message['topic_id'] . ';msg=' . $message['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" onclick="return reqWin(this.href);">' : ''), $txt['postratings_count1'], ' <strong>', $message['post_rating_totals'], '</strong> ', ($message['post_rating_totals'] < 2 ? $txt['postratings_count2'] : $txt['postratings_count3']), ($view_ratings ? '</a>' : '');
                        else
                            if ($view_ratings)
                            echo '
                                </td><td class="smalltext" align="right" valign="middle" style="white-space: nowrap;"><a href="', $scripturl, '?action=postratings;sa=view;board=', $context['current_board'], ';topic=', $message['topic_id'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return reqWin(this.href);">', $txt['post_ratings_view_ratings'], '</a>';
                    }
                }   
                echo '</td></tr></table>';
            }
        }               
        //
        // Post Ratings END!
        //               

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Custom changes beter displayed: ./Themes/SunRise20/Display.template.php

Find and remove: (Remove code for display rate inside post)

        //
        // Post Ratings BEGIN...
        //

        // Header Style?
        if (!empty($modSettings['post_ratings_layout_style']))
        {
            // Header - is it enabled or not??
            if ($message['ratings_enabled'] && $message['topic_enabled'] && $message['first_enabled'] && allowedTo('postratings_view'))           
            {
                echo '
                <div class="title_bar">
                <h3 class="titlebg" style="font-weight: normal;">';

                $view_ratings =  $view_ratings && !empty($message['ratings_enabled']) && $message['topic_enabled'];
               
                if ($message['has_ratings'])
                {
                    if (!empty($message['post_rating_totals']))
                    {
                        if (!empty($modSettings['post_ratings_show_quantity']))
                            echo '
                                <div class="floatright smalltext">', ($view_ratings ? '<a href="' . $scripturl . '?action=postratings;sa=view;board=' . $context['current_board'] . ';topic=' . $message['topic_id'] . ';msg=' . $message['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" onclick="return reqWin(this.href);">' : ''), $txt['postratings_count1'], ' <strong>', $message['post_rating_totals'], '</strong> ', ($message['post_rating_totals'] < 2 ? $txt['postratings_count2'] : $txt['postratings_count3']), ($view_ratings ? '</a>' : ''), '</div>';
                        else
                            if ($view_ratings)
                            echo '
                                <div class="floatright smalltext"><a href="', $scripturl, '?action=postratings;sa=view;board=', $context['current_board'], ';topic=', $message['topic_id'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return reqWin(this.href);">', $txt['post_ratings_view_ratings'], '</a></div>';
                    }

                    $textOut = 'post_ratings_text' . $message['post_rating_num'];

                    echo $message['post_rating_stars'] . '<table cellspacing="0" cellpadding="0" border="0" class="floatleft"><tr><td align="left" valign="middle">' . parse_bbc(stripslashes($modSettings[$textOut])) . '</td></tr></table>';
                }
                else
                    echo parse_bbc(stripslashes($modSettings['post_ratings_not_rated']));

                echo '
                    </h3></div>';
            }
        }               
        //
        // Post Ratings END!

---------------------------------------
.
.
.
.
.
.
---------------------------------------

Custom changes beter displayed: ./Themes/SunRise20/Display.template.php

Find and add after: (New display rate inside post)

        // Okay, are you at least logged in?  Then we can show something about why IPs are logged...
        elseif (!$context['user']['is_guest'])
            echo '
                                    <br/><a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt['logged'], '</a>';

                            echo'
                                    </div><div id="msg_', $message['id'], '_quick_mod"></div>
                                </div>';

Add:

        if(empty($modSettings['post_ratings_layout_style']))
        {
            // is it enabled or not??
            if ($message['ratings_enabled'] && $message['topic_enabled'] && $message['first_enabled'] && allowedTo('postratings_view'))
            {
                // does the post have any ratings yet?
                if (!$message['has_ratings'])
                {
                    echo '<center> ' . parse_bbc($modSettings['post_ratings_not_rated']) . '</center>';
                }
                else
                {
                    echo '<center>' . $message['post_rating_stars'] . '</center>';
                }
            }
        }

I have bug with text coding in this mod.. in the settings when I give Polish characters example ś ę ą ć etc he loses these signs.
And if I translate the text into Modifications.english.php I see utf encoding there but the characters are not displayed