Aisku dabar tokie laikai, kai turinio valdymo sistemas valdome one-click principu. Ne kaip seniau kode ieskodavom klaidu, norint moda pasileist.. :D paciam reikdavo susidiegt viska i ftp..
Lab� dien� visiems.
Taigi i?kilo toke problem�l� man reik�t� tokio balsavimo d�stymo kaip �ia http://super-filmai.too.lt/kelion-paslapting-j-sal-journey-2-the-mysterious-island-n1935.html kad eit� lygiai su tekstu tok ?vaig?dut�s niekaip nei?eina man pasidaryti b��iau labai d�kingas jei pad�tum�te.
Redagavo Rimas02 2012-06-18 16:47
/*-------------------------------------------------------+
| Dynamic Star Rating Redux
| Developed by Jordan Boesch
| www.boedesign.com
| Licensed under Creative Commons - http://creativecommons.org/licenses/by-nc-nd/2.5/ca/
| Used CSS from komodomedia.com.
+--------------------------------------------------------+
| Ajax Rating System mSF For PHP-Fusion 7.xx v.1.1
| Copyright � 2008-2009 Powered by .:MeF:.
| URL: http://x-iweb.ru/
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
function getRating($id, $rtype) {
$total = 0;
$rows = 0;
$sel = dbquery(\"SELECT rating_vote FROM \".DB_RATINGS.\" WHERE rating_item_id = '$id' AND rating_type = '\".$rtype.\"'\");
if(dbrows($sel) != 0){
// Check if they have already voted...
$text = '';
$sel = dbquery(\"SELECT rating_item_id FROM \".DB_RATINGS.\" WHERE rating_ip = '\".USER_IP.\"' AND rating_item_id = '$id' AND rating_type='\".$rtype.\"'\");
/*
// Added in version 1.5
// Fixed sort in version 1.7
function getTopRated($limit, $table, $idfield, $namefield){
$result = '';
$sql = \"
SELECT COUNT(ratings.rating_id) as rates,ratings.rating_item_id,\".DB_RATINGS.\".\".$namefield.\" as thenamefield,
ROUND(AVG(ratings.rating_vote),2) as rating
FROM ratings,\".DB_RATINGS.\" WHERE \".DB_RATINGS.\".\".$idfield.\" = ratings.rating_item_id GROUP BY rating_id
ORDER BY rates DESC,rating DESC LIMIT \".$limit.\"
\";