Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: news-footer

Parašė yplon· 2007 Rugp. 31 15:08:07
#1

Kokias eilutes turiu ištrint, kad naujienų footer'yje nerodytų vardo (kas parašė naujieną) ir kad nerodytų kiek kartų skaityta. News.php turiu redaguot ar ne tik ? Gal galit kas aprašyt kur, ką, kurioje eilutėje turiu ištrint ? Nes nenoriu ko nors pridaryt...dekui ;)

Parašė MAnjack· 2007 Rugp. 31 15:08:03
#2

theme.php redaguok.

Parašė Toonis· 2007 Rugp. 31 15:08:59
#3

Theme.php - yra eilute (141) štai tokia:
echo openform("N",$info['news_id']).newsposter($info," Ā·").newsopts($info,"Ā·").closeform("N",$info['news_id']);


(gali skirtis įvairių themių)
ir toje eilutėje yra .newsopts($info,"Ā·") taigi šita ištrini ir viskas. Testavau savo SoftBlue themeje viskas veikė. Bandyk.

Redagavo Toonis· 2007 Rugp. 31 15:08:10

Parašė yplon· 2007 Rugs. 1 19:09:00
#4

Nu joa čią priklauso nuo themos...Ištryniau šitą dalyką ką Toonis parašė, tai išsitrynė tik kiek "skaityta"..
Ʋodziu pas mane šiuo metu yra taip, bet aš noriu kad būtų taip

Mano theme.php kodas:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {

global $theme_width,$settings,$locale,$userdata,$aidlink;

echo "<table align=center class='mainsite-border' align='left' width='900' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";



echo "<table width='100%' cellspacing='0' cellpadding='0'>\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>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"  ").newsopts($info," ").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<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 class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"  ").articleopts($info," ").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<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>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td height=10 width=160 class='scapmain' align='center'>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<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>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}

function openside2($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td class='virsus'>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side1'>\n";

}

function closeside2() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
?>



Redagavo yplon· 2007 Rugs. 1 19:09:29

Parašė Toonis· 2007 Rugs. 1 19:09:10
#5

Tada bandyk eiti:
/includes/theme_functions_include.php
Susirask:
function newsposter($info,$sep="",$class="") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = "<img src='".THEME."images/bullet.gif' alt=''> ";
   $res .= "<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
   $res .= $locale['041'].showdate("longdate", $info['news_date']);
   $res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
   return $res;
}





Ir bandyk trinti:

$res = "<img src='".THEME."images/bullet.gif' alt=''> ";
   $res .= "<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";



Manau turėtų keistis. ?|. Netestavau tad nežinau. ?|

Redagavo Toonis· 2007 Rugs. 1 20:09:19

Parašė Žmogus· 2007 Rugs. 1 19:09:30
#6

function render_news($subject, $news, $info) {
   

   
   echo "<table border='0' style=': 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='' height='24'><font class='block-title' align=>$subject</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'> ";
   
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<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> Ā· ";
   
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table><br>\n";
}



Manau suprasi, kur keisti
Nu jei suprasi tai ce pats galesi pasiredaguoti ;)

Toonis: Išjungiau smailus.

Redagavo Toonis· 2007 Rugs. 1 20:09:23

Parašė yplon· 2007 Rugs. 1 20:09:58
#7

dbr nerodo kas parašė naujieną (tai gerai, taip ir reikia) bet ką dar ištrint, kad neliktų kiek skaityta ir kaip padaryt kad stulpeliu būtų, na žodziu tai kaip screene sitam
dekui už pagalbą

Parašė Žmogus· 2007 Rugs. 1 21:09:20
#8

O tai tau rodo kiek kartu skaityta? :|

Parašė yplon· 2007 Rugs. 1 21:09:49
#9

ShadoVw parašė:
O tai tau rodo kiek kartu skaityta? :|

aš atrašinėjau i Toonis žinutę, o tu ka ten parašei tai nekertu kur ką kaip... :?

Parašė Žmogus· 2007 Rugs. 1 21:09:33
#10

yplon parašė:
ShadoVw parašė:
O tai tau rodo kiek kartu skaityta? :|

aš atrašinėjau i Toonis žinutę, o tu ka ten parašei tai nekertu kur ką kaip... :?


Nezinai, kur deti? :D

Parašė yplon· 2007 Rugs. 1 21:09:39
#11

ShadoVw parašė:
yplon parašė:
ShadoVw parašė:
O tai tau rodo kiek kartu skaityta? :|

aš atrašinėjau i Toonis žinutę, o tu ka ten parašei tai nekertu kur ką kaip... :?


Nezinai, kur deti? :D

kur dėti, ką keisti...? Plačiau..dekui ;)

Parašė Žmogus· 2007 Rugs. 1 21:09:06
#12

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {

global $theme_width,$settings,$locale,$userdata,$aidlink;

echo "<table align=center class='mainsite-border' align='left' width='900' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";



echo "<table width='100%' cellspacing='0' cellpadding='0'>\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>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {
   

   
   echo "<table border='0' style=': 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='' height='24'><font class='block-title' align=>$subject</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'> ";
   
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<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> Ā· ";
   
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<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 class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"  ").articleopts($info," ").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<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>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td height=10 width=160 class='scapmain' align='center'>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<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>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}

function openside2($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td class='virsus'>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side1'>\n";

}

function closeside2() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
?>




Dek sita koda i savo theme.php :|

Parašė yplon· 2007 Rugs. 1 21:09:28
#13

omg..dbr naujieną yra borderyje ir rašo tik datą :D

Redagavo yplon· 2007 Rugs. 1 21:09:42

Parašė Žmogus· 2007 Rugs. 1 21:09:51
#14

yplon parašė:
omg..dbr naujiena yra borderyje ir raso tik data :D


Nu tai ja galima pasalinti ;)

Parašė Toonis· 2007 Rugs. 1 21:09:35
#15

Kokia theme naudoji? Manau padaryčiau, tai ko tau reikia, tik galvoju kaip reikia dėl to stulpelio ar su <br> tagu eitu. ?|

Parašė yplon· 2007 Rugs. 1 21:09:46
#16

Toonis parašė:
Kokia theme naudoji? Manau padaryčiau, tai ko tau reikia, tik galvoju kaip reikia dėl to stulpelio ar su <br> tagu eitu. ?|

naudoju WTF soccer, bet redagavau...bet theme.php kaip ir nekeičiau...dekui iš anksto ;)

Parašė yplon· 2007 Rugs. 2 21:09:27
#17

Nu tai kur žadėtas dalykas ?

Parašė Žmogus· 2007 Rugs. 2 21:09:05
#18

Tu db paaskink ko tu nori, kad matytum ir ko ne :D

Parašė Athrax· 2007 Rugs. 2 21:09:36
#19

ShadoVw parašė:
Tu db paaskink ko tu nori, kad matytum ir ko ne :D

Viska jis parase virsuje :D

Redagavo Athrax· 2007 Rugs. 2 21:09:01

Parašė yplon· 2007 Rugs. 2 21:09:31
#20

ShadoVw parašė:
Tu db paaskink ko tu nori, kad matytum ir ko ne :D

Matau tu nesigaudai situacijoje...
Viskas yra paaiškinta viršuje i dar su paveikslėliu...
O žadėjo man Toonis