MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/3 1 2 3 > >|
Forum RSS feedReply
top users al posto di recent comments
AuthorText
Ciobo
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 29/05/2008 21:26
top users al posto di recent comments
#post7546
sapete come cosso togliere il blocco recent comments e aggiungere al suo posto top users? Smile

http://cioboland.netsons.org/ per darvi un'ideaSmile
grazie a chi mi aiuterà =DSmile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 29/05/2008 21:35
Re: top users al posto di recent comments
#post7547
Ciao e benvenuto

Top users in ordine di post?

code
$result = $dblink->get_list("SELECT user,post FROM memht_utenti ORDER BY post DESC LIMIT 5");
foreach ($result as $row) {
   echo "<div>".outCode($row['user'])." (".intval($row['post']).")</div>";
}
Edited: 29/05/2008 21:35
Delete Edit Quote
 
Ciobo
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 29/05/2008 21:39
Re: top users al posto di recent comments
#post7548
questo l'avevo già letto in un altro topic, ma dove lo aggiorno? scussa ma oggi ci ho provato mille volte XD
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 29/05/2008 21:46
Re: top users al posto di recent comments
#post7549
templates/xxx/home.html al posto di commenti recenti

se non noti modifiche fai un chmod alla cartella compiled nel template
Delete Edit Quote
 
Ciobo
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 29/05/2008 21:51
Re: top users al posto di recent comments
#post7550
okk funziona, grazie mille..
non apro un altro topic e chiedo qui, al posto di recent news come si fa a mettere gli ultimi articoli del blog? grazie ancora mem!
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 29/05/2008 22:33
Re: top users al posto di recent comments
#post7551
"SELECT * FROM memht_blog_posts ORDER BY id DESC LIMIT 5"
Delete Edit Quote
 
Ciobo
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 30/05/2008 07:22
Re: top users al posto di recent comments
#post7559
<?php
$result = $dblink->get_list("SELECT * FROM memht_blog_posts ORDER BY id DESC LIMIT 5"Smile;
foreach ($result as $row){
$title = outCode($row['nome']);

echo "<div style='padding:2px 0;'><img src='templates/".$siteConfig['template']."/images/page_white.gif' border='0' align='absbottom'> <span style='vertical-align: top;'><a href='index.php?page=news&title=".urlencode($title)."' title="$title">$title</a></span></div>n";
}
?>




siccome mi da errore, riesci a sistemarlo?
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 30/05/2008 10:49
Re: top users al posto di recent comments
#post7565
Se hai 3.8.0
code
$result = $dblink->get_list("SELECT id,nome FROM memht_news WHERE enabled=1 ORDER BY id DESC LIMIT 5");
foreach ($news as $row) {
        $id = intval($row['id']);
        $nome = outCode($row['nome']);
                                               
        echo "<div><a href='http://www.memht.com/index.php?page=news&op=readNews&id=$id&title=".mem_urlencode($nome)."' title='$nome'>$nome</a></div>\n";
}


Se hai una versione precedente

code
$result = $dblink->get_list("SELECT id,nome FROM memht_news WHERE enabled=1 ORDER BY id DESC LIMIT 5");
foreach ($news as $row) {
        $nome = outCode($row['nome']);
                                               
        echo "<div><a href='http://www.memht.com/index.php?page=news&op=readNews&title=".urlencode($nome)."' title='$nome'>$nome</a></div>\n";
}
Edited: 30/05/2008 10:49
Delete Edit Quote
 
Ciobo
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 30/05/2008 11:07
Re: top users al posto di recent comments
#post7570
ma è ancora per le news, dovrebbe essere per il blog
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 30/05/2008 11:50
Re: top users al posto di recent comments
#post7573
Ah lol scusa

code
$result = $dblink->get_list("SELECT title FROM memht_blog_posts WHERE enabled=1 ORDER BY id DESC LIMIT 5");
                                        foreach ($result as $row) {
                                                $title = outCode($row['title']);
                                               
                                                echo "<div style='padding:2px 0;'><img src='templates/".$siteConfig['template']."/images/page_white.gif' border='0' alt='Bullet'> <span style='vertical-align: top;'><a href='http://www.memht.com/index.php?page=blog&title=".urlencode($title)."' title="$title">$title</a></span></div>\n";
                                        }
Delete Edit Quote
 
Reply
Page 1/3 1 2 3 > >|
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo