Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 06-11-2008, 05:39 AM rating star
abhi's Avatar
Super Talker

Posts: 100
Name: abhishek
Location: mauritius
Trades: 0
Does anyone knows how to do a rating system. In fact, I have already build it but I don't know how to merge it with the articles that have to rated. Each article should have a unique rate. It's like on youtube. If any one knows how to do it or can give a few advice. I'll be grateful.thanks in advance.

< removed >

Last edited by chrishirst; 06-11-2008 at 07:04 AM..
abhi is offline
Reply With Quote
View Public Profile Visit abhi's homepage!
 
 
Register now for full access!
Old 06-11-2008, 07:07 AM Re: rating star
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can't be done with just HTML.

Needs a server side code
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-11-2008, 01:46 PM Re: rating star
Banned

Posts: 421
Location: Boston, MA
Trades: 1
You gonna need some coding skill for this pal.
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 06-11-2008, 01:59 PM Re: rating star
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
You need a page or an ajax handler that accepts ratings.
Then on the article page each star should either pass the rating to the rating page or pass it to the ajax system which then sends it to the server.
The server needs to store the ratings in a separate table in the database, where it matches the articleID to the rating (and also possible a userid or ipaddress to prevent abuse of the rating system).

Then you can either calculate the ratings dynamically for each article by loading all the ratings for that articleid and averaging them, or (if a page has multiple articles in it and calculating them dynamically slows it down) you can have a serverside script run once a day or once an hour or whatever that goes through the database and calculates the current average rating for all articles and stores that directly in the article table as an extra field (avgrating or whatever). Then it can be loaded with all the normal article data and doesn't require any dynamic calculation.

If a lot of that didn't make sense to you, then you're probably over your head and should hire someone else to do it =)
If you're decent at writing serverside code that interacts with your database system, then have at it and ask if you have any specific questions or problems along the way =)
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 06-12-2008, 11:03 AM Re: rating star
Convert2Steve's Avatar
Experienced Talker

Posts: 35
Name: Steve Howe
Location: Salt Lake City
Trades: 0
Personally I suggest you check out wordpress. Wordpress has this type of feature which you can easily add in with a single click of a button
__________________

Please login or register to view this content. Registration is FREE
|
"We beat the street!"
phone:
(801) 413-3037 | aim: Convert2Steve | skype: Convert2Steve
Convert2Steve is offline
Reply With Quote
View Public Profile Visit Convert2Steve's homepage!
 
Old 06-12-2008, 01:51 PM Re: rating star
Novice Talker

Posts: 9
Name: edy
Trades: 0
Yap in wordpress you can do that thing.You can optimize wordpress very cool,you even don't know that is a wordpress.
Chill
__________________

Please login or register to view this content. Registration is FREE
gedja is offline
Reply With Quote
View Public Profile
 
Old 06-12-2008, 01:53 PM Re: rating star
LeetPCUser's Avatar
Skilled Talker

Posts: 58
Name: Bryan
Location: Wisconsin
Trades: 0
JavaScript is probably the easiest way to do this. You would also have to store the values in the database to compute the average amount of stars. A Google search might show a tutorial.
__________________

Please login or register to view this content. Registration is FREE
LeetPCUser is offline
Reply With Quote
View Public Profile Visit LeetPCUser's homepage!
 
Reply     « Reply to rating star
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.20208 seconds with 12 queries