/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| AJAX RATINGS
| S.P.I.K.E.R. (c) www.sib-fusion.ru
| Russia, Krasnoyarsk
| 2008
+--------------------------------------------------------+
|Page:           INSTALL.txt
|Created:        Nov 2008
|Last content:       Mar 18 2007
|This page handles the 'AJAX' type response if the user
|has Javascript enabled.
|---------------------------------------------------------+
|ryan masuga, masugadesign.com
|ryan@masugadesign.com 
|Licensed under a Creative Commons Attribution 3.0 License.
|http://creativecommons.org/licenses/by/3.0/
|See readme.txt for full credit details.
|---------------------------------------------------------*/



     CMS PHP-Fusion v.7

:         .
       .


     ###################################################################
     #                                              #
     ###################################################################



>>>>    ( ajaxstarrater)   includes   <<<<<



1.-----------------  SQL  ---------------------------------+


CREATE TABLE `fusion_ajax_ratings` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `content` mediumint(8) unsigned NOT NULL default '0',
  `type` char(2) NOT NULL default '',
  `total_votes` int(11) NOT NULL default '0',
  `total_value` int(11) NOT NULL default '0',
  `used_ips` longtext,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;


*:       (fusion_),   !


2.-----------------   header.php (/themes/templates/) -----------+


:

echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";

 :

echo '<script type="text/javascript" language="javascript" src="'.INCLUDES.'ajaxstarrater/js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="'.INCLUDES.'ajaxstarrater/js/rating.js"></script>
<link rel="stylesheet" type="text/css" href="'.INCLUDES.'ajaxstarrater/css/rating.css" />';

  header.php


3.-----------------   news.php (/) -----------+

- ( ) : 

include INCLUDES."ratings_include.php";

- : 

require(INCLUDES.'ajaxstarrater/_drawrating.php');

- ( ) : 

if ($data['news_allow_ratings']) { showratings("N", $_GET['readmore'], FUSION_SELF."?readmore=".$_GET['readmore']); }

- : 


	opentable("");
	echo rating_bar($_GET['readmore'],'N','');
	closetable();

  news.php


4.-----------------   articles.php (/) -----------+

- ( ) : 

include INCLUDES."ratings_include.php";

- : 

require(INCLUDES.'ajaxstarrater/_drawrating.php');

- ( ) : 

if ($data['article_allow_ratings']) { showratings("A", $_GET['article_id'], FUSION_SELF."?article_id=".$_GET['article_id']); }

- : 


	opentable("");
	echo rating_bar($_GET['article_id'],'A','');
	closetable();

  articles.php


5.-----------------   photogallery.php (/) -----------+

- ( ) : 

include INCLUDES."ratings_include.php";

- : 

require(INCLUDES.'ajaxstarrater/_drawrating.php');

- ( ) : 

if ($data['photo_allow_ratings']) { showratings("P", $_GET['photo_id'], FUSION_SELF."?photo_id=".$_GET['photo_id']); }

- : 


	opentable("");
	echo rating_bar( $_GET['photo_id'],'P','');
	closetable();

  photogallery.php




5.----------------- ! -----------+

() SIB-FUSION.RU 2008

 : 
   .


