Witam,
mam skórkę na mojej stronie Smartblue , to moje theme.php <?php
/*------------------------------------------------------------------
Smart Blue Theme 1.1
by SoulSmasher (http://www.soulsmasher.net)
You Can Use And Share the theme as much as you want
but please don't remove copyright of theme
-------------------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "900");
define("THEME_BULLET", "·");
//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'>
<tr><td>
<img src='".THEME."images/header.png' alt='".$settings['sitename']."' width='900' height='146' />";
echo "</td></tr></table>\n";
//sublinks css
echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<div id='altlinkler'>";
echo "<ul><li>".thesublinks("</li>\n<li>");
echo "</li></ul><div class='clear-both'> </div></div>";
echo "</td></tr></table>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<div id='footer'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='footermain'>
<tr>
<td class='footerleft'>".showcopyright()."</td>
<td class='footerright'>
Smart Blue Theme By <strong><a href='http://www.soulsmasher.net' onclick='window.open(this.href); return false;' onkeypress='window.open(this.href); return false;'><font color='white'>SoulSmasher</font></a></strong>
</td>
</tr>
</table>
</div>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='border tablebreak'>";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "</div>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
echo "<div class='border tablebreak'>";
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
echo "</div>";
}
include INCLUDES."snow.js";
?>
Kliknij i zaczekaj na załadowanie kodu ...
A ja chciałbym żeby header był taki jak z thema DarkZik, bo ma wbudowany panel logowania i ogólnie jest fajny :P
to jego theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "935");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style;
//Header Start
echo '<table id="Table_01" align="center" width="935" height="208" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<img src="'.THEME.'images/header_01.jpg" width="684" height="208" alt="" /></td>
<td>
<img src="'.THEME.'images/header_02.jpg" width="204" height="33" alt="" /></td>
<td rowspan="4">
<img src="'.THEME.'images/header_03.jpg" width="47" height="208" alt="" /></td>
</tr>';
//Member Header Start
echo '<tr>';
if (iMEMBER) {
echo '<td class="MemberForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="padding-left:40px">';
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'><b>Ediycja Profilu</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'><b>Wiadomo¶ci</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'><b>List Kont</b></a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'><b>Panel Administratora</b></a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'><b>Wyloguj</b></a>\n";
//Quest Header Start
} else {
if (isset($_POST['Regh'])) {
redirect('register.php');
}
echo '<td class="LoginForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="paddin-top:8px">';
include LOCALE.LOCALESET."global.php";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']." <input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']." <input type='password' name='user_pass' class='textbox' style='width:100px;margin-left:4px;margin-top:2px' /><br />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='buttonHeader' style='margin-top:4px;margin-right:4px;width:45px' /><input type='submit' name='Regh' value='Click Here to Register!' class='buttonReg' style='margin-top:4px;width:118px' /><br />\n";
echo "<small>Remember?</small><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;margin-top:3px' />\n";
echo "</form>\n";
if ($settings['enable_registration']) {
echo '<a href="'.BASEDIR.'register.php" title="Rejestracja" class="side">Kliknij</a> aby się zarejestrować.<br />';
}
echo '<a href="'.BASEDIR.'lostpassword.php" title="Przypomnienie hasła" class="side">Zapomniane Hasło?</a></div>';
}
echo '</td></tr>
<tr>
<td>
<img src="'.THEME.'images/header_05.jpg" width="204" height="30" alt="" /></td>
</tr>
<tr>
<td background="'.THEME.'images/header_06.jpg" width="204" height="30" align="center">';
// Search script //
echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=d'><b><font color='white'><small>Szukaj: </small></font></b>";
echo "<input value='wpisz szukane słowa' name='stext' class='textbox' style='width:100px' onBlur=\"if(this.value=='') this.value='wpisz szukane słowa';\" onFocus=\"if(this.value=='wpisz szukane słowa') this.value='';\" /> ";
echo "<input type='submit' name='search' value='Wyszukaj' class='buttonReg' style='width:30px' /></form></td>";
echo '</tr></table>';
// Menus Starts
echo '<table align="center" id="Table_02" width="935" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="'.THEME.'images/menu_01.jpg" width="10" height="30" alt="" border="0" />
</td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_02.jpg" width="70" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'downloads.php">
<img src="'.THEME.'images/menu_04.jpg" width="91" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'forum/index.php">
<img src="'.THEME.'images/menu_06.jpg" width="73" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'articles.php">
<img src="'.THEME.'images/menu_08.jpg" width="67" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'search.php">
<img src="'.THEME.'images/menu_10.jpg" width="74" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'photogallery.php">
<img src="'.THEME.'images/menu_12.jpg" width="76" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'news.php">
<img src="'.THEME.'images/menu_14.jpg" width="70" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_16.jpg" width="80" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_18.jpg" width="81" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>';
if (iMEMBER) {
echo ' <td><a href="'.BASEDIR.'setuser.php?logout=yes">
<img src="'.THEME.'images/menu_log.jpg" width="75" height="30" alt="" border="0" /></td>';
} else {
echo ' <td><a href="'.BASEDIR.'register.php">
<img src="'.THEME.'images/menu_20.jpg" width="75" height="30" alt="" border="0" /></td>';
}
echo '<td>
<img src="'.THEME.'images/menu_21.jpg" width="4" height="30" alt="" border="0" /></td>
<td background="'.THEME.'images/menu_22.jpg" width="118" height="30"><font color="white" class="date" style="margin-left:22px"><small>'.showsubdate().'</small></font>
</td>
<td>
<img src="'.THEME.'images/menu_23.jpg" width="10" height="30" alt="" border="0" /></td>
</tr>
</table>';
// Menu Ends
echo "<table bgcolor='#070707' align='center' cellspacing='0' cellpadding='0' width='935' >
<tr>
<td>\n";
// Content
echo "<br /><table cellpadding='0' cellspacing='0' width='915' class='$main_style' align='center'>\n<tr>\n
<td class='side-border-left' valign='top'>".LEFT."</td>
<td class='main-bg' align='center' valign='top' style='margin:5px'>".U_CENTER.CONTENT.L_CENTER."</td>
<td class='side-border-right' valign='top'>".RIGHT."</td>
</tr>\n</table>\n";
//Footer
echo "</td></tr></table>";
echo "<center><table cellpadding='0' cellspacing='0' width='935' background='".THEME."images/footer_bg.jpg'>\n<tr>\n";
echo "<td align='center' class='main-footer' style='color:#fff;'>".stripslashes($settings['footer']);
echo "DarkZik Theme Designed By <a href='http://www.iranzik.com/music_film/index.html' target='_blank'>| IranZik.com |</a>";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n</center>";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
echo "<br />";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "<br />";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'> $title</td>
</tr>
<tr>
<td class='main'>\n";
}
function closetable() {
echo "</td>
</tr>
</table><br />\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='29' class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</td></tr>\n<tr><td class='side-body' background='#10161D'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table><br />";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Jak to połączyć? Proszę o pomoc z góry dziękuję.
Moja strona to www.piotrekhas.yo...
Wiadomość doklejona:
Chyba nie rozumiecie o co chodzi, więc zrobi w paincie rysunek jak to ma wyglądać
Edytowane przez piOOtrek_93 dnia 06.11.2008 18:53:51
|