Show LAST IMAGES Show LAST IMAGES
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Show LAST IMAGES

Started by felix19, November 14, 2005, 10:22:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

felix19

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???

Joachim Müller

there's no support in Spanish.

casNuy

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