Page 1 of 1

Star rating system

Posted: Mon Dec 25, 2017 8:21 pm
by fliper4o
Hi.
Just gonna provide some link with already started topic on the same request.

viewtopic.php?f=71&t=2138292
viewtopic.php?f=46&t=1599505
viewtopic.php?f=438&t=579376&start=1995#p9425615
http://fontawesome.io/examples/#custom (Star Ratings (inspired by CSS Tricks))

thanks

Re: Star rating system

Posted: Mon Dec 25, 2017 8:24 pm
by KevC
None of those are topics for the same extension request. They're all at least 6 years old for 3.0.

Re: Star rating system

Posted: Mon Dec 25, 2017 8:45 pm
by fliper4o
Yeah, anyway. Look what I found:
5-Star Topic RateKit by RateKit Script Author: andfinally / Bootstrap Star Rating jQuery Author: Kartik Visweswaran / Extension Author: kaspir
https://forums.thetopfew.com/viewtopic.php?f=53&t=748
Personally I'm looking for (IMDb) star rate not threads but just in topic from 1 to 10.
I've got an option with smiles or pics for full star, half star & empty star. Example below - 7 full + 1 half + 2 empty but... it's so lame in my opinion, still tho. Still would like to hear some other ideas.
Image
Image
Image(I like those stars more)

Re: Star rating system

Posted: Wed Mar 14, 2018 8:50 pm
by kaspir
fliper4o wrote:
Mon Dec 25, 2017 8:45 pm
Yeah, anyway. Look what I found:
5-Star Topic RateKit by RateKit Script Author: andfinally / Bootstrap Star Rating jQuery Author: Kartik Visweswaran / Extension Author: kaspir
https://forums.thetopfew.com/viewtopic.php?f=53&t=748
Personally I'm looking for (IMDb) star rate not threads but just in topic from 1 to 10.
I've got an option with smiles or pics for full star, half star & empty star. Example below - 7 full + 1 half + 2 empty but... it's so lame in my opinion, still tho. Still would like to hear some other ideas.
Image
Image
Image(I like those stars more)
Why didn't you just ask?! Because Ratekit was designed to store data in a file, it's easy to make changes even as an extension and may also include the postrow.POST_ID to accomplish this without difficult adjustments. Example at the test grounds: https://phpbb.thetopfew.com/viewtopic.php?f=2&t=1

Do, create a new event template named: viewtopic_body_contact_fields_after.html and add this code (do not alter the input id! Used 'p#' as a delimiter to POST_ID so no conflict with the TOPIC_ID):

Code: Select all

<!-- IF SHOW_RATEKIT -->
	<dd id="ratekit-ext" class="red ratekit-post"<!-- IF not USE_RATEKIT --> title="{L_RATEKIT_VIEWTOPIC_DISABLED}"<!-- ENDIF -->>
		<span class="rateme-postlabel">Rating</span>
		<input id="p#{postrow.POST_ID}" class="rating" data-show-label="false" data-size="xs"<!-- IF not USE_RATEKIT --> disabled<!-- ENDIF -->>
	</dd>
<!-- ENDIF -->
Save and upload to, /ext/thetopfew/ratekit/styles/all/template/event/
Purge cache, enjoy.

I did this quickly, I may add this with some more options in a new version. Join our forums conversations. Luckily, I found this page while scanning google months later! :lol: