coppermine in phpwcms

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
samuli
Posts: 1
Joined: Wed 12. May 2004, 13:23

coppermine in phpwcms

Post by samuli »

Hi!

Has anyone done a hack or whatsoever, to include coppermine gallery in their phpwcms. It's the only thing i'm missing from it, the "gallery" functionality of phpwcms is not that great yet.

Anyway, keep up good work!

-- Samuli
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

No, it is not implimented yet. I'm guessing that it probably won't be either any time soon. But there a number of people who use Coppermine with phpWCMS with pretty good success using iframe. The only huge functionality you loose is having two user databases that aren't syncronized with same user/pass information.
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
Hero
Posts: 87
Joined: Thu 16. Dec 2004, 16:14
Location: Düsseldorf
Contact:

Post by Hero »

But how does it work with iframes?
They have a constant size and the coppermine content changes all the time! I dont think that is a good solution if you dont want to scroll in the iframe.

merry christmas!
Andreas
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

Hero wrote:But how does it work with iframes?
They have a constant size and the coppermine content changes all the time! I dont think that is a good solution if you dont want to scroll in the iframe.

merry christmas!
Andreas
iframe actually works quite well! And no, you do not have to scroll. It is very easy to use a little Javascript to dynamically resize the iframe. It doesn't seem to noticeably slow anything down either. Check out this link for the code to do it. It's as simple as copy and paste and just replacing the URL with URL for Coppermine's root folder. Here's a link for the code and directions... ask if you have questions or need an example:

http://www.phpwcms.de/forum/viewtopic.p ... calcheight

Header information:

Code: Select all

<script language="JavaScript"> 
<!-- 
function calcHeight() 
{ 
   var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; //find the height of the internal page 
   document.getElementById('the_iframe').style.height=the_height; //change the height of the iframe 
} 
//--> 
</script>
Part to add as html content part with link to Coppermine replacing the one in this code:

Code: Select all

<iframe src="http://www.mohrundmehr.de/termine/termine.php" id="the_iframe" onLoad="calcHeight();" width="600px" height="1" name="the_iframe" scrolling="no" frameborder="0">Wenn Sie diesen Text lesen unterstützt Ihr Browser keine iframes bitte folgen Sie dem Link.<a href="http://www.mohrundmehr.de/termine/termine.php" target="_blank">Terminkalender</A></iframe>
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
Hero
Posts: 87
Joined: Thu 16. Dec 2004, 16:14
Location: Düsseldorf
Contact:

Post by Hero »

Thanks, I'm playing arround with that for quite long.
my problem right now is, that the size of the iframe fits,
but just the cpg/index.php. when you klick at a thumb the
content of the iframe shrinks but the iframe doesn't!
http://gruleiru.gr.funpic.de/phpwcms/index.php?bilder

merry christmas!
Andreas
Hero
Posts: 87
Joined: Thu 16. Dec 2004, 16:14
Location: Düsseldorf
Contact:

Post by Hero »

BTW: I saw annother tread linking to this:

I solved the problem!
The coppermine template had an tag <table height=100%...
Thats why the page didn't shrink! Just delete that height=100% and it works fine! :D

Andreas
Post Reply