Advanced search  

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]

Pages: [1]   Go Down

Author Topic: RE- embed coppermine gallery into my website  (Read 15726 times)

0 Members and 1 Guest are viewing this topic.

b2bmike

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
RE- embed coppermine gallery into my website
« on: August 31, 2008, 08:55:27 pm »

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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: RE- embed coppermine gallery into my website
« Reply #1 on: August 31, 2008, 09:30:43 pm »

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?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #2 on: August 31, 2008, 09:40:14 pm »

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
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: RE- embed coppermine gallery into my website
« Reply #3 on: August 31, 2008, 09:49:20 pm »

Your website theme doesn't look to complicated so why not make your CPG theme look that that? You can also try this method.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #4 on: August 31, 2008, 10:48:09 pm »

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?
Quote
I then saved this completed file over template.html in the sussex directory

any help is appreciated
thanks
M
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: RE- embed coppermine gallery into my website
« Reply #5 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)

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.
« Last Edit: September 01, 2008, 12:44:04 am by phill104 »
Logged
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #6 on: September 01, 2008, 12:25:24 pm »

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




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

Quote
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.

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

Quote
Then 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();
?>
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: RE- embed coppermine gallery into my website
« Reply #7 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #8 on: September 01, 2008, 01:56:13 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
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: RE- embed coppermine gallery into my website
« Reply #9 on: September 01, 2008, 02:18:41 pm »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #10 on: September 01, 2008, 04:39:42 pm »

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.
Logged

Evilbmxer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: RE- embed coppermine gallery into my website
« Reply #11 on: September 01, 2008, 07:03:37 pm »

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
Logged

b2bmike

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #12 on: September 01, 2008, 09:38:41 pm »

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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: RE- embed coppermine gallery into my website
« Reply #13 on: September 01, 2008, 09:56:31 pm »

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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

b2bmike

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: RE- embed coppermine gallery into my website
« Reply #14 on: September 01, 2008, 10:38:00 pm »


GREAT Phill,

halelouya I am reaching somewhere  :)

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


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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: RE- embed coppermine gallery into my website
« Reply #15 on: September 01, 2008, 11:01:11 pm »

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
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.