Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: navigacija kaip sio psl
Parašė Child· 2008 Kov. 7 11:03:59
#1
Sveiki noriejau paprasyti jusu pagalbos,siame puslapyje man patiko navigacija esi po headeriu .Ypac tas dalykas kad kai uzvedi pele ant Pagrindinis ismeta daugiau potemiu gal galit pasakyti kaip taip padaryti?
Parašė Enzo· 2008 Kov. 7 11:03:01
#2
Revision temoje yra.
Parašė Child· 2008 Kov. 7 11:03:47
#3
Tai tipo galiu nueiti paimti is ten koda ur i savo theme imesti ?
Parašė bad_user· 2008 Kov. 7 11:03:36
#4
Taip... Gali... Tik išsimk ji... ;)
Parašė Child· 2008 Kov. 7 11:03:42
#5
o jei sukelsiu kodus galesit padet padaryt ? nes pats pradedantis esu tiktai,ir kokiu kodu daliu man ieskot
beto is kur Gauti Revision theme?:?
nerandu Revision theme :(
SoNG: Viskas tilpo į vieną postą.
Redagavo bad_user· 2008 Kov. 7 12:03:42
Parašė WantedBoy· 2008 Kov. 7 11:03:12
#7
Nu laukiu tavo proekto, musu miesto :)
Parašė Child· 2008 Kov. 7 12:03:24
#8
<?php
/*--------------------------------------------+
| PHP-Fusion 6 - 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Milestone Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: webmaster@phpfusion.org |
|---------------------------------------------|
| 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 = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' style='background-image:url(".THEME."images/header-center.gif)' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
// Start banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td>$header_content</td></tr>";
echo "</table></td>";
// End banner code
echo "<img src='".THEME."images/pixel.gif' height='5'>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='42'><img src='".THEME."images/nav-left.gif' width='16' height='26'></td>";
echo "<td width='75%' style='background-image:url(".THEME."images/nav-center.gif)'>";
echo showsublinks("·")."</td>";
echo "<td align='right' width='100%' style='background-image:url(".THEME."images/nav-center.gif)'><p><font face='Verdana' size='1'>";
echo "<marquee bgcolor=''><u>www.zarasai.eu</u> jau greitai<b><span style='color:white'></marquee></font></p>";
echo "<td width='42'><img src='".THEME."images/nav-right.gif' width='16' height='26'></td></tr></table>";
echo "<table align='center' width='$theme_width' cellspacing='0' 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'><tr>";
echo "<td class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='15'><img src='".THEME."images/nav-left.gif' width='16' height='26'></td>";
echo "<td class='copyright' align='left' width='38%' style='background-image:url(".THEME."images/nav-center.gif)'>";
if ($license == false) {
echo " ";
}
echo "</td>";
echo "<td class='copyright' align='center' width='24%' style='background-image:url(".THEME."images/nav-center.gif)'>© 2008 APSKRITAS STALAS<a href='http://www.phpfusion-themes.com' target='_blank'></a>";
echo "</td>";
echo "<td class='copyright' align='right' width='38%' style='background-image:url(".THEME."images/nav-center.gif)'>";
echo "<td></td>";
echo "</td>";
echo "<td width='15'><img src='".THEME."images/nav-right.gif' width='16' height='26'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' 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='13' height='1' alt='' style='display:block'></td>";
echo "<td class='main-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-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' 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-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' 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='13' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><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='infobar'>".articleposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' 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-left'><img src='".THEME."images/blank.gif' width='13' height='26' 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='13' height='26' 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='13' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' 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='13' height='26' 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='13' height='26' 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='13' 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='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
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-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' 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='13' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>
ar galit i ta koda iterpti sita kad navigacija butu tokia kaip sio psl
<?php
if (!defined("IN_REVISION")) { header("Location: ../../index.php"); exit; }
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Revision Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: UworldIRC - Riadi © 2006 |
| web: http://www.uworldirc.com/ |
| email: riadi@gcinet.org |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* PHP Fusion theme default configurations */
$body_text = "#444444";
$body_bg = "#DAE2E3";
$theme_width = 900;
$theme_panels_exclude = array("/forum/");
$theme_panels_width = 170;
// keep the width of the panels the same so it does not compress the tables
$theme_width_r = $theme_panels_width;
$theme_width_l = $theme_panels_width;
/* Revision Theme configurations */
# for support and explanation about these configurations please go to http://www.uworldirc.com/support...
// Page Header
$rtHeader['logo_url'] = BASEDIR.'index.php';
$rtHeader['logo_url_title'] = 'Front Page';
$rtHeader['slogan'] = 'insert something funky here ;p';
$rtHeader['rightside_member'] = "Welcome <strong>".$userdata['user_name']."</strong>";
$rtHeader['rightside_guest'] = "Welcome <strong>Guest</strong><br>please <a href='".BASEDIR."login.php'>login</a> or <a href='".BASEDIR."register.php'>register</a>";
// Navigation Bar
$rtNavbar->newmenu('Home','Home');
$rtNavbar->submenu('Home', 'Front Page', 'index.php', 1);
$rtNavbar->submenu('Articles', 'Articles', 'articles.php', 0);
$rtNavbar->submenu('News Categories', 'News Categories', 'news_cats.php', 1);
$rtNavbar->submenu('Search', 'Search this site', 'search.php', 0);
$rtNavbar->newmenu('Community','Community');
$rtNavbar->submenu('Contact Us', 'Contact Us', 'contact.php', 0);
$rtNavbar->submenu('Forums', 'Discussions', 'forum/index.php', 0);
$rtNavbar->submenu('Web Links', 'Site Links', 'weblinks.php', 0);
$rtNavbar->newmenu('Members','Members');
$rtNavbar->submenu('Members List', 'Members List', 'members.php', 1);
if (iMEMBER) {
$rtNavbar->submenu('View Profile', 'View your profile', 'profile.php?lookup='.$userdata['user_id'], 0);
$rtNavbar->submenu('Edit Profile', 'Edit your profile', 'edit_profile.php', 1);
$rtNavbar->submenu('Private Messages', 'View your private messages', 'messages.php', 1);
$rtNavbar->submenu('Logout', 'Logout', 'setuser.php?logout=yes', 0);
} else {
$rtNavbar->submenu('Login', 'Login', 'login.php', 0);
$rtNavbar->submenu('Register', 'Register an Account', 'register.php', 0);
}
if ((iADMIN) && ($userdata['user_rights'] != "")) {
$rtNavbar->newmenu('Administration','Administration');
$rtNavbar->submenu('Write a News Item', 'Write a News Item', 'administration/news.php'.$aidlink, 0);
$rtNavbar->submenu('Write an Article', 'Write an Article', 'administration/articles.php'.$aidlink, 1);
$rtNavbar->submenu('Control Panel', 'Control Panel', 'administration/index.php'.$aidlink, 0);
}
?>
Redagavo bad_user· 2008 Kov. 7 12:03:46
Parašė Child· 2008 Kov. 7 12:03:24
#9
o Revision theme atrodo taip :
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Revision Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: UworldIRC - Riadi © 2006 |
| web: http://www.uworldirc.com/ |
| email: riadi@gcinet.org |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
define('IN_REVISION', true);
require_once(INCLUDES.'theme_functions_include.php');
require_once(THEME.'includes/navigationbar.class.php');
require_once(THEME.'theme_config.php');
function render_header() {
global $theme_width, $rtNavbar, $rtHeader, $settings;
if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
$url = $rtHeader['logo_url'];
else
$url = false;
if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
$title = $rtHeader['logo_url_title'];
else
$title = false;
echo "<script language='javascript' src='".THEME."includes/revision.js' type='text/javascript'></script>\n"
."<table align='center' border='0' cellpadding='0' cellspacing='0' width='920'>\n"
."<tr><td class='pageLeft'></td><td width='100%' class='pageCenter' valign='top'>\n"
."<div id='clock'><noscript><div id='noscript'>Javascript should be enabled in order to view everything in certain sections of <strong>".$settings['sitename']."</strong>.</div></noscript><script language='javascript' src='".THEME."includes/clock.js' type='text/javascript'></script></div>\n"
."<table border='0' cellpadding='0' cellspacing='0' id='header' width='100%'><tr>\n"
."<td class='logo' height='100' valign='top' width='100%'>"
.($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/logo.png'".($title ? " title='".$title."'" : "").">"
.($url ? "</a>" : "")
.((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";
if ((iMEMBER) && (isset($rtHeader['rightside_member'])) && (!empty($rtHeader['rightside_member']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_member']."</td>\n";
} elseif ((!iMEMBER) && (isset($rtHeader['rightside_guest'])) && (!empty($rtHeader['rightside_guest']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_guest']."</td>\n";
}
echo "</tr></table>\n";
$rtNavbar->generate();
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n";
}
function render_footer() {
global $settings;
echo "</tr></table>\n";
// copyrighted line must stay intact and visible.
echo "<table cellpadding='0' cellspacing='0' id='footer' width='100%'><tr><td nowrap='nowrap' valign='top'>Powered by: <a href='http://www.php-fusion.co.uk/' target='_blank' onmousedown='return false;'>PHP Fusion</a></td><td align='center' width='100%' style='padding-left:20px;padding-right:20px;'>".$settings['footer'].showcounter()."</td><td align='right' nowrap='nowrap' valign='top'><strong>Revision</strong> Theme designed by: <a href='http://www.uworldirc.com/' target='_blank'>Riadi</a></td></tr></table>\n";
echo "</td><td class='pageRight'></td></tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo $locale['040'].newsposter($info)."\n"
."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
.openform("N",$info['news_id']).newsopts($info," ·").closeform("N",$info['news_id'])."\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo $locale['040'].articleposter($info)."\n"
."<br>\n<hr>\n<br>\n".$article."<br><br>\n<hr>\n"
.openform("A",$info['article_id']).articleopts($info," ·").closeform("A",$info['article_id'])."\n";
closetable();
}
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
tablebreak();
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>\n";
}
function closeside() {
echo "</td></tr></table>\n";
sidebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td>"
."<td class='sideTitleMinMax' nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
sidebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>\n";
}
function sidebreak() {
global $theme_panels_width;
echo "<img alt='spacer' height='10' src='".THEME."images/spacer.gif' width='".$theme_panels_width."'>\n";
}
?>
Padekit padaryt kas nors :(
Redagavo bad_user· 2008 Kov. 7 12:03:38
Parašė WantedBoy· 2008 Kov. 7 12:03:56
#10
Nefloodink, visi kas moka pagelbes jei netingi ;)
Parašė Child· 2008 Kov. 7 16:03:52
#11
gal galit kas nors man padeti siuo klausimu :(
Parašė Child· 2008 Kov. 7 16:03:43
#12
Padekit padaryti tokia navigacija kaip siame puslapyje po headeriu uzvedus ant uzraso islenda potemes,padekit prasau:(