Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl paplėtimo

Parašė Valuediz· 2008 Bal. 28 15:04:14
#1

Kaip reikia praplėsti puslapį į viršų ir apačią, nes lieka background juosta virš headerio ir žemiau footerio.

Parašė RuP3r· 2008 Bal. 28 15:04:52
#2

duok theme.php

Parašė Valuediz· 2008 Bal. 28 15:04:18
#3

va theme.php
define('IN_REVISION', true);
require_once(INCLUDES.'theme_functions_include.php');
require_once(THEME.'includes/navigationbar.class.php');
require_once(THEME.'theme_config.php');

function render_header() {
   global $theme_width, $rtNavbar, $rtHeader, $settings;
   if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
      $url = $rtHeader['logo_url'];
   else
      $url = false;

   if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
      $title = $rtHeader['logo_url_title'];
   else
      $title = false;

   echo "<script language='javascript' src='".THEME."includes/revision.js' type='text/javascript'></script>\n"
   ."<table align='center' border='0' cellpadding='0' cellspacing='0' width='1000'>\n"
   ."<tr><td class='pageLeft'></td><td width='1000' class='pageCenter' valign='top'>\n"
   ."<table border='0' cellpadding='0' cellspacing='0' id='header' width='100%'><tr>\n"
   ."<td class='logo' height='170' valign='top' width='100%'>"
   .($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
   ."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/logo.png'".($title ? " title='".$title."'" : "").">"
   .($url ? "</a>" : "")
   .((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";

   echo "</tr></table>\n";
   $rtNavbar->generate();
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n";
}

function render_footer() {
   global $settings;
   echo "</tr></table>\n";
   // copyrighted line must stay intact and visible.
   echo "<table cellpadding='0' cellspacing='0' id='footer' width='100%'><tr><td nowrap='nowrap' valign='top'>Varikliukas: <a href='http://www.php-fusion.co.uk/' target='_blank' onmousedown='return false;'>PHP Fusion</a></td><td align='center' width='100%' style='padding-left:0px;padding-right:0px;'>".$settings['footer'].showcounter()."</td><td align='right' nowrap='nowrap' valign='top'></td></tr></table>\n";
   echo "</td><td class='pageRight'></td></tr>\n</table>\n";
}

function render_news($subject, $news, $info) {
   global $locale;
   opentable($subject);
   echo $locale['040'].newsposter($info)."\n"
   ."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
   .openform("N",$info['news_id']).newsopts($info," &middot;").closeform("N",$info['news_id'])."\n";
   closetable();
}

function render_article($subject, $article, $info) {
   global $locale;
   opentable($subject);
   echo $locale['040'].articleposter($info)."\n"
   ."<br>\n<hr>\n<br>\n".$article."<br><br>\n<hr>\n"
   .openform("A",$info['article_id']).articleopts($info," &middot;").closeform("A",$info['article_id'])."\n";
   closetable();
}


function opentable($title) {
   echo "<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>\n";
}
function closetable() {
   echo "</td></tr></table>\n";
   tablebreak();
}

function openside($title) {
   echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td></tr></table>\n";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>\n";
}

function closeside() {
   echo "</td></tr></table>\n";
   sidebreak();
}

$boxcounter = 1;
function opensidex($title,$open="on") {
   global $boxcounter;
   $boxname = "expbox".$boxcounter;
   $boxcounter++;
   $box_img = ($open=="on" ? "off" : "on");
   echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr>"
   ."<td class='sideTitleOverlay' height='40' width='100%' valign='top'>".$title."</td>"
   ."<td class='sideTitleMinMax' nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
   ."</tr></table>\n";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}

function closesidex() {
   echo "</div></td></tr></table>\n";
   sidebreak();
}

function tablebreak() {
   echo "<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>\n";
}

function sidebreak() {
   global $theme_panels_width;
   echo "<img alt='spacer' height='10' src='".THEME."images/spacer.gif' width='".$theme_panels_width."'>\n";
}
?>



Parašė RuP3r· 2008 Bal. 28 15:04:38
#4

Iš tokio teme php nežinau dažniausiai buna taip viršus


$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";





Parašė bad_user· 2008 Bal. 28 15:04:37
#5

Šita duok: theme_config.php :)

Parašė Valuediz· 2008 Bal. 28 15:04:23
#6

stai ir theme_config.php
/* PHP Fusion theme default configurations */
$body_text = "#444444";
$body_bg = "#DAE2E3";
$theme_width = 1000;
$theme_panels_exclude = array("/forum/");

$theme_panels_width = 170;
// keep the width of the panels the same so it does not compress the tables
$theme_width_r = $theme_panels_width;
$theme_width_l = $theme_panels_width;


/* Revision Theme configurations */
# for support and explanation about these configurations please go to http://www.uworldirc.com/support...

// Page Header
$rtHeader['logo_url'] = BASEDIR.'index.php';
$rtHeader['logo_url_title'] = 'Front Page';
$rtHeader['rightside_member'] = "Welcome <strong>".$userdata['user_name']."</strong>";
$rtHeader['rightside_guest'] = "Welcome <strong>Guest</strong><br>please <a href='".BASEDIR."login.php'>login</a> or <a href='".BASEDIR."register.php'>register</a>";



Tai žino kasnors?

Redagavo Valuediz· 2008 Bal. 28 15:04:45

Parašė Valuediz· 2008 Bal. 28 16:04:34
#7

nenoriu doublepostint, bet jau pora valandu praėjo. negi niekas nežino? ?|

Parašė Toonis· 2008 Bal. 28 19:04:54
#8

styles.css - body } skiltis -> pridėk:
margin-top: 0px;
margin-bottom: 0px;

Parašė Valuediz· 2008 Bal. 28 20:04:04
#9

Dekui!! ;) tikrai padėjei
Gal dar žinot kas kaip padaryt background, kad centre būtų, o ne nuo krašto?

Redagavo Valuediz· 2008 Bal. 28 20:04:29

Parašė Toonis· 2008 Bal. 28 20:04:02
#10

background-position: center;