Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujienų statistika
Parašė Lordcraft· 2008 Vas. 24 14:02:45
#1
Gal kas turit tokia panele kaip kreivas.net ?
Parašė Gedi Minas· 2008 Vas. 24 15:02:49
#2
Manau jis pats ją pasidarė, be to, labai paprasta tokią pasidaryt.
c|
Parašė Paul McCartney· 2008 Vas. 24 15:02:48
#3
Tai padaryk,akd paprasta,čia vaidini,kad moki tai ir padaryk,ir tuo tik parodai savo c|c|c|
Parašė Gedi Minas· 2008 Vas. 24 15:02:20
#4
Ruomis313 parašė:
Tai padaryk,akd paprasta,čia vaidini,kad moki tai ir padaryk,ir tuo tik parodai savo c|c|c|
Už kokį gerą turiu daryt? Man daug yra paprastų dalykų, bet aš jų neprivalau daryt. Be to, jis klausė ar kas turit tokią panelę, todėl atsakiau, kad jis pats turbūt kūrė. Išvada tokia, kad vargu ar kas turės būtent tokią panelę. Taigi, nariui pasakiau tai, ką jis ir norėjo sužinot, o jei prašys, kad sukurčiau - td jau kitas klausimas.
Vienu žodžiu, esi apgailėtinas vaikas. Užauk.
c|
Redagavo Gedi Minas· 2008 Vas. 24 15:02:56
Parašė Lordcraft· 2008 Vas. 24 15:02:21
#5
nekreip i ta mazvaiki demesio nesty ir padaryk ta panele, vis del to adminas esi turi kazka gero duoti nariams :]
Parašė Gedi Minas· 2008 Vas. 24 15:02:24
#6
Lordcraft parašė:
nekreip i ta mazvaiki demesio nesty ir padaryk ta panele, vis del to adminas esi turi kazka gero duoti nariams :]
Tada lukterėk keletą minučių.
;)
Parašė stygis· 2008 Vas. 24 15:02:51
#7
seip čia woodoo-fusion variklis kažin ar bus tokia panele nebent pats kurtiai ir taikytai
php-fusion
Parašė Lordcraft· 2008 Vas. 24 15:02:00
#8
koks tau woodu-fusion? :D toks pat
php-f tik ka nors pakeite koduose ir taip pasirase kad cia jo tvs :D
tokia panel galima pasidaryti bet as nemoku, turiu as ten is 2 ar 3 paneliu sulipdyta i viena bet vcia kaip matau jis kategorijas pasirinko is kur postina tas news.
Parašė Gedi Minas· 2008 Vas. 24 15:02:19
#9
opentable("Naujienu statistika");
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>\n";
echo "<td width='25%'>\n";
echo "<b>Top flash:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_reads DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "<br>\n";
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Top video:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_reads DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "<br>\n";
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Top foto:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_reads DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "<br>\n";
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Top jokes:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_reads DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "<br>\n";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td width='25%'>\n";
echo "<b>Naujausi flash:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Naujausi video:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Naujausios foto:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "</td>\n";
echo "<td width='25%'>\n";
echo "<b>Naujausi jokes:</b><br><br>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE news_cat='įrašyk kategorijos ID' AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,5");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%d-%m-%Y", $date);
echo "<a href='".THEME."news.php?readmore=$n_id'>".trimlink($sh_title,15)."<br>";
}
echo "</td>\n";
echo "</tr></table>\n";
closetable();
Redagavo Gedi Minas· 2008 Vas. 24 15:02:36
Parašė Gedi Minas· 2008 Vas. 24 15:02:45
#10
Ant greičio sudėjau, kur pažymėjau žaliai atitinkamai įrašyk naujienų kategorijų ID ir turėsi tokią panelę.
;)
Parašė Lordcraft· 2008 Vas. 24 15:02:16
#11
va cia tai ko reikia. aciu ;)
Parašė Lordcraft· 2008 Vas. 27 16:02:07
#12
reikia help! kai i themes.php irasau
<td valign='top'>";
include INFUSIONS."panel/menu.php";
echo "</div></td>
ismeta errorus:
http://img148.imageshack.us/img1...sdaei1.png
kame beda?
Parašė ibodom· 2008 Vas. 27 16:02:46
#13
Gal div'o nereik? ?| nes tik td darai?
Parašė Lordcraft· 2008 Vas. 27 16:02:29
#14
tai su tuo kodu viskas gerai bet su ta naujienu statistika kazkas blogai nes as turiu tokio panel ir man veikia kuo puikiausiai:
<?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; }
echo "<table width='100%'>
<tr>
<td width='25%'>";
openside("<center>Naujienos</center>");
$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,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>".trimlink($data['news_subject'], 23)."</a>
</td>
<td align='right'>".$data['news_reads']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Naujausi siuntiniai</center>");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td><img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Populeriausi pranesimai</center>");
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, COUNT(tp.post_id) as count_posts
FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY count_posts DESC, thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 20);
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a>
</td>
<td align='right'>".$data['count_posts']."</td>
</tr>";
}
echo "</table>\n";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Atsitiktines nuorodos</center>");
if(dbcount("(*)", "money_links", "id > 0") > 0){
$snd = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
dbquery("DELETE FROM ".$db_prefix."money_links WHERE `galiojaiki` < '".$snd."'");
$sql = dbquery("SELECT * FROM ".$db_prefix."money_links ORDER BY RAND() LIMIT 5");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($linkas = dbarray($sql)){
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'> <a href='".stripinput(htmlspecialchars($linkas[nuoroda]))."' class='side'>".stripinput(htmlspecialchars($linkas[tekstas]))."</a></td>
<td align='right'>".$data['weblink_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
</table>";
?>