Autor Zpráva
Zuben45
Profil
Dobrý den nevíte prosím jak udělat oby se opakovala jen jedna část obrázku a ten zbytek zustal jak je , vrh nahoře a dolek dole :-D , jen prostředek aby se natahoval , Děkuji
Venca V
Profil
V tomto případě musíš pozadí nastavit třem prvkům, např.

div#horni {background:#fff url('horni_obrazek') left top no-repeat;
div#stredni {background:#fff url('stredni_obrazek') left top repeat-y;
div#spodni {background:#fff url('spodni_obrazek') left top no-repeat;

<div id="horni"></div>
<div id="stredni"></div>
<div id="spodni"></div>
Zuben45
Profil
nevěděl bys prosímtě jak to vložit do tohoto kodu ? Děkuji

a { color:#ffcc00; text-decoration:none; font-size:11px;}
a:hover { color:#990000; text-decoration:underline; }

a.side { color:#ffcc00; text-decoration:none; }
a:hover.side { color:#990000; text-decoration:underline; }

a.white { color:#ffffff; text-decoration:none; }
a:hover.white {	color:#990000; text-decoration:underline; }

body 
{
background-image:url('images/bg.jpg');
background-attachment: scroll;
background-repeat: repeat-x;
background-position: 50% 0%

}

form { margin:0px 0px 0px 0px; }

hr { height:1px; color:#ffffff; }
hr.side-hr { height:1px; color:#ccc; }

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 {
        background-image: url(images/menubar.jpg);
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:12px;
	color:#999999;
	padding:5px;
}

.full-header {
        
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
	color:#ddd; 
        padding: 0px;
}

.button {
	font-family:Tahoma,Arial,Verdana,Sans-Serif;
	font-size:10px;
	color:#ffffff;background-color:#003300;
	height:19px;
	padding:0px 2px 0px 2px;
	border:1px #888 solid;
	margin-top:2px;
}
	
.textbox {
        background-image: url(images/light2.jpg);
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
	color:#000;
	border:1px #999 solid;
}

.main-body {
        
	font-size:13px;
	color:#ffffff;
	padding:8px 8px 8px 8px;
}

.side-body {
        
	font-size:11px;
	color:#ffffff;
	padding:2px 4px 2px 4px;
}

.main-bg {
	background-color:#000;
	padding:4px;
	border-top:1px #000 solid;
	border-bottom:1px #000 solid;
}

.border { border:2px #181818 solid;}


.side-border-left {
	
	border-right:1px #ffcc00 solid;
	padding:1px;
}

.side-border-right {
	
	border-left:1px #ffcc00 solid;
	padding:1px;
}

.news-footer {
        background-image: url(images/cellpic4.gif);
	font-size:9px;font-weight:bold;
	color:#ffffff;
	padding:8px 0px 0px 0px;
}

.barmain {
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
	color:#000;
	padding:4px 4px 4px 4px;
}

.capmain {
        background-image: url(images/sideheader.gif);
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:15px;font-weight:bold;text-align: center;
	color:#ffcc00;
        padding: 7px;
}

.scapmain {
        background-image: url(images/link-top.jpg);
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;font-weight:bold;text-align: center;
	color:#ffcc00;
	padding:9px;;
}

.tbl-border { background-color:#480000; }
.tbl { font-size:11px; padding:2px 0px 2px 0px;}
.tbl1 { font-size:11px; color:#ffffff; background-color: #000; padding:5px; }
.tbl2 { font-size:11px; color:#ffffff; background-color: #181818; padding:5px; }
	
.forum-caption {
	font-size:10px;font-weight:bold;
	color:#ffffff;background-image: url(images/cellpic4.gif);
	padding:2px 4px 2px 4px;
}

.quote {
	color:#000;background-image: url(images/light2.jpg);
	padding:2px;
	margin:0px 20px 0px 20px;
	border:1px #ccc solid;
}
	
.poll { height:12px; border:1px #000 solid; }

.comment-name { font-weight:bold; color:#666; }

.shoutboxname { color:#ffcc00; }
.shoutbox { color:#ffffff; }
.shoutboxdate { font-size:9px; color:#ffcc00; text-align:right; }

.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#ffffff; }
.side-small { font-size:10px;font-weight:normal; color:#ffffff; }
.side-label { background-color:#ddd; padding:2px; }

.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #ccc; filter: none; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }





Venca V
Profil
Zuben45
Jelikož netuším, jak vypadá HTML této šablony, tak opravdu netušil:-)
Zuben45
Profil
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Warcraft Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Stryker of The Conclave © 2006 |
| web: http://www.conclaveforums.com |
| email: netbrianw@gmail.com |
+--------------------------------------------*/

// theme settings
$body_text = "#ffffff";
$body_bg = "#000";
$theme_width = "800";
$theme_width_l = "160";
$theme_width_r = "160";

function render_header($header_content) {

global $theme_width,$settings,$locale;

echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #ffcc00 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>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-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 " &middot;\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." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? "&nbsp;" : "")."</td><td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "</tr>\n</table>\n";

echo "<table align='center' table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");

echo "</td>
</tr>
</table>
</td>
</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'>
".$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> &middot;\n";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'] .$locale['043']."</a> &middot;\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&amp;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'>
".$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']." &middot;\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&amp;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
Zuben45
Profil
je to php-fushion odkaz - http://www.phpfusion-mod.cz/news.php nebo [url=http://example.com]http://www.phpfusion.cz/[/url] , thema cele upravuju , Děkuji
Venca V
Profil
Toto ovšem není HTML kód šablony:-) Napíšu ti, jak jsem v začátcích postupoval já:

1./ Najdi si obrázek, který chceš v šabloně změnit.
2./ Změň ho, překresli, zaměň za svůj obrázek o stejných rozměrech.

Pokud ti takto upravená šablona stačí, výborně. Pokud ne, nauč se dostatečně CSS a HTML, abys rozuměl tomu, co ve stylopisu máš změnit, abys dosáhl kýženého výsledku. Pokud ti to za tu námahu nestojí, zkus sehnat někoho, kdo to udělá za tebe, třeba ve zdejší sekci Práce a zakázky.
Zuben45
Profil
Díky , jenomže v šabloně je jen jeden obrázek :-) , Díky

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0