Posted on: 02/03/06 06:17pm
By: koalasoft
Hi ...
in english
How it is called and where I can obtain plugin or I cosay so that it shows to me in blocke that archives but have been unloaded of my filemgmt?
in spanish
Cómo se llama y donde puedo conseguir un plugin o codigo para que me muestre en un blocke que archivos han sido los mas descargados de mi filemgmt ?
Saludos !!
top download for filemgmt in block
Posted on: 02/03/06 06:28pm
By: Dirk
I wrote
one[*1] , if you don't mind it being in German
bye, Dirk
top download for filemgmt in block
Posted on: 02/03/06 07:32pm
By: koalasoft
Dirk. thanks. daptare and hara its translation to the Spanish. despues say to me where to send it to share it
Greetings!!
top download for filemgmt in block
Posted on: 02/03/06 09:16pm
By: koalasoft
and top news in block ?
top download for filemgmt in block
Posted on: 02/04/06 08:51am
By: lokki
Do you mean a block to show N last news?
top download for filemgmt in block
Posted on: 02/04/06 09:30am
By: koalasoft
Do you mean a block to show N last news?
in english ...
no, I talk about to have block that shows the leidas news but in the site, top 10 of the news for example.
in spanish ...
no, me refiero a tener un block que muestre las noticias mas leidas en el sitio, un top 10 de noticias por ejemplo.
Saludos !!
top download for filemgmt in block
Posted on: 02/04/06 08:09pm
By: lokki
I think this can help you. It's very amateur and simple, doesn't check permisions, but does show N top news
//shows a block with $num top stories
function phpblock_topnews()
{
global $_CONF, $_TABLES;
$retval = '';
$num = 10; //number of top stories to show
$sql = "SELECT sid,hits,title FROM {$_TABLES['stories']} ORDER BY hits DESC LIMIT ".$num;
$result = DB_query ($sql);
$stories = DB_numRows ($result);
if($stories < $num)
{
$num = $stories;
}
if($num > 0)
{
$retval .= '<ul>'.LB;
for($i = 0; $i < $num; $i++)
{
$story = DB_fetchArray($result);
$retval .= '<li><a href="'.$_CONF['site_url'].'/article.php?story='.$story['sid'].'">'.$story['title'].'</a> ('.$story['hits'].')</li>'.LB;
}
}
else
{
$retval .= "There are no stories in the system<br>";
}
return $retval;
}
just put this code in the end of /path/to/geeklog/system/lib-custom.php and create a PHP block putiing this function's name into the appropriate field
top download for filemgmt in block
Posted on: 02/04/06 10:15pm
By: koalasoft
Thank's ...working !!!
Grettings !!