Author Topic: Spit out rating's sum  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

Offline raesquared

  • New
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Spit out rating's sum
« on: 27 Sep 2009 09:53:44 PM »
First of all, great code! Thanks for sharing!

I'm trying to find what code would spit out just a numeric value of a page's average rating. (ie instead of an image of three stars, it would say "3")
I can see that within function.php the sum is calculated but I'm not familiar enough with php to see how to JUST grab that.

Any advise would be much appreciated!
Thanks,
Rachel

Offline Deano

  • Admin
  • Level 5
  • *****
  • Posts: 122
  • Karma: +6/-0
  • Gibbed
    • View Profile
    • resplace
Re: Spit out rating's sum
« Reply #1 on: 29 Sep 2009 02:08:57 AM »
Just so you know I've read your post and will respond with a more useful reply tomorrow. Right now I dont have time got to go to sleep because I have an interview tomorrow :D but right after that I'll try and help :)
Regards, Dean Williams

freelance-coders.net is a freelance service, making it easy, fast and secure to freelance on the internet.

resplace.net community forums

Re: Spit out rating's sum
« Reply #1 on: 29 Sep 2009 02:08:57 AM »

Offline raesquared

  • New
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Spit out rating's sum
« Reply #2 on: 29 Sep 2009 02:14:38 AM »
Thanks :) I anxiously await your thoughts. Good luck on your interview!

Offline Deano

  • Admin
  • Level 5
  • *****
  • Posts: 122
  • Karma: +6/-0
  • Gibbed
    • View Profile
    • resplace
Re: Spit out rating's sum
« Reply #3 on: 30 Sep 2009 09:13:09 PM »
hello again, been working on PageRater today and have made some huge changes to the admin panel and fixed a SHIT LOAD OF BUGS lol

anyway I've implemented your request, when you install the new version go to the admin panel and go to "scripts" - "plain data" and there's an example code there.

if you have any more suggestions then don't hesitate to ask, hope PageRater serves you well :)

Quote
To Update:
Copy all the files from the ZIP over the old files apart from settings.php and install.php

regards,
Dean Williams
Regards, Dean Williams

freelance-coders.net is a freelance service, making it easy, fast and secure to freelance on the internet.

Offline raesquared

  • New
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Spit out rating's sum
« Reply #4 on: 07 Oct 2009 11:01:43 AM »
Wow. I will update right now!

Talk about service :)
Thanks so much for taking my suggestion into consideration. I'll let you know how it goes!

Offline raesquared

  • New
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Spit out rating's sum
« Reply #5 on: 07 Oct 2009 11:18:44 AM »
I did update, however, I'm having trouble finding what you're talking about (which is strange because I see it in the raw code, but not when I open admin.php).

Offline Deano

  • Admin
  • Level 5
  • *****
  • Posts: 122
  • Karma: +6/-0
  • Gibbed
    • View Profile
    • resplace
Re: Spit out rating's sum
« Reply #6 on: 08 Oct 2009 12:33:09 PM »
if you look at the image below, look at the Purple links, click those and you will get to the script called "Plain Data" which is what you are after. I could not think of a better name... if you have any suggestions I could rename it :)

and I will soon be releasing another update fixing some other problems I've seen about.

Thanks again for all the feedback so far :) keep it coming!
Regards, Dean Williams

freelance-coders.net is a freelance service, making it easy, fast and secure to freelance on the internet.