ForumCała strona

Nawigacja

Aktualnie online

Gości online: 22

Użytkowników online: 0

Łącznie użytkowników: 25,393
Najnowszy użytkownik: Assassin

Logowanie

Nazwa użytkownika

Hasło



Zarejestruj się

Odzyskaj hasło

Shoutbox

Musisz zalogować się, aby móc dodać wiadomość.

JazOOn
06.12.2024 23:45:46
Amen

Zbigniew@
17.11.2024 11:33:24
Nie ten grzeszy kto pije, ale ten, kto się nie upije.

JazOOn
16.11.2024 20:46:18
tja

Zbigniew@
15.11.2024 18:58:17
Kto pije, ten nie bije.

JazOOn
31.10.2024 20:49:47
Kto pije?

Pobierz nową wersję
Pobierz podręcznik
Zobacz inne oficjalne Supporty
Statystyki supportu
PHP-Fuson PL na Facebooku

RSS

Polecamy hosting SferaHost.pl

Zobacz temat

 Drukuj temat
Includowanie
Saletra
Mam problema..

Chce sobie includować plik:
<?php include ('mb/rotator.php'Wink; ?>


I jak dodam to polecenie do theme.php (tam potrzebuje) to nic sie nie dzieje.

Bede wdzieczny za pomoc.
| Rób, co chcesz - http://www.moj-po... |
 
http://www.moj-portal.pl
Wścibski Gość
Dodany dnia 22.12.2024 09:32:08
Pan Kontekstualny

Postów: n^x
Data rejestracji: Zawsze

Polecamy hosting SferaHost.pl
IP: localhost  
Riklaunim
pokaż jak to includujesz i dokładnie w jakim miejscu i czy w includowanym pliku jest jakieś echo (tj. coś się wyświetla)
 
http://www.cms.rk.edu.pl
Saletra
To jest rotator banerow. Uzywam LorkanThemes. Zapytalem shedrock'a gdzie mam wstawic kod zeby baner sie wyswietlal w prawym gorym rogu. Powiedzial mi ze w theme.php:

echo "<td width='40%' background='".FUSION_THEME."images/cellpic_bkg.jpg' height='110'>KOD BANERA</td>


Tyle ze z kodem banera nie ma problemu. Potrzebuje rotator i musze includowac. I wlasnie jak wstawie tam include do pliku to nic sie nie dzieje.

P.S. Wiedzialem ze tylko ty bedziesz cos wiedzial.



Edytowane przez Saletra dnia 24.01.2005 18:58:24
| Rób, co chcesz - http://www.moj-po... |
 
http://www.moj-portal.pl
Riklaunim
gdzie dokładnie w theme.php? Pfft
 
http://www.cms.rk.edu.pl
Saletra
<?
/************************/
/* Theme Settings */
/************************/

$body_text = "#000000";
$body_bg = "#E9EBE7";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table class='bodyline' width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='60%' background='".FUSION_THEME."images/cellpic_bkg.jpg' height='110'><a href='".FUSION_BASE."index.php'><img src='".FUSION_THEME."images/logo.jpg' border='0' alt='$sitename'></td>";
echo "<td width='40%' background='".FUSION_THEME."images/cellpic_bkg.jpg' height='110'></td>";
echo "<td width='40%' background='".FUSION_THEME."images/cellpic_bkg.jpg' height='110'><?php include ('mb/rotator.php'Wink; ?></td>";


echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0' background='".FUSION_THEME."images/cellpic_nav.gif'>";
$result = dbquery("SELECT * FROM ".FUSION_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order"Wink;
if (dbrows($result) != 0) {
echo "<td class='content'> \n";
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---"Wink {
if (strstr($data['link_url'], "http://"Wink || strstr($data['link_url'], "https://"Wink) {
echo "<a href='".$data['link_url']."' class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".FUSION_BASE.$data['link_url']."' class='white'>".$data['link_name']."</a>";
}
}
if ($i != dbrows($result)) { echo " r6;\n"; } else { echo "\n"; } $i++;
}
echo "</td>\n";
}

echo "<td width='210' nowrap><div align='right'><font class='content'><font class='date'><strong>".ucwords(showdate("%A, %B %d, %Y", time()))."";
echo "   </font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#EDEEEC' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='footer'>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table>";
echo "<div align='center'>";
echo "<table width='$theme_width' cellpadding='3' cellspacing='0' width='100%'>";
echo "<tr><td align='center' class='footer2'>";
echo "".$settings['counter']." ".($settings['counter'] == 1 ? LAN_140."<br><br>\n" : LAN_141."<br><br>\n"Wink;
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v".sprintf("%.2f", $settings['version']/100)." © 2003-2004<br><br>\n";
}
echo "</td></tr><tr><td align='center' class='footer2'>";
echo "<table border='1' cellspacing='0' style='border-collapse: collapse' bordercolor='#92A382' width='30%'>";
echo "<tr><td width='100%'><div align='center'>Theme Designed by: ";
echo "<a target='_blank' href='http://phpfusion.org'>Brimstone</a>";
echo "</td></tr></table></td></tr></table></center></div>\n";
}

function render_news($subject, $news, $info) {

echo "<table border='0' style='border: 1px solid #C9D0C2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".FUSION_THEME."images/cellpic3.gif' height='24'><img border='0' src='".FUSION_THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".LAN_40."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".LAN_41.showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".LAN_42."</a> ·\n" : ""Wink."";
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].LAN_43."</a> · ";
echo "".$info['news_reads'].LAN_44." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

echo "<table border='0' style='border: 1px solid #C9D0C2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".FUSION_THEME."images/cellpic3.gif' height='24'><img border='0' src='".FUSION_THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' 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 "".LAN_40."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".LAN_41.showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "<a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].LAN_43."</a> · ";
echo "".$info['article_reads'].LAN_44." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #C9D0C2'>";
echo "<tr><td bgcolor='#AFB6A6' height='24'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
echo "</td></tr></table>\n";
}

function openside($title) {

echo "<table border='0' style='border: 1px solid #C9D0C2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".FUSION_THEME."images/cellpic3.gif'>";
echo "<img border='0' src='".FUSION_THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#C9D0C2' class='side-body' width='100%'>";
}

function closeside() {
echo "</td></tr></table>";
tablebreak();
}

function opensidex($title,$open="on"Wink {

if($open=="on"Wink{$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #C9D0C2' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".FUSION_THEME."images/cellpic3.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title'Wink\" name='b_$title' border='0' src='".FUSION_THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#D1D6CC' class='side-body'width='100%' '".FUSION_THEME."images/back1.gif'>";
echo "<div id='box_$title'"; if($open=="off"Wink{ echo "style='display:none'"; } echo ">\n";
}


function closesidex() {

echo "</div></td></tr></table>";
tablebreak();
}

// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>

Ale pamietaj ze to theme od tych LorkanThemes. Chodzi mi o 21 linijke (pogrubilem).
| Rób, co chcesz - http://www.moj-po... |
 
http://www.moj-portal.pl
Przejdź do forum:
Created by Arox Copyright (C) 2004
Copyright (C) 2004 - 2018 Ekipa PHP-Fusion.pl