Hola.
Resulta que estoy usando un coppermine que descargue que sirve para MKportal.
El bloque del coppermine permite mostrar RANDOM IMAGE atravez de este codigo:
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
$content = "";
$count = $this->stats['tot_gallery'];
$start = rand(0, ($count -1));
$query = $DB->query("SELECT pid, title, filepath, filename FROM mkpcpg_pictures where approved = 'YES' LIMIT $start, 1");
$foto = $DB->fetch_row($query);
$id = $foto['pid'];
$titolo = $foto['title'];
$file = $foto['filepath'].$foto['filename'];
$thumb_mes = $this->ResizeImage(120,"$this->sitepath/mkportal/modules/coppermine/albums/$file");
$content = "
<tr>
<td align=\"center\"><a href=\"$this->siteurl/mkportal/modules/coppermine/albums/$file\"><img src=\"$this->siteurl/mkportal/modules/coppermine/albums/$file\" border=\"0\" width=\"$thumb_mes[0]\" height=\"$thumb_mes[1]\" alt=\"{$this->lang['gallery_zoom']}\" /></a>
</td>
</tr>
<tr>
<td class=\"tdblock\" align=\"center\">$titolo<br />
</td>
</tr>
";
if(!$id) {
$content = "
<tr>
<td class=\"tdblock\" align=\"center\">
{$this->lang['no_galleryim']}
</td>
</tr>
";
}
if(!$mkportals->member['g_access_cp'] && !$this->member['g_access_gallery']) {
$content = "
<tr>
<td class=\"tdblock\" align=\"center\">
{$this->lang['gallery_noallow']}
</td>
</tr>
";
}
unset($query);
unset($count);
unset($start);
unset($foto);
unset($id);
unset($titolo);
unset($file);
unset($thumb);
?>
Lo que yo quisiera es que show Last Image y que sean six.
Como podria hacer???
there's no support in Spanish.
The above code is not mine nor does it belong to pnCPG. pnCPG comes with a number of blocks for PostNuke including Last image.
Cas