Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Show LAST IMAGES  (Read 4014 times)

0 Members and 1 Guest are viewing this topic.

felix19

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Show LAST IMAGES
« 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:

Code: [Select]
/*
+--------------------------------------------------------------------------
|   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???
« Last Edit: November 20, 2005, 09:41:07 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show LAST IMAGES
« Reply #1 on: November 14, 2005, 11:34:02 pm »

there's no support in Spanish.
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Show LAST IMAGES
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.