Jak zmienić zwykłe menu górne na flashowe
|
c-milionaire |
Dodany dnia 10.10.2006 14:57:48
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
Mam pytanie jak zmienić belke górną na flashową mam theme fallout a to moja strona www.tbws.yoyo.pl |
|
|
|
Wścibski Gość |
Dodany dnia 23.12.2024 05:27:57
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
spinax |
Dodany dnia 10.10.2006 16:08:00
|
Przedszkolak
Postów: 80
Data rejestracji: 15.03.2005 18:01
|
W theme.php z fukncji reander_header usun kod ktory wyswietla owa belke i zamiast jego wstaw kod ktory wyswietla obiekt flashowy. Co do wstawiania kodu bylo setki razy wiec poszukaj na forum.
Edytowane przez spinax dnia 10.10.2006 16:22:38
|
|
|
|
c-milionaire |
Dodany dnia 10.10.2006 16:40:30
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
Ale gdzie dokładnie ?? którą linijke a kod jaki to ja wiem
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fallout Theme Theme for PHP-Fusion v6.x |
| BASED ON "X3" THEME |
|---------------------------------------------|
| author: Therror |
| web: http://www.therror.ovh.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #aaa solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<center>Powered by <a href='http://php-fusion.pl' target='_blank'>Php-Fusion</a> v".$settings['version']." © 2006</center><br>
<center><b>Fallout BY</B> <a href='mailto:http://therror.ovh.org'>Therror</a></center><br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<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> |\n";
echo $info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleft'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
<td class='capmain'>$title</td>
<td class='capright'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
|
|
|
|
pawkow |
Dodany dnia 14.10.2006 18:53:57
|
Bywalec
Postów: 538
Data rejestracji: 05.06.2005 08:27
|
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #aaa solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
zamien na
function render_header($header_content) {
[b]//KOD MENU[/b]
}
Zapraszam na motoklimat.pl - Baza wiedzy o samochodach, modele, spalanie, specyfikacje.
|
|
|
|
c-milionaire |
Dodany dnia 14.10.2006 19:24:00
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
Coś źle robie bo wyskakuje bład
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fallout Theme Theme for PHP-Fusion v6.x |
| BASED ON "X3" THEME |
|---------------------------------------------|
| author: Therror |
| web: http://www.therror.ovh.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='menu' width="802" height="60">
<param name='movie' value='http://tbws.yoyo.pl/menu.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='header' src='http://tbws.yoyo.pl/menu.swf'>
quality='high' bgcolor='#FFFFFF'
width='100%' height='802'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<center>Powered by <a href='http://php-fusion.pl' target='_blank'>Php-Fusion</a> v".$settings['version']." © 2006</center><br>
<center><b>Fallout BY</B> <a href='mailto:http://therror.ovh.org'>Therror</a></center><br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<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> |\n";
echo $info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleft'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
<td class='capmain'>$title</td>
<td class='capright'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
|
|
|
|
MeTeo |
Dodany dnia 14.10.2006 19:52:24
|
Bywalec
Postów: 880 Pomógł: 23 Ostrzeżeń: 2
Data rejestracji: 14.12.2005 19:38
|
function render_header($header_content) {
echo "<object classid='clsid:d27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='menu' width=\"802\" height=\"60\">
<param name='movie' value='http://tbws.yoyo.pl/menu.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='header' src='http://tbws.yoyo.pl/menu.swf'>
quality='high' bgcolor='#FFFFFF'
width='100%' height='802'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
o ile wiem chciales logo flashowe zamiast normalnego a wstawiles ten kod niedosc ze bez echo " to do tego kod starego menu zostawiles :/
Edytowane przez MeTeo dnia 14.10.2006 19:53:26
|
|
|
|
c-milionaire |
Dodany dnia 15.10.2006 10:16:46
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
Nie cfhodziło o logo o belkę górną zaznaczyłem na ryusnku poniżej i tą belke chcę wymienić na flashową
Edytowane przez Pieka dnia 15.10.2006 13:02:52
|
|
|
|
gracjan |
Dodany dnia 19.10.2006 14:56:58
|
Przedszkolak
Postów: 12
Data rejestracji: 24.06.2006 16:10
|
Zrobiłem sobie flashowe menu w programie "123 Flash Menu". Niestety nie wiem jak je umieścić u siebie na stronie. Używał ktoś tego programu i pomógłby mi umieścić menu na stronie? |
|
|
|
marpar |
Dodany dnia 19.10.2006 15:42:30
|
Bywalec
Postów: 535
Data rejestracji: 30.09.2005 20:02
|
To nie ma znaczenia jaki program. Poprostu umieszczasz obiekt flash w żądanym miejscu. Było o tym WIELE razy na forum.
|
|
|
|
gracjan |
Dodany dnia 19.10.2006 17:45:25
|
Przedszkolak
Postów: 12
Data rejestracji: 24.06.2006 16:10
|
Bardzo profesjonalna odpowiedź. W sumie mogłeś nic nie pisać.
Nie wiem w którym pliku i w którym miejscu wkleić kod, co skasować a czego nie. |
|
|
|
marpar |
Dodany dnia 19.10.2006 18:06:40
|
Bywalec
Postów: 535
Data rejestracji: 30.09.2005 20:02
|
A napisałeś gdzie chcesz umieścić to menu???????
A napisałem to co uznałem za słuszne i pozwól, że ja sam zdecyduje czy mam coś do powiedzenia czy nie ?
Wg. mnie to co napisał kolega powinno cie naprowadzić jak to zrobić.
W theme.php z fukncji reander_header usun kod ktory wyswietla owa belke i zamiast jego wstaw kod ktory wyswietla obiekt flashowy. Co do wstawiania kodu bylo setki razy wiec poszukaj na forum.
a jezeli niewiesz który kod odpowiada za tą belke to zapraszam do szukajki bo było juz o tym kika razy.
|
|
|
|
spinax |
Dodany dnia 19.10.2006 18:15:42
|
Przedszkolak
Postów: 80
Data rejestracji: 15.03.2005 18:01
|
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fallout Theme Theme for PHP-Fusion v6.x |
| BASED ON "X3" THEME |
|---------------------------------------------|
| author: Therror |
| web: http://www.therror.ovh.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #aaa solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'>[color=red]\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."[/color]</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<center>Powered by <a href='http://php-fusion.pl' target='_blank'>Php-Fusion</a> v".$settings['version']." © 2006</center><br>
<center><b>Fallout BY</B> <a href='mailto:http://therror.ovh.org'>Therror</a></center><br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<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> |\n";
echo $info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
<td class='capmainbig'>$subject<br>
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='20' height='37' alt='' style='display:block'></td>
</tr>
</table>
<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 align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleft'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
<td class='capmain'>$title</td>
<td class='capright'><img src='".THEME."images/blank.gif' width='17' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapleft'><img src='".THEME."images/blank.gif' width='35' height='27' alt='' style='display:block'></td>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
<td class='scapright'><img src='".THEME."images/blank.gif' width='17' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Zamiast kodu pokolorowanego na czerowno wstaw swoj kod flash.
Edytowane przez spinax dnia 19.10.2006 18:17:24
|
|
|
|
gracjan |
Dodany dnia 19.10.2006 21:08:17
|
Przedszkolak
Postów: 12
Data rejestracji: 24.06.2006 16:10
|
Spinax wielkie dzięki, o taką pomoc mi chodziło |
|
|
|
c-milionaire |
Dodany dnia 20.10.2006 19:23:11
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
Co zle zrobie ??
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>
<td class='white-header'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='menu' width="802" height="60">
<param name='movie' value='http://tbws.yoyo.pl/menu.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='header' src='http://tbws.yoyo.pl/menu.swf'>
quality='high' bgcolor='#FFFFFF'
width='100%' height='802'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object></td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='4' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $settings,$locale;
|
|
|
|
redips |
Dodany dnia 17.01.2009 03:43:23
|
Przedszkolak
Postów: 17 Ostrzeżeń: 2
Data rejestracji: 27.06.2006 11:22
Złamana licencja
|
Witam,
zacznę od tego, że próbowałem, szukałem i tak na okrągło, więc uznałem, że będę potrzebował pomocy.
Otóż używam skórki voodz_normal i chcę dokonać modyfikacji menu górnego, a mianowicie zmiany na flash.
Część odpowiedzialna za menu górne w skórce:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='side_mleft'><img width='43' src='".THEME."images/side_mleft.gif' height='1' alt=''></td>
<td class='mbody' align='right'>$header_content<br>
<table width='100%' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='11' height='25'><img src='".THEME."images/menu_01.gif' width='11' height='25' alt=''></td>
<td class='menu'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/bullet_menu.gif' width='10' height='10' alt=''>\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>
<td class='menu' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
<td width='11' height='25'><img src='".THEME."images/menu_03.gif' width='11' height='25' alt=''></td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<center><table width='950' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bottom_01.gif' width='10' height='10' alt=''></td>
<td class='bottom_top'><img src='".THEME."images/bottom_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/bottom_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='bottom_left'><img src='".THEME."images/bottom_04.gif' width='10' height='1' alt=''></td>
<td class='mbottom' align='center'><HR WIDTH='700' ALIGN='CENTER' SIZE='5' COLOR='#CCFF66'>
<br>
|<a href='http://redips.unl.pl/php-files/viewpage.php?page_id=6'> O nas </a>| Ustaw jako stronę startow± | <a href='http://redips.unl.pl/php-files/contact.php'>Kontakt</a> | Reklama w serwisie | <a href='http://redips.unl.pl/php-files/index.php#'>do góry <img src='http://redips.unl.pl/php-files/images/dogory.gif' WIDTH='6' style='margin:1px'></a> | <a href='http://www.google-pagerank.pl' title='Google PageRank, backlinks, keywords - darmowe pozycjonowanie i SEO - Google-Pagerank.pl' target='_blank'><img src='http://www.google-pagerank.pl/pr.php?ref=miasto-kielce.pl&style=32'alt='Aktualny PageRank strony miasto-kielce.pl dostarcza: Google-Pagerank.pl - Pozycjonowanie + SEO' style='border:none'></a><br><br><FONT COLOR='#E5E1D6'>Copyright (C) 2008-2009 miasto-kielce.pl || <small><a href='http://www.php-fusion.co.uk'><FONT COLOR='#E5E1D6'>PHP-Fusion</font></a> v". sprintf("%.2f", $settings['version'])."</font> <br><a href='http://redips.unl.pl/php-files/login.php'><FONT COLOR='#C2C5BE'>z</font></a>
<!-- stat.4u.pl NiE KaSoWaC -->
<a target=_top href=\"http://stat.4u.pl/?majks\"><img alt=\"statystyka\" src=\"http://adstat.4u.pl/s4u.gif\" border=\"0\"></a>
<script language=\"JavaScript\" type=\"text/javascript\">
<!--
function s4upl() { return \"&r=er\";}
//-->
</script>
<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://adstat.4u.pl/s.js?majks\"></script>
<script language=\"JavaScript\" type=\"text/javascript\">
<!--
s4uext=s4upl();
document.write('<img alt=\"statystyka\" src=\"http://stat.4u.pl/cgi-bin/sn.cgi?i=majks&p=0'+s4uext+'\" width=\"1\" height=\"1\">')
//-->
</script>
<noscript><img alt=\"statystyki\" src=\"http://stat.4u.pl/cgi-bin/sn.cgi?i=majks&p=0&r=ns\" width=\"1\" height=\"1\"></noscript>
<!-- stat.4u.pl KoNiEc -->
</td>
<td class='bottom_right'><img src='".THEME."images/bottom_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/bottom_07.gif' width='10' height='23' alt=''></td>
<td class='bottom_bottom'><img src='".THEME."images/bottom_08.gif' width='1' height='23' alt=''></td>
<td><img src='".THEME."images/bottom_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>
</td>
<td class='side_mright'><img width='43' src='".THEME."images/side_mright.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
Kliknij i zaczekaj na załadowanie kodu ...
Kod menu flash, na który chcę zaminić:
<TEMPLATE APPNAME="FLASHMENU" VER_NUMBER="2" VER_LOWNUMBER="2" TYPE="7" SWF_NAME="color" SUB_LEVEL="0" CATALOG="2" SWF_SHOWNAME="color" WIDTH="634" HEIGHT="172" BGCOLOR="clWhite" FLASHBGCOLOR="clWhite" TRANSPARENT="true" AUTOSIZE="true">
<GROUP_ATTRIBUTE>
<PARAM ID="1" DF_VALUE="new item"/>
<PARAM ID="2" DF_VALUE=""/>
<PARAM ID="3" DF_VALUE="_blank,_parent,_self,_top"/>
</GROUP_ATTRIBUTE>
<GROUP_MENU>
<GROUP_PARAM ID="40">
<PARAM ID="41" DF_VALUE="Horizontal,Vertical"/>
<PARAM ID="42" DF_VALUE="false"/>
<PARAM ID="43" DF_VALUE="onRollOver,onPress"/>
<PARAM ID="44" DF_VALUE="105"/>
<PARAM ID="45" DF_VALUE="24"/>
<PARAM ID="46" DF_VALUE="0"/>
<PARAM ID="47" DF_VALUE="0"/>
<PARAM ID="48" DF_VALUE="$00D8DEDD"/>
<PARAM ID="49" DF_VALUE="clBlack"/>
<PARAM ID="50" DF_VALUE="clBlack"/>
<PARAM ID="51" DF_VALUE="false"/>
</GROUP_PARAM>
<GROUP_PARAM ID="60">
<PARAM ID="61" DF_VALUE="true"/>
<PARAM ID="62" DF_VALUE="$00BBEDAB"/>
<PARAM ID="63" DF_VALUE="clWhite"/>
<PARAM ID="64" DF_VALUE="$00239B13"/>
<PARAM ID="65" DF_VALUE="clWhite"/>
<PARAM ID="66" DF_VALUE="$00239B13"/>
<PARAM ID="67" DF_VALUE="clWhite"/>
</GROUP_PARAM>
<GROUP_PARAM ID="70">
<PARAM ID="71" DF_VALUE="clBlack"/>
<PARAM ID="72" DF_VALUE="clWhite"/>
<PARAM ID="73" DF_VALUE="clWhite"/>
<PARAM ID="74" DF_VALUE="Verdana"/>
<PARAM ID="75" DF_VALUE="11"/>
<PARAM ID="76" DF_VALUE="left,center,right"/>
<PARAM ID="77" DF_VALUE="10"/>
<PARAM ID="78" DF_VALUE="10"/>
<PARAM ID="79" DF_VALUE="false"/>
<PARAM ID="80" DF_VALUE="false"/>
</GROUP_PARAM>
<GROUP_PARAM ID="90">
<PARAM ID="91" DF_VALUE="false"/>
<PARAM ID="92" DF_VALUE="clGray"/>
<PARAM ID="93" DF_VALUE="0"/>
</GROUP_PARAM>
<GROUP_PARAM ID="100">
<PARAM ID="101" DF_VALUE="true"/>
<PARAM ID="102" DF_VALUE="clGray"/>
<PARAM ID="103" DF_VALUE="1"/>
<PARAM ID="104" DF_VALUE="true"/>
<PARAM ID="105" DF_VALUE="Out,In"/>
</GROUP_PARAM>
<GROUP_PARAM ID="110">
<PARAM ID="111" DF_VALUE="true"/>
<PARAM ID="112" DF_VALUE="4"/>
</GROUP_PARAM>
<GROUP_PARAM ID="120">
<PARAM ID="121" DF_VALUE="true"/>
<PARAM ID="122" DF_VALUE="40"/>
</GROUP_PARAM>
<GROUP_PARAM ID="130">
<PARAM ID="131" DF_VALUE="true"/>
<PARAM ID="132" DF_VALUE="1000"/>
</GROUP_PARAM>
<PARAM ID="133" DF_VALUE="Down,Up"/>
<PARAM ID="134" DF_VALUE="2000"/>
<PARAM ID="135" DF_VALUE="2000"/>
<PARAM ID="136" DF_VALUE=""/>
<PARAM ID="137" DF_VALUE="false"/>
<PARAM ID="150" DF_VALUE="false"/>
<PARAM ID="20" DF_VALUE="100"/>
<PARAM ID="253" DF_VALUE=""/>
</GROUP_MENU>
<GROUP_SIZE>
<PARAM ID="140" DF_VALUE="634"/>
<PARAM ID="141" DF_VALUE="172"/>
<PARAM ID="142" DF_VALUE="true"/>
</GROUP_SIZE>
<GROUP_PAGE>
<PARAM ID="143" DF_VALUE="clWhite"/>
<PARAM ID="144" DF_VALUE="clWhite"/>
<PARAM ID="145" DF_VALUE="true"/>
</GROUP_PAGE>
<MENU>
<item name="Nasze miasto" url="http://miasto-kielce.pl" callback="onClick" target="_top"><item name="Aktualności"/><item name="Komunikacja"/><item name="Historia"/><item name="Zdrowie"/><item name="Edukacja"/></item><item name="Kultura"><item name="Instytucje"><item name="Galerie"/><item name="Muzea"/><item name="Kina"/><item name="Teatr"/><item name="Biblioteki"/><item name="Centra kultury"/></item><item name="Koncerty"/><item name="Imprezy"/></item><item name="Turystyka"><item name="Noclegi"><item name="Lista obiektów"/></item><item name="Praktycznie"><item name="Dojazd do Kielc"/></item><item name="Atrakcje Kielc"/><item name="Trasy"><item name="Piesze"/><item name="Rowerowe"/><item name="Autem"/></item><item name="Warto zobaczyć"/></item><item name="Forum" target="_top"/><item name="Kontakt"><item name="Redakcja"/><item name="Współpraca"/><item name="Księga Gości"/><item name="Czat"/><item name="Mapa Strony"/></item><item name="Moja baza"><item name="Logowanie"/><item name="Rejestracja"/></item></MENU>
</TEMPLATE>
Kliknij i zaczekaj na załadowanie kodu ...
Wszystko to dotyczy strony.
Edytowane przez Chemikpil dnia 10.02.2009 23:21:28
|
|
|