cały czas próbuję i nie mogę dojść do tego jak w EP IV zrobić by info o użytkowniku, dacie itp dodania newsa nie było wyświetlane na jego dole lecz pod tytułem newsa. Mam skórce Insecure:
*ponadto ciekawi mnie również czy da się zrobić tak by każdy news był wyświetlany osobno, a nie jak jest w tym momencie w jednym głównym panelu przeznaczonym dla newsów?
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Webmaster Files Theme for PHP-Fusion v6.x |
| Modified by:http://www.webmaster-files.com |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2007 |
| web: http://phpfusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "90%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>
<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><div align='right' id='clockbar'><div class='clockbarcolor'>
<div id='Clock'></div><script type='text/javascript'>
<!--
var DayNam = new Array(
'Niedziela','Poniedziałek','Wtorek','¦roda','Czwartek','Pi±tek','Sobota');
var MnthNam = new Array(
'Styczenia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca','Sierpnia','Wrze¶nia','PaĽdziernika','Listopada','Grudnia');
//-->
</script>
<script type='text/javascript' src='".THEME."clock/clock.js'></script></div></div>
<div align='right' id='pageheader'>
<table style='WIDTH: 100%; height:50px;' cellSpacing='0' cellPadding='0' border='0'><tr>
<td style='WIDTH: 45%'><a href='".BASEDIR."index.php'><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='400' height='74'></a>
</td></tr>
</table>
</div>
<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='subheader'>".showsublinks(" - ","subheader-text")."</td>
<td class='subheader' style='vertical-align:middlie;' align='right'>
<form action='".BASEDIR."search.php?stype=f' method='post'>
<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>
<td align='right'><b>Szukaj</b> <input type='text' class='input' name='stext' value='Szukaj na Forum' onBlur=\"if(this.value=='') this.value='Szukaj na Forum';\" onFocus=\"if(this.value=='Szukaj na Forum') this.value='';\">
<input name='option' class='submit' type='submit' value='Szukaj'>
</td></tr>
</table>
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."\n";
if ($license == false) {
echo "<br>Powered by <a href='http://www.php-fusion.co.uk' class='breadcrumb' target='_blank' style='color:#EDEDED;'>PHP-Fusion</a> || EP IV by <a href='http://www.extreme-fusion.pl' target='_blank' style='color:#EDEDED;'>eXtreme Crew</a> || Theme by: <a target='_blank' href='http://phpfusion-themes.com'><font color='#EDEDED'>Fuzed Themes</font></a><br><br>\n";
}
echo number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['140']."<br>\n" : $locale['141']."<br>\n")."";
echo "</td></tr></table></td></tr></table>\n";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div>
</td></tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellSpacing='0' cellPadding='0' border='0'><tr>
<td align='center'>";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info," ·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>$news</td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellSpacing='0' cellPadding='0' border='0'><tr><td align='center'>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
}
function opentable($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' vAlign='top'>";
}
function closetable() {
echo "</td></tr>
</table>\n";
}
function openside($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' vAlign='top'>";
}
function closeside() {
echo "</td></tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
<td align='right' class='tableHeadingBG'>".panelbutton($state,$boxname)."</td>
</tr>
<tr><td class='td-cell1' vAlign='top' colspan='2'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td></tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
|