o kurde ...... no zaćma pisałem, dzięki.
PS. PW nie aktualne.
mam bląd:
Fatal error: Call to undefined function openform() in /home/freehost/p/o/polsilver/www/themes/Skull/theme.php on line 140
czyli wyświetla mi pierwszego niusa z obrazkiem w belce i... nie ma podsumowania i kolejnych newsów.
a tak wyglądają linie 139,140,141
<td colspan='2' align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
na domiar złego znikaja panele z prawej strony ...
po usunieciu lini 140 wyswietla wszystkie newsy tylko bez podsumowania :(
nie mam tej lini theme_functions_include.php
tak wyglada kod theme.php
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2006 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Theme Skull for PHP-Fusion v6 |
|---------------------------------------------|
| Designed By: Fusion-Themes © 2006 |
| Author: Dusty Edwards aka uctxs |
| web: http://fusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#6B5B44";
$body_bg = "#ccb69e";
$theme_width = "900";
$theme_width_l = "155";
$theme_width_r = "155";
function render_header($header_content) {
global $theme_width,$settings;
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
echo "<td width='100%' valign='top'></td>
<tr>
<td>
<center><table width='900' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:0px;'>
<table width='900' cellspacing='0' cellpadding='0'>
<tr>
<td><center><img src='".THEME."images/920.jpg' alt=''' title='".$settings[sitename]."'></center></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='900' cellspacing='1' cellpadding='1'>\n<tr>
<td class='white'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " ·\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo "<td align='right' id='clockbar'><div class='white'><font color='#ccb69e'><div id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var MnthNam = new Array(
'January','February','March','April','May','June','July','August','September','October','November','December');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>";
echo "<div align='right' id='white'>";
echo ($i == 0 ? " " : "")."</td><td align='right' id='clockbar'><div class='white'></td>
</tr>
</table>\n";
echo "<table width='900' cellspacing='1' cellpadding='1'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='5' cellspacing='2' width='900'>
<tr>
<td class='footer-x'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='5' cellspacing='2' width='900'>
<tr>
<td align='left' class='footer'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<td align='center' class='footer'>Skull By: <img src='".THEME."images/fusionthemes.gif' alt='Fusion-Themes' title='UCTXs Creative Networks' border='0' style='vertical-align:middle;'><td align='right' class='footer'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a>".$settings['']."</td>\n";
}
echo "</td><a href='#top'><center><img src='".THEME."images/bullet.gif' alt='Back To Top' border='0'> Back To Top <img src='".THEME."images/bulletb.gif' alt='Back To Top' border='0'></center></a></td>\n";
echo "</td><br><center><i>Best Viewed 1280x1024</i></center></a>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
$grafika = "<img src='".IMAGES."belka.gif'>";
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain' width='50%'>$subject</td>
<td class='capmain' width='50%' align='right'>$grafika</td>
</tr>
<tr>
<td colspan='2' class='main-body'>$news</td>
</tr>
<tr>
<td colspan='2' align='center' class='news-footer'>\n";
echo "</td>
</tr>
</table>\n";
}
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ·
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "");
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])." ·\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
<tr>
<td colspan='2' height='8' class='side-base'> </td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Edytowane przez polsilver dnia 18.07.2007 16:10:16
|