Advertisement:

Author Topic: Post Ratings  (Read 125241 times)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #100 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.
Code: [Select]
$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,

);

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: Post Ratings
« Reply #101 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 :) :) :)
Running Rc4

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: Post Ratings
« Reply #102 on: December 24, 2009, 10:48:06 PM »
forgot to say

MERRY CHRISTMAS!!!!!!!!!!!!!!!
Running Rc4

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #103 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 :)

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: Post Ratings
« Reply #104 on: December 24, 2009, 10:59:29 PM »
well glad you had time to help me

thanks again ;D ;D ;D
Running Rc4

Offline falken

  • Semi-Newbie
  • *
  • Posts: 39
Re: Post Ratings
« Reply #105 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!  ::)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #106 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.

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: Post Ratings
« Reply #107 on: December 26, 2009, 03:35:05 PM »
is there any report function to this like to show a members overall rating
Running Rc4

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #108 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.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Post Ratings
« Reply #109 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

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #110 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 :)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #111 on: December 27, 2009, 04:37:03 AM »
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 :)
« Last Edit: December 27, 2009, 04:41:06 AM by SoLoGHoST »

Offline darubillah

  • Semi-Newbie
  • *
  • Posts: 61
Re: Post Ratings
« Reply #112 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

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #113 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 :)

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Post Ratings
« Reply #114 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. 
-img removed-

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Post Ratings
« Reply #115 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
SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #116 on: December 27, 2009, 11:07:15 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.

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 :)
« Last Edit: December 27, 2009, 11:15:48 AM by SoLoGHoST »

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Post Ratings
« Reply #117 on: December 27, 2009, 12:57:14 PM »
VERY GOOD!  LOVE IT!
 ;D ;D ;D ;D ;D ;D ;D
Looks great!
-img removed-

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Post Ratings
« Reply #118 on: December 27, 2009, 01:57:43 PM »
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.

Offline sattninja

  • Sr. Member
  • ****
  • Posts: 701
    • Appfuzion.com
Re: Post Ratings
« Reply #119 on: December 27, 2009, 02:44:30 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
Running Rc4