ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
sveiki, paprastas klausimas. kaip uzdet linka ant headerio, kad uzvedus ir paspaudus atverstu titulini puslapi?
sorry uz klausima, bet isnarsiau visus duk ir paieskas, bet neradau paaiskinimo?
|
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Papostink cia savo themes.php faila kuriame nori tai padaryti.
|
ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
theme.php postas:
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) Ā© 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Aero Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Itanium Ā© 2006
| web: http://www.itanium-web.tk
| email: mkrhin@gmail.com |
|---------------------------------------------|
| 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 = "#9A978E";
$theme_width = "900";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='25' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'></td></tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' border='0' cellpadding='4' cellspacing='0' style='background-image:url(".THEME."images/cellpic_nav1.png);border:#8A8573 1px solid;'><tr>";
echo "<td height='77' class='sub-header'> ".showsublinks("<img border='0' src='".THEME."images/divider.gif'>")."</td>\n";
echo "<td height='28' class='sub-header' width='250' nowrap><div align='right'><font class='date'><b>".showsubdate();
echo " </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr><td></td></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='2' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table style='background-image:url(".THEME."images/noga.png);border: 1px solid ' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td height='28' width='35%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> | Theme by <a target='_blank' href='http://193.77.169.23'>Itanium</a> ";
}
echo "</div></td>";
echo "<td class='footer' height='28' width='20%'align='center'> </a>";
echo "<td class='footer' height='28' width='35%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='25' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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'> ".newsposter($info)."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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'>".articleposter($info)."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panel'>";
echo "$title</td></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 #8A8573' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "$title</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table bgcolor='#000000' border='0' style='border: 1px solid #8A8573' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title";
echo "</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
echo "<div id='box_$boxname'".($open=="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";
}
?>
RAMon: Kita karta rasydamas php kodas SMILEY OFF.
|
Rytis
Narys
Tankas
Pranešimai: 2258
Įstojęs: 2006 Sau. 13 17:01:49
|
Nusikopijuok šį kodą:
http://pastebin.com/m51819df0
Geltonoj (23 eilutė) nusistatyk, kur turėtu nukreipti (dabar nukreips į index, t.y. pagrindinį puslapį).
|
ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
nu blyn chebra, dekuij uz pastangas, bet jos nevaisingos, arba as cia atsilupes arba jus kaska ne taip man nurodot. ikopijuoju as ta koda, nieko jis nepadeda, be to dar ir pats headeris dingsta.
|
Rytis
Narys
Tankas
Pranešimai: 2258
Įstojęs: 2006 Sau. 13 17:01:49
|
ginculia parašė:
nu blyn chebra, dekuij uz pastangas, bet jos nevaisingos, arba as cia atsilupes arba jus kaska ne taip man nurodot. ikopijuoju as ta koda, nieko jis nepadeda, be to dar ir pats headeris dingsta.
šiaip ten ne linkas pasidaryt turėjo, o onClick, nu žodžiu jovalas. Gal aks labiau išmanantis JavaScript atsiras, ar kaip nors paprastaiu su HTML padarys.
|
ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
nu jo onklick siuo atveju, bet is principo man neesme, svarbu ant logo lankytojas uzvedes pele pamatys pirstuka, o nuspaudus uzsikraus titulinis.
seip as pats biski html zinau, bet linko uzdet neiseina, arba jis visai neatsiranda, arbabuna nevietoj ir su kryngeliais visokiais.
zodziu xebra, kas sitoj vietoj protingas - HELP!
|
Rytis
Narys
Tankas
Pranešimai: 2258
Įstojęs: 2006 Sau. 13 17:01:49
|
su html galima padaryt, bet tas dizainas yra toks specifinis. O aš su dizainu nelabai dirbu, ir man viskas išsikraipo
|
ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
tai blyn xebra niekas negalit padet?
|
ozzWANTED
Administratorius
Legenda
Pranešimai: 8478
Įstojęs: 2006 Gru. 29 14:12:31
|
headerį daryk kaip backgroundą, o tada ant viršaus jau kaip normalią lentelę, nes reaguos taip lyg headerio nė nebūtų.
BR#1, Most Wanted |
ginculia
Narys
Patrankų mėsa
Pranešimai: 6
Įstojęs: 2007 Rugp. 8 12:08:03
|
ozzWANTED parašė:
headerį daryk kaip backgroundą, o tada ant viršaus jau kaip normalią lentelę, nes reaguos taip lyg headerio nė nebūtų.
aa pointo esme kaip ir pagavau, tik va neesu tiek ekspertas kode, kad taip lengvai man viskas pavyktu...
|