Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nerodyti newcats
Parašė __________· 2008 Vas. 29 19:02:01
#1
Sveiki, taigi kaip padaryti kad nerodytu new cats ;/ ?
2. Gal kas galėtumėte paredaguoti theme.php kad būtų naujienos pavadinimas ties vidurių bet ne iš didžiūjų raidžių. :)c|
Parašė Dandžu· 2008 Vas. 29 19:02:33
#2
Kad nerodytų news cats yra straipsniuose. Duok theme.php.
Parašė __________· 2008 Vas. 29 20:02:29
#3
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#484848";
$theme_width = "780"; ///Temos plotis
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='outer-border'>\n<tr>
<td><img src='".THEME."header.gif'></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='linija'></td>
</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 align='center' class='footer'> Dizainą kūrė emotive redagvo Tautvydas.</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width'>
<tr>
<td class='capmain'>$subject<br><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;'>".showdate("shortdate", $info['news_date'])."</span></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'></td>
</form>
</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'>$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";
}
?>
Redagavo __________· 2008 Vas. 29 20:02:27
Parašė __________· 2008 Vas. 29 20:02:00
#5
Ačiū, tą jau pasidariau kad nebūtų new cats.;-)
Parašė Giedrunskis· 2008 Vas. 29 20:02:25
#6
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#484848";
$theme_width = "780"; ///Temos plotis
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='outer-border'>\n<tr>
<td><img src='".THEME."header.gif'></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='linija'></td>
</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 align='center' class='footer'> Dizainą kūrė emotive redagvo Tautvydas.</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width'>
<tr>
<td class='capmain'><center>$subject</center><br><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;'>".showdate("shortdate", $info['news_date'])."</span></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'></td>
</form>
</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'>$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";
}
?>
Gal tik sito uzteks, pamegink, negarantoju ?|
Redagavo Giedrunskis· 2008 Vas. 29 20:02:42
Parašė __________· 2008 Kov. 1 08:03:41
#7
Nežinau, turbūt neveikia, nes nerodo. :|
Parašė Toonis· 2008 Kov. 1 09:03:38
#8
Styles.css duok.
Parašė __________· 2008 Kov. 1 09:03:24
#9
a {
color : #333333;
text-decoration : none;
}
a:hover {
color : #96c41b;
text-decoration : none;
}
a.side {
color : #333333;
text-decoration : none;
}
a:hover.side {
color : #96c41b;
text-decoration : none;
}
a.white {
color : #ddd;
text-decoration : none;
}
a:hover.white {
color : #ddd;
text-decoration : underline;
}
body {
background-image: url('images/fonas.gif');
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin: 0px;
}
.line {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
}
.header_top {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/header_top.gif);
width: 780px;
height: 102px;
font-size : 10px;
}
.header_bottom {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/header.gif);
width: 780px;
height: 456456x;
font-size : 10px;
}
.linija {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/linija.gif);
width: 780px;
height: 30px;
font-size : 10px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #4f504f;
}
.outer-border {
border : 1px solid #fff;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #ddd;
}
.footer {
background-image: url('images/footer.png');
width: 780px;
height: 120px;
background-color : #f5f5f5;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
padding-left : 370px;
padding-top : 90px;
}
.button {
font-family : Verdana;
font-size : 10px;
font-weight: bold;
color : #a5d327;
background-color : #f5f5f5;
height : 17px;
border : 1px solid #e9e6e6;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f8f8f8;
border : 1px solid #ccc;
}
.main-body {
font-size : 10px;
color : #333333;
background-color : #f5f5f5;
padding : 5px 5px 5px 5px;
}
.side-body {
font-size : 10px;
color : #777;
background-color : #f6f6f6;
padding : 4px;
}
.main-bg {
color : #555;
background-color : #f5f5f5;
padding : 10px 5px 10px 5px;
}
.border {
border : none;
}
.side-border-left {
color : #777;
background-color : #f5f5f5;
padding : 10px 5px 10px 10px;
}
.side-border-right {
color : #777;
background-color : #f5f5f5;
padding : 10px 10px 10px 5px;
}
.news-footer {
font-size : 10px;
color : #96c41b;
padding-top : 10px;
}
.capmain {
font-family : Arial;
font-size : 18px;
font-weight : none;
color : #a5d327;
border-top : 1px solid #eee;
padding : 2px 2px 2px 2px;
padding-left : 14px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 13px;
font-weight : bold;
color : #a5d327;
padding : 4px;
border-bottom : 1px solid #eee;
text-align : center;
}
.tbl {
font-size : 10px;
color : #a5d327;
background-color : #f5f5f5;
padding : 4px;
}
.tbl1 {
font-size : 10px;
color : #a5d327;
background-color : #f5f5f5;
padding : 4px;
}
.tbl2 {
font-size : 10px;
color : #a5d327;
background-color : #f0f0f0;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #888;
background-color : #f1f1f1;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 4px;
background-color : #b4d55c;
}
.comment-name {
font-weight : bold;
color : #597a08;
}
.shoutboxname {
font-weight : bold;
color : #597a08;
}
.shoutbox {
color : #777;
}
.shoutboxdate {
font-size : 10px;
color : #a5d327;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #555;
background-color : #f6f6f6;
}
.side-label {
color : #555;
background-color : #f1f1f1;
padding : 2px 2px 3px 2px;
}
Parašė Toonis· 2008 Kov. 1 09:03:53
#10
Turėtų veikti.
a {
color : #333333;
text-decoration : none;
}
a:hover {
color : #96c41b;
text-decoration : none;
}
a.side {
color : #333333;
text-decoration : none;
}
a:hover.side {
color : #96c41b;
text-decoration : none;
}
a.white {
color : #ddd;
text-decoration : none;
}
a:hover.white {
color : #ddd;
text-decoration : underline;
}
body {
background-image: url('images/fonas.gif');
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin: 0px;
}
.line {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
}
.header_top {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/header_top.gif);
width: 780px;
height: 102px;
font-size : 10px;
}
.header_bottom {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/header.gif);
width: 780px;
height: 456456x;
font-size : 10px;
}
.linija {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: url(images/linija.gif);
width: 780px;
height: 30px;
font-size : 10px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #4f504f;
}
.outer-border {
border : 1px solid #fff;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #ddd;
}
.footer {
background-image: url('images/footer.png');
width: 780px;
height: 120px;
background-color : #f5f5f5;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
padding-left : 370px;
padding-top : 90px;
}
.button {
font-family : Verdana;
font-size : 10px;
font-weight: bold;
color : #a5d327;
background-color : #f5f5f5;
height : 17px;
border : 1px solid #e9e6e6;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f8f8f8;
border : 1px solid #ccc;
}
.main-body {
font-size : 10px;
color : #333333;
background-color : #f5f5f5;
padding : 5px 5px 5px 5px;
}
.side-body {
font-size : 10px;
color : #777;
background-color : #f6f6f6;
padding : 4px;
}
.main-bg {
color : #555;
background-color : #f5f5f5;
padding : 10px 5px 10px 5px;
}
.border {
border : none;
}
.side-border-left {
color : #777;
background-color : #f5f5f5;
padding : 10px 5px 10px 10px;
}
.side-border-right {
color : #777;
background-color : #f5f5f5;
padding : 10px 10px 10px 5px;
}
.news-footer {
font-size : 10px;
color : #96c41b;
padding-top : 10px;
}
.capmain {
font-family : Arial;
font-size : 18px;
font-weight : none;
color : #a5d327;
border-top : 1px solid #eee;
padding : 2px 2px 2px 2px;
padding-left : 14px;
text-align : center;
text-transform: uppercase;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 13px;
font-weight : bold;
color : #a5d327;
padding : 4px;
border-bottom : 1px solid #eee;
text-align : center;
}
.tbl {
font-size : 10px;
color : #a5d327;
background-color : #f5f5f5;
padding : 4px;
}
.tbl1 {
font-size : 10px;
color : #a5d327;
background-color : #f5f5f5;
padding : 4px;
}
.tbl2 {
font-size : 10px;
color : #a5d327;
background-color : #f0f0f0;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #888;
background-color : #f1f1f1;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 4px;
background-color : #b4d55c;
}
.comment-name {
font-weight : bold;
color : #597a08;
}
.shoutboxname {
font-weight : bold;
color : #597a08;
}
.shoutbox {
color : #777;
}
.shoutboxdate {
font-size : 10px;
color : #a5d327;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #555;
background-color : #f6f6f6;
}
.side-label {
color : #555;
background-color : #f1f1f1;
padding : 2px 2px 3px 2px;
}
Parašė __________· 2008 Kov. 1 10:03:51
#11
Hmmm, biškutį į šoną pasistūmėjo, bet į patį vidurį ne. :| Ačiū už pagalbą. ;-);)