Simple Question Simple Question
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Simple Question

Started by muna580, February 17, 2007, 11:34:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

muna580

I just intalled Coppermine, but I have some questions.

1. Currently, my photogallery is showing up on this link. http://munbha.100webspace.net/includes/management/cpg1410/index.php I want it so show up on my main site, http://munbha.100webspace.net/ inside my main content area. This way, users can still navigate thorugh mysite and clikc on Home, Forum, Photogallery, etc.

2. I read the documentations but I can't figure out how to upload pictures? How do I upload a batch picture using FTP?

klewless

Hi there,
Though I am new at this too here is the link I found most helpful. Hope this does the trick.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#batch_add_pics

kind regards
klew :)

Joachim Müller

Quote from: muna580 on February 17, 2007, 11:34:25 PM
but I have some questions.
We have a "one question per thread" policy that you agreed to respect when signing up.

muna580

Okay, sorry about that. Well the only thing I want to know is how to integrate the gallery into my website. Currently, my photogallery is showing up on this link without my website content. It is only the photogallery.  I want it so show up on my main site, http://munbha.100webspace.net/ inside my main content area. This way, users can still navigate through my site and click on Home, Forum, Photogallery, etc.

phill104

There are a number of ways to achieve this the best methods are explained in the themes section where you should have really posted this.

The simplest but not the best is to use an iFrame (google it) but you have to set the dimensions of the frame, and as this changes in coppermine you are left with an extra scroll bar inside the frame.

A more elaborate option is to put this code in the head of your html

<script language="javascript">
<!--
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
h = document.getElementById('iframename').contentDocument.body.scrollHeight;
document.getElementById('iframename').style.height = h;
}
else if(document.all) {
h = document.frames('iframename').document.body.scrollHeight;
document.all.iframename.style.height = h;
}
}
//-->
</script>


And in the body where you want coppermine to appear put this code

<iframe onLoad="iFrameHeight();"
src="/your gallery"
scrolling="no" scroll="auto"
id="iframename" name="iframename"
marginwidth="0" marginheight="0" frameborder="0"
style="width:100%;" height="100px">
</iframe>

replacing the "/your gallery" with the relative path of your gallery.

Hope this helps
It is a mistake to think you can solve any major problems just with potatoes.

muna580

Just wondering, what does that javascript you told me to put in the head do?

Joachim Müller

Phil is trying to be helpful and his recommendations are possible options. If you don't understand what the code he suggested does, then try it - don't be lazy!
However, our most basic recommendation is to built a theme that matches the overall look of your site as per documentation.
This is not related to initial install, moving accordingly.