Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujienos

Parašė JaWa· 2011 Lap. 11 14:11:18
#1

Del kokios priezasties isdygsta man sita klaida ?

Fatal error: Call to undefined function render_comments() in /usr/home/www1/ftp/illegal/includes/comments_include.php on line 171

Redagavo JaWa· 2011 Lap. 22 15:11:42

Parašė MaFetas· 2011 Lap. 11 14:11:28
#2

Dėl to kad neatpažįsta render_comments() funkcijos, gal jos net nėra arba blogai aprašyta (su klaidom)

Parašė JaWa· 2011 Lap. 13 19:11:10
#3

Sveiki, ar imanoma kaip nors padaryti kad komentaru ir ivertinumu paneles butu vienoje eileje ? pvz paveikslelyje....

PVZ:






Redagavo Creatium· 2011 Lap. 13 19:11:46

Parašė JaWa· 2011 Lap. 22 16:11:39
#4

Turiu kita klausimą, dėl kokios priežasties man neužsidega rodyklė "back", kai panele atvaizduojama tinklapyje (2)... Kai aš ją bandau peržiūrėti per administracijos panele, "Peržiūrėti panele", tai man veikia kuo puikiausiai (1).... pavyzdys screenshot'e ... Pati panele žemiau.





 
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2011 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: jcarousel_panel.php
| Version: 1.0
| Author: jikaka
+--------------------------------------------------------+
| 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"); }
 
if (file_exists(INFUSIONS."jcarousel_panel/locale/".$settings['locale'].".php")) {
	include INFUSIONS."jcarousel_panel/locale/".$settings['locale'].".php";
} else {
	include INFUSIONS."jcarousel_panel/locale/English.php";
}
 
add_to_head("
<script type='text/javascript' src='".INFUSIONS."jcarousel_panel/js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='".INFUSIONS."jcarousel_panel/js/jquery.jcarousel.min.js'></script>
<link type='text/css' href='".INFUSIONS."jcarousel_panel/css/skin.css' media='screen' rel='stylesheet' />
<script type='text/javascript'> 
 
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
 
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
 
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
 
<span style="border-bottom: 1px dotted black;">jQuery</span>(document).ready(function() {
    <span style="border-bottom: 1px dotted black;">jQuery</span>('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});
</script>
");
 
$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC");
 
 
if (dbrows($result)!= "0") {
	echo "<tr><td class='aplink'><div id='wrap'><ul id='mycarousel' class='jcarousel-skin-tango'>";
	while($data = dbarray($result)) {
	$itemsubject = trimlink($data['news_subject'], 27);
	$itemsubject2 = trimlink($data['news_extended'], 100);
 
		echo "<li><a href='".BASEDIR."news.php?readmore=".$data['news_id']."' class='side'>";
		echo "<b>&nbsp;$itemsubject</b><table><tr><td class='aplinknaujiena'><img src='".IMAGES_N_T.$data['news_image_t1']."' width='236' height='194' alt='".$data['news_subject']."'></td></tr></table>";
		echo "</a><a class='naujienos'>&nbsp;$itemsubject2</a></li>";	
	}
	echo "</ul></div></td></tr>";
} else {
	echo $locale['jcp002'];
	echo "</ul></div></td></tr>";
}
 
 
?>
 

Parašė JaWa· 2012 Lie. 10 13:07:14
#5

man issoko tokia klaida. kai as meginu padaryti komentarus atskirame faile. Na pavyzdziui nuspaudus ant nuotraukos, issoka kitas langas ir jame galima kuomentuotisia nuotrauka.

Fatal error: Call to undefined function render_comments() in /usr/home/www1/ftp/illegal/includes/comments_include.php on line 171

kaip man uzrenderti ta faila ?


<?php
require_once "maincore.php";
include INCLUDES."comments_include.php";
 
showcomments("V", DB_VIDEOS, "video_id", $_GET['video_id'], FUSION_SELF."?video_id=".$_GET['video_id']);
?>

Parašė TETYYS· 2012 Rugp. 18 23:08:22
#6

render_comments yra nesukurta, t.y. scriptas nepasiekia to failo kur yra define'intas render_comments, kažkur nėra include/require į failą kur yra render_comments, ta funkcija yra komentuota /**/, arba jos išvis nėra.