Zobacz temat
Includowanie
|
|
Saletra |
Dodany dnia 24.01.2005 16:46:57
|
Początkujący Postów: 117 Data rejestracji: 06.11.2004 11:29 |
Mam problema.. Chce sobie includować plik: <?php include ('mb/rotator.php'; ?> 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... |
|
|
|
Wścibski Gość |
Dodany dnia 24.11.2024 21:37:01
|
Pan Kontekstualny Postów: n^x Data rejestracji: Zawsze |
|
IP: localhost | |
Riklaunim |
Dodany dnia 24.01.2005 17:58:28
|
Początkujący Postów: 244 Data rejestracji: 07.08.2004 10:53 |
pokaż jak to includujesz i dokładnie w jakim miejscu i czy w includowanym pliku jest jakieś echo (tj. coś się wyświetla) |
|
|
Saletra |
Dodany dnia 24.01.2005 18:56:53
|
Początkujący Postów: 117 Data rejestracji: 06.11.2004 11:29 |
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... |
|
|
|
Riklaunim |
Dodany dnia 24.01.2005 19:25:59
|
Początkujący Postów: 244 Data rejestracji: 07.08.2004 10:53 |
gdzie dokładnie w theme.php? |
|
|
Saletra |
Dodany dnia 24.01.2005 20:08:01
|
Początkujący Postów: 117 Data rejestracji: 06.11.2004 11:29 |
<? /************************/ /* 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'; ?></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" if (dbrows($result) != 0) { echo "<td class='content'> \n"; $i = 1; while($data = dbarray($result)) { if ($data['link_url']!="---" { if (strstr($data['link_url'], "http://" || strstr($data['link_url'], "https://") { 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" 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" : "".""; 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" { if($open=="on"{$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'\" 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"{ 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... |
|
|
Przejdź do forum: |