Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Bėda su tema

Parašė adulis· 2008 Lie. 8 19:07:59
#1

Yra tokia bėda su tema:





Tarp headerio ir temos yra tarpas.
Theme.php
<?php

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

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "940";
$theme_width_l = "200";
$theme_width_r = "200";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<table align='center' width='940' height='200' border='0' cellpadding='0' cellspacing='0'>

   <tr>
      <img src='http://ogline.net/themes/OGlineV3/images/headeris.gif' style='margin:5px'></td>
   </tr>
</table>
";


echo "<table width='100%' cellpadding='4' cellspacing='0' border='0'><tr>";
}

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

   echo "</tr>\n</table>\n";
   echo "<table align='center' width='936' height='44' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='foootas1' width='714'></td>

      <td class='foootas2' width='226'></td>
   </tr>
</table>";
}

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

global $locale;

   echo "<table align='center' border='0' width='531' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='pan-ct-kaire'></td>
      <td class='pan-ct-centras'><center>$subject</center></td>

      <td class='pan-ct-desine'></td>
   </tr>
   <tr>
      <td class='pan-ct-son-kaire'></td>
      <td class='pan-ct-fonas'>";
   echo "$news";
   echo "<td class='pan-ct-son-desine'></td>
   </tr>
   <tr>
      <td class='pan-ct-apac-kaire'></td>
      <td class='pan-ct-apac-centras'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
   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>
      <td class='pan-ct-apac-desine'></td>
   </tr>
</table>";
}

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 width='100%' cellpadding='0' cellspacing='0' class='borderis_son'>
   <tr>
      <td>
<table width='100%' height='37' cellpadding='0' cellspacing='0'>
   <tr>

       <td class='pan-ct-kaire_all' width='125'><img src='".THEME."images/spacer.gif' width='125' height='37' style='display:block'></td>
       <td class='pan-ct-centras_all' width='100%'><center>$title</center></td>
      <td class='pan-ct-desine_all' width='137'><img src='".THEME."images/spacer.gif' width='137' height='37' style='display:block'></td>
   </tr>
</table>
   <table width='100%' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='pan_ct_body_all' width='100%' height='100%'>";
}

// Close table end
function closetable() {

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

function openside($title) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='borderis_son'>
   <tr>
      <td>
<table width='100%' cellpadding='0' cellspacing='0'>

   <tr>
      <td class='netzone_pan_l'>$title</td>
   </tr>
   <tr>
      <td class='paneles_bg'>";
}

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";
}
?>



Redagavo adulis· 2008 Lie. 8 19:07:31

Parašė _MaZvE_· 2008 Lie. 8 19:07:03
#2

Nu tai sutvarkyk kad nebutu tarpo :D

Parašė adulis· 2008 Lie. 8 21:07:58
#3

Jau susitvarkiau :D

Redagavo adulis· 2008 Lie. 8 22:07:41

Parašė RuP3r· 2008 Lie. 8 22:07:14
#4

Zeba Floodintojas tu **
gRf bandyk ir numesk foto kaip dabar atrodo.
<?php

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

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "940";
$theme_width_l = "200";
$theme_width_r = "200";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<table align='center' width='940' height='100' border='0' cellpadding='0' cellspacing='0'>

   <tr>
      <img src='http://ogline.net/themes/OGlineV3/images/headeris.gif' style='margin:5px'></td>
   </tr>
</table>
";


echo "<table width='100%' cellpadding='4' cellspacing='0' border='0'><tr>";
}

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

   echo "</tr>\n</table>\n";
   echo "<table align='center' width='936' height='44' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='foootas1' width='714'></td>

      <td class='foootas2' width='226'></td>
   </tr>
</table>";
}

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

global $locale;

   echo "<table align='center' border='0' width='531' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='pan-ct-kaire'></td>
      <td class='pan-ct-centras'><center>$subject</center></td>

      <td class='pan-ct-desine'></td>
   </tr>
   <tr>
      <td class='pan-ct-son-kaire'></td>
      <td class='pan-ct-fonas'>";
   echo "$news";
   echo "<td class='pan-ct-son-desine'></td>
   </tr>
   <tr>
      <td class='pan-ct-apac-kaire'></td>
      <td class='pan-ct-apac-centras'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
   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>
      <td class='pan-ct-apac-desine'></td>
   </tr>
</table>";
}

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 width='100%' cellpadding='0' cellspacing='0' class='borderis_son'>
   <tr>
      <td>
<table width='100%' height='37' cellpadding='0' cellspacing='0'>
   <tr>

       <td class='pan-ct-kaire_all' width='125'><img src='".THEME."images/spacer.gif' width='125' height='37' style='display:block'></td>
       <td class='pan-ct-centras_all' width='100%'><center>$title</center></td>
      <td class='pan-ct-desine_all' width='137'><img src='".THEME."images/spacer.gif' width='137' height='37' style='display:block'></td>
   </tr>
</table>
   <table width='100%' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='pan_ct_body_all' width='100%' height='100%'>";
}

// Close table end
function closetable() {

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

function openside($title) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='borderis_son'>
   <tr>
      <td>
<table width='100%' cellpadding='0' cellspacing='0'>

   <tr>
      <td class='netzone_pan_l'>$title</td>
   </tr>
   <tr>
      <td class='paneles_bg'>";
}

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šė adulis· 2008 Lie. 8 22:07:38
#5

Ačiu ruper už pagalba. Jau susitvarkiau :)

Redagavo adulis· 2008 Lie. 8 22:07:29