Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kas gali būti theme.php ?

Parašė E01· 2008 Gru. 19 13:12:35
#1

Na va pakeičiau dizaina ir kai einu į web štai kas atsitinka foto: http://www.ipix.lt/images/820620...
Theme.php kas čia blogai ?
<?php

/************************/
/* Settings/Nustatymai   */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "988";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 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 width='988%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td height='156' background='".THEME."images/headeris.jpg' align='right' valign='middle'>
   <table width='940' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='250' align='center'>";
 
   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
   echo "<td>\n";
   echo "&nbsp;<a href='".BASEDIR."members.php'><span class='white'>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
   echo "</td></tr></table>\n";
   echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
  <tr>
    <td><table border='0' align='center' cellpadding='0' cellspacing='0'>
      <tr>
        <td width='75' align='center'><a href='index.php'><img src='".THEME."images/namai.png' border=0' alt='Pradinis'></a></td>

        <td width='75' align='center'><a href='forum/index.php'><img src='".THEME."images/forumas.png' border=0' alt='Diskusijos'></td>
        <td width='75' align='center'><a href='downloads.php'><img src='".THEME."images/siuntimai.png' border=0' alt='Siuntiniai'></td>
 <td width='75' align='center'><a href='viewpage.php?page_id=14'><img src='".THEME."images/reklama.png' border=0' alt='Reklama'></td>
  <td width='75' align='center'><a href='infusions/lgsl/index.php'><img src='".THEME."images/serveriai.png' border=0' alt='Serveriai'></td>
   
      </tr>
    </table></td>";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
      echo "<b>Design by <a href='mailto:sekoniukas@gmail.com'>OoPs</a></b>";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center>$subject</center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' 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 "".$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 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 "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&amp;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></td></tr></table>\n";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' 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 "".$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 height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&amp;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></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

   echo "</td></tr></table></td></tr></table>";
   tablebreak();
}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

   echo "</div></td></tr></table></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Parašė TaduXxX· 2008 Gru. 19 13:12:59
#2

Klaida rodo,jog išvis nėra theme.php

Parašė E01· 2008 Gru. 19 14:12:16
#3

Bet jis yra ?| :?

Parašė E01· 2008 Gru. 19 14:12:54
#4

Tai nieks nežinot ? :?

Parašė Grrai· 2008 Gru. 19 14:12:59
#5

susirask theme.php 14 eilute ir patvarkyk kas yra blogai

Parašė stygis· 2008 Gru. 19 14:12:07
#6

global $theme_width,$settings,$locale,$userdata,$aidlink;




šita eilutė bloga

bandom taip daryti

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "988");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_header($header_content) {

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width_l = "180";
$theme_width_r = "180";

   global $settings, $main_style, $locale, $userdata, $aidlink;



Redagavo stygis· 2008 Gru. 19 14:12:26

Parašė Žmogus· 2008 Gru. 19 14:12:33
#7

:DDD
Pažiūrėk ar nėra taip:
themes/tavo_theme/tavo_theme/theme.php

Bet turėtu būti
themes/tavo_theme/theme.php

Parašė stygis· 2008 Gru. 19 15:12:50
#8

arba šitaip xD

Parašė samsung123· 2008 Gru. 19 15:12:13
#9

Arba įdėk kitur IMG. Nes ipix nerodo :|

Parašė E01· 2008 Gru. 19 16:12:54
#10

http://img381.imageshack.us/my.p...ausjk8.jpg

Parašė Deiviux.eu· 2008 Gru. 19 16:12:48
#11

Tai kad nera theme.php fail
http://cs-ciz.xz.lt/themes/CsZon.../theme.php

Paziurek
O sejp bandyk padaryti Ne CsZona(1.0) o CsZona ir per mysql pakeisk i CsZona tema

Parašė E01· 2008 Gru. 19 17:12:02
#12

Kaip reik pakeisti theme per mysql ?

Parašė Pakartoti slaptažodį· 2008 Gru. 19 17:12:00
#13

Nueini į savo pagr. nustatymų lentelę ir į laukelį temos įrašai pavadinimą

Parašė E01· 2008 Gru. 19 17:12:12
#14

Nesupratau

Parašė Enzo· 2008 Gru. 19 17:12:05
#15

tau shadovw jau atsakė kaip daryt ^^^

Parašė E01· 2008 Gru. 19 17:12:59
#16

Viskas ten gerai krč nesuprantu

Parašė TaduXxX· 2008 Gru. 19 17:12:01
#17

PIKASSO parašė:
Nesupratau


jei tokių lengvų dalykų nemoki padaryti,tai gal išvis delete web ir bus rami galva tau

Parašė E01· 2008 Gru. 19 17:12:59
#18

Tai toks paaiškinimas ten kažkur eit ten.Pz :|

Parašė edis2· 2008 Gru. 19 18:12:06
#19

Blogai ikėlei tema manatroda :|

Parašė TaduXxX· 2008 Gru. 19 18:12:53
#20

paimk ir bet kokią veikiančią theme pervardyk į CsZona(1.0)

Parašė E01· 2008 Gru. 19 18:12:33
#21

Nieko nesidaro

Parašė Enzo· 2008 Gru. 19 18:12:10
#22

gerai įkelk visą .rar folderį čia ir pažiūrėsiu kame replės ten

Parašė TaduXxX· 2008 Gru. 19 18:12:14
#23

tavo saitas http://cs-ciz.xz.lt ?

Nes man jis veikia puikiai jau...

Redagavo TaduXxX· 2008 Gru. 19 18:12:14

Parašė E01· 2008 Gru. 19 18:12:36
#24

Aij veikia jau tada ačiū TaduXxX duosiu kiek galėsiu :) ;)

Parašė TaduXxX· 2008 Gru. 19 18:12:29
#25

Nėra už ką,tik pasakiau lengviausią ir suprantamiausią būdą,kad nereikėtų per visokias DB ir pan..bet tokius dalykus,turėtum pats žinoti..

Parašė E01· 2008 Gru. 19 18:12:35
#26

Tai su tavo pagalba žinosiu ;)