TinyPortal

Development => Support => Topic started by: IchBin on April 09, 2005, 07:09:41 AM

Title: Gallery Request...
Post by: IchBin on April 09, 2005, 07:09:41 AM
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?
Title: Re: Gallery Request...
Post by: Bjørn on April 09, 2005, 08:31:57 AM
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.
Title: Re: Gallery Request...
Post by: 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.
Title: Re: Gallery Request...
Post by: IchBin on April 10, 2005, 04:33:29 AM
Sweet Homer. That is exactly what I was looking for. Thanks!
Title: Re: Gallery Request...
Post by: sudden on June 02, 2005, 11:33:06 PM
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
Title: Re: Gallery Request...
Post by: IchBin on June 02, 2005, 11:34:01 PM
You probably should get help from the people who make cpmfetch.
Title: Re: Gallery Request...
Post by: sudden on June 03, 2005, 12:23:26 AM
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


Title: Re: Gallery Request...
Post by: xtremecruiser on August 26, 2005, 07:49:35 PM
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);



?>
Title: Re: Gallery Request...
Post by: kimncris on October 26, 2005, 01:06:26 AM
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
Title: Re: Gallery Request...
Post by: domp on October 26, 2005, 02:15:40 AM
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)
Title: Re: Gallery Request...
Post by: kimncris on October 26, 2005, 02:37:44 AM
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
Title: Re: Gallery Request...
Post by: domp on October 26, 2005, 02:48:44 AM
Check this too ;)


http://coppermine-gallery.net/forum/index.php?board=18 (http://coppermine-gallery.net/forum/index.php?board=18)
Title: Re: Gallery Request...
Post by: Pierse on October 26, 2005, 03:54:55 AM
I use 4images.  Love it.  I just wish there was an integration for smf & 4images. 
Title: Re: Gallery Request...
Post by: 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.
Title: Re: Gallery Request...
Post by: Maya on November 07, 2005, 03:45:41 AM
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....
Title: Re: Gallery Request...
Post by: gerrymo on November 07, 2005, 10:50:20 AM
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.
Title: Re: Gallery Request...
Post by: resurgence on November 28, 2005, 10:22:27 AM
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 :)
Title: Re: Gallery Request...
Post by: Oldiesmann on December 24, 2005, 05:56:25 PM
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).
Title: Re: Gallery Request...
Post by: futuro on January 11, 2006, 10:02:03 AM
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.
Title: Re: Gallery Request...
Post by: IchBin on January 11, 2006, 09:10:33 PM
That would be more along the lines of the download manager which is in the next release of TP. :)
Title: Re: Gallery Request...
Post by: snork13 on January 12, 2006, 02:14:34 AM
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)
Title: Re: Gallery Request...
Post by: Moocat on January 12, 2006, 08:43:54 AM
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? :\
Title: Re: Gallery Request...
Post by: Tarzan on January 12, 2006, 10:42:37 AM
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.

Title: Re: Gallery Request...
Post by: Xarcell on January 17, 2006, 06:23:08 PM
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.
Title: Re: Gallery Request...
Post by: elpvn on February 11, 2006, 06:50:25 AM
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:


Title: Re: Gallery Request...
Post by: G6Cad on February 11, 2006, 08:38:13 AM
QuoteTo Xarcell:
The page cannot be displayed

Work fine for me  8)
Title: Re: Gallery Request...
Post by: bloc on February 11, 2006, 04:27:59 PM
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.
Title: Re: Gallery Request...
Post by: elpvn on February 11, 2006, 04:37:47 PM
Yes, I see
Wish you fine job Bloc