RE- embed coppermine gallery into my website RE- embed coppermine gallery into my website
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

RE- embed coppermine gallery into my website

Started by b2bmike, August 31, 2008, 08:55:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b2bmike

Hi Coppermine gurus,

I searched the forum and found this link the closest to what I'm trying to do but can not break it further, so maybe someone can help.
http://forum.coppermine-gallery.net/index.php/topic,45021.msg214307.html#msg214307

In a nutshell, I want to embed my coppermine gallery http://lebenvironment.com/gallery/ into my website gallery http://www.lebenvironment.com/naturesgallery.html.

Any help will be highly appreciated or advice to where I can find the procedure so I can implement.

cheers & thanks in advance
Mike

phill104

Please don't PM me with requests for help. Doing things off line in no way helps others with similar problems. Where my knowledge is up to it I am always willing to help online.

Are you using some sort of content management to generate your webpages?
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike

Hi Phill,

My apologies for the PM  :-\

To answer your question, no I'm not using any content management tools. I used front page to work on my website.

Thanks for your feedback
Mike

Gizmo

Your website theme doesn't look to complicated so why not make your CPG theme look that that? You can also try this method.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

b2bmike

Hi again,

Thanks Gizmo for your reply.

I followed Phills method in this link http://forum.coppermine-gallery.net/index.php/topic,45021.msg214307.html#msg214307
step by step to get this result in my gallery http://www.lebenvironment.com/naturesgallery.html    :o ???

Maybe i didnt understand what this sentence means?
QuoteI then saved this completed file over template.html in the sussex directory

any help is appreciated
thanks
M

phill104

#5
First go into the themes directory of your coppermine install and make a copy of the classic folder and rename it to naturesgallery (or whatever)

Then rename that naturesgallery.html file you created to theme.html and copy it over the theme.html file in the folder you created above.

Then go into the config of your coppermine gallery and select your naturesgallery them and save changes.
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike

Hi Phill,

My apologies if I sound a little naive, its my first time to really get into stuff like this. please bare with me  :-\



Quote from: phill104 on August 31, 2008, 11:50:05 PM

First go into the themes directory of your coppermine install and make a copy of the classic folder and rename it to naturesgallery (or whatever)

Okay Done

QuoteThen rename that naturesgallery.html file you created to theme.html and copy it over the theme.html file in the folder you created above.

Okay I've renamed to theme.html and copied it to this location naturesgallery/themes/classic
is this correct?

QuoteThen go into the config of your coppermine gallery and select your naturesgallery them and save changes.

When you say go into the config file you mean this config.php file below, right?


Quote?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
 
  ********************************************
  Coppermine version: 1.4.18
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/config.php $
  $Revision: 4380 $
  $Author: gaugau $
  $Date: 2008-04-12 12:00:19 +0200 (Sa, 12 Apr 2008) $
**********************************************/

define('IN_COPPERMINE', true);
require('include/init.inc.php');
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


$redirect = "admin.php";
$message = <<< EOT
You are trying to access Coppermine's <a href="admin.php">config page</a> using an outdated link - the file config.php has been renamed to admin.php. You probably updated your site and haven't changed your theme as suggested in the <a href="naturesgallery/themes">theme upgrade guide</a>.<br />
You are now being redirected to the actual page you were looking for.
EOT;
pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"100;url=$redirect\" />");
msg_box($lang_info, $message, $lang_continue, $redirect);
pagefooter();
ob_end_flush();
?>

Gizmo

I get a 404 for you website.

Phil means to log in then go to the config menu and set your theme as the default.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

b2bmike

Quote from: Gizmo on September 01, 2008, 01:33:57 PM
I get a 404 for you website.

Phil means to log in then go to the config menu and set your theme as the default.

Okay Gizmo I'm going to try the procedure once again, I'm pretty sure I am missing something somewhere.  ::)

Gush I'm glad I'm not a developer or a techy guy :o my family would have starved

Gizmo

No worries, it's not as straightforward as it seems. We all have to start somewhere so don't get (too) frustrated. When I was starting out I was ready to jump off a building but I've looked through so much code that at least I can manage my way around now. Building a theme like you're doing is the best way to learn which is how I got started.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

b2bmike

Hi again  :-\

I followed the steps below within quote, just to try a post I saw written by Phill. I thought maybe I might understand it better but then this is what I got http://www.lebenvironment.com/gallery/themes/naturesgallery/template.html

Where am I going wrong and why do I see some codes in my gallery and not the actual cpg?

Oooft :-X

Quote
It is quite simple to do. Either you can use an iframe (search these forums for how to do this) or copy and rename your chose theme (I'm uscing classic as an example). Simply then include everything inside the body of the classic them inside the table in your html page then select this theme in the cpg config.

eg copy themes/classic to themes/yourtheme

take your html page and place everything from themes/classic/template.html inside the 'body' inside a table or div in your htaml page wherever you want the gallery to display then save this as themes/yourthem/template.html

select yourtheme in the gallery config.

Evilbmxer

I have got it to work for my site, but the main problem I am having is my style sheets. I have a CSS for my main template, as well as the one for the CPG. And the one from my main website is overrideing the CPG and its messing it up. I've been working on it for days, and I cant figure it out. Any Ideas?

Thanks,
Evilbmxer

b2bmike

Hi,

After doing the whole thing again below this is what I get : http://www.lebenvironment.com/naturesgallery.html

- I first copied the theme/classic to themes/naturesgallery (/public_html/gallery/themes/naturesgallery)

- Then I copied my html code under naturesgallery.html and placed it inside gallery/themes/naturesgallery (template.html)

- Saved the template.html and then I went to config and selected my naturesgallery -theme

voila all done BUT.... it didnt work  :o

SOS pls

Mike

phill104

You are almost there but not quite. You are linking to the wrong page.

Go to http://www.lebenvironment.com/gallery/

and you will see your gallery with the theme almost done.

All that is now wrong is that your template file is looking in the wrong place for some of your graphics. Once you have corrected this you should be up and running.
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike


GREAT Phill,

halelouya I am reaching somewhere  :)

Now one more tiny favor and I promise I won't bother you guys anymore.

Quote from: phill104 on September 01, 2008, 09:56:31 PM

All that is now wrong is that your template file is looking in the wrong place for some of your graphics. Once you have corrected this you should be up and running.

Would it be a good idea to copy all the images i have for my website and paste under theme/naturesgallery/images?

thanks
Me

phill104

No, just review the code and make the image tags point to the images. There is no point having the same image on your server twice. It is usually a simple matter of adding a few ../'s to your code.

This article explains a bit on how to change your url's taking note of the section on relative url's

http://www.webdevelopersnotes.com/design/relative_and_absolute_urls.php3

You also need to edit your menu links in the same way as they are currently adding gallery to the url so

About us is coming up as http://www.lebenvironment.com/gallery/aboutus.html instead of http://www.lebenvironment.com/aboutus.html
It is a mistake to think you can solve any major problems just with potatoes.