TinyPortal

Development => Feedback => Topic started by: jazz on February 10, 2006, 06:47:21 AM

Title: Gallery
Post by: jazz on February 10, 2006, 06:47:21 AM
I noticed on the roadmap that it is undecided whether or not you will include a gallery.  Is it possible to add an option to integrate Coppermine into Tinyportal?
Title: Re: Gallery
Post by: IchBin on February 10, 2006, 07:38:59 AM
You can bridge coppermine and SMF. You can then include the coppermine script into an article with PHP. It seems to work very well like that.
Title: Re: Gallery
Post by: Xarcell on February 10, 2006, 05:41:26 PM
There are ways to do tis at SMF, and block code snippets here in the snippets thread.
Title: Re: Gallery
Post by: redeye on February 11, 2006, 11:52:39 AM
Quote from: IchBinâââ,¬Å¾Ã,¢ on February 10, 2006, 07:38:59 AM
You can bridge coppermine and SMF. You can then include the coppermine script into an article with PHP. It seems to work very well like that.
I've just installed the bridge with Coppermine and SMF1.1RC2
Could you give me some basic instructions on how to do this.
Thanks
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:02:01 PM
You just said you had done the bridge....?
Title: Re: Gallery
Post by: redeye on February 11, 2006, 12:04:25 PM
Quote from: ÂÃ,»cripÂÃ,« on February 11, 2006, 12:02:01 PM
You just said you had done the bridge....?

Sorry, it's the bit about using a script inside an article that I'd like some help with.
Thanks
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:10:17 PM
What is it you want added in an Article?
Title: Re: Gallery
Post by: G6Cad on February 11, 2006, 12:11:56 PM
The gallery perhaps?
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:12:51 PM
The whole Coppermine Gallery?
Title: Re: Gallery
Post by: redeye on February 11, 2006, 12:13:46 PM
Quote from: IchBinâââ,¬Å¾Ã,¢ on February 10, 2006, 07:38:59 AM
You can bridge coppermine and SMF. You can then include the coppermine script into an article with PHP. It seems to work very well like that.

According to this post coppermine can be intergrated into an article. I'd like to do that.
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:13:48 PM
A random image perhaps?
Title: Re: Gallery
Post by: redeye on February 11, 2006, 12:14:45 PM
Quote from: ÂÃ,»cripÂÃ,« on February 11, 2006, 12:13:48 PM
A random image perhaps?
Already got random image in block.
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:17:13 PM
I can't advise you about that..sorry..but,
stay tuned in..expertise help is on it's way. :)
Title: Re: Gallery
Post by: G6Cad on February 11, 2006, 12:20:17 PM
I think he mean something like this?

http://www.darkrevolution.org/portal/index.php?action=gallery

You could ask the one who made this site how you can apply the gallry in the portal.
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:21:42 PM
I'm sure SMF has had this CMG discussion and resolved it in many ways, you may wanna check there on Bridging/Portals/et-ceteras..
Title: Re: Gallery
Post by: crip on February 11, 2006, 12:23:42 PM
Wow!
I wish I can do my gallery dat way. :)
Title: Re: Gallery
Post by: redeye on February 11, 2006, 12:25:25 PM
Quote from: g6cad on February 11, 2006, 12:20:17 PM
I think he mean something like this?

http://www.darkrevolution.org/portal/index.php?action=gallery

You could ask the one who made this site how you can apply the gallry in the portal.

I'll give him a try.
Thanks
Title: Re: Gallery
Post by: gerrymo on February 11, 2006, 03:48:59 PM
Quote from: ÂÃ,»cripÂÃ,« on February 11, 2006, 12:23:42 PM
Wow!
I wish I can do my gallery dat way. :)

Thats very easy to do on SMF only by creating a custom action. Not tried it for TP, but hey, I may just give it a go.
Title: Re: Gallery
Post by: bloc on February 11, 2006, 06:28:19 PM
It would seem all thats done there is to add a SMF action which put the coppermine into a iframe.

This can easily be done in a article, either php or html-based.

I am going to try out Coppermine/SMF brigde, for some of my themes converted over to Coppermine, and will see if coppermine could be included another way  in TP. I am sure it will be difficult, since they basically are 2 systems, and do many things double-up as a cause of it.
Title: Re: Gallery
Post by: elpvn on April 02, 2006, 08:54:54 AM
I think have a new solution:

Enter here http://tpvgames.co.uk/smfgallery/Ã,  :)

Comments it now !
Title: Re: Gallery
Post by: gerrymo on April 02, 2006, 12:23:32 PM
Quote from: Bloc on February 11, 2006, 06:28:19 PM
It would seem all thats done there is to add a SMF action which put the coppermine into a iframe.

This can easily be done in a article, either php or html-based.

I am going to try out Coppermine/SMF brigde, for some of my themes converted over to Coppermine, and will see if coppermine could be included another way  in TP. I am sure it will be difficult, since they basically are 2 systems, and do many things double-up as a cause of it.

I already use SMF/TP/Coppermine, and itwas pretty easy to getthe 3 working together. I haven't looked at the doubling up of functions or anything, but the bridge works well.
Title: Re: Gallery
Post by: Lesmond on April 02, 2006, 12:48:05 PM
I have had a go with mine in article, but its not brilliant at the moment.. Here  (http://www.lesmonds.co.uk/smf/index.php?page=13) ???
Title: Re: Gallery
Post by: Wolfenrook on April 02, 2006, 12:55:59 PM
Lesmond that might look better if you get rid of the scroll bars in the Iframe and increase the size of the frame.

Just add code like this after the src height="Npx" width="100%" scrolling="no" border="0" where N is the hight you need to fit your gallery in without needing to scroll the frame.  This way it will look like it's just part of the site, rather than looking like a frame.
Title: Re: Gallery
Post by: Lesmond on April 02, 2006, 01:06:24 PM
Thanks Wolfenrook
I have the height="1500" now but when you view other pages in the gallery it makes the pages very long!
Title: Re: Gallery
Post by: Lesmond on April 02, 2006, 01:08:21 PM
this is what I have in the article...

<iframe src="http://www.lesmonds.co.uk/cpg/index.php" height="1500" width="100%" Scrolling="yes" border="0"></iframe>

I sorted it should be like this <iframe border="0" frameborder="0" src="http://www.lesmonds.co.uk/cpg/index.php" height="2400" width="100%" Scrolling="no" </iframe>
now what I would like is for it auto fit :)
Title: Re: Gallery
Post by: gerrymo on April 02, 2006, 04:22:28 PM
Lesmond, do a search. There is an auto-resize iFrame code here somewhere. Code Block Snippets I think.

Also, if you reduce the number of rows of images/albums per page, it helps shorten it down.
Title: Re: Gallery
Post by: Lesmond on April 02, 2006, 04:39:09 PM
I found this code on m$ here  (http://support.microsoft.com/kb/278469/en-us)

<HTML>
<HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function reSize()
{
try{
var oBody = ifrm.document.body;
var oFrame = document.all("ifrm");

oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
}
//An error is raised if the IFrame domain != its container's domain
catch(e)
{
window.status = 'Error: ' + e.number + '; ' + e.description;
}
}
//-->
</SCRIPT>
</HEAD>
<BODY onload=reSize()>
<iframe onresize=reSize() id=ifrm src=YOUR_PAGE_HERE></iframe>
</BODY>
</HTML>


but it dosent seem to work with FF and not very well with IE, I did take out BODY and head tags though  :(
Title: Re: Gallery
Post by: Lesmond on April 02, 2006, 05:11:33 PM
Quote from: gerrymo on April 02, 2006, 04:22:28 PM
Lesmond, do a search. There is an auto-resize iFrame code here somewhere. Code Block Snippets I think.

Also, if you reduce the number of rows of images/albums per page, it helps shorten it down.

Found it Thanks gerrymo, looks better now :) Just that the menu dosent show up right in IE :( oh well cant have everything can we ???