Now I know you will eventually put a gallery in this. But I was wondering if it would be possible to make a block that would display a random photo from the coppermine gallery?
I suppose it is, if coppermine has a function for this, it should be easy to do it an a php-block. Just include the file with the function and run that function.
It may be faster to directly take it from the database though...but that will require details on how coppermine stores it.
IchBin, I have done this with my site and yes there is Mod for this in coppermine. Its called coppermine Fetch. If you do a search on Copermine Fetch on the coppermine boards you can get all the info you seek. Here is the website of the author that goes into detail and where you can download the code. http://www.fistfullofcode.com/projects/copperminefetch/
Once this is installed and working properly you just put this code in a HTML block in TP on your site:
[img]http://yoursite.com/cpmfetch/cfig_random.php?category=2" [/img] and it will give you random images everytime the screen is refreshed.
Hope this helps.
Sweet Homer. That is exactly what I was looking for. Thanks!
wow.. this is cool.
Quote from: Homer_J_S on April 09, 2005, 12:57:58 PM
IchBin, I have done this with my site and yes there is Mod for this in coppermine. Its called coppermine Fetch. If you do a search on Copermine Fetch on the coppermine boards you can get all the info you seek. Here is the website of the author that goes into detail and where you can download the code. http://www.fistfullofcode.com/projects/copperminefetch/
Once this is installed and working properly you just put this code in a HTML block in TP on your site:
[img]http://yoursite.com/cpmfetch/cfig_random.php?category=2" [/img] and it will give you random images everytime the screen is refreshed.
Hope this helps.
this shows blank on my site :(
my cpmfetch setting is correct. help
You probably should get help from the people who make cpmfetch.
got it right now.. *whew*
this is my code (html block).. im using version 1.3.5
<img src="http://domainname.com/cpmfetch/cfimageget.php" />
this shows 1 random thumbnail image.. it can be modified if you want it to show from a specific album
edit: oops.. forgot to add the code tag
This is how MK portal does a random block ffrom coppermine.
I am going to play with it and see if I can get it to work right
<?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
| > Written By Amedeo de longis
| > Date started: 9.2.2004
+--------------------------------------------------------------------------
*/
$content = "";
$query = $DB->query("SELECT pid, aid, title, filepath, filename FROM cpg132smf_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=\"../../cpg132/thumbnails.php?album={$aid}\"><img src=\"../../cpg132/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=\"../../cpg132/thumbnails.php?album={$aid}\">$title</a><br /></td></tr>";
unset($photo);
unset($aid);
unset($title);
unset($filepath);
unset($filename);
unset($thumb);
?>
I am interested in a gallery mod too.
Basically the only module we are currently using with our PostNuke site is the gallery so you have to sign-in again whenever you leave SMF and go to he gallery.
-cris
Switch gallery's to Coppermine and bridge it too coppermine ?
Thats what we did. All SMF members are members at the copperminegalery.. Its almost as easy as 1 3 2 3 ???
You can check it out yourself here (http://domp.libertinia.com/forum)
At the left is a block is a block with a random image created with cpgfetch. (carefull some pics are a X-rated)
well reading the description, it seems like merging the database of the SMF forum and the Coppermine gallery is pretty simple, but can you import the albums from the existing postnuke "Gallery" software?
I cant afford to lose any images, my users would hang me.
I think I'll install coppermine on the server and see if I can point it to my existing gallery images...
-cris
Check this too ;)
http://coppermine-gallery.net/forum/index.php?board=18 (http://coppermine-gallery.net/forum/index.php?board=18)
I use 4images. Love it. I just wish there was an integration for smf & 4images.
Bloc is currently working on a gallery tailored for TP. I would wait and see what he comes up with.
Quote from: Xarcell on November 02, 2005, 11:29:44 PM
Bloc is currently working on a gallery tailored for TP. I would wait and see what he comes up with.
I think this will be my plan too...there are so many other things to on my own list of things to do..something written just for tp is my plan....
This works quite well. Is there a way to diaplay more than one "Random Photo", say in a frontpage block? I would like to display 3, but cant get it to work.
finally installe dcoppermine, but there are so many nonpost based groups on my boards that using the bridge is just useless.
this is at loeast stable while gallery wasn't for me.
i still await Bloc's TP gallery :)
Beta Testing has started for the SMF 1.0.5 / Gallery2 integration. I am working on one for RC2 and will start beta testing that one sometime next month. More info on the project page (http://smf.oldiesmann.us/galleryproject/index.php).
first... hello to everybody and sorry for my english.
I think that is a good idea make the gallery for Tiny Portal, but with Coppermine or 4images this kind of galleries is full. I never see a free gallery like devianart... where you can uploads a rar or zip file and a image file for preview. This would be very interesting because nobody offers it.
That would be more along the lines of the download manager which is in the next release of TP. :)
yes, i too am interested to see what bloc does with a gallery...now i love the features coppermine offers, and being an active member of the community of coppermine i try my best to share what i do. i would like to completely recode coppermine for smf, but i just have no time...and will be returning for my masters in march :idiot2: anyway before i hijack the thread.... i wanted to added my coppermine gallery within smf, i also added a few custom action for last comments, image of the week..and newst photos, along with using cpmfetch to pull the image to the boardindex of the forum, and the index page of snork13 see it here--->
www.snork13.net (http://www.snork13.net)
i'd love to see a decent image gallery integrated with tp/smf... i can't use coppermine because the permissions system isn't good enough. i need to make albums which a certain number of users can upload to but not others, but upload isn't part of the permissions. bogus, isn't it? :\
Well I once had an a good looking gallery in SMF thanks to Static page mod - which I understand soon will be in TP in some form. I used MG2 http://www.minigal.dk/features.php (no database required) and this iframe script http://dynamicdrive.com/dynamicindex17/iframessi2.htm With some adjustments of css-file/theme it can be made to appear as part of forum and so also TP. Think I tried in TP too but was annoyed of the less than clean look of "static page", is about to change in next version so this might be a solution for some. MG2 is the best of those non-database galleries Ive tried, nothing like Coppermine, Gallery or 4images but less is not necessarily bad.
There is a flash gallery avaialiable for $5 at tufat. I just started using it although it isn't finsihed.
You can see it here, it may working on and off since I am tinkering with it at the moment.
www.xarcell.com click the "Photos" link.
On the TinyPortal Roadmap (http://www.tinyportal.net/smf/index.php?page=14) I see that:
Quotev0.9
- arcade section - supporting smfgames/Amod project for phpBB. Not sure if any other will be supported, but at least smfgames.
- gallery section - undecided
......etc.
I'm glad to wait for that, most at
gallery section, my site work on 3D major then need a gallery for member post for graphic to there ;D :)
To
Xarcell:
The page cannot be displayed :buck2:
QuoteTo Xarcell:
The page cannot be displayed
Work fine for me 8)
I will update the roadmap some..but basically the gallery is either coming in 0.9 or in 1.0. I will enhance other existing areas first, before the gallery module. Articles, rss blocks, menu manager..these are important to make better too.
Yes, I see
Wish you fine job Bloc