PyccKuu
Narys
Terminatorius
Pranešimai: 1539
Įstojęs: 2007 Gru. 24 16:12:39
Sveiki, gal žinote kodel taip yra :
Kai idedi naujiena ištempia saita kai nera arba padarita naujienos 2 kolonomis tada viskas ok o kai papastai bet ka parašius ištempkia belekaip
prašau padėkite
Themes.php
<?
/*--------------------------------------------+
| Cha.lt theme |
|---------------------------------------------|
| kūrė: BodY-woo-2 |
| web: http://kreivas.xz.lt |
| email: barxxss@one.lt |
| skype: woo.-2 |
+--------------------------------------------*/
/************************/
/* Tėmos nustatymai */
/************************/
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "1500"; //920
$theme_width_l = "180"; //202
$theme_width_r = "180"; //202
function render_header($header_content) {
global $theme_width,$settings;
// viršutinės dalies pradžia
echo "<center><table cellspacing='0' cellpadding='0' >";
echo "<tr>";
echo " <td align='top'><img src='".THEME."images/logo.png'></td>";
echo " <td align='top' width='160'></td>";
echo " <td align='top' ><img src='".THEME."images/baner.png'></td>";
echo "</tr></table></center>";
// virsutinė dalis pasibaigė
echo "<center><table width='960' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'>";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td class='meniu' width='950' background='".THEME."images/virsus/2.png'>";
$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 " | \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."><b>".$data['link_name']."</b></a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."
</td>";
echo "<td class='meniu' align='right' background='".THEME."images/virsus/2.png'>";
echo" </td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table></center>\n";
echo "<table width='967' cellpadding='4' bgcolor='#ffffff' cellspacing='0' align='center' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";
echo "<center><table cellSpacing='0' cellPadding='2' width='960' height='38' border='0'>";
echo "<tr>";
echo "</a>";
echo"<td width='960' >";
echo "<table width='960' cellspacing='0' cellpadding='0'>\n<tr>";
echo "<td>\n";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td width='950' background='".THEME."images/virsus/2.png'>hello inc ";
echo"</td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table>\n";
echo"</td></center>";
echo"</td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='0' width='100%' cellpadding='0'>";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><font color='0e58b0' size='3'><b>".$subject."</b></font></b></a><td height='30' background='".THEME."images/panel/2.png' align='right'><font color='666666'>Kategorija:</font><b><a href='news_cats.php?cat_id=".$info['kat_id']."'><font color='4b719e'>".$info['kategorija']."</font></a></b></a></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' ><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='naujiena'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td ><img src='".THEME."images/panel/d1.png' ></td>";
echo "<td width='100%' height='28' align='right' background='".THEME."images/panel/d2.png'>";
echo "<br>Paskelbe:<a href='profile.php?lookup=".$info['user_id']."'><font color='e34000'>".$info['user_name']."</font></a><b>|</b>Skaityta ".$info['news_reads']." kartu(us)|";
if ($info['news_allow_comments'])
echo "<a href='naujienos.php?readmore=".$info['news_id']."'><font color='e34000'>".$locale['043'].":".$info['news_comments']."</a> </font>|";
echo "".($info['news_ext'] == "y" ? "<a href='naujienos.php?readmore=".$info['news_id']."'><font color='e34000'>Toliau..</font></a> \n" : "")."";
echo"</td>";
echo"<td ><img src='".THEME."images/panel/d3.png' ></td></tr></table>";
echo "</td>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td><td height='23' >$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='right' 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 src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff' width='100%'>";
}
// Close table end
function closetable() {
echo "</td></tr></table><table cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
tablebreak();
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td valign='middle' width='100%' background='".THEME."images/panel/2.png'><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff'width='100%'>";
}
function closeside() {
echo "</td></tr></table><table cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table cellpadding='0' cellspacing='0' width='100%' >";
echo "<tr><td ><img src='".THEME."images/panel/1.png' width='5' height='40'></td>";
echo " <td width='100%' background='".THEME."images/panel/2.png'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font color='eb5800' size='2'><b>$title</b></font></td>";
echo "<td><img src='".THEME."images/panel/3.png' width='5' height='40'></td></tr>";
echo "</table><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='side-body' bgColor='#ffffff'width='100%'>";
echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table><table cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td ><img src='".THEME."images/panel/b2.png' width='5' height='6' ></td>";
echo "<td width='100%' height='6' background='".THEME."images/panel/b.png'</td>";
echo"<td ><img src='".THEME."images/panel/b1.png' width='5' height='6' ></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='2'></td></tr></table>\n";
}
?>
Enzo
Narys
Tankas
Pranešimai: 2397
Įstojęs: 2007 Lie. 30 22:07:24
Čia senesnė cha.lt temos versija. Man ir taip buvo.FCB arcelona
mes que un club
PyccKuu
Narys
Terminatorius
Pranešimai: 1539
Įstojęs: 2007 Gru. 24 16:12:39
sita neistempia bet blogai ja rodo ;( liniju nera puse
kiskiss
Narys
Terminatorius
Pranešimai: 1545
Įstojęs: 2006 Rugs. 11 17:09:58
Tema perkeliama, klausimas skirtas Themes skyriui
Pyyckuu imesk šią temą meginsiu sutvarkyti, vistiek laisva pertrauką dabar man
WantedBoy
Narys
Ekspertas
Pranešimai: 2443
Įstojęs: 2007 Bir. 6 19:06:30
Man tai jei taip rodo , tai buna, kad paneleje kazkurioje kodas laidingas , tai taip ir buna. O su kita tema gerai rodo puslapi?greitieji kreditai
PyccKuu
Narys
Terminatorius
Pranešimai: 1539
Įstojęs: 2007 Gru. 24 16:12:39
kiskiss parašė:
Tema perkeliama, klausimas skirtas Themes skyriui
Pyyckuu imesk šią temą meginsiu sutvarkyti, vistiek laisva pertrauką dabar man
Pabandik
kiskiss
Narys
Terminatorius
Pranešimai: 1545
Įstojęs: 2006 Rugs. 11 17:09:58
Bijau kad sutvarkyti neimanoma, reikėtu tikriausiai bene pusė kodo perrašyt, kadangi sutraukus panelės jos nepasiskirsto i dešinę pusė, o lieka apačioje, ir šeip esu ne 1 nusiskundima matęs kad nesusistvarko su cha.lt tema, taigi megink kita redaguoti ir pritaikyt tas pačias spalvas
PyccKuu
Narys
Terminatorius
Pranešimai: 1539
Įstojęs: 2007 Gru. 24 16:12:39
na aciu bent uz siokia tokia informacija aciu
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!