Przedszkolak
Postów: 62 Ostrzeżeń: 5
v7.02.05 Data rejestracji: 16.02.2012 13:21
|
Odkryłem, że problem tkwi w tym, że kalendarz "gryzie" się z inną wtyczką a mianowicie Feedback.
Feedback panel:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: feedback_panel.php
| 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 http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
add_to_head("<link rel='stylesheet' href='".INFUSIONS."feedback_panel/css/style.css' type='text/css' media='screen' />");
add_to_head("<script type='text/javascript' src='".INFUSIONS."feedback_panel/js/jquery.js'></script>");
add_to_head("
<script>
$(function() {
$('a[rel]').overlay(function() {
var wrap = this.getContent().find('div.wrap');
if (wrap.is(':empty')) {
wrap.load(this.getTrigger().attr('href'));
}
});
});
</script>");
if (file_exists(INFUSIONS."feedback_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."feedback_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."feedback_panel/locale/polish-utf8.php";
}
openside($locale['fd_001']);
echo "<div align='center'>";
echo "<b>".$locale['fd_003']."</b><br />";
echo "<img src='".INFUSIONS."feedback_panel/images/faq.png' alt='".$locale['fd_003']."' />";
echo "<a href='".INFUSIONS."feedback_panel/contact.php' rel='#overlay'><button type='button' class='button'>".$locale['fd_002']."</button></a>";
echo "</div>";
echo "<div class='overlay' id='overlay'>";
echo "<div class='wrap'></div>";
echo "</div>";
closeside();
?>
ajax_calender_panel:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: ajax_calender_panel.php
| Author: Nick Jones (Digitanium)
| Co-Author: bartek124
| http://www.bartek124.net
+--------------------------------------------------------+
| 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 http://www.gnu.org/licenses/agpl.html. 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."ajax_calender_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."ajax_calender_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."ajax_calender_panel/locale/polish-utf8.php";
}
add_to_head("<script type='text/javascript'>
/* Ajax Calender Panel by bartek124
* http://www.bartek124.net
* based on Calender Panel by Nick Jones (Digitanium)
* http://www.php-fusion.co.uk
*/
/* <![CDATA[ */
$(document).ready(function() {
var cur_month = $('#ajax-calender-panel input[name=\"cur_month\"]').val();
var cur_year = $('#ajax-calender-panel input[name=\"cur_year\"]').val();
$('#ajax-calender-panel input[name=\"prev_month\"]').click(function(event) {
$('#ajax-calender-panel table').stop().fadeTo('fast', 0.001, function() {
$.post('".INFUSIONS."ajax_calender_panel/ajax_calender.php', {'prev_month': true, 'cur_month': cur_month, 'cur_year': cur_year}, function(data) {
$('#ajax-calender-panel table').html(data);
cur_month = $('#ajax-calender-panel input[name=\"cur_month\"]').val();
cur_year = $('#ajax-calender-panel input[name=\"cur_year\"]').val();
$('#ajax-calender-panel table').stop().fadeTo('fast', 1.0);
});
});
event.preventDefault();
});
$('#ajax-calender-panel input[name=\"next_month\"]').click(function(event) {
$('#ajax-calender-panel table').stop().fadeTo('fast', 0.001, function() {
$.post('".INFUSIONS."ajax_calender_panel/ajax_calender.php', {'next_month': true, 'cur_month': cur_month, 'cur_year': cur_year}, function(data) {
$('#ajax-calender-panel table').html(data);
cur_month = $('#ajax-calender-panel input[name=\"cur_month\"]').val();
cur_year = $('#ajax-calender-panel input[name=\"cur_year\"]').val();
$('#ajax-calender-panel table').stop().fadeTo('fast', 1.0);
});
});
event.preventDefault();
});
});
/* ]]> */
</script>");
$internal = true;
openside($locale['cal_100']);
echo "<form id='ajax-calender-panel' style='position: relative' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>\n";
echo "<input type='submit' name='prev_month' value='<' class='button' style='position: absolute;left: 0;top: 0' />\n";
echo "<input type='submit' name='next_month' value='>' class='button' style='position: absolute;right: 0;top: 0' />\n";
echo "<table width='100%'>\n";
include INFUSIONS."ajax_calender_panel/ajax_calender.php";
echo "</table>\n";
echo "</form>\n";
closeside();
?>
Panel feedback ma coś, co psuje wszystko, bo także koliduje z pwi_panel:
<?php
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (file_exists(INFUSIONS."pwi_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."pwi_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."pwi_panel/locale/Polish-utf8.php";
}
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include INFUSIONS."pwi_panel/settings.php";
// hier wird Script eingebunden und die Optionen von latest und albums festgelegt
echo "
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<link href='".INFUSIONS."pwi_panel/js/jquery.slimbox2/jquery.slimbox2.css' rel='stylesheet' type='text/css'/>
<script src='".INFUSIONS."pwi_panel/js/jquery.slimbox2/jquery.slimbox2.js' type='text/javascript'></script>
<script src='".INFUSIONS."pwi_panel/js/jquery.blockUI.js' type='text/javascript'></script>
<link href='".INFUSIONS."pwi_panel/css/pwi.css' rel='stylesheet' type='text/css'/>
<script src='".INFUSIONS."pwi_panel/js/jquery.pwi.js' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {
$('#container_latest').pwi({
username: '$user',
mode: 'latest',
maxResults: '$panel_show_latest_number',
thumbSize: 140,
thumbCrop: 1
});
$('#container_latest_albums').pwi({
username: '$user',
albumMaxResults: '$panel_show_newest_number',
showAlbumDescription: false,
showAlbumThumbs: true,
showAlbumdate: false,
showPhotoCaption: false,
showAlbumPhotoCount: false,
photoCaptionLength: 5,
showPhotoCaptionDate: true,
onclickAlbumThumb: function (e) {
window.open('".INFUSIONS."pwi_panel/gallery.php', '_self');
}
});
$('#container_albums').pwi({
username: '$user',
mode: '',
albumThumbSize: 150,
albumMaxResults: '$album_Max_Results',
albumCrop: 1,
photoSize: 800,
maxResults: 50,
thumbSize: 64,
thumbCrop: 1,
showAlbumTitles: true,
showAlbumdate: true,
showAlbumPhotoCount: true,
showAlbumDescription: true,
showAlbumLocation: true,
showSlideshowLink: true,
showPhotoCaption: false,
showPhotoDate: true,
labels: {
photo: '".$locale['pwi113']."',
photos: '".$locale['pwi114']."',
albums: '".$locale['pwi115']."',
slideshow: '".$locale['pwi116']."',
loading: '".$locale['pwi117']."',
page: '".$locale['pwi118']."',
prev: '".$locale['pwi119']."',
next: '".$locale['pwi120']."',
devider: '".$locale['pwi121']."'
},
months: ['".$locale['pwi122']."', '".$locale['pwi123']."', '".$locale['pwi124']."', '".$locale['pwi125']."', '".$locale['pwi126']."', '".$locale['pwi127']."', '".$locale['pwi128']."', '".$locale['pwi129']."', '".$locale['pwi130']."', '".$locale['pwi131']."', '".$locale['pwi132']."', '".$locale['pwi133']."']
});
});
</script>
";
// Panel latest
if ($panel_show_latest_pics == 1) {
openside($locale['pwi111']);
echo "
<div id='container_latest'> </div>
";
closeside();
} else {
}
// Panel newest albums
if ($panel_show_newest_albums == 1) {
openside($locale['pwi104']);
echo "
<div id='container_latest_albums'> </div>
";
closeside();
} else {
}
/* // build feed URL
$feedURL = "http://picasaweb.google.de/data/feed/base/user/$user?max-results=3";
// read feed into SimpleXML object
$sxml = simplexml_load_file($feedURL);
// get album names and number of photos in each
echo "<table style='text-align: left; width: 100%;' border='0' cellpadding='2' cellspacing='2'>";
foreach ($sxml->entry as $entry) {
$title = $entry->title;
$gphoto = $entry->children('');
$numphotos = $gphoto->numphotos;
echo "<tr>
<td style='width: 22px;'><a href='".INFUSIONS."pwi_panel/gallery.php'><img style='width: 22px; height: 22px; border: 0px;' alt='albums' src='".INFUSIONS."pwi_panel/images/albums.png'></a></td>
<td><a href='".INFUSIONS."pwi_panel/gallery.php'>$title</a></td>
</tr>";
}
echo "</table>";
echo "<hr>";
echo "<center><div><a href='".INFUSIONS."pwi_panel/gallery.php'>".$locale['pwi112']."</a></div></center>";
echo "<hr>"; */
?>
|