Przedszkolak
Postów: 62 Ostrzeżeń: 5
v7.02.05 Data rejestracji: 16.02.2012 13:21
|
Witam. Zainstalowałem wtyczkę "pwi infusion 4" i niestety "gryzie" się ona z inną wtyczką: Feedback. Gdy wyłączę pwi-panel, wszystko wraca do porządku. Przez wtyczkę feedpack_panel warjuje mi także ajax_calender_panel, a mianowicie przy przeładowaniu miesięcy odświeża całą stronę zamiast tylko sam panel.
Oto 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>"; */
?>
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();
?>
A to strona, na której to się dzieje: http://37cdwpomar...
PW od moderatora:
- Przeniesienie posta - Pieka 06.04.2012 16:13
Edytowane przez 119955 dnia 06.04.2012 22:40:57
|