Show random image out of Coppermine Show random image out of Coppermine
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Show random image out of Coppermine

Started by dracomiconia, September 17, 2004, 09:17:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dracomiconia

How could I show a random image in my website, out of the Gallery?

What's the code?

Thanks.

bbbbug

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mytfls.com%2Fphoto%2Fmyphoto.php&hash=69be14cb204c2f9b30a4bb1876cf8d5154fec7f8)

Nibbler

Use SSI or RSS.

Search the board before I get RSI.  ;)

bbbbug

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mytfls.com%2Fphoto%2Fmyphoto.php&hash=69be14cb204c2f9b30a4bb1876cf8d5154fec7f8)

jds656859

I'm getting some weird error with ssi in cpg132 check it out http://freebyrd.homeip.net/cpg132/ssi.php
it works sortof but still lots of errors http://freebyrd.homeip.net/cpg132/example.php

What am I doing wrong here?

Nibbler

You have 2 options

1) Fix the notices by cleaning up the code

2) Hide the notices by adding error_reporting (E_ALL E_NOTICE); to the top of the file.

jds656859

Since I wouldn't have a clue where to start to clean it I will get ride of the errors.. Thanks for the info


jakeslife

I have scoured the boards, but with all the spelling errors and titles of "Help..." maybe I'm completely missing it and it wasn't posted here. I want to be able to have a single random pic, the newest pic, and the total of photos from the gallery displayed on my homepage but I'm not sure how to do it. I have picked apart the page and tried using the http://www.mysite.net/scripts/coppermine/displayimage.php?album=lastup&cat=&pos=0 code to display it but that won't work. Any suggestions?

Joachim Müller


jakeslife

Indeed. And even though I read those, I stilll didn't find all my answers. Well, not even one clearcut one in my opinion. Thanks for your help yo!