![]() |
Display Images on your forums home with coppermine
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 I will offer support for this modification |
I'll try that. Thank you! :)
|
nice one!
|
screen shot, plz? ^__^
|
It doesnt work
H |
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. |
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!! |
nice little o' addon
|
yeah really nice addon :)
but is it possible to show only random images from the last uploaded album? that would be great |
have to be moved in the Add-on Releases section
|
Can it be configured to work with vBindex?
|
Quote:
[high]* kall clicks install[/high] |
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.
|
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 |
is there a way to restrict it from showing un-approved/ private images?? by restricting certain albums, or just only showing certain albums?
Thanks |
|
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?? |
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.
|
Quote:
|
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. |
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 |
Please provide the full error text.
|
//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? |
Quote:
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. |
Quote:
It would be nice to select from which albums or categories random images are taken |
Anyone interested updating this great hack to 3.61 with vbadvanced CMPS 2.2.
I for one would $ roll it. Thanks |
All times are GMT. The time now is 08:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|