Ajax Star Rating Version 2.7 Improved

Turskis

I'm back again with this project. Any ideas for making a top-rated-list? Also, I would love to show average value for every rating.

If anyone is interested, I'm calling this droplet in the news settings (Post Header:) like these:
[[ColorRating?table= [PUBLISHED_DATE]_[PUBLISHED_TIME]]]

Turskis

Another thing: When opening new rating, would it be better/possible to add new row to table instead of making new table?

Turskis

QuoteWould it be possible to add Rating Droplet in News settings-page, so that table name would increase by one for every post? This way rating would always come automatically to every post.

Could this be somehow done with post_id? But how to call the post_id?


Turskis

I was planning to make "Top rated"-page, where visitors could see posts in order depending on the average rating.

Something to do in the future maybe?

Another thing: When adding news, I always need to put unique table name? So in the first post I inserted
[[ColorRating?table=rate1]] and second: [[ColorRating?table=rate2]] Is this the right way?

Would it be possible to add Rating Droplet in News settings-page, so that table name would increase by one for every post? This way rating would always come automatically to every post.

Turskis

Oh my! Thanks! I installed it, and it seems to be working. I'll play around with it and post comments if something comes up.

maverik

download and tutorial online on my site

http://www.websitebaker.net/pages/topics/colorrating-als-modul.php

englsih is not my language but i will try to explane a little bit

download the modul
install from backend
add the droplet code

call the droplet with

[[ColorRating?table=your own unique tablename]]

enjoy  :-D

maverik

i have made a rating snippet which you can call with a droplet in all modules. have a look to my german site

http://www.websitebaker.net/pages/labor/colorrating.php

i think its to night ready for download, stay tuned  :-D

Turskis

Any other ideas? I would like to use News module with rating system

chio

There a plans to integrate a rating function into the topics-module.
But: Topics is still beta and is not that easy to use like "news". And still mostly german.

Turskis

Ok, i'll try that.

Another thing: I was thinking to add rating for news items, kind of like jackielein posted in this thread.

I want to have both commenting and rating of news items on my site. Any suggestions?

doc


Turskis

Hi. Can I still find the zip from somewhere?

jackielein

#6
great work !
can i somehow let people rate the posts of a (news)page separately, instead of only a bunch of questions at the end of the page ? i tried creating a whole bunch of different sections (News - Ajax - news - ajax - news - ajax) but the second Ajax rating doesnt show - plus, the News sections after the not showing ajax sections don't show either :/

johnp

updated Ajax Star Rating to Version 2.7 Improved

Had a install issue

Thank you erpe for the bug report...

Added Ajax Star Rating Version 2.7 Improved at first post

JP

johnp

Added Ajax Star Rating Version 2.6 Improved at first post

Enjoy...

JP

johnp

no wrapping it up now!! Should be ready shortly

JP

erpe0812

Hi John,

have you forgotten to add the zip-file?

rgds

erpe

johnp

#1
Ajax Star Rating Version 2.7 Improved

Completely reworked ]Ajax Star Rating Version 2.6 Improved with some new added
features As before when I reworked this module their seemed to be some issues within
the code an MYSQL database structure along with some issues of security which have
been addressed and implemented within this issue.

Originally ported over for website baker on July 09, 2008 by WB user SourDough.
renamed and Repacked by me (johnp) on July 10, 2008

Release Date: October 20, 2008

Change log

* Version  2.0.7 modified (10-20-2008) by John Parker
          o Fixed: corrected a install issue


Version  2.0.6 modified (10-20-2008) by John Parker
          o Upgraded: AJAX Star Rating from 1.0.0 to version 2.0.6
          o Upgraded: Added some new features to the code structure of AJAX Star Rating module
          o Vulnerabilities Patch: Addressed the vulnerabilities within the AJAX Star Rating module and applied fixes
          o Added: WYSIWYG EDITOR to Question within this module.
          o Added: The help file with new features to the AJAX Star Rating  module
          o FIX: Cleaned up some code.
          o Added: AJAX Star Rating Disclaimer to module



This module is based off a version created by
http://boedesign.com/2008/02/18/ajax-star-rating/

Which is based off a version created by
http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/


Just remember that you need to add the following
within your header of the template index.php your using or it won't work...
   <?php 
    
// automatically include optional WB module files (frontend.css, frontend.js)
    
if (function_exists('register_frontend_modfiles')) {
        
register_frontend_modfiles('css');
        
register_frontend_modfiles('js');
    } 
?>




Example on how it should look in your template

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=<?php 
        
echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET 'utf-8'?>
" />
   <meta name="description" content="<?php page_description(); ?>" />
   <meta name="keywords" content="<?php page_keywords(); ?>" />
   <?php 
    
// automatically include optional WB module files (frontend.css, frontend.js)
    
if (function_exists('register_frontend_modfiles')) {
        
register_frontend_modfiles('css');
        
register_frontend_modfiles('js');
    } 
?>

   <link rel="stylesheet" type="text/css" href="<?php 
    
echo TEMPLATE_DIR?>
/template.css" media="screen,projection" />
   <link rel="stylesheet" type="text/css" href="<?php 
    
echo TEMPLATE_DIR?>
/print.css" media="print" />
   <title><?php page_title('''[WEBSITE_TITLE]'); ?></title>
</head>


Tested Ajax Star Rating Version 2.7 Improved
using
Internet Explorer 7
Firefox 2.0.0.15
Firefox 2.0.0.16
Firefox 2.0.0.17
Firefox 3.0
Firefox 3.0.1
Firefox 3.0.2
Firefox 3.0.3


Hope You Enjoy!!

JP

[gelöscht durch Administrator]