Roksys
Narys
Buldozeris
Pranešimai: 318
Įstojęs: 2007 Rugp. 10 17:08:55
Niekaip nerandu ajax reitingu sistemos kuri tiktu fusion'ui v6. Gal kas netycia turite, ar koki linka galite numesti? Ieskau puse valandos nieko neradau www.skanaus.eu
www.tut.lt
www.liaudiesmedicina.eu
Mantow
Narys
Generolas
Pranešimai: 879
Įstojęs: 2010 Sau. 23 21:01:28
Man reiktu shoutbux ajax kad refreshintusi
nbanba
Narys
Kapitonas
Pranešimai: 727
Įstojęs: 2007 Bir. 18 22:06:19
Justas. parašė:
Turiu vienas tik aš berods, jei nori nebent parduočiau.
Pavarai
Yra gi ant V7 infusionas persidaryk, buvau perdirbęs ir viskas veikė.
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
Justas. parašė:
Turiu vienas tik aš berods, jei nori nebent parduočiau.
Hm.. o kaip Arvydas, Zeck, kad ir tas pats nbanba? D
Mantow
Narys
Generolas
Pranešimai: 879
Įstojęs: 2010 Sau. 23 21:01:28
Justas. parašė:
Turiu vienas tik aš berods, jei nori nebent parduočiau.
tu čia apie shoutbox ar apie reitingus?
nbanba
Narys
Kapitonas
Pranešimai: 727
Įstojęs: 2007 Bir. 18 22:06:19
Justas. parašė:
nbanba, jei kažkas nepatinka, dink iš akių.
Tu kietas.
Roksys
Narys
Buldozeris
Pranešimai: 318
Įstojęs: 2007 Rugp. 10 17:08:55
Pradejau persidarinet, ir klaida kazkur iveliau tik nesuprantu kur. Erroras toks Fatal error: Call to undefined function add_to_head() in /home/blabla/domains/skanaus.eu/public_html/includes/ratings_include.php on line 29
O pats failas stai :
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: ratings_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| Ajax Rating System mSF For <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 7.xx v.1.1
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: <a href='http://x-iweb.ru/' target='_blank'><span style='color:005C5B'>http://x-iweb.ru/</span></a>
+--------------------------------------------------------+
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if ( ! defined ( "IN_FUSION" ) ) { die ( "Access Denied" ) ; }
// Ķąńņšīéźą īņīįšąęåķč˙ Ajax Rating System mSF || false - āźėž÷åķī (on), true - āūźėž÷åķī (off).
$Ajax_Rating_System_mSF = false ;
if ( ! $Ajax_Rating_System_mSF ) {
add_to_head( "<link href=\" " . INCLUDES. "ajax_rating_system/css/rating_style.css\" rel=\" stylesheet\" type=\" text/css\" media=\" all\" >" ) ;
add_to_head( "<script type=\" text/javascript\" src=\" " . INCLUDES. "ajax_rating_system/js/rating_update.js\" ></script>" ) ;
require_once INCLUDES. "ajax_rating_system/rating_functions.php" ;
} else {
include LOCALE. LOCALESET. "ratings.php" ;
function showratings( $rating_type , $rating_item_id , $rating_link ) {
global $locale , $userdata ;
if ( iMEMBER) {
$d_rating = dbarray( dbquery( "SELECT rating_vote,rating_datestamp FROM " . DB_PREFIX. "ratings WHERE rating_item_id='" . $rating_item_id . "' AND rating_type='" . $rating_type . "' AND rating_user='" . $userdata [ 'user_id' ] . "'" ) ) ;
if ( isset ( $_POST [ 'post_rating' ] ) ) {
if ( isnum( $_POST [ 'rating' ] ) && $_POST [ 'rating' ] > 0 && $_POST [ 'rating' ] < 6 && ! isset ( $d_rating [ 'rating_vote' ] ) ) {
$result = dbquery( "INSERT INTO " . DB_PREFIX. "ratings (rating_item_id, rating_type, rating_user, rating_vote, rating_datestamp, rating_ip) VALUES ('$rating_item_id ', '$rating_type ', '" . $userdata [ 'user_id' ] . "', '" . $_POST [ 'rating' ] . "', '" . time ( ) . "', '" . USER_IP. "')" ) ;
}
redirect( $rating_link ) ;
} elseif ( isset ( $_POST [ 'remove_rating' ] ) ) {
$result = dbquery( "DELETE FROM " . DB_PREFIX. "ratings WHERE rating_item_id='$rating_item_id ' AND rating_type='$rating_type ' AND rating_user='" . $userdata [ 'user_id' ] . "'" ) ;
redirect( $rating_link ) ;
}
}
$ratings = array ( 5 => $locale [ 'r120' ] , 4 => $locale [ 'r121' ] , 3 => $locale [ 'r122' ] , 2 => $locale [ 'r123' ] , 1 => $locale [ 'r124' ] ) ;
opentable( $locale [ 'r100' ] ) ;
if ( ! iMEMBER) {
echo "<div style='text-align:center'>" . $locale [ 'r104' ] . "</div>\n " ;
} elseif ( isset ( $d_rating [ 'rating_vote' ] ) ) {
echo "<div style='text-align:center'>\n " ;
echo "<form name='removerating' method='post' action='" . $rating_link . "'>\n " ;
echo sprintf ( $locale [ 'r105' ] , $ratings [ $d_rating [ 'rating_vote' ] ] , showdate( "longdate" , $d_rating [ 'rating_datestamp' ] ) ) . "<br /><br />\n " ;
echo "<input type='submit' name='remove_rating' value='" . $locale [ 'r102' ] . "' class='button' />\n " ;
echo "</form>\n </div>\n " ;
} else {
echo "<div style='text-align:center'>\n " ;
echo "<form name='postrating' method='post' action='" . $rating_link . "'>\n " ;
echo $locale [ 'r106' ] . ": <select name='rating' class='textbox'>\n " ;
echo "<option value='0'>" . $locale [ 'r107' ] . "</option>\n " ;
foreach ( $ratings as $rating => $rating_info ) {
echo "<option value='" . $rating . "'>$rating_info </option>\n " ;
}
echo "</select>\n " ;
echo "<input type='submit' name='post_rating' value='" . $locale [ 'r103' ] . "' class='button' />\n " ;
echo "</form>\n </div>" ;
}
echo "<hr />" ;
$tot_votes = dbcount( "(rating_item_id)" , "ratings" , "rating_item_id='" . $rating_item_id . "' AND rating_type='" . $rating_type . "'" ) ;
if ( $tot_votes ) {
echo "<table cellpadding='0' cellspacing='1' class='tbl-border center'>\n " ;
foreach ( $ratings as $rating => $rating_info ) {
$num_votes = dbcount( "(rating_item_id)" , "ratings" , "rating_item_id='" . $rating_item_id . "' AND rating_type='" . $rating_type . "' AND rating_vote='" . $rating . "'" ) ;
$pct_rating = number_format ( 100 / $tot_votes * $num_votes ) ;
if ( $num_votes == 0 ) {
$votecount = "[" . $locale [ 'r108' ] . "]" ;
} elseif ( $num_votes == 1 ) {
$votecount = "[1 " . $locale [ 'r109' ] . "]" ;
} else {
$votecount = "[" . $num_votes . " " . $locale [ 'r110' ] . "]" ;
}
$class = ( $rating % 2 == 0 ?"tbl1" : "tbl2" ) ;
echo "<tr>\n " ;
echo "<td class='$class '>" . $rating_info . "</td>\n " ;
echo "<td width='250' class='$class '><img src='" . get_image( "pollbar" ) . "' alt='" . $rating_info . "' height='12' width='" . $pct_rating . "%' c lass='poll' /></td>\n " ;
echo "<td class='$class '>" . $pct_rating . "%</td>\n " ;
echo "<td class='$class '>" . $votecount . "</td>\n " ;
echo "</tr>\n " ;
}
echo "</table>\n " ;
} else {
echo "<div style='text-align:center'>" . $locale [ 'r101' ] . "</div>\n " ;
}
closetable( ) ;
}
}
?>
www.skanaus.eu
www.tut.lt
www.liaudiesmedicina.eu
Zeck
Narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Lie. 4 18:07:58
As tikrai turiu persidares ajax reitingus parasyk i skype duosiu.http://Online-Tv.LT
Koduoju Php-Fusion dizainus
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Jūsų saitai
Dalinuosi, dovanoju!
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!