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

Parašė Use Google· 2009 Gru. 31 15:12:34
#1

Sveiki. Cia rasysiu klausimus v7 versijai, kai nereiketu kurti 100 temu.

1 klausimas toks smulkus: kaip pakeisti dizaino ploti ant v7 versijos?

Redagavo Use Google· 2009 Gru. 31 16:12:29

Parašė Use Google· 2009 Gru. 31 16:12:46
#2

Nagi, nejau nieks nežino?

Parašė Žmogus· 2009 Gru. 31 16:12:53
#3

theme.php ieškok define("THEME_WIDTH", "100%");

Parašė Use Google· 2009 Gru. 31 16:12:52
#4

Pabandyk surasti

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

define("THEME_BULLET", "<span class='bullet'><img src='".THEME."/images/bullet.gif'></span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header

   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/banner-left.png'></td>
   <td align='center' class='banner-c' width='100%'>\n".showbanners()."</td>
   <td align='center' class='banner-c' width='100%'><img src='".THEME."/images/banner.png'> </td>
   <td align='right'><img src='".THEME."/images/banner-right.png'></td>
   </tr></table>\n";

   echo "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ", "white")."</td>\n";
   echo "<td align='right' class='sub-header'>&nbsp;&nbsp;".showsubdate()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   

   //Content
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td align='left' class='sub-header1'>Design created by <a href='mailto:boom_buum_jee@yahoo.com'>kuki</a> | Coded by <a href='mailto:ewe_3w3@ayhoo.com'>eWe</a><br />Theme by <a href='http://gfxpixel.info'>GFXpixel.info</a><br />".showcounter()."";
   echo "<td align='right' class='sub-header1'> ".stripslashes($settings['footer']);
   if (!$license) { echo "<br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";
 

}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer middle-border'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function openside($title, $collapse = false, $state = "on") {

   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain-left'></td>\n";
   echo "<td align='center' class='scapmain'>$title</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
   }
   echo "<td class='scapmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";


}
?>




Redagavo Use Google· 2009 Gru. 31 16:12:34

Parašė Solo· 2009 Gru. 31 16:12:57
#5

Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;) Cbb kale ;)

Parašė Narysx· 2009 Gru. 31 16:12:14
#6

Delfine :D

Virš
define("THEME_BULLET", "<spa...

įsirašyk
define("THEME_WIDTH", "80%");

Redagavo Narysx· 2009 Gru. 31 16:12:21

Parašė Use Google· 2009 Gru. 31 16:12:13
#7

Narysx, neveikia :(

Parašė Creatium· 2009 Gru. 31 16:12:58
#8

Pabandyk pakeisti 80% į tarkim 200px

Parašė Narysx· 2009 Gru. 31 16:12:16
#9

Žodžiu... va

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

define("THEME_WIDTH", "80%");
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."/images/bullet.gif'></span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header

   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/banner-left.png'></td>
   <td align='center' class='banner-c' width='".THEME_WIDTH."'>\n".showbanners()."</td>
   <td align='center' class='banner-c' width='".THEME_WIDTH."'><img src='".THEME."/images/banner.png'> </td>
   <td align='right'><img src='".THEME."/images/banner-right.png'></td>
   </tr></table>\n";

   echo "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ", "white")."</td>\n";
   echo "<td align='right' class='sub-header'>&nbsp;&nbsp;".showsubdate()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   

   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
   echo "<td align='left' class='sub-header1'>Design created by <a href='mailto:boom_buum_jee@yahoo.com'>kuki</a> | Coded by <a href='mailto:ewe_3w3@ayhoo.com'>eWe</a><br />Theme by <a href='http://gfxpixel.info'>GFXpixel.info</a><br />".showcounter()."";
   echo "<td align='right' class='sub-header1'> ".stripslashes($settings['footer']);
   if (!$license) { echo "<br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";
 

}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer middle-border'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function openside($title, $collapse = false, $state = "on") {

   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain-left'></td>\n";
   echo "<td align='center' class='scapmain'>$title</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
   }
   echo "<td class='scapmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";


}
?>



Redagavo Narysx· 2009 Gru. 31 16:12:18

Parašė Use Google· 2009 Gru. 31 16:12:10
#10

Va nary, aciu :)

Dar viena problema: kaip reikia centruoti tema? Nu ta prasme kai sumazinau jos ploti (iki 900px) tai ji visa kairej atsidure, man reiketu kad ji centre butu. Tikius supratot.

Parašė Narysx· 2009 Gru. 31 16:12:55
#11

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

define("THEME_WIDTH", "80%");
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."/images/bullet.gif'></span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header

   echo "<table cellspacing='0' cellpadding='0' align='center'><tr><td align='left'><img src='".THEME."/images/banner-left.png'></td>
   <td align='center' class='banner-c' width='".THEME_WIDTH."'>\n".showbanners()."</td>
   <td align='center' class='banner-c' width='".THEME_WIDTH."'><img src='".THEME."/images/banner.png'> </td>
   <td align='right'><img src='".THEME."/images/banner-right.png'></td>
   </tr></table>\n";

   echo "<table cellpadding='0' cellspacing='0' align='center'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ", "white")."</td>\n";
   echo "<td align='right' class='sub-header'>&nbsp;&nbsp;".showsubdate()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   

   //Content
   echo "<table cellpadding='0' cellspacing='0'  align='center' width='".THEME_WIDTH."' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0' align='center' width='".THEME_WIDTH."'>\n<tr>\n";
   echo "<td align='left' class='sub-header1'>Design created by <a href='mailto:boom_buum_jee@yahoo.com'>kuki</a> | Coded by <a href='mailto:ewe_3w3@ayhoo.com'>eWe</a><br />Theme by <a href='http://gfxpixel.info'>GFXpixel.info</a><br />".showcounter()."";
   echo "<td align='right' class='sub-header1'> ".stripslashes($settings['footer']);
   if (!$license) { echo "<br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";
 

}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer middle-border'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";

}

function openside($title, $collapse = false, $state = "on") {

   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain-left'></td>\n";
   echo "<td align='center' class='scapmain'>$title</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
   }
   echo "<td class='scapmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
   echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
   <td align='center' class='sideb' width='100%'></td>
   <td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
   </tr></table>\n";


}
?>



Parašė Use Google· 2009 Gru. 31 16:12:12
#12

Dabar vel viskas kaip buvo su 100%... Nepykit kad debilisku klausimu klausineju, pirma kart su v7 dirbu.

Parašė Narysx· 2009 Gru. 31 16:12:56
#13

Tai tu pakeisk ten viršuj define("THEME_WIDTH", "80%");. Negali būt, kad vistiek taip pat.

Redagavo Narysx· 2009 Gru. 31 16:12:10

Parašė Use Google· 2009 Gru. 31 16:12:20
#14

Aj... Netycia vietoj 900px uzdejas buvau 900% :D

Deciau +10, bet tik +7 galiu :)