View Full Version : Display Images on your forums home with coppermine
modrnman
06-28-2004, 10:00 PM
This allows you to add CLickable "random images" from Coppermine 1.3.0 photo gallery and display them on your FORUMHOME template or any other page outside coppermine.
This is an alternate to the coppermine SSI , and RSS Feed Hack.
I have a working examples of this code here at modrnman.org
(http://www.modrnman.org)
I will offer support for this modification
I'll try that. Thank you! :)
Phalynx
06-29-2004, 11:21 AM
nice one!
Serph_kun
06-29-2004, 08:11 PM
screen shot, plz? ^__^
Shack Networks
07-02-2004, 12:25 PM
It doesnt work
H
rinkrat
07-02-2004, 08:01 PM
No worky
It looks like you're calling it up with $randomimg
but I don't see that defined anywhere.
I don't know this stuff too well but one of the regulars should spot the problem.
rinkrat
07-02-2004, 08:57 PM
AAaahh!! i got it. When I reached the part about displaying on forumhome I was still trying to get it to install on VB Advanced Portal as a module. I never got to the end where it has "** You must add this code to your phpinclude_start template for your images to display***"
D'OH!!
Now it works fine :)
I've been waiting for a hack like this and even tried a few that didn't work.
GREAT JOB and thanks so much!!
gmarik
07-02-2004, 09:25 PM
nice little o' addon
D|ver
07-10-2004, 10:45 AM
yeah really nice addon :)
but is it possible to show only random images from the last uploaded album?
that would be great
nexialys
07-17-2004, 02:21 PM
have to be moved in the Add-on Releases section
Blam Forumz
08-19-2004, 10:55 AM
Can it be configured to work with vBindex?
have to be moved in the Add-on Releases section
But it's a Mini Mod...why would it belong in the Addon section?
* kall clicks install
misticjeff
09-09-2004, 04:26 PM
I was wondering if there is a way to exclude certain albums that don't have photo's, like a video album. When you view that you get a link with no photo and the dreaded "red x" cause there is no image to associate with the file.
billbensen
10-08-2004, 10:20 PM
Does anyone know why when I add the $randomimg bit in the phpinclude_start the $var gets cut off in the code? All I'm left with is = implode(...
I've tried all I know to get this to work and run out of ideas. Also it's on a Win2k machine...
TIA
Bill Bensen
NightWalk8r
11-28-2004, 07:45 PM
is there a way to restrict it from showing un-approved/ private images?? by restricting certain albums, or just only showing certain albums?
Thanks
frankenberrie
04-22-2005, 05:14 PM
Works 100%, take a look
http://www.arcadecrazy.com
marian
06-26-2005, 01:42 PM
I dowloaded this and was about to try it out when I got to:
c//This connects to the mysql DB
//***change username and password below***
$MZrandompic = @mysql_connect('localhost', 'username', 'password'); //***YOU MUST CHANGE THIS***
Surely that will allow anyone viewing source code to find the password??
Marco van Herwaarden
06-26-2005, 01:54 PM
If this is in a php-file, then nobody will be able to see the source, except if they have access to your ftp. In that case they can also see the same info in your config.php.
marian
06-26-2005, 02:24 PM
If this is in a php-file, then nobody will be able to see the source, except if they have access to your ftp. In that case they can also see the same info in your config.php.
Thanks for that, I'm a bit of a php dummy as u probably gathered! :)
Marco van Herwaarden
06-26-2005, 09:41 PM
So was i a few month ago (well less thn 1 year ago, i hadn't seen a single line of php).
But just try to download any php source using your browser, and you will know.
SmartGnome
06-28-2005, 04:23 PM
Have installed the mod and view on the forumhome.. All settings made, block is on the forum homepage, but in this block no pics and this text 'Error performing query: You have an error in your SQL syntax near ''****_-_cmine133' WHERE aid = ''' at line 1
'
Any ideas ??
Tnx
Marco van Herwaarden
06-28-2005, 05:44 PM
Please provide the full error text.
Enclave
08-09-2005, 07:38 AM
//random images from coppermine//
$randomimg = implode("", file("http://127.0.0.1/gallery/crandom.php"));
//end of random images from coppermine//
this code make the forum very slow, any other ideas?
marian
08-09-2005, 07:45 AM
//random images from coppermine//
$randomimg = implode("", file("http://127.0.0.1/gallery/crandom.php"));
//end of random images from coppermine//
this code make the forum very slow, any other ideas?
I just need help with where to put it.
cpmfetch has been written for the purpose of displaying coppermine images on another page. DOwload it from http://www.fistfullofcode.com/projects/copperminefetch/
When you've got it working on your forum page, please tell this php idiot what to do.
Icehawk002
10-15-2005, 03:05 AM
I was wondering if there is a way to exclude certain albums that don't have photo's, like a video album. When you view that you get a link with no photo and the dreaded "red x" cause there is no image to associate with the file.
Was this answered? I have same problem when video files are selected as the random image with that dreaded "red x".
It would be nice to select from which albums or categories random images are taken
Icehawk002
10-02-2006, 09:38 AM
Anyone interested updating this great hack to 3.61 with vbadvanced CMPS 2.2.
I for one would $ roll it.
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.