Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Themes klaida

Parašė PyccKuu· 2008 Sau. 11 22:01:50
#1

Sveiki, gal žinote kodel taip yra :



Kai idedi naujiena ištempia saita kai nera arba padarita naujienos 2 kolonomis tada viskas ok o kai papastai bet ka parašius ištempkia belekaip

prašau padėkite

Themes.php

<?
/*--------------------------------------------+
|  Cha.lt theme                               |
|---------------------------------------------|
| kūrė: BodY-woo-2                            |
| web: http://kreivas.xz.lt                   |
| email: barxxss@one.lt                       |
| skype: woo.-2                               |
+--------------------------------------------*/


/************************/
/* Tėmos nustatymai   */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "1500"; //920
$theme_width_l = "180"; //202
$theme_width_r = "180"; //202

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

// viršutinės dalies pradžia

   

echo "<center><table cellspacing='0' cellpadding='0' >";
echo "<tr>";
echo " <td align='top'><img src='".THEME."images/logo.png'></td>";
echo " <td align='top' width='160'></td>";
echo " <td align='top'  ><img src='".THEME."images/baner.png'></td>";
echo "</tr></table></center>";








   

   // virsutinė dalis pasibaigė
echo "<center><table width='960' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'>";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td class='meniu' width='950' background='".THEME."images/virsus/2.png'>";


$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.">".$data['link_name']."</a>";
            } else {
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."><b>".$data['link_name']."</b></a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? "&nbsp;" : "")."


</td>";
echo "<td class='meniu' align='right' background='".THEME."images/virsus/2.png'>";
echo" </td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table></center>\n";
echo "<table width='967' cellpadding='4' bgcolor='#ffffff' cellspacing='0' align='center' border='0'><tr>";
}



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

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";

echo "<center><table cellSpacing='0' cellPadding='2' width='960' height='38' border='0'>";
echo "<tr>";
echo "</a>";
   
echo"<td width='960' >";

echo "<table width='960' cellspacing='0' cellpadding='0'>\n<tr>";
echo "<td>\n";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td width='950' background='".THEME."images/virsus/2.png'>hello inc  ";




 echo"</td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
       
echo "</td></tr></table>\n";
echo"</td></center>";
   
echo"</td></tr></table></div>";
}

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

global $locale;



         
echo "<table class='news-border' border='0' cellspacing='0' width='100%' cellpadding='0'>";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><font color='0e58b0' size='3'><b>".$subject."</b></font></b></a><td height='30' background='".THEME."images/panel/2.png' align='right'><font color='666666'>Kategorija:</font><b><a href='news_cats.php?cat_id=".$info['kat_id']."'><font  color='4b719e'>".$info['kategorija']."</font></a></b></a></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";





               

                echo "</table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' ><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='naujiena'>$news</td></tr></table>";
   


   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td ><img src='".THEME."images/panel/d1.png'  ></td>";
echo "<td width='100%' height='28' align='right' background='".THEME."images/panel/d2.png'>";
echo "<br>Paskelbe:<a href='profile.php?lookup=".$info['user_id']."'><font color='e34000'>".$info['user_name']."</font></a><b>|</b>Skaityta ".$info['news_reads']." kartu(us)|";

   if ($info['news_allow_comments'])
   echo "<a href='naujienos.php?readmore=".$info['news_id']."'><font color='e34000'>".$locale['043'].":".$info['news_comments']."</a>  </font>|";
echo "".($info['news_ext'] == "y" ? "<a href='naujienos.php?readmore=".$info['news_id']."'><font color='e34000'>Toliau..</font></a> \n" : "")."";   

echo"</td>";
    echo"<td ><img src='".THEME."images/panel/d3.png'  ></td></tr></table>";

   
   
   echo "</td>";
   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><td height='23' >$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  cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table  cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff' width='100%'>";
}

// Close table end
function closetable() {

echo "</td></tr></table><table  cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
   tablebreak();
}

function openside($title) {
echo "<table  cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td valign='middle' width='100%' background='".THEME."images/panel/2.png'><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table  cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff'width='100%'>";




   
}

function closeside() {

echo "</td></tr></table><table  cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
   tablebreak();
   
   
}

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

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table  cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table  cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff'width='100%'>";
echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
   }

function closesidex() {
echo "</div></td></tr></table><table  cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
   tablebreak();

   }

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

}

?>



Parašė Enzo· 2008 Sau. 11 22:01:43
#2

Čia senesnė cha.lt temos versija. Man ir taip buvo.

Parašė PyccKuu· 2008 Sau. 11 23:01:48
#3

sita neistempia bet blogai ja rodo ;( liniju nera puse

Parašė kiskiss· 2008 Sau. 11 23:01:35
#4

Tema perkeliama, klausimas skirtas Themes skyriui

Pyyckuu imesk šią temą meginsiu sutvarkyti, vistiek laisva pertrauką dabar man :)

Redagavo kiskiss· 2008 Sau. 11 23:01:55

Parašė WantedBoy· 2008 Sau. 11 23:01:42
#5

Man tai jei taip rodo , tai buna, kad paneleje kazkurioje kodas laidingas , tai taip ir buna. O su kita tema gerai rodo puslapi?

Parašė PyccKuu· 2008 Sau. 11 23:01:27
#6

kiskiss parašė:
Tema perkeliama, klausimas skirtas Themes skyriui

Pyyckuu imesk šią temą meginsiu sutvarkyti, vistiek laisva pertrauką dabar man :)


Pabandik

Parašė kiskiss· 2008 Sau. 12 00:01:14
#7

Bijau kad sutvarkyti neimanoma, reikėtu tikriausiai bene pusė kodo perrašyt, kadangi sutraukus panelės jos nepasiskirsto i dešinę pusė, o lieka apačioje, ir šeip esu ne 1 nusiskundima matęs kad nesusistvarko su cha.lt tema, taigi megink kita redaguoti ir pritaikyt tas pačias spalvas

Parašė PyccKuu· 2008 Sau. 12 00:01:40
#8

na aciu bent uz siokia tokia informacija aciu ;)