Any ideas on integrating 4Images w/ 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
ourpobox
Posts: 54
Joined: Wed 2. Jun 2004, 16:41
Location: Virginia, USA
Contact:

Any ideas on integrating 4Images w/ phpwcms?

Post by ourpobox »

Hi All,

I am a GREAT fan of phpWCMS (though I think a better "Code Name" should be developed....too long to say out loud!) and have really enjoyed changing some sites over to this sensible CMS!

I have taken my personal website over to phpWCMS, but I wasn't able to properly integrate my Photo Album. I have set up 4Images on my site, and like the features it has. I would really like to figure out how to strip the template stuff off of 4Images and integrate it directly into my phpWCMS layout using the {PHP:} tag, but don't even know where to begin.

Anybody have any comments? Is it worth attempting, or should I give it up and just use the basic set of functions for an Album that are built into WCMS?

If it is doable, does anybody have any ideas about where to start?

Thanks for your patience with a newbie!

Greg
Pappnase

Post by Pappnase »

hello

maybe you create an html contentpart

place this in your template html head

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>
and this in the html content part

Code: Select all

<iframe src="http://leadbyserving.com/albums/" id="the_iframe" onLoad="calcHeight();" width="600px" height="1" name="the_iframe" scrolling="no" frameborder="0">If you see this text your browser didn't support iframes. so see the page click on at the fowllowing link. <a href="http://leadbyserving.com/albums/" target="_blank">Photoalbum</A></iframe>
you can setup the width="600px" to your needs and the heigth of the site will done automaticliy.

edit the layout from 4images if you can.
ourpobox
Posts: 54
Joined: Wed 2. Jun 2004, 16:41
Location: Virginia, USA
Contact:

Post by ourpobox »

Thanks Pappnapse!

I finally got the time to sit down and try that, but when I try to apply the template, I get an error, with the very descriptive text,
error
:lol:

It refers to:

http://leadbyserving.com/include/inc_ac ... ucture.php

in the URL window, but I don't know what is causing the error... Any ideas?

It seems you have visited my site, and seen what I have there. I really would like to integrate the photo albums with the WCMS navs, and layout, so it gives a better feel to visitors. I like the way 4 images handles the photos/thumbnails and the like... And I am not too excited about starting over, though I don't have many photos in there yet....

Do you think I should just give up and go with the albums function that WCMS has built in? I see somebody else posted about integrating Coppermine, so it is not just me that is interested in doing this sort of thing... :wink:

Thanks for your help so far! You input on these forums is VALUABLE!! Keep it up! :D

Blessings,

Greg
Post Reply