| Author |
Message |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Sep 30, 2009 11:47 am |
|
I have downloaded at least 10 block to try and see if I could get aleast one to work with out errors could you look at this code and tell me if it's any good thanks guys and ladies
<?php
/*
+--------------------------------------------------------------------------
| MkPortal Random Coppermine Image 1.0 01.01.2005
| for Coppermine Standalone v 1.3.2
| by visiblesoul <visiblesoul.net>
| adapted from MkPortal random_pic.php by Meo & Peter <mkportal.it>
+--------------------------------------------------------------------------
| > MKPortal 1.1 Final
| > Written By Amedeo de longis & Monica Vecchi & Peter Schrumpf
| > Date started: 9.2.2004
+--------------------------------------------------------------------------
*/
$content = "";
$query = $DB->query("SELECT pid, aid, title, filepath, filename FROM cpg132_pictures ORDER BY RAND() LIMIT 1");
$photo = $DB->fetch_row($query);
$aid = $photo['aid'];
$title = $photo['title'];
$filepath = $photo['filepath'];
$filename = $photo['filename'];
$thumb = "thumb_$filename";
$content = "<tr align=\"center\"><td><a href=\"http://www.ameliaauctions.com/photos/thumbnails.php?album={$aid}\"><img src=\"http://www.ameliaauctions.com/photos/albums/{$filepath}{$thumb}\" border=\"0\" alt=\"{$title}\"></a></td></tr>
<tr><td id=\"tdblock\" align=\"center\" style=\"text-align:center; text-decoration: none;\"><a href=\"http://www.ameliaauctions.com/photos/thumbnails.php?album={$aid}\">$title</a><br /></td></tr>";
unset($photo);
unset($aid);
unset($title);
unset($filepath);
unset($filename);
unset($thumb);
?> |
|
|
|
 |
NeapolitanWorld Involved


Joined: Nov 06, 2005 Posts: 318 Location: Los Angeles, USA
|
Posted:
Wed Sep 30, 2009 12:09 pm |
|
It says here "for Coppermine Standalone v 1.3.2" you need to install one for php nuke. Search coppermine here and you will find several threads with downloads. All my blocks were with the coppermine nuke packages.
jc |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Sep 30, 2009 12:16 pm |
|
thanks I believe I have 1.4 installed, I got this one fron here. ok thanks |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Sep 30, 2009 12:20 pm |
|
are you saying it was in the coppermine package after installation if so where was it located? and what was the name of the file |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Wed Sep 30, 2009 1:05 pm |
|
That block appears to be for MKPortal and not RavenNuke. Someone has a Coppermine that works with RN. I believe it has blocks that do work also. You should be able to find something in the forums as NeapolitanWorld suggested. This one may help |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Sep 30, 2009 2:07 pm |
|
thank you very much for the help |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Sep 30, 2009 2:59 pm |
|
Ah I see I have coppermine standalone and there is another called gallery 2 which I am downloading now to install thanks |
|
|
|
 |
NeapolitanWorld Involved


Joined: Nov 06, 2005 Posts: 318 Location: Los Angeles, USA
|
Posted:
Wed Sep 30, 2009 5:58 pm |
|
I installed G2 on a test site and it was not compatible with RN. You might want to stick with a php nuke coppermine version or if you only need a simple gallery try the CA gallery by |
|
|
|
 |
|
|
|
|