Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Bico klausimas

Parašė bicas· 2009 Sau. 3 21:01:30
#1

Sveiki yra beda. Parsisiunciau tema is WTFthemes.com ji vadinasi DJ-Radio. Nu ka ikeliau i FTP, nuejau i puslapi ir kazkaip nustebau. 2 navigacijos, ir 2 vartotojo panels. Taip pat, kai prisijungiu i super administratoriaus acc, man nerodo administracijos panele nuorodos. Gal galit paredaguoti tema kad viskas normaliai butu? Buciau labai dekingas, galeciau atsilyginti :) LABAI ACIU!
Foto, kaip iskraipo:





Foto kaip saitas turi atrodyti:





Kodas kuri reikia paredaguoti:
<?php

echo "

<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' style='border-right: solid # 2px;'>

<tr>

<td width=199 height=49 align=center style='border-right: solid #5c5e5d 2px;' bgcolor='#3d3f3e'><a href=".BASEDIR."index.php><img src=".THEME."nuorodos/home.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."search.php><img src=".THEME."nuorodos/search.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."contact.php><img src=".THEME."nuorodos/contact.jpg border=0></a></td>

<td width=472 height=49 bgcolor='#3d3f3e' align=left>
<td width=199 height=51 style='border-left: solid # 2px;' bgcolor='#3d3f3e' background='".THEME."images/headeris3.jpg' align=right  class='headeris5'></td>

<table align=center border=0 cellpadding='0' cellspacing='0' width='662'>
</tr>
</table>

</tr>
</table>



<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' bgcolor='#3d3f3e'>

<tr>

<td width=195 >


<table align=center border=0 cellpadding='0' cellspacing='0' width='195' height='194' bgcolor='#3d3f3e'>
<td background='".THEME."images/navigacija.jpg' class='nuorodos'>"; echo showsublinks("<br><img src=".THEME."images/bullet.gif border=0>",white); echo "</td>
</table>


<td width=663>

<table align=left border=0 cellpadding='0' cellspacing='0' width='460' class='headeris'>

<tr>

<td width='460' height='194' background='".THEME."images/headeris.jpg'></td>
<table align=center border=0 cellpadding='0' cellspacing='0' width='193' bgcolor='#3d3f3e'>

<tr>

<td width=150 valign=top height=150  background='".THEME."images/navigacija2.jpg' style='padding: 4px;'><br>";

if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo "<br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='um'>Pateikti naujieną</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=a' class='um'>Pateikti straipsnį</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=p' class='um'>Pateikti nuotrauką</a><br>

<br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='um'>Redaguoti profilį</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='um'>Asmeninės žinutės</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='um'>Narių sąrašas</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='um'>Atsijungti</a>\n";

} else {

   echo "<br><div align='center'>".(isset($loginerror) ? $loginerror : "")."

<form name='loginform' method='post' action='".FUSION_SELF."'>
<font color='#fffff'>Vartotojo vardas</font>
<input type='text' name='user_name' class='textbox' style='width:100px' value='Vartotojas' onclick='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onblur='if (this.value==&quot;&quot;) {this.value=&quot;&quot;;};'><br>
<font color='#fffff'>Slaptažodis</font><br>
<input type='password' name='user_pass' class='textbox' style='width:100px' value='Vartotojas' onblur='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onclick='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onblur='if (this.value==&quot;&quot;) {this.value=&quot;&quot;;};'><br>

<input type='submit' name='login' value='Prisijungti' class='button'><br>

</form></div>

<br>\n";


echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."register.php' class='um'><font color='#fffff'>Užsiregistruoti</font></a><br>";

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."lostpassword.php' class='um'><font color='#fffff'>Pamiršau slaptažodį</font></a>";


   if ($settings['enable_registration']) {

      echo "".$locale['065']."<br><br>\n";

   }

   echo $locale['066']."

</div>\n";

}

echo "</td>

</td>
</tr>
</table>

</td>

</tr>

</table>";



?>




O cia, del visa ko, jeigu prireiktu theme.php failas:
<?php

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

require_once INCLUDES."theme_functions_include.php";



// theme settings

$body_text = "#fff";

$body_bg = "#5c5e5d";

$theme_width = "850";

$theme_width_l = "195";

$theme_width_r = "195";



function render_header($header_content) {



global $theme_width;



echo "<table align='center' cellspacing='0' cellpadding='0' width='100%'>

<tr>

<td>

<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td>

<table cellpadding='0' cellspacing='0' align='center' width='$theme_width'>

<tr>

<td style='border-bottom: solid #5c5e5d 2px;'>";

include_once "virsus.php";

echo "</td>

</tr>

</table>

</td>

</tr>

</table>\n";



echo "<table align=center cellpadding='0' cellspacing='0' width='850' >\n<tr>\n";



}



function render_footer($license=false) {



global $theme_width,$settings;



echo "</tr>\n</table>\n";

echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>

<tr>

<td align='center' class='footer' height=20>

&copy; <b>yoursite.com | Sprendimas WTFthemes.com </b>

</td>

</tr>

<tr>

<td align='right' class=footer3 height=15>";

echo "Powered by <b>PHP-Fusion</b>";

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>";
        echo "<td height='29' class='capmain1'>$subject</td>";
        echo "</tr></table>";
        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td></td>";
        echo "<td class='main-body1'><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 align='left' height='21' class='news-footer'>";
        echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
        echo "".$locale['041'].showdate("longdate", $info['news_date'])."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

        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']." ";
   
        echo "</td></tr></table></div></td>";
        echo "<td class='rechts'>";
        echo "</td></tr><tr>";
        echo "<td></td>";
        echo "<td></td>";
        echo "<td></td>";
        echo "</tr></table>\n";
}



function render_article($subject, $article, $info) {

   

echo "<table width='100%' cellpadding='0' cellspacing='0'>

<tr>

<td class='capmain1'>$subject</td>

</tr>

<tr>

<td class='main-body1'>

".($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," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);

echo "</td>

</tr>

</table>\n";



}



function opentable($title) {



echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td class='capmain'>$title</td>

</tr>

<tr>

<td class='main-body'>\n";



}



function closetable() {



echo "</td>

</tr>

</table>\n";



}



function openside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td width=176 class='scapmain'>$title</td>

</tr>

<tr colspan=2>

<td colspan=2 class='side-body'>\n";

}



function closeside() {

echo "</td>

</tr>

</table>\n";

tablebreak();

}

function userside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td class='side-body'>\n";

}



function closeuside() {

echo "</td>

</tr>

</table>\n";

}



function opensidex($title,$state="on") {



$boxname = str_replace(" ", "", $title);

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>

<tr>

<td class='scapmain'>$title</td>

<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>

</tr>

<tr>

<td colspan='2' 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='15'></td>\n</tr>\n</table>\n";



}

?>



Redagavo bicas· 2009 Sau. 4 10:01:23