Star Rating System BBCode

Discussion forum for MOD Writers regarding MOD Development.
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Star Rating System BBCode

Post by victory1 »

I've been looking for a star rating system to use for my monthly book of the month discussion. I found one which I thought worked except I could not figured how to not let guests votes. I just discovered another flaw since I'm using it in the same forum in different topics, it's copying the votes from the previous topic instead of making it 0. I know a lot of people have been requesting this for movies and games.

BBCode usage

Code: Select all

[rating]{IDENTIFIER}[/rating]
Html replacement

Code: Select all

    <div class="js-kit-rating" starColor="{IDENTIFIER}"></div>
    <script type="text/javascript" src="ratings.js"></script>
Helpline

Code: Select all

Choose your star color.
[rating]Golden[/rating]
It looks like this:
Image

If you hit the exclamation point next to the stars, you will get to see voting history by choosing the tabs:
Image Image Image Image
Last edited by victory1 on Wed Aug 24, 2011 6:25 pm, edited 1 time in total.
BlueCollar
Registered User
Posts: 67
Joined: Sun Dec 05, 2010 11:54 pm

Re: Star Rating System BBCode

Post by BlueCollar »

MOD-specific support needs to be posted in that particular MOD's support thread.
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: Star Rating System BBCode

Post by victory1 »

I have the ratings.js file on my server. It definitely has problems if it's being called from the page, ie the same forum but different topics. Here is the ratings.js code: http://www63.zippyshare.com/v/20612474/file.html
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Star Rating System BBCode

Post by 4_seven »

There is a big community for that, so the RQ is not phpbb relevant.
http://www.google.com/search?sclient=ps ... btnG=Suche
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: Star Rating System BBCode

Post by victory1 »

4_seven wrote:There is a big community for that, so the RQ is not phpbb relevant.
http://www.google.com/search?sclient=ps ... btnG=Suche
Thanks, I think I'll request one for phpbb for products. I don't know why we don't have one when it's a great function. ;)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Star Rating System BBCode

Post by 4_seven »

victory1 wrote: I don't know why we don't have one when it's a great function. ;)
bcs. it's complex and costs many time. time, that no one pays for.
find 10 people, each people spend 50 €, pay a programmer and this mod is build in 2 weeks.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: Star Rating System BBCode

Post by victory1 »

4_seven wrote:
victory1 wrote: I don't know why we don't have one when it's a great function. ;)
bcs. it's complex and costs many time. time, that no one pays for.
find 10 people, each people spend 50 €, pay a programmer and this mod is build in 2 weeks.
Thanks 4_seven, I realize it's complex now since I actually e-mailed the ratings.js script to a developer at my job so he could take a look at it. Plus there's a ton of messages with people requesting this since 2007. Here's what he said:
I doubt seriously that the flaw here lies mainly in the HTML/JS code. I'd bet that the flaw is mostly in the server-side code, which is not shown in that (incredibly ugly and overly complex) JS file.

As far as I can see, it's only set up to support one rating system per site (maybe per page).

It's what you get when you use somebody else's library: Pre-built code but code limited to whatever that person decided to put in the library.

Return to “[3.0.x] MOD Writers Discussion”