Wstawienie górnego menu ze skórki Free do Karasevda-blue3d
|
Andrew333 |
Dodany dnia 18.07.2010 21:23:47
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
Witam czy jest możliwość użycia tego menu:
w skórce Karasevda-blue3d? Jak tak to jak tego dokonać?
Kod Theme Free:
<?php
/*
author: Itanium
Matej Krhin
website: www.phpfusion-si.com
email:
*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
// theme settings
$banner = "0"; // 1 - show site banner 0 - show theme banner
$theme_width = "1000";
$theme_width_l = "175";
$theme_width_r = "175";
$oglasi = ""; //vpisite kodo za prikazovanje oglasov
/** aded nev navigation tools*/
function navigacija() {
$sres = dbquery(
"SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
);
if(dbrows($sres)) {
$i = 0;
$res = "<div id='free_toolbar'><ul>\n";
while ($sdata = dbarray($sres)) {
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$icon = "";
//if(strstr($sdata['link_url'],'downloads.php')) $icon = "<img src='".THEME."images/home.png' alt='' />";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<li class='free_toolbar'><a href='".$sdata['link_url']."'$link_target><span>$icon".$sdata['link_name']."</span></a></li>\n";
} else {
$res .= "<li class='free_toolbar'><a href='".BASEDIR.$sdata['link_url']."'$link_target><span>$icon".$sdata['link_name']."</span></a></li>\n";
}
$i++;
}
$res .= "</ul>\n</div>\n";
return $res;
}
}
/** aded nev navigation tools*/
function render_page($license=false) {
global $settings, $main_style, $theme_width, $oglasi, $banner, $theme_width_l, $theme_width_r;
//nalozimo orodja za sidebar
echo "<script type='text/javascript' src='" . THEME . "js/mootools.js'></script>
<script type='text/javascript' src='" . THEME . "js/side-bar.js'></script>";
//ce sem admin nalozim sidebar
if (iADMIN) {
include THEME."menu.php";;
} else {
}
//nalozimo ustrezen prevod
if (file_exists(THEME . "locale/" . $settings['locale'] . ".php")) {
include THEME . "locale/" . $settings['locale'] . ".php";
} else {
include THEME . "locale/Slovenian.php"; //ce nastavljen jezik ne obstaja nalozimo privzetega
}
//ustvarimo glavo portala
echo "<a name='top'>";
echo "<table align='center' width='$theme_width' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='15' height='50'><img src='".THEME."images/viena_l_z.png' width='15' height='50'></td>
<td class='viena_zgoraj'>
<table width='100%' border='0' class='viena_zgoraj1' cellspacing='0' cellpadding='0'>
<tr>
<td align='left' width='50%'>Izberi velikost pisave: <a href='".THEME."setfont.php?font=small'><img src='".THEME."images/fonts/small.png' width='6' height='12' alt='small' border='0'></a> | <a href='".THEME."setfont.php?font=medium'><img src='".THEME."images/fonts/medium.png' width='8' height='12' alt='medium' border='0'></a> | <a href='".THEME."setfont.php?font=big'><img src='".THEME."images/fonts/big.png' width='10' height='12' alt='big' border='0'></a></td>
<td align='right' width='50%'>".date("j. n. Y")." | <a href='".BASEDIR."search.php'><img src='".THEME."images/ico/najdi.png' width='12' height='12' alt='najdi' border='0'></a> | <a href='mailto:".str_replace("@","@",$settings['siteemail'])."'><img src='".THEME."images/ico/mail.png' width='13' height='9' alt='najdi' border='0'></a> | <a href='".BASEDIR."index.php'><img src='".THEME."images/ico/domov.png' width='11' height='9' alt='najdi' border='0'></a></td>
</tr>
</table>
</td>
<td width='15' height='50'><img src='".THEME."images/viena_d_z.png' width='15' height='50'></td>
</tr>
<tr>
<td class='viena_levo'></td>
<td class='viena_bg'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='10' height='10'><img src='".THEME."images/with_l_z.png' width='10' height='10'></td>
<td class='with_zgoraj'></td>
<td width='10' height='10'><img src='".THEME."images/with_d_z.png' width='10' height='10'></td>
</tr>
<tr>
<td class='with_levo'></td>
<td class='white'>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='100%' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='glavca'>
<table width='100%' height='180px' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td rowspan='2' width='50%'>";
if ($banner=="1") {
echo"<a href='".BASEDIR."index.php'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' border='0'></a>";
} else {
echo"<a href='".BASEDIR."index.php'><img src='".THEME."banner.png' alt='".$settings['sitename']."' border='0'></a>";
}
echo "</td>
<td width='50%' align='center'>$oglasi</td>
</tr>
<tr>
<td width='50%' height='35px' align='right' valign='bottom' class='usercell'><a href='http://www.google.com' title='".$locale['U04']."'><img src='".THEME."images/google.png' border='0'></a> | <a href='".BASEDIR."weblinks.php' title='".$locale['U06']."'><img src='".THEME."images/www.png' border='0'></a>";
if (iUSER) {
echo "| <a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['U05']."'><img src='".THEME."images/logout.png' border='0'></a> | <a href='".BASEDIR."messages.php' title='".$locale['U02']."'><img src='".THEME."images/mail.png' border='0'></a> |
<a href='".BASEDIR."edit_profile.php' title='".$locale['U03']."'><img src='".THEME."images/user.png' border='0'></a>";
} else {
echo "";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n
<tr>
<td class='navi2'>".navigacija()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' width='$theme_width_l' 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' width='$theme_width_r' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='15px' class='footer'><a href='#top'><img src='".THEME."images/panel_off.gif' alt='' border='0'></a></td>
<td align='center' class='footer'>".$locale['U00']."<br><a href='".BASEDIR."contact.php' alt=''>".$locale['U01']."</a> | Powered by <a href='http://www.php-fusion.co.uk' alt=''>PHP-Fusion</a> | Free Theme by <a href='http://www.phpfusion-si.com' alt=''>Itanium</a></td>
<td width='15px' class='footer'><a href='#top'><img src='".THEME."images/panel_off.gif' alt='' border='0'></a></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "</td>
<td class='with_desno'></td>
</tr>
<tr>
<td width='10' height='10'><img src='".THEME."images/with_l_s.png' width='10' height='10'></td>
<td class='with_spodaj'></td>
<td width='10' height='10'><img src='".THEME."images/with_d_s.png' width='10' height='10'></td>
</tr>
</table>
</td>
<td class='viena_desno'></td>
</tr>
<tr>
<td width='15' height='30'><img src='".THEME."images/viena_l_s.png' width='15' height='30'></td>
<td class='viena_spodaj' align='right'>".showcounter()."</td>
<td width='15' height='30'><img src='".THEME."images/viena_d_s.png' width='15' height='30'></td>
</tr>
</table>";
}
//ustvarimo ogrodje za novice
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
//ustvarimo ogrodje za clanke
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
//ustvarimo center panel
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'><img src='".THEME."images/title.png' width='4' height='8'><img src='".THEME."images/blank.gif' width='3' height='3'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
//zapremo center panel
function closetable() {
echo "</td>
</tr>
</table>\n<p>";
}
//ustvarimo side panel
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'><img src='".THEME."images/title.png' width='4' height='8'><img src='".THEME."images/blank.gif' width='3' height='3'>".$title."</td>
<td class='scapmain' align='right'>".($collapse == true ? panelbutton($state,$boxname = str_replace(' ', '', $title)) : "")."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
//zapremo side panel
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table>\n<p>";
}
//to je to
?>
Andrew333 dodał/a następującą plik:
Edytowane przez Andrew333 dnia 18.07.2010 21:58:46
|
|
|
|
Wścibski Gość |
Dodany dnia 25.11.2024 04:45:45
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
jakyb |
Dodany dnia 18.07.2010 21:26:26
|
Przedszkolak
Postów: 91 Pomógł: 15 Ostrzeżeń: 3
Data rejestracji: 17.06.2009 06:14
Złamana licencja
|
Może podesłałbyś jeszcze skórkę? Ale spoko jak skórki nie ma to ci powiem tak ze trzeba wyciągnąć kod odpowiedzialny za to menu z theme oraz kod style i wkleić do swojej skórki następnie z folderu images trzeba wyciągnąć obrazki i skopiować do swojego folderu images w skórce thema.
Edytowane przez Pieka dnia 18.07.2010 21:28:10
|
|
|
|
eldiablo |
Dodany dnia 18.07.2010 22:35:30
|
Bywalec
Postów: 671 Pomógł: 80
Data rejestracji: 13.07.2009 19:20
|
jakyb napisał/a:
Może podesłałbyś jeszcze skórkę? Ale spoko jak skórki nie ma to ci powiem tak ze trzeba wyciągnąć kod odpowiedzialny za to menu z theme oraz kod style i wkleić do swojej skórki następnie z folderu images trzeba wyciągnąć obrazki i skopiować do swojego folderu images w skórce thema.
Noo tak @jakyb dobrze prawisz B)
@andrew w czym problem masz,
<tr>
<td width='50%' height='35px' align='right' valign='bottom' class='usercell'><a href='http://www.google.com' title='".$locale['U04']."'><img src='".THEME."images/google.png' border='0'></a> | <a href='".BASEDIR."weblinks.php' title='".$locale['U06']."'><img src='".THEME."images/www.png' border='0'></a>";
if (iUSER) {
echo "| <a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['U05']."'><img src='".THEME."images/logout.png' border='0'></a> | <a href='".BASEDIR."messages.php' title='".$locale['U02']."'><img src='".THEME."images/mail.png' border='0'></a> |
<a href='".BASEDIR."edit_profile.php' title='".$locale['U03']."'><img src='".THEME."images/user.png' border='0'></a>";
} else {
echo "";
}
echo "</td>
</tr>
I masz ikonki wraz z linkami. A ze styli skórki wyciągnij sobie jeszcze właściwości klasy "usercell". |
|
|
|
Andrew333 |
Dodany dnia 19.07.2010 08:27:12
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
Gdzie umieścić ten kod i gdzie zastosować usercell ?
.usercell { padding-right:5px; color:#FFFFFF;}
|
|
|
|
krystian1988 |
Dodany dnia 19.07.2010 10:09:06
|
Zaawansowany
Postów: 1187 Pomógł: 100
v7.02.07 Data rejestracji: 07.05.2009 17:37
|
W swojej skórce styles.css nic trudnego.
BRAK STOPKI = BRAK POMOCY NA SUPPORCIE.PRZECZYTAJ:
Regulamin Supportu Nie pomagam na PW!!!
|
|
|
|
Andrew333 |
Dodany dnia 19.07.2010 10:33:01
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
Usercell dodałem do styles.css natomiast jak dodaje kod do themea to jest błąd.
Jaki dokładnie kod mam tam dodać ?
if (iUSER) {
echo "| <a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['U05']."'><img src='".THEME."images/logout.png' border='0'></a> | <a href='".BASEDIR."messages.php' title='".$locale['U02']."'><img src='".THEME."images/mail.png' border='0'></a> |
<a href='".BASEDIR."edit_profile.php' title='".$locale['U03']."'><img src='".THEME."images/user.png' border='0'></a>";
} else {
echo "";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
???
Edytowane przez Andrew333 dnia 19.07.2010 10:34:30
|
|
|
|
krystian1988 |
Dodany dnia 19.07.2010 10:34:49
|
Zaawansowany
Postów: 1187 Pomógł: 100
v7.02.07 Data rejestracji: 07.05.2009 17:37
|
Najwidoczniej źle go dodajesz.
BRAK STOPKI = BRAK POMOCY NA SUPPORCIE.PRZECZYTAJ:
Regulamin Supportu Nie pomagam na PW!!!
|
|
|
|
Andrew333 |
Dodany dnia 19.07.2010 10:42:55
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
Ale jaki mam dodać ? |
|
|
|
eldiablo |
Dodany dnia 19.07.2010 11:45:31
|
Bywalec
Postów: 671 Pomógł: 80
Data rejestracji: 13.07.2009 19:20
|
@andrew przecież to najzwyklejszy kod z odrobinką if. Wklejasz w theme.php Twojej skórki w header, nad nawigacją czy tam gdzie najczęściej jest kod bannera.
Sprawdź jeszcze czy jest "echo" oraz cudzysłowia, wiesz na początku i na końcu muszą być i powinno grać.
Radziłbym poczytać odrobinę tutków HTML/CSS, skoro z kopiuj i wklej klasę CSS mieliśmy problemy. Wierz mi, odrobina nie zaszkodzi a ułatwi Ci życie.
Edytowane przez eldiablo dnia 19.07.2010 11:47:33
|
|
|
|
Andrew333 |
Dodany dnia 19.07.2010 11:57:20
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
eldiablo z tym nie miałem problemu, ten kod trzeba wstawić w odpowiednie miejsce a ja za bardzo nie wiem gdzie.
<?php
/*-------------------------------------------------------+
| Theme: Clark
| Author: Jure Sakelšek (include)
+--------------------------------------------------------+
| http://phpfusion-si.com/
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
echo "<table cellpadding='0' cellspacing='0' width='970' align='center' border='0' >\n<tr>\n";echo "<td>";
//Header
echo "<table align='center' cellpadding='0' cellspacing='0' class='glava'>\n";
echo "<tr>\n";
echo "<td colspan='2' class='glava_ozadje' align='center'>\n".showbanners()."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='2'>\n";
echo "<table cellpadding='0' cellspacing='0' class='menu'>\n";
echo "<tr>\n";
echo "<td class='menu_levo'></td>\n";
echo "<td>\n";
echo "<div id='navigacija'>\n";
echo "<ul>\n";
echo "<li>".showsublinks("","white")."</li>\n";
echo "</ul>\n";
echo "</div>\n";
echo "</td>\n";
echo "<td class='menu_desno' align='right'></td>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' class='vsebina'>\n";
echo "<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";
echo "</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' class='glava' align='center'>\n<tr>\n";
echo "<td align='left' class='hayaletsevgili'>".showsubdate()."</td>\n";
echo "<td align='center' align='center' class='hayaletsevgili'>\n";
if (iGUEST) {
echo "
".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='Login' class='button' onfocus=\"this.value=''\" class='textbox' style='width:75px;' style='height:12px'> <input type='password' value='sifreniz' class='button' onfocus=\"this.value=''\" name='user_pass' class='textbox' style='width:75px;' style='height:12px'> <input type='submit' name='login' value='Loguj' class='button' style='height:16px'> <a class='button' style='height:15px' href='".BASEDIR."register.php'>Zarejestruj sie</a> <a class='button' href='".BASEDIR."lostpassword.php'>Zgubiles haslo?</a></form>";
} else {
echo "<form name='searchform' method='post' action='".BASEDIR."search.php'>
<input type='text' name='stext' value=' Szukany tekst ' align ='center' onfocus=\"this.value=''\" class='textbox' style='width:100px' style='height:12px' b>
<input type='submit' name='search' value='Szukaj' class='button' style='height:16px'>
</form>";
}
echo "</td>\n";
echo "<td align='right' class='hayaletsevgili'>".showcounter()."</td>\n";
echo "</tr>\n</table>\n";
echo "<center><table cellpadding='0' cellspacing='0' class='glava'>\n<tr>\n";
echo "<td align='center' class='main_footer'>".stripslashes($settings['footer']);
//Aţţađýdaki Theme By HaYaLeT Ve Hayaletsevgili.com Ýle Birlikte Copyrightleri Silemezsiniz..
echo "<br /> </a>\n";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr></table></center>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Edytowane przez Andrew333 dnia 19.07.2010 12:02:00
|
|
|
|
eldiablo |
Dodany dnia 19.07.2010 13:49:49
|
Bywalec
Postów: 671 Pomógł: 80
Data rejestracji: 13.07.2009 19:20
|
W dalszym ciągu nie powiedziałeś gdzie chcesz to mieć, to że w Twoim theme'ie to ja wiem ale gdzie. Tak w ciemno to może tu gdzie wkleiłem, sprawdź:
<?php
/*-------------------------------------------------------+
| Theme: Clark
| Author: Jure Sakelšek (include)
+--------------------------------------------------------+
| http://phpfusion-si.com/
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
echo "<table cellpadding='0' cellspacing='0' width='970' align='center' border='0' >\n<tr>\n";echo "<td>";
//Header
echo "<table align='center' cellpadding='0' cellspacing='0' class='glava'>\n";
echo "<tr>
<td colspan='2' align='right' valign='bottom' class='usercell'><a href='http://www.google.com' title='".$locale['U04']."'><img src='".THEME."images/google.png' border='0'></a> | <a href='".BASEDIR."weblinks.php' title='".$locale['U06']."'><img src='".THEME."images/www.png' border='0'></a>";
if (iUSER) {
echo "| <a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['U05']."'><img src='".THEME."images/logout.png' border='0'></a> | <a href='".BASEDIR."messages.php' title='".$locale['U02']."'><img src='".THEME."images/mail.png' border='0'></a> |
<a href='".BASEDIR."edit_profile.php' title='".$locale['U03']."'><img src='".THEME."images/user.png' border='0'></a>";
} else {
echo "";
}
echo "</td>
</tr>\n";
echo "<tr>\n";
echo "<td colspan='2' class='glava_ozadje' align='center'>\n".showbanners()."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='2'>\n";
echo "<table cellpadding='0' cellspacing='0' class='menu'>\n";
echo "<tr>\n";
echo "<td class='menu_levo'></td>\n";
echo "<td>\n";
echo "<div id='navigacija'>\n";
echo "<ul>\n";
echo "<li>".showsublinks("","white")."</li>\n";
echo "</ul>\n";
echo "</div>\n";
echo "</td>\n";
echo "<td class='menu_desno' align='right'></td>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' class='vsebina'>\n";
echo "<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";
echo "</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' class='glava' align='center'>\n<tr>\n";
echo "<td align='left' class='hayaletsevgili'>".showsubdate()."</td>\n";
echo "<td align='center' align='center' class='hayaletsevgili'>\n";
if (iGUEST) {
echo "
".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='Login' class='button' onfocus=\"this.value=''\" class='textbox' style='width:75px;' style='height:12px'> <input type='password' value='sifreniz' class='button' onfocus=\"this.value=''\" name='user_pass' class='textbox' style='width:75px;' style='height:12px'> <input type='submit' name='login' value='Loguj' class='button' style='height:16px'> <a class='button' style='height:15px' href='".BASEDIR."register.php'>Zarejestruj sie</a> <a class='button' href='".BASEDIR."lostpassword.php'>Zgubiles haslo?</a></form>";
} else {
echo "<form name='searchform' method='post' action='".BASEDIR."search.php'>
<input type='text' name='stext' value=' Szukany tekst ' align ='center' onfocus=\"this.value=''\" class='textbox' style='width:100px' style='height:12px' b>
<input type='submit' name='search' value='Szukaj' class='button' style='height:16px'>
</form>";
}
echo "</td>\n";
echo "<td align='right' class='hayaletsevgili'>".showcounter()."</td>\n";
echo "</tr>\n</table>\n";
echo "<center><table cellpadding='0' cellspacing='0' class='glava'>\n<tr>\n";
echo "<td align='center' class='main_footer'>".stripslashes($settings['footer']);
//Aţţađýdaki Theme By HaYaLeT Ve Hayaletsevgili.com Ýle Birlikte Copyrightleri Silemezsiniz..
echo "<br /> </a>\n";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr></table></center>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
A tak przy okazji podaje CI jeszcze raz kod:
echo "<tr>
<td colspan='2' align='right' valign='bottom' class='usercell'><a href='http://www.google.com' title='".$locale['U04']."'><img src='".THEME."images/google.png' border='0'></a> | <a href='".BASEDIR."weblinks.php' title='".$locale['U06']."'><img src='".THEME."images/www.png' border='0'></a>";
if (iUSER) {
echo "| <a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['U05']."'><img src='".THEME."images/logout.png' border='0'></a> | <a href='".BASEDIR."messages.php' title='".$locale['U02']."'><img src='".THEME."images/mail.png' border='0'></a> |
<a href='".BASEDIR."edit_profile.php' title='".$locale['U03']."'><img src='".THEME."images/user.png' border='0'></a>";
} else {
echo "";
}
echo "</td>
</tr>\n";
Mieści się w znacznikach TR, czyli wiersz tabeli, panimaju ? czyli dokładasz TABLE i masz tabelkę lub bez wstawiasz jako jeden z wierszy tabeli w Twoim theme'ie.
Struktura tabeli - poczytaj
I podaj błąd jaki się wyświetla. |
|
|
|
Andrew333 |
Dodany dnia 19.07.2010 14:11:17
|
Początkujący
Postów: 183 Pomógł: 2
v7.02.07 Data rejestracji: 17.04.2010 10:55
|
Notice: Undefined variable: locale in /home/astronomia24/public_html/themes/Karasevda-blue3d/theme.php on line 24
Notice: Undefined variable: locale in /home/astronomia24/public_html/themes/Karasevda-blue3d/theme.php on line 24
|
Notice: Undefined variable: locale in /home/astronomia24/public_html/themes/Karasevda-blue3d/theme.php on line 27
Notice: Undefined variable: locale in /home/astronomia24/public_html/themes/Karasevda-blue3d/theme.php on line 27
Notice: Undefined variable: locale in /home/astronomia24/public_html/themes/Karasevda-blue3d/theme.php on line 28
Chciał bym to mieć tak jak w skórce Free prawy dolny róg headera
Edytowane przez Andrew333 dnia 19.07.2010 15:53:20
|
|
|