Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Sorf klausimai

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'>&#222;inut&#235;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&#254;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'>&nbsp;";
   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>&nbsp;$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("&middot;","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")."&nbsp;<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,"&middot;").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,"&middot;").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";

}
?>