TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 550
  • Total: 550

Random photos from coppermine

Started by carver, September 22, 2005, 01:32:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

snork13

Quote from: domp on November 21, 2005, 06:40:03 PM
set up your coppermine.php and put this in a block:

print "A random selection:<CENTER>";
include "../gallery/cpmfetch/coppermine.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
print "</center>";


Sure works 4usÂÃ,  :-)

yes, sorry i moved coppermine.php in the forum directory

crip

Wow,

I was just stating to ask if the gallery directory should be inside the forum directory.. :D

Tee

actually with the new release cpmFetch, it is the cpmfetch.php not the coppermine.php to call up.

Doug

http://jaxdoug.com :2funny:

MGT_STC007

Can it be used without Copper mine?  Like how can I get something like this to work by just pull pictures out of the attachments folder on my forum?

USO_Joe

I'm getting the same fatal error. Does coppermine have to be within the forum directory? What needs to happen?

Fatal error: Cannot instantiate non-existent class: cpm in /home/content/s/o/t/sotgu003/html/hawaiifighter/Sources/Load.php(1040) : eval()'d code(32) : eval()'d code on line 7

gerrymo

No it doesnt need to be in the same directory. I have the three directories in root: smf, cpg (coppermine), and cpmfetch (Coppermine fetch). Using the code beow I have random images showing in a block on the front page.


print "A random selection from our Gallery:<CENTER>";
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/cpg");
$objCpm->cpm_viewRandomMedia(1,5);
$objCpm->cpm_close();
print "</center>";


(Line 4 denotes 1 row of 5 photos)

crip

Quote from: gerrymo on December 11, 2005, 09:50:28 PM
No it doesnt need to be in the same directory. I have the three directories in root: smf, cpg (coppermine), and cpmfetch (Coppermine fetch). Using the code beow I have random images showing in a block on the front page.


print "A random selection from our Gallery:<CENTER>";
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/cpg");
$objCpm->cpm_viewRandomMedia(1,5);
$objCpm->cpm_close();
print "</center>";


(Line 4 denotes 1 row of 5 photos)
Same error:
> A random selection from our Gallery:

Fatal error: Cannot instantiate non-existent class: cpm in /home/tnqudus1/public_html/forum/Sources/Load.php(1598) : eval()'d code(32) : eval()'d code on line 3

what happened?



redeye

Is there somewhere with cpmfetch to configure the images so that they can't be clicked and take the user to the gallery?

gerrymo

Quote from: crip on December 11, 2005, 10:02:31 PM
Hopeless

Not at all. It does depend on which versions you are using. The best place to find out more is over at Coppermine http://coppermine-gallery.net/forum/  The codes above work for me.

This website is proudly hosted on Crocweb Cloud Website Hosting.