Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: sonines paneles
Parašė Lordcraft· 2008 Vas. 2 14:02:03
#1
Tuoj nusisausiu kaip nerandu kur pakeisti soniniu paneliu uzrasu fonto spalva. stai mano style.css failas:
nzn reikia padaryti tokias sonines paneles kaip ir naujienu paneles:
http://img244.imageshack.us/img2...sdfhe0.png
Jaigu redagusit ant mano pateikto style tai prasau paryskinkit vieta kur redagavot. aciu.
a { color:#666; text-decoration:none; }
a:hover { color:#666; text-decoration:underline; }
a.side { color:#880000; text-decoration:none; }
a:hover.side { color:#880000; text-decoration:underline; }
a.white { color:#880000; text-decoration:none; }
a:hover.white { color:#880000; text-decoration:underline; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
margin:0px;
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; color:#ddd; }
hr.side-hr { height:1px; color:#880000; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#666; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;background-color:#ddd;
border-top:1px #fff solid;
border-bottom:1px #fff solid;
padding:4px;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#666;background-color:#fff;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#000;background-color:#fff;
height:19px;
padding:0px 2px 0px 2px;
border:1px #888 solid;
margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;background-color:#eee;
border:1px #999 solid;
}
.main-body {
font-size:11px;
color:#000;background-color:#fff;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:10px;
color:#000;
border : 1px solid #880000;
padding:4px 4px 6px 4px;
}
.main-bg { background-color:#fff; padding:10px; }
.border { border:1px #880000 solid; }
.side-border-left { background-color:#eee; padding:5px; }
.side-border-right { background-color:#eee; padding:5px; }
.news-footer {
font-size:9px;
color:#000;background-color:#eee;
border-top:1px #880000 solid;
padding:2px 4px 4px 4px;
}
.barmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
padding:4px 4px 4px 4px;
}
.capmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#880000;background-image: url(images/cellpic.PNG);
border-bottom:1px #880000 solid;
padding:4px;
}
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#880000;background-color:#ddd;
padding:2px 4px 4px 4px;
}
.tbl-border { background-color:#880000; }
.tbl { font-size:11px; padding:4px; }
.tbl1 { font-size:11px; color:#000; background-color:#fff; padding:4px; }
.tbl2 { font-size:11px; color:#000; background-color:#eee; padding:4px; }
.forum-caption {
font-size:10px;font-weight:bold;
color:#880000;background-color:#ddd;
height:20px;
padding:0px 4px 2px 4px;
}
.quote {
color:#000;background-color:#eee;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #880000 solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#666; }
.shoutboxname { font-weight:bold; color:#666; }
.shoutbox { color:#666; }
.shoutboxdate { font-size:9px; color:#000; }
.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#666; }
.side-small { font-size:10px; font-weight:normal; color:#000; }
.side-label { background-color:#eee; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #880000; filter: gray; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }
Parašė Toonis· 2008 Vas. 2 14:02:16
#2
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#
880000;background-color:#ddd;
padding:2px 4px 4px 4px;
}
880000 tavo teksto spalva. :) Keisk į kokią tik nori. Ir capmain { skiltyje tas pats.
Parašė Lordcraft· 2008 Vas. 2 14:02:57
#3
ne teksto spalva o fono spalva. matai pas mane ten pilka kazkokia o as noriu ja pakeisti arba uzdeti image
Parašė bruzgis· 2008 Vas. 2 15:02:37
#4
nu tai background-color:#ddd;
Parašė Lordcraft· 2008 Vas. 2 15:02:47
#5
tik virsu kur yra pilka spalva, noriu uzdeti image kaip and news paneles, matai subruksnuota juoda betu butu gerai padaryti tarpa tarptu paneliu is virsaus ir pacios nes dabar jos kazkokios sujungtos i viena.
Redagavo Lordcraft· 2008 Vas. 2 15:02:49
Parašė Toonis· 2008 Vas. 2 15:02:00
#6
Jeigu nori pakeisti teksto
fono spalvą tai keisk background-color:#ddd; scapmain { skiltyje.
Parašė Toonis· 2008 Vas. 2 15:02:19
#7
Imidžą gali uždėti į capmain { bei scapmain { įtarpęs šį kodą.
background-image: url('images/paneles_paveiksliukas.gif');
Parašė Lordcraft· 2008 Vas. 2 15:02:32
#8
Toonis parašė:
Imidžą gali uždėti į capmain { bei scapmain { įtarpęs šį kodą.
background-image: url('images/paneles_paveiksliukas.gif');
tai tu paziurek i mano style faila pirma:
.capmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#880000;background-image: url(images/cellpic.PNG);
border-bottom:1px #880000 solid;
padding:4px;
ir pasikeite tos paneles i image bet tik ne sosnines o vidurines. NE TEKSTO SPALVA PAKEITI O FONTA ta ant ko yra tas tekstas.
Parašė Žmogus· 2008 Vas. 2 16:02:10
#9
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#880000;
background-image: url(images/cellpic.PNG);
padding:2px 4px 4px 4px;
}
Va šitas turi tikti ;)
Parašė Lordcraft· 2008 Vas. 2 17:02:29
#10
netinka ir nesuprantu kodel turetu tikti, tu nieko nepakeitei :D
Parašė Žmogus· 2008 Vas. 2 17:02:43
#11
Nes čia yra
.scapmain {
Parašė Lordcraft· 2008 Vas. 2 17:02:59
#12
nu sakau neveikia :(
Parašė Žmogus· 2008 Vas. 2 17:02:01
#13
Paro themes.php tada
Parašė Lordcraft· 2008 Vas. 2 17:02:45
#14
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #fff solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><div align='center'>";
include("menu.php");
echo "</div></td>
</td>
</tr>
</table></br></td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><div align='center'>";
include("banners.php");
echo "</div></td>
</td>
</tr>
</table></br></td>
<tr>
<td align='center'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/namai.gif' border=0' alt='Pradinis'></a>
<a href='".BASEDIR."go.php'><img src='".THEME."images/vip.gif' border=0' alt='VIP'></a>
<a href='".BASEDIR."downloads.php'><img src='".THEME."images/download.gif' border=0' alt='Download'></a>
<a href='".BASEDIR."weblinks.php?cat_id=1'><img src='".THEME."images/serveriai.gif' border=0' alt='Serveriai'></a>
<a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.gif' border=0' alt='Galerija'></a>
<a href='".FORUM."index.php'><img src='".THEME."images/forum.gif' border=0' alt='Forumas'></a>
<a href='".BASEDIR."weblinks.php?cat_id=1'><img src='".THEME."images/links.gif' border=0' alt='Nuorodos'></a>
<a href='".BASEDIR."contact.php'><img src='".THEME."images/kontaktai.gif' border=0' alt='Kontaktai'></a>
</td>
</tr>
</table>
</br>
<center> <table width='100%' cellspacing='0' cellpadding='0'>
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "
</tr>
</table></center>
<center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
<td><div align='center'>";
include("banners.php");
echo "</div></td>
</td>
</tr>
</table>
</center>
<center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table></center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
</br>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif' alt='·'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<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> ·\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif' alt='·'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "
</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img src='".THEME."images/panel_$box_img.gif' alt='$box_img' name='b_$boxname' onclick=\"javascript:flipBox('$boxname')\">
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "
</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='8'></td>
</tr>
</table>\n";
}
?>
Parašė Žmogus· 2008 Vas. 2 17:02:56
#15
Nu gi turi būti viskas
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:#880000;
background-image: url(images/cellpic.PNG);
padding:2px 4px 4px 4px;
}
šitas turi veikti
Parašė Lordcraft· 2008 Vas. 2 18:02:59
#16
si karta veikia bet aplamai kazkok cia keistas tas style failai net footer'io nera kur pakeisti...