coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: felix19 on November 14, 2005, 10:22:50 PM

Title: Show LAST IMAGES
Post by: felix19 on November 14, 2005, 10:22:50 PM
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???
Title: Re: Show LAST IMAGES
Post by: Joachim Müller on November 14, 2005, 11:34:02 PM
there's no support in Spanish.
Title: Re: Show LAST IMAGES
Post by: casNuy on November 19, 2005, 02:04:59 PM
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