Waldoss
Narys
Ekspertas
Pranešimai: 2891
Įstojęs: 2009 Kov. 26 17:03:56
sveiki,stai iskilo tokia problema atsisiunciau tema tada idejau naujiena bet niera to knopkiaus kad naujiena galima butu skaityti placiau stai theme.php jeigu galite padekit:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#2788b8";
$body_bg = "#f6f6f6";
$theme_width = "870";
$theme_width_l = "253";
$theme_width_r = "253";
function render_header($header_content) {
global $theme_width;
$soft = dbcount("(news_id)", "news");
echo "
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table callpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='uphead' align='left'>Šiuo metu turime <b>".$soft."</b> nemokamo softo</td>
<td class='uphead' align='right'>".showsubdate()."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td rowspan='3'><img src='".THEME."images/header.png' width='515' height='257' alt=''></td>
<td rowspan='3'><img src='".THEME."images/header_1.png' width='50' height='257' alt=''></td>
<td><img src='".THEME."images/header_3.png' width='281' height='45' alt=''></td>
<td rowspan='3'><img src='".THEME."images/header_2.png' width='24' height='257' alt=''></td>
</tr>
<tr>
<td class='new_soft'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,9");
echo "<table cellspacing='0' cellpadding='0' border='0' width='100%'>
<tr>
<td colspan='2' class='new_soft2'> Naujausias softas </td>
</tr>";
while ($data = dbarray($result)) {
$id = $data['news_id'];
$p = trimlink($data['news_subject'], 42);
echo "
<tr>
<td width='8%'><img src='".THEME."images/new_soft.png'></td>
<td width='92%' class='new_soft3'><a href='".BASEDIR."news.php?readmore=$id'>$p</a></td>
</tr>";
}
echo "</table>
</td>
</tr>
<tr>
<td><img src='".THEME."images/header_4.png' width='281' height='47' alt=''></td>
</tr>
</table>
</td>
</tr>
</table>\n
";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='sub-header'>
<a href='".BASEDIR."index.php'>Pagrindinis</a>
<a href='".BASEDIR."news.php'>Softas</a>
<a href='".BASEDIR."news_cats.php'>Softo kategorijos</a>
<a href='#'>VIP softas</a>
<a href='#'>VIP privilegijos</a>
</td>
</tr>
</table>\n
";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>\n
<tr>\n
";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "
</tr>\n
</table>\n";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer1' align='left'>Dizaino idėja : <a href='http://judam.net'>Deccacolour</a></td>
<td class='footer2' align='right'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n<b>";
echo openform("N",$info['news_id']).newsposter($info," ·").closeform("N",$info['news_id']);
echo "</b></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'><font color='#33b3e6'>.</font>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
http://www.dviratis.ipp.lt Redagavo
Waldoss 2009 Kov. 29 11:03:51
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Viskas yra.
Duok includes/theme_function_includes.php
Waldoss
Narys
Ekspertas
Pranešimai: 2891
Įstojęs: 2009 Kov. 26 17:03:56
<?php
/*---------------------------------------------------+
| PHP -Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../index.php"); exit; }
function showsublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($sres) != 0) {
while($sdata = dbarray($sres)) {
if (checkgroup($sdata['link_visibility'])) {
if ($sdata['link_url']!="---") {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
}
$i++;
}
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function showsubdate() {
global $settings;
return ucwords(showdate($settings['subheaderdate'], time()));
}
function newsposter($info,$sep="",$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = "Peržiūrų : <a href='news.php?readmore=".$info['news_id']."'>".$info['news_reads']."</a> | ";
$res .= "Autorius : <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> |";
$res .= "Komentarų : (<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>) ";
return $res;
}
function newsopts($info,$sep,$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['042']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$info['news_comments'].$locale['043']."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['044']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>\n";
return $res;
}
function articleposter($info,$sep="",$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = "<img src='".THEME."images/bullet.gif' alt=''>\n";
$res .= $locale['040']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['041'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
return $res;
}
function articleopts($info,$sep) {
global $locale; $res = "";
if ($info['article_allow_comments']) $res = $info['article_comments'].$locale['043']." ".$sep."\n";
$res .= $info['article_reads'].$locale['044']." ".$sep."\n";
$res .= "<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>\n";
return $res;
}
function openform($item_type,$item_id) {
global $aidlink;
$res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) $res .= "<form name='editnews".$item_id."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$item_id."'>\n";
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) $res .= "<form name='editarticle".$item_id."' method='post' action='".ADMIN."articles.php".$aidlink."&article_id=".$item_id."'>\n";
}
return $res;
}
function closeform($item_type,$item_id) {
global $locale; $res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) $res .= "· <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$item_id.".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a>\n</form>\n";
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) $res .= " · <input type='hidden' name='edit' value='edit'><a href='javascript:document.editarticle".$item_id.".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a>\n</form>\n";
}
return $res;
}
function showcopyright($class="") {
global $settings;
$link_class = $class ? " class='$class' " : "";
$res = "Powered by <a href='http://www.php-fusion.co.uk'".$link_class."target='_blank'>PHP-Fusion</a> copyright © 2003-2006 by Nick Jones.<br>\n";
$res .= "Released as free software under the terms of the GNU/GPL license.";
return $res;
}
function showcounter() {
global $locale,$settings;
return number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['140'] : $locale['141']);
}
function panelbutton($state,$bname) {
return "<img src='".THEME."images/panel_".($state == "on" ? "off" : "on").".gif' name='b_$bname' alt='' onclick=\"javascript:flipBox('$bname')\">";
}
?>
http://www.dviratis.ipp.lt
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Šitą
function newsposter($info,$sep="",$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = "Peržiūrų : <a href='news.php?readmore=".$info['news_id']."'>".$info['news_reads']."</a> | ";
$res .= "Autorius : <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> |";
$res .= "Komentarų : (<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>) ";
return $res;
}
Pakeisk šitu
function newsposter($info,$sep="",$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = "Plačiau : <a href='news.php?readmore=".$info['news_id']."'>Plačiau</a> | ";
$res .= "Peržiūrų : <a href='news.php?readmore=".$info['news_id']."'>".$info['news_reads']."</a> | ";
$res .= "Autorius : <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> |";
$res .= "Komentarų : (<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>) ";
return $res;
}
Redagavo
2009 Kov. 29 11:03:45
Waldoss
Narys
Ekspertas
Pranešimai: 2891
Įstojęs: 2009 Kov. 26 17:03:56
Viska gerai idejau viskas veikia aciu labai,va dar tokia problema sikylo man sake kad mano saite randa wirusa www.programos.wu.lt kaip man ji istrynti?http://www.dviratis.ipp.lt
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Nu trojanas.
Waldoss
Narys
Ekspertas
Pranešimai: 2891
Įstojęs: 2009 Kov. 26 17:03:56
O kaip man ji istrinti?http://www.dviratis.ipp.lt
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
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
Jūsų saitai
Dalinuosi, dovanoju!
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!