Star Rating System BBCode

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

Star Rating System BBCode

Post by victory1 » Wed Aug 24, 2011 4:54 am

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 » Wed Aug 24, 2011 4:35 pm

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
Contact:

Re: Star Rating System BBCode

Post by victory1 » Wed Aug 24, 2011 6:31 pm

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 » Wed Aug 24, 2011 7:24 pm

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
Contact:

Re: Star Rating System BBCode

Post by victory1 » Wed Aug 24, 2011 7:48 pm

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 » Thu Aug 25, 2011 11:53 pm

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
Contact:

Re: Star Rating System BBCode

Post by victory1 » Fri Aug 26, 2011 6:16 am

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.

Locked

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