Master Ads Panel w theme
|
skysis |
Dodany dnia 11.12.2006 23:42:09
|
Początkujący
Postów: 163
Data rejestracji: 09.09.2006 10:42
|
Witam,
Mam głupi problem a mianowicie :
-Zainstalowałem Master AdS panel
i teraz mam mały problem z umieszczeniem tego :
include(INFUSIONS.'master_ads_panel/master_ads.php');
Tak by było jak tutaj header prawa strona.
Jak wpisuje w te miejsce pojawia sie text ;-(
Moglibysie mi to jakos wpasowac dla was to minutka a ja juz siedze 2 godziny i prubuje:D
PS: Wiem ze były podobne tematy ale w nich nie moglem znalesc sadysfakcjonujacej odpowiedzi..
Oto theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHP-Fusion 6 - 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Photone Theme for PHP-Fusion v6+ |
|---------------------------------------------|
| author: Fuzed Themes - Shedrock © 2006/7 |
| web: http://phpfusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#E8E8E8";
$theme_width = "100%";
$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, $aidlink;
echo "<script language='JavaScript' type='text/javascript' src='".THEME."js/global.js'></script>
<script language='JavaScript' type='text/javascript' src='".THEME."js/menu.js'></script>
<table border='0' align='center' width='100%' cellspacing='0' cellpadding='0' class='header-table'>
<tr><td width='100%' height='104' class='header-td'>
<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr><td width='402'><a href='".BASEDIR."index.php'><img title='".$settings[sitename]."' alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' width='402' height='104'></a></td>
<td align='right' style='background-image:url(".THEME."images/topback.jpg);'>
<img alt='' src='".THEME."images/pixel.gif' width='6' height='0'>
</td></tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td height='25' valign='middle' align='left' style='background-image:url(".THEME."images/menu_bar_back.gif);'>
<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td nowrap align=center><a href='".BASEDIR."index.php'><img alt='' src='".THEME."images/home.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'></td>
<td nowrap align=center><a href='".BASEDIR."forum/index.php'><img alt='' src='".THEME."images/forum.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'></td>
<td nowrap align=center><a href='".BASEDIR."photogallery.php'><img alt='' src='".THEME."images/gallery.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'>";
include LOCALE.LOCALESET."global.php";
//Account Code
if (iMEMBER) {
echo " <a href='#goto_account' id='account'><img alt='' src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img alt='' src='".THEME."images/menu_bar_div.gif'>
<div class='lkmenu_popup' id='account_menu' style='display:none'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td style='background-image:url(".THEME."images/header.gif);' height='27'><img alt='' align='left' src='".THEME."images/icon_account.gif'>User Options<a name='goto_account'></a>
</td></tr>
<tr><td><span class='lkmenu_text'>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n
</span>
</td></tr>
</table>
</div>";
} else {
echo " <a href='".BASEDIR."register.php'><img alt='' src='".THEME."images/register.gif'></a> <img alt='' src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img alt='' src='".THEME."images/downloads.gif'></a> <img alt='' src='".THEME."images/menu_bar_div.gif'> ";
include THEME."locale/english.php";
//Search Code
echo "<a href='#goto_forumsearch' id='forumsearch'><img alt='' src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img alt='' src='".THEME."images/menu_bar_div.gif'>
<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>
<div class='lkmenu_popup' id='forumsearch_menu' style='width:550px; display:none'>
<form action='".BASEDIR."search.php' method='post'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td style='width:550px;' class='panel-sides'><img alt='' align='left' src='".THEME."images/icon_search.gif'><center>Search Menu</center><a name='goto_forumsearch'></a>
</td></tr>
<tr><td style='width:550px;'><span class='lkmenu_text'>Search for Keywords:</span><hr>";
if ($stype == "") $stype = "n";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:200px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>
<input type='submit' name='search' value='".$locale['SCH_01']."' class='button'><br>
".$locale['SCH_01']."<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['SCH_03']."
<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['SCH_02']."
<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['SCH_03']."
<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['SCH_04']."
<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['SCH_05']."
<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['SCH_06']."
<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['SCH_07']."
</td></tr>
</table>
</form>
</div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img alt='' src='".THEME."images/logout.gif'></a>";
} else {
echo "<a href='#goto_login' id='login'> <img alt='' src='".THEME."images/login.gif'></a><script type='text/javascript'>lkmenu_register('login');</script>
<div class='lkmenu_popup' id='login_menu' style='display:none'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td class='panel-sides'><img alt='' align='left' src='".THEME."images/icon_login.gif'><center>User Login<a name='goto_login'></a>
</td></tr>
<tr><td width='170'><font class='lkmenu_text'>
<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."register.php' class='side'>".$locale['065']."</a><br>\n";
}
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."lostpassword.php' class='side'></a>".$locale['066']."
</div>
</td></tr>
</table>
</form>
</div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>
</td></tr>
</table>
<td style='background-image:url(".THEME."images/menu_bar_back.gif); padding-right:6px;' valign='middle' align='right'>
<span class='date'>".showsubdate()."</span>
</td></tr>
</table>
<table width='100%' cellpadding='4' class='table2' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr></table>
<table border='0' cellspacing='0' width='100%' cellpadding='0'><tr>
<td align='center' width='100%' class='footer-td' colspan='3'>";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
By Skysis. theme:Fuzed Themes.
</td></tr>
</table>
</td></tr>
</table>";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>
<td class='capmain'> <font class='news-title'>$subject</font>
</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>$news</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='news-footer'>";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info," ·").closeform("N",$info['news_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>
<td class='capmain'> <font class='news-title'>$subject</font>
</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='news-footer'>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' class='table' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides' width='100%'>$title</td></tr>
<tr><td class='main-body'width='100%'>";
}
// Close table end
function closetable() {
echo "</td></tr>
</table>\n";
}
function openside($title) {
echo "<table border='0' class='table' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides' width='100%'>$title</td></tr>
<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr>
</table>";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table class='table' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides'>$title</td>
<td align='right' class='panel-sides'>".panelbutton($state,$boxname)."</td></tr>
<tr><td class='side-body' width='100%' colspan='2'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\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";
}
?>
Edytowane przez Pieka dnia 12.12.2006 00:14:26
|
|
|
|
Wścibski Gość |
Dodany dnia 10.01.2025 22:03:44
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Pieka |
Dodany dnia 11.12.2006 23:54:25
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Jak nazywa sie to theme?
Sprawdz to:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHP-Fusion 6 - 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Photone Theme for PHP-Fusion v6+ |
|---------------------------------------------|
| author: Fuzed Themes - Shedrock © 2006/7 |
| web: http://phpfusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#E8E8E8";
$theme_width = "100%";
$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, $aidlink;
echo "<script language='JavaScript' type='text/javascript' src='".THEME."js/global.js'></script>
<script language='JavaScript' type='text/javascript' src='".THEME."js/menu.js'></script>
<table border='0' align='center' width='100%' cellspacing='0' cellpadding='0' class='header-table'>
<tr><td width='100%' height='104' class='header-td'>
<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr><td width='402'><a href='".BASEDIR."index.php'><img title='".$settings[sitename]."' alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' width='402' height='104'></a></td>
<td align='right' style='background-image:url(".THEME."images/topback.jpg);'>";
include(INFUSIONS.'master_ads_panel/master_ads.php');
echo "<img alt='' src='".THEME."images/pixel.gif' width='6' height='0'>
</td></tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td height='25' valign='middle' align='left' style='background-image:url(".THEME."images/menu_bar_back.gif);'>
<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td nowrap align=center><a href='".BASEDIR."index.php'><img alt='' src='".THEME."images/home.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'></td>
<td nowrap align=center><a href='".BASEDIR."forum/index.php'><img alt='' src='".THEME."images/forum.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'></td>
<td nowrap align=center><a href='".BASEDIR."photogallery.php'><img alt='' src='".THEME."images/gallery.gif'></a></td>
<td nowrap><img alt='' src='".THEME."images/menu_bar_div.gif'>";
include LOCALE.LOCALESET."global.php";
//Account Code
if (iMEMBER) {
echo " <a href='#goto_account' id='account'><img alt='' src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img alt='' src='".THEME."images/menu_bar_div.gif'>
<div class='lkmenu_popup' id='account_menu' style='display:none'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td style='background-image:url(".THEME."images/header.gif);' height='27'><img alt='' align='left' src='".THEME."images/icon_account.gif'>User Options<a name='goto_account'></a>
</td></tr>
<tr><td><span class='lkmenu_text'>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n
</span>
</td></tr>
</table>
</div>";
} else {
echo " <a href='".BASEDIR."register.php'><img alt='' src='".THEME."images/register.gif'></a> <img alt='' src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img alt='' src='".THEME."images/downloads.gif'></a> <img alt='' src='".THEME."images/menu_bar_div.gif'> ";
include THEME."locale/english.php";
//Search Code
echo "<a href='#goto_forumsearch' id='forumsearch'><img alt='' src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img alt='' src='".THEME."images/menu_bar_div.gif'>
<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>
<div class='lkmenu_popup' id='forumsearch_menu' style='width:550px; display:none'>
<form action='".BASEDIR."search.php' method='post'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td style='width:550px;' class='panel-sides'><img alt='' align='left' src='".THEME."images/icon_search.gif'><center>Search Menu</center><a name='goto_forumsearch'></a>
</td></tr>
<tr><td style='width:550px;'><span class='lkmenu_text'>Search for Keywords:</span><hr>";
if ($stype == "") $stype = "n";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:200px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>
<input type='submit' name='search' value='".$locale['SCH_01']."' class='button'><br>
".$locale['SCH_01']."<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['SCH_03']."
<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['SCH_02']."
<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['SCH_03']."
<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['SCH_04']."
<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['SCH_05']."
<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['SCH_06']."
<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['SCH_07']."
</td></tr>
</table>
</form>
</div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img alt='' src='".THEME."images/logout.gif'></a>";
} else {
echo "<a href='#goto_login' id='login'> <img alt='' src='".THEME."images/login.gif'></a><script type='text/javascript'>lkmenu_register('login');</script>
<div class='lkmenu_popup' id='login_menu' style='display:none'>
<table cellpadding='4' cellspacing='0' border='0'><tr>
<td class='panel-sides'><img alt='' align='left' src='".THEME."images/icon_login.gif'><center>User Login<a name='goto_login'></a>
</td></tr>
<tr><td width='170'><font class='lkmenu_text'>
<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."register.php' class='side'>".$locale['065']."</a><br>\n";
}
echo "<img alt='' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."lostpassword.php' class='side'></a>".$locale['066']."
</div>
</td></tr>
</table>
</form>
</div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>
</td></tr>
</table>
<td style='background-image:url(".THEME."images/menu_bar_back.gif); padding-right:6px;' valign='middle' align='right'>
<span class='date'>".showsubdate()."</span>
</td></tr>
</table>
<table width='100%' cellpadding='4' class='table2' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr></table>
<table border='0' cellspacing='0' width='100%' cellpadding='0'><tr>
<td align='center' width='100%' class='footer-td' colspan='3'>";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
By Skysis. theme:Fuzed Themes.
</td></tr>
</table>
</td></tr>
</table>";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>
<td class='capmain'> <font class='news-title'>$subject</font>
</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>$news</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='news-footer'>";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info," ·").closeform("N",$info['news_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>
<td class='capmain'> <font class='news-title'>$subject</font>
</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='news-footer'>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' class='table' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides' width='100%'>$title</td></tr>
<tr><td class='main-body'width='100%'>";
}
// Close table end
function closetable() {
echo "</td></tr>
</table>\n";
}
function openside($title) {
echo "<table border='0' class='table' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides' width='100%'>$title</td></tr>
<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr>
</table>";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table class='table' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>
<td class='panel-sides'>$title</td>
<td align='right' class='panel-sides'>".panelbutton($state,$boxname)."</td></tr>
<tr><td class='side-body' width='100%' colspan='2'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\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";
}
?>
Jestem jaki jestem
|
|
|
|
skysis |
Dodany dnia 12.12.2006 00:03:56
|
Początkujący
Postów: 163
Data rejestracji: 09.09.2006 10:42
|
Photone - nazwa thema
Działa.
Pieka jestes wielki "D
Olbrzymie podziekowania
|
|
|
|
Texas |
Dodany dnia 13.12.2006 21:01:41
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
Odswieze troche temat, tez mam problem bo wyskakuje mi cos takiego:
http://www.cod2revenge.xt.pl
|
|
|
|
Pieka |
Dodany dnia 13.12.2006 21:11:54
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Wstaw poprawnie, to bedzie OK.
Dziala prawidlowo na YoYo: http://www.pieka....
Jestem jaki jestem
|
|
|
|
Texas |
Dodany dnia 13.12.2006 21:28:12
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
To moj theme.php
<?
//************************************************************************************************************************//
// Theme Name: Generation-X Theme for PHP-Fusion 6.xx
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)
// version 2.0
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright © 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfusion.org/forum/viewforum.php?forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//
/************************/
/* Theme Settings */
/************************/
$body_text = "#D7DCE9";
$body_bg = "#34353B";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
//echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table 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 "<table align='center' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"; echo "<td align='center' width='100%' background='".THEME."images/cellpic_bkg.jpg' height='110'><a href='".BASEDIR."index.php'><img src='".THEME."images/logo.jpg' border='0' title='".$settings[sitename]."'></td>";
echo "<td width='100%' background='".THEME."images/cellpic_bkg.jpg' height='110'></td>
</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'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> "; } 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."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td align='right' class='cellpic' nowrap><strong>".ucwords(showdate($settings['subheaderdate'], time()))."</strong>";
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='#34353B' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
echo "<tr><td class='footer' valign='middle' width='35%'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</td>";
echo "<td class='footer' align='center' width='22%'>";
echo "The <span class='stats'>Gen-X</span> Theme by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td class='footer' align='right' width='33%'><span class='stats'><b>".$settings['counter']."</b></span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".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 "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].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']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<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>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".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 "".$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']."' 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 #191928'>";
echo "<tr><td background='".THEME."images/cellpic2.gif' bgcolor='#34353B' height='22'><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 #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='100%' background='".THEME."images/panfoot.gif'> </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 #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".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";
}
?>
Moglbys mi wstawic:
include(INFUSIONS.'master_ads_panel/master_ads.php');
tak zeby reklamy nie jezdzily do gory i byly wyswietlane po prawej stronie pod shoutboxem.
http://www.cod2revenge.xt.pl
|
|
|
|
Pieka |
Dodany dnia 13.12.2006 21:57:07
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Wstaw go do panela, a panel pod shoutboxem.
Jestem jaki jestem
|
|
|
|
Texas |
Dodany dnia 14.12.2006 18:02:07
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
Ehh wstawiam do panelu i dalej wyskakuje to co napisalem wyzej.
a w instrukcji jak instalowac jest napisane:
modyfikujemy wybrany przez siebie szablon wyglądu strony dodając w odpowiednie miejsce następujący fragment kodu, odpowiedzialny za wyświetlanie reklamy:
include(INFUSIONS.'master_ads_panel/master_ads.php';
a ja nic nie rozumiem :/
http://www.cod2revenge.xt.pl
|
|
|
|
m_i_n |
Dodany dnia 14.12.2006 18:15:04
|
Bywalec
Postów: 836 Pomógł: 3
Data rejestracji: 15.02.2006 10:04
|
Wycinek z mojego thema z wstawionym kodem:
.....
<tr>
<td width='500' align='center'>");
include(INFUSIONS.'master_ads_panel/master_ads.php');
print("</td>
</tr>
.....
Edytowane przez m_i_n dnia 14.12.2006 18:15:31
|
|
|
|
Pieka |
Dodany dnia 14.12.2006 18:25:03
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Texas napisał/a:
Ehh wstawiam do panelu i dalej wyskakuje to co napisalem wyzej. :O
a w instrukcji jak instalowac jest napisane:
modyfikujemy wybrany przez siebie szablon wyglądu strony dodając w odpowiednie miejsce następujący fragment kodu, odpowiedzialny za wyświetlanie reklamy:
include(INFUSIONS.'master_ads_panel/master_ads.php');
a ja nic nie rozumiem :/
Wez moze ksiazke i poczytaj, bo jesli masz problem z rzeczami oczywistymi i podawanymi gotowymi rozwiazaniami, to gdzie tu sens?
Szkoda sie meczyc.
Ponizej podaje kod panela, po raz... Szkoda gadac.
openside("name");
include(INFUSIONS.'master_ads_panel/master_ads.php');
closeside();
Jestem jaki jestem
|
|
|
|
Texas |
Dodany dnia 14.12.2006 20:33:37
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
Dzieki za pomoc jeszcze raz Pieka.
Dodam ze mam 15 lat i pierwszy raz bawie sie w PHP....
Ty pewnie po studiach to sie znasz
Pomozcie mi w tym temacie:
http://www.php-fu...ad_id=9160
http://www.cod2revenge.xt.pl
|
|
|
|
Pieka |
Dodany dnia 14.12.2006 20:45:53
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Texas napisał/a:
Dzieki za pomoc jeszcze raz Pieka.
Dodam ze mam 15 lat i pierwszy raz bawie sie w PHP....
Chodzi o to, ze opisywalismy to w tym temacie oraz calej masie innych, do tego bardzo dokladnie i przystepnie.
Ty pewnie po studiach to sie znasz
A wlasnie, ze nie
Prosze nie kontynuowac off. Masz rozwiazanie, wiec close.
Jestem jaki jestem
|
|
|
|
Texas |
Dodany dnia 15.12.2006 19:53:31
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
Jeszcze jeden problem :/ wyswietla mi tylko jedna reklame :/
http://www.cod2revenge.xt.pl
|
|
|
|
Pieka |
Dodany dnia 15.12.2006 20:09:12
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
W jakim sensie? Nie rotuje, czy masz na mysli wszystkie include = jedna reklama?
Jestem jaki jestem
|
|
|
|
skysis |
Dodany dnia 15.12.2006 21:33:06
|
Początkujący
Postów: 163
Data rejestracji: 09.09.2006 10:42
|
Hymm mi sie wydaje ze do tego co tam masz wystarczył by button panel ale mniejsza.
Czytajac te posty nasuwa mi sie pytanie ...
A ile reklam wzuciłes?
|
|
|
|
Texas |
Dodany dnia 15.12.2006 22:14:20
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
To tak, mam dwie reklamy i wyswietlaja sie na zmiane a chcialbym zeby wyswietlaly sie te co umieszcze na raz jedna pod druga.
Czasami zadna z reklam sie nie wyswietla.
http://www.cod2revenge.xt.pl
|
|
|
|
Pieka |
Dodany dnia 15.12.2006 22:28:03
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Texas napisał/a:
To tak, mam dwie reklamy i wyswietlaja sie na zmiane a chcialbym zeby wyswietlaly sie te co umieszcze na raz jedna pod druga.
Czasami zadna z reklam sie nie wyswietla.
To jest prosty rotator i nie da sie wyswietlac za jednym razem dwoch roznych reklam w dwoch roznych miejscach.
Mozesz jedynie umiescic za jednym razem dwa kody. Bedziesz mial dwa bannery, jeden pod drugim
Edytowane przez Pieka dnia 15.07.2007 14:15:37
Jestem jaki jestem
|
|
|
|
Texas |
Dodany dnia 15.12.2006 22:31:49
|
Przedszkolak
Postów: 20
Data rejestracji: 27.11.2006 14:29
|
O wlasnie o to mi chodzilo sam bym na to nie wpadl. Dziekuje!
http://www.cod2revenge.xt.pl
|
|
|
|
arturg |
Dodany dnia 18.12.2006 12:49:27
|
Początkujący
Postów: 145 Pomógł: 3 Ostrzeżeń: 3
Data rejestracji: 11.09.2006 10:23
|
Witam mam ten sam problem co wy z rotatorem master ads
Po umieszczeniu kodu w pliku themenie wyświetla mi reklam nie wiem czemu. Pokazuje się tylko owy kod do wklejenia w them oto mój plik theme.php
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Blue Ice Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Skaidon |
| modded by: PHP Fusion Themes - ©2006 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#ECF0F6";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td class='bodyline'>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td class='bodyline2'>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td class='header'>
<a href='".BASEDIR."index.php'><center><img src='".THEME."images/logo.gif' border='0' alt='".$settings[sitename]."' title='".$settings[sitename]."'></center></a>
</td>
</tr>
<tr>
<td class='nav_background'>";
$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 " r6;\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=''>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class=''>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td></tr></table>
<table width='100%' cellspacing='0' cellpadding='7' border='0' align='center'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "<table style='margin-bottom:10px;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' width='100%'>".stripslashes($settings['footer'])."</td>
</tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td width='25%' align='left' class='nav_backgroundfc'><a href='http://php-fusion.co.uk' target='_blank'>PHP Fusion</a> v".$settings['version']." © 2003-2006</td>
<td width='50%' align='center' class='nav_backgroundfc'><b>BlueIce</b> Theme by <a target='_blank' href='http://www.skaidon.co.uk'>Skaidon</a> - Ported and Re-coded by: <a target='_blank' href='http://phpfusion-themes.com/'>PHP Fusion Themes</a></td>
<td width='25%' align='right' class='nav_backgroundfc'><span class='hits'>".$settings['counter']."</span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' nowrap='nowrap'>$subject</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>$news</td>
</tr>
<tr>
<td class='catBottom2' align='center' valign='middle' height='28'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."<br>";
echo "".($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> | ";
echo "(".$info['news_reads'].$locale['044'].") ";
echo "<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>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' nowrap='nowrap'>$subject</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td class='catBottom2' align='center' valign='middle' height='28'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."<br>";
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']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
}
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'><img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Pomoże mi ktoś ?
P.S dodając include(INFUSIONS.'master_ads_panel/master_ads.php'); w panel również nic nie wyświetla help
Kody w code! Poprawilem/Pieka
Edytowane przez Pieka dnia 15.07.2007 14:15:07
|
|
|
|
kps |
Dodany dnia 18.12.2006 15:11:31
|
Przedszkolak
Postów: 21
Data rejestracji: 14.12.2006 15:43
|
Witam
Dołączam sie do prośby o wstawienie tego kodu,
Chciał bym aby reklama była po prawej stronie pod shoutboxem
Za chiny nie moge tego dobrze wstawić.
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Valencia Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' class='bodyline' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td valign='middle' width='100%' style='background-image:url(".THEME."images/logo_bg.gif)' height='85'>";
// Start banner code
echo "<table width='100%' cellspacing='0' cellpadding='4'>";
echo "<tr><td width='100%'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td height='24'><table width='100%' border='0' cellpadding='4' cellspacing='0'><tr><td class='nav-header'>\n";
echo showsublinks("<img border='0' src='".THEME."images/divider.gif'>","white")."</td>\n";
echo "<td align='right' class='nav-header')>".showsubdate()."</td></tr></table>";
echo "<table width='100%' cellspacing='5' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td>".stripslashes($settings['footer'])."</td></tr></table><br>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='15'></td>";
echo "<td class='footer' align='left' width='38%'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> © 2003-2006";
}
echo "</td>";
echo "<td class='footer' align='center' width='24%'>Valencia Theme by: <a href='http://www.phpfusion-themes.com' target='_blank'>PHP-Fusion Themes</a>";
echo "</td>";
echo "<td class='footer' align='right' width='38%'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main3'>$subject</td>";
echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='news-body'><div style='width:100%;vertical-align:top;'>$news</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left4'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main4'>$subject</td>";
echo "<td class='panel-right4'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left4'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-bodyx'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar3'>".articleposter($info)."</td>";
echo "<td align='right' class='infobar4'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right4'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft4'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain4'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright4'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left2'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main2'>$title</td>";
echo "<td class='panel-right2'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left2'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='table-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right2'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft2'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain2'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright2'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "</tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left4'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "<td class='panel-main4'>$title</td>";
echo "<td align='right' class='panel-main4'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right4'><img src='".THEME."images/blank.gif' width='6' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left4'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-bodyx'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right4'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft4'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain4'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright4'><img src='".THEME."images/blank.gif' width='6' height='16' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td></td></tr></table>\n";
}
?>
|
|
|