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

Parašė AceriVe· 2009 Lie. 3 04:07:07
#1

Sveiki. susiduriau su tokia nedidele problemele. Istiesu tai jau senai naudojau php fusion ir pamirsau kaip pakeisti is bg spalvos i baveiksliuka? Tarkim imeti linka 100x100 paveiksliuko, ir jis gaunasi per visa monitoriu. ( uzsipildo ). theme.php cia:

<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|  Devotion Pro Theme for PHP-Fusion v6       |
|            100% W3C Compliant               |
|---------------------------------------------|
| author: phpfusionmods.be - Yoda © 2006      |
| web: http://phpfusionmods.be                |
| email: admin@phpfusion.be                   |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/


if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

/************************/
/* Theme Settings      */
/************************/

$body_text = "#FFFFFF";
$body_bg = "#4b4b4b";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";


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

   echo "<table class='forumline' align='center' width='60%' cellspacing='0' cellpadding='0'>";
   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>";
   // Start banner code
   echo "<tr><td><img alt='' src='".THEME."images/logo.gif'></td>";
   echo "</tr></table></td></table>\n";
   // End banner code
   echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
   echo "<td class='sub-header'>\n";

$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 " <img alt='' src='".THEME."images/divider.gif'> \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.">".$data['link_name']."</a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "";
   echo "</td></tr></table>\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#242424' cellspacing='0' border='0'><tr>";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='0' width='100%' cellpadding='1'><tr>";
   echo "<td 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'>$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='center' 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&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></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='0' width='100%' cellpadding='1'><tr>";
   echo "<td 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='center' 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&item_id=".$info['article_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></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='0' cellPadding='0' width='100%' border='0'>";
   echo "<tr><th width='100%'><div class='table-cellpic' align='center'>$title</div></th></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#242424'>";
}

// 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='0' cellPadding='0' width='100%' border='0'>";
   echo "<tr><th width='100%'><div class='panel-cellpic' align='center'>$title</div></th></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#242424'>";
}

function closeside() {

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

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

if($open=="on"){$box_img="off";}else{$box_img="on";}

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

function closesidex() {

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

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




P.S. butu dar gerai suzinoti kaip panaikinti uzrasus apie naujienu info. Kaip buna naujiena ir po apacia uzrasyta: Parašė AceriVe July 03 2009 04:25:22 0 Komentarai · 0 Skaityta . butu labai gerai, jei padetumet :)