Treść artykułu nie jest wyświetlana
|
Pruzio |
Dodany dnia 07.04.2007 12:58:49
|
Początkujący
Postów: 177
Data rejestracji: 17.03.2006 19:10
|
Witam,
Kiedy dodaje artykuł wszystko jest w porządku, nawet na podglądzie artykułu wyświetla się treść ale jak dodam ten artykuł i wejdę do tego artykułu to nie wyświetla się treść :(
Mój theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#61873D";
$body_bg = "#E3E3E3";
$theme_width = "100%";
$theme_width_l = "40";
$theme_width_r = "40";
function render_header($header_content) {
global $theme_width,$settings;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_01.gif\" WIDTH=30 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"515\" height=\"54\" id=\"nav\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/nav.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/nav.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"515\" height=\"54\" name=\"nav\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_03.gif\" WIDTH=28 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/hd/stretch.gif\" WIDTH=100% HEIGHT=250>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"167\" height=\"250\" id=\"rightlogo\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/rightlogo.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/rightlogo.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"167\" height=\"250\" name=\"rightlogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/stretch2.gif\" WIDTH=4 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_07.gif\" WIDTH=24 HEIGHT=250 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"515\" height=\"168\" id=\"hd1\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/hd1.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/hd1.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"515\" height=\"168\" name=\"hd1\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/hd/Gamer17_hd_09.gif\" WIDTH=515 HEIGHT=28>";
echo" <center></center></TD>";
echo" </TR>";
echo"</TABLE>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"23\" background=\"".THEME."images/left_bar.gif\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"23\" background=\"".THEME."images/right_bar.gif\"> </td>
</tr>
</table>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_01.gif\" WIDTH=539 HEIGHT=20 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/ft/STRETCH.gif\" WIDTH=100% HEIGHT=100>";
echo" </TD>";
echo" <TD COLSPAN=9 ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_03.gif\" WIDTH=220 HEIGHT=83 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_04.gif\" WIDTH=29 HEIGHT=80 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/ft/copyright.gif\" WIDTH=510 HEIGHT=63 ALT=\"\">";
if ($license == false) {
echo "<center>Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> © 2003-2006</center><br><center><font class='visits'><b>".$settings['counter']." </b>Unique Visits</font></center>";
}
echo "</td>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_06.gif\" WIDTH=510 HEIGHT=17 ALT=\"\"></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_07.gif\" WIDTH=22 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_08.gif\" WIDTH=33 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_09.gif\" WIDTH=37 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_10.gif\" WIDTH=22 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_11.gif\" WIDTH=29 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_12.gif\" WIDTH=4 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_13.gif\" WIDTH=10 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_14.gif\" WIDTH=15 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_15.gif\" WIDTH=48 HEIGHT=17 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function render_news($subject, $news, $info) {
global $locale;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>$news<br><br><hr>
<img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$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'></a></td>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function render_article($subject, $article, $info) {
global $locale;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>$news<br><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>".newsposter($info)."</td><hr>
<td align='right' class='infobar2'>".openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td></tr>
</table></td>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function opentable($title) {
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>";
}
function closetable() {
echo" </TD>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function openside($title) {
echo"<TABLE WIDTH=200 BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_01.gif\" WIDTH=200 HEIGHT=14 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_02.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/blocks/title.gif\" WIDTH=170 HEIGHT=20>";
echo" <b><center><font color=\"#9D0000\" face=Verdana font-size:9pxna;>$title</b></font></center></TD>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_04.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_05.gif\" WIDTH=145 HEIGHT=13 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/blocks/lt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" <TD background=\"".THEME."images/blocks/msg.gif\" WIDTH=\170\" VALIGN=\"TOP\">";
}
function closeside() {
echo"</TD>";
echo" <TD background=\"".THEME."images/blocks/rt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" </TR>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_09.gif\" WIDTH=200 HEIGHT=22 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo"<TABLE WIDTH=175 BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_01.gif\" WIDTH=175 HEIGHT=14 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_02.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/blocks/title.gif\" WIDTH=145 HEIGHT=20>";
echo" <b><center><font color=\"#9D0000\" face=Verdana font-size:9pxna;>$title</b></font></center></TD>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_04.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_05.gif\" WIDTH=145 HEIGHT=13 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/blocks/lt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" <TD background=\"".THEME."images/blocks/msg.gif\" WIDTH=\145\" VALIGN=\"TOP\">";
}
function closesidex() {
echo"</TD>";
echo" <TD background=\"".THEME."images/blocks/rt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" </TR>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_09.gif\" WIDTH=175 HEIGHT=22 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
Coś tutaj jest nie tak jak powinno być ? Moja strona to http://kncs.ovh.o...
Pozdrawiam |
|
|
|
Wścibski Gość |
Dodany dnia 24.11.2024 18:56:00
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
jantom |
Dodany dnia 07.04.2007 13:18:57
|
Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Masz skopaną funkcję render_article. Proponuję ją zmienić na coś takiego:
function render_article($subject, $article, $info) {
global $locale;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>".articleposter($info)."</td><hr>
<td align='right' class='infobar2'>".openform("A",$info['news_id']).articleopts($info,"·").closeform("A",$info['article_id'])."</td></tr>
</table></td>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
} Obok tego poprawiłem stopki w artach - nie wiem dlaczego były w nich odniesienia do newsów. |
|
|
|
Pruzio |
Dodany dnia 09.04.2007 14:51:20
|
Początkujący
Postów: 177
Data rejestracji: 17.03.2006 19:10
|
Bardzo dziękuję Działa
Edytowane przez Pruzio dnia 09.04.2007 15:39:59
|
|
|
|
IndeX148 |
Dodany dnia 29.04.2007 10:40:44
|
Przedszkolak
Postów: 11
Data rejestracji: 11.04.2007 12:41
|
Żeby nie tworzyć nowego tematu napisze tutaj... Ja mam troche inny problem. Otóż jak pisze jakiegoś krótkiego newsa lub artykuł to działa podgląg i normalnie można wszystko dodawać. Jednak kiedy artykuł czy news jest dłuższy to kiedy naciskam podgląd to cała treść mi się kasuje i musze pisać od nowa Tosamo jest z nowymi tematami i postami Co mam z tym zrobić ?? Który plik pokazać żebyście powiedzieli co może być źle??
Edytowane przez szer dnia 29.04.2007 10:50:05
|
|
|
|
szer |
Dodany dnia 29.04.2007 10:51:21
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Długa treść to znaczy ile? W bazie danych do tych pól, gdzie wpisujemy treść dodano typ: TEXT. Jeśli Ci to pomoże to możesz ustawić na LONGTEXT |
|
|
|
IndeX148 |
Dodany dnia 29.04.2007 11:01:24
|
Przedszkolak
Postów: 11
Data rejestracji: 11.04.2007 12:41
|
Ale gdzie to poprawić bo w wielu sprawach jestem jeszcze zielony
Sorry że pisz drugi raz pod rząd ale zależ mi na naprawie tego błędu Co i gdzie mam zrobić aby usunąć te usterke ??
Edytowane przez IndeX148 dnia 29.04.2007 11:32:42
|
|
|
|
szer |
Dodany dnia 29.04.2007 11:48:49
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Wejdź w phpMyAdmin... Wogóle o zamianie typów pól było na forum, więc radzę poszukać! |
|
|
|
mw91 |
Dodany dnia 16.07.2007 21:52:36
|
Przedszkolak
Postów: 21
Data rejestracji: 16.07.2007 21:47
|
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
Witam i przepraszam ze odkopuję stare dzieje ale jak napisze artykuł i jak daje podgląd to wyświetla normalnie ładnie pięknie a jak już chcę obejrzeć po zapisaniu w katalogu artykuły to mi wyświetla sie tak
Co jest źle bo ja nie wiem bo jestem początkujący w tym i zielony. proszę o pomoc w tej sprawie.. z góry dziękuje :D
Edytowane przez mw91 dnia 21.07.2007 15:18:48
www.scisquad.c0.pl
|
|
|