TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 231
  • Total: 231

Gallery

Started by jazz, February 10, 2006, 06:47:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerrymo

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.

Lesmond

I have had a go with mine in article, but its not brilliant at the moment.. Here ???

Wolfenrook

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.

Lesmond

Thanks Wolfenrook
I have the height="1500" now but when you view other pages in the gallery it makes the pages very long!

Lesmond

#24
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 :)

gerrymo

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.

Lesmond

I found this code on m$ here

<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  :(

Lesmond

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 ???

This website is proudly hosted on Crocweb Cloud Website Hosting.