Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Sorf klausimai
Parašė Lukšius· 2008 Spa. 14 18:10:42
#1
Taigi pamaniau ir man vertėtų sukūrti temą, nes turėsiu tikrai daug klausimų.
Pradedu nuo pirmojo:
Dabartinis vaizdas:
Taigi atjūngiau paneles ir padariau, kad rodytų tik naujienas. Ir man reikia, kad šalia naujienų rodytų navigacija man nereikia, kad panelę rodytų, bet nuorodas theme.php faile.
Pavyzdys:
Nežinau kaip tai padaryti tai gal sulauksiu pagalbos.
Theme.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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Gardaþým Bu Tema Fusion içindir. |
|---------------------------------------------|
| Tasarýmcý: CeRNoBiL-SanaLKraL |
| web: http://www.sanalkral.org/ |
| msn & email: editor@sanalkral.org |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// tema ayarlarý
$body_text = "#113355";
$body_bg = "#FFFFFF";
$theme_width = "55%";
$theme_width_l = "130";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width,$settings;
//Header Kodlarý Burda baþlýyor...
echo "
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><center><img src='".THEME."images/banner.png'></center></td>
</tr>
</table>
</td>
</tr>
</table>\n";
//Header Kodlarý Burda Bitiyor..
//Resimli Menü Kodlarý Baþlýyor.. Fazla oynamanýzý tavsiye etmem çünki çok karýþýktýr.
//ziyaretçilere üye ol;üyelere profil düzenle çýkýyor. if kodlarý var..
echo "<table align='center' width='99%'>
<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
//Burda resimli menü kodlarý Bitiyor..alttaki } bu headeri kapatmak için.
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr></table>
<TABLE cellSpacing=0 cellPadding=0 width='100%'>
<TR>
<TD vAlign=top width=14><IMG height=12 src='".THEME."images/1.gif' width=14 border=0></TD>
<TD vAlign=top width=100% background=".THEME."images/2.gif></TD>
<TD vAlign=top width=14><IMG height=12 src='".THEME."images/3.gif' width=14 border=0></TD></TR>
<TR>
<TD width=14 background=".THEME."images/4.gif></TD>
<TD>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0>
<TR>
<TD align=left>Dizainą sukūrė: <u>CeRNoBiL</u></a></TD>
<TD align=center>Varikliukas: <u>Php-Fusion</u></a></TD>
<TD align=right><b>".$settings['counter']." </b>".$locale['141']."\n</TD></TR><TR>
</TR></TABLE>
</DIV></TD>
<TD width=10 background=".THEME."images/6.gif><IMG height=20 src='".THEME."images/spacer.gif' width=14 border=0></TD></TR>
<TR>
<TD vAlign=top width=14><IMG height=12 src='".THEME."images/8.gif' width=14 border=0></TD>
<TD vAlign=top width=100% background=".THEME."images/10.gif></TD>
<TD vAlign=top width=14><IMG height=12 src='".THEME."images/9.gif' width=14 border=0></TD></TR>
</TABLE>
";
echo "";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-bleft'><img src='".THEME."images/blank.gif' width='5' height='43' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-bmain'>$subject</td>";
echo "<td class='panel-bright'><img src='".THEME."images/blank.gif' width='5' height='43' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border2-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
echo "<td align='right' class='infobar2'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border2-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border2-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\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='5' height='32' 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='5' height='32' 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='5' 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>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td align='right' class='infobar2'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-aleft'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-amain'>$title</td>";
echo "<td class='panel-aright'><img src='".THEME."images/blank.gif' width='5' height='32' 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='5' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\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='5' height='32' 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='5' height='32' 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='5' 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='5' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><img src='".THEME."images/blank.gif' height='4' alt='' style='display:block'>\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='5' height='32' 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' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='5' height='32' 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='5' 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='5' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
Parašė Žmogus· 2008 Spa. 14 18:10:48
#2
Tipo nori, kad pvz įeini į naujieną rodo tokia navigaciją? O įėjus pvz į straipsnius rodytu visai kita?
Parašė Lukšius· 2008 Spa. 14 18:10:06
#3
Ne. Man reikia, kad tokią navigaciją rodytų visą laiką ir užėjus į straipsnius, naujienas ar kitur.
Parašė Marčius· 2008 Spa. 14 18:10:56
#4
Tai ko tau netinką per paneles.?
Parašė Lukšius· 2008 Spa. 14 18:10:28
#5
Taigi sakau, kad man reikia per theme.php, o ne per paneles... Man panelių nereikia.
Parašė viva· 2008 Spa. 14 18:10:11
#6
per paneles pats pasidaryti gali bet ne tu nori kad kiti tau padarytu ot kietas esi
Parašė bad_user· 2008 Spa. 14 18:10:02
#7
Tu rimtai kvailas? Kam eiti tiesiai per aplinkui jei gausi tą pati? ?|
Parašė stygis· 2008 Spa. 14 19:10:19
#8
Nes per aplinkui yra raugintu agurkeliu turgis
Parašė Lukšius· 2008 Spa. 14 20:10:17
#9
Taigi sakau man nereikia panelių man reikia, kad tiesiog šone rodytų nuorodas kaip nesuprantat jūs... :[
Parašė Lukšius· 2008 Lap. 30 19:11:56
#10
2. Gal galite padėti išimti iš kitos themos kodą ir taisyklingai įdėti į manąją? Man reikia, kad iš tos themos galėtumėte išimti prisijungimo juostelę ir įdėti tarp:
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td style='width:14px'><img src='".THEME."images/l_nav.gif' alt=''></td>
<td style='width:14px'><img src='".THEME."images/r_nav.gif' alt=''></td>
</tr>
</table>\n";
Thema su prisijungimo juostele:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#ffffff";
$theme_width = "995";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='margin-top: -5px; margin-bottom: -5px; border-top: solid #000000 1px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code / Banerio kodas
echo "
<table align=center width=100% height=250 background=".THEME."images/header.jpg border=0 cellspacing=0 cellpadding=0>
<tr><td height=50 class='nuorodos' align=left style='padding-left:40px; padding-top:25px;'><br>";
echo "
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."index.php>Namai</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."forum/index.php>Forumas</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."photogallery.php>Galerija</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."contact.php>Kontaktai</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."articles.php>Straipsniai</a><br>";
echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'><tr><td class='Linija'></td></tr></table>";
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' border='0' cellpadding='0' cellspacing='0' style='background-color: #000000;'><tr>";
if (iMEMBER) {
echo"<td height='35' background='".THEME."images/linija.jpg' class='sub-header'><center>
<a href='http://aspire.too.lt/edit_profile.php' target=''>Profilis</a> |
<a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";
}
echo" | <a href='".BASEDIR."setuser.php?logout=yes' target='_blank'>Atsijungti</a></td>";
} else {
echo" <td height='35' background='".THEME."images/linija.jpg' class='sub-header' style='padding-top:1px;'><center>
<form name='loginform' method='post' action='".FUSION_SELF."'>
Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
Slaptaþodis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a><center><br>\n";
}
echo"</div>\n";
}
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%'height='200' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='footer' align='center'>
<span style='color:black'>".stripslashes($settings['footer'])."<br><br><b><a href=http://nfsgaming.awarded.in/news.php><span style='color:white'>Aspire 2007</a></span></b>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table style='border: 1px solid #262626' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/newspic.JPG' height='25' border='1'><font class='block-title' align=>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' 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'> ";
echo "<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<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>";
echo "</td></tr></table></td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td background='".THEME."images/newspic.JPG' height='25' border='1'><font class='block-title' FACE='Arial'><B><center>$subject</center></B></font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' 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'>";
echo "<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "</td></tr></table></td></tr></table>\n";
}
function render_video($subject, $video, $info) {
global $locale;
echo "<table style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td background='".THEME."images/newspic.JPG' height='35' border='1'><font class='block-title' FACE='Arial'><B><center>$subject</center></B></font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['video_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$info['user_name']."</a> ";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['video_allow_comments']) echo $info['video_comments'].$locale['043']." · ";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' height='20' cellpadding='1' cellspacing='1' style='border: 2px solid #262626' >";
echo "<tr><td background='".THEME."images/cellpic4.JPG' height='35' border='1'><center><font class='head-title' FACE='Arial'><B> $title</B></font></td></center>";
echo "</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 style='border: 2px solid #262626' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td height='35' width='100%' background='".THEME."images/cellpic4.JPG' border='2'>";
echo "<center><font class='block-title' FACE='Arial'><B>$title</B></font></center>";
echo "</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%' height='10'>
<tr>
<td width='100%'></td>
</tr>
</table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' style='border: 2px solid #262626' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td height='35' width='100%' background='".THEME."images/cellpic4.JPG'>";
echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><center><font class='block-title'>$title</font></center>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
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='0'></td></tr></table>\n";
}
?>
Dabartinė mano thema:
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| WOW Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: xibit themes - Jones63 © 2005 |
| web: http://www.xibit.de |
| email: info@xibit.de |
|---------------------------------------------|
| 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 = "#000000";
$theme_width = "980";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='wow'>
<tr>
<td>
<table align='center' cellpadding='0' cellspacing='0' width='910px'>
<tr>
<td class='full-header'>
<table align='center' cellpadding='0' cellspacing='0' width='910px'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td style='width:14px'><img src='".THEME."images/l_nav.gif' alt=''></td>
<td class='white-header'>".showsublinks("·","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
<td style='width:14px'><img src='".THEME."images/r_nav.gif' alt=''></td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='910px'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."\n";
if ($license) { echo showcopyright("side")." <br><br>
\n"; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td style='width:14px'><img src='".THEME."images/l_cap.gif' alt=''></td>
<td class='capmain'><b>$subject</b></td>
<td style='width:14px'><img src='".THEME."images/r_cap.gif' alt=''></td>
</tr>
</table>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td style='width:14px'><img src='".THEME."images/l_cap.gif' alt=''></td>
<td class='capmain'><b>$subject</b></td>
<td style='width:14px'><img src='".THEME."images/r_cap.gif' alt=''></td>
</tr>
</table>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td style='width:14px'><img src='".THEME."images/l_cap.gif' alt=''></td>
<td class='capmain'><b>$title</b></td>
<td style='width:14px'><img src='".THEME."images/r_cap.gif' alt=''></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>
<tr>
<td style='width:14px'><img src='".THEME."images/l_scap.gif' alt=''></td>
<td class='scapmain'><b>$title</b></td>
<td style='width:14px'><img src='".THEME."images/r_scap.gif' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="off") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<tr>
<td style='width:14px'><img src='".THEME."images/l_scap.gif' alt=''></td>
<td class='scapmain'><b>$title</b></td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
<td style='width:14px'><img src='".THEME."images/r_scap.gif' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Parašė Lukšius· 2008 Gru. 14 21:12:27
#11
Na čia manau bus gana nesunkus klausimas.
Turiu mygtuko kodą:
<input type='submit' name='post_shout' value='Raðyti' class='sbbutton'>";
Kaip padaryti, kad paspaudus mygtuką numestų į nuorodą pvz: rasyti.php
Parašė Lukšius· 2008 Gru. 15 13:12:39
#12
^
UP
Reikia pagalbos :)
Parašė MAnjack· 2008 Gru. 15 14:12:34
#13
formos action vietą keisk.
Parašė Lukšius· 2008 Gru. 15 14:12:09
#14
Bandžiau keist ten toje eilutėje nuorodą kokią įdėti, bet vistiek nieko.
Gali gal plačiau aprašyti ką ten keisti/darašyti? ?|
Parašė Lukšius· 2009 Sau. 2 21:01:32
#15
Reikia kodo, kad po 5 sekundžių numestų į mano norimą adresą.
Parašė Mantux94· 2009 Sau. 2 21:01:13
#16
redirectas?
<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
window.location = "../javascriptredirect.php"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2 >Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new
location!</p>
</body>
</html>
naudokis paieska...