Newb here. Need some help with embedding, please?

diablo75

Joined: 2008-04-02
Posts: 5
Posted: Wed, 2008-04-02 16:33

I recently redesigned a habitat for humanity website, located here:

http://www.topekahabitat.org

The gallery page that exist there right now is what I want to integrate Gallery2 into. It's just simple html with CSS, no content management software is running.

I have setup a test install of Gallery two on my own website here:

http://www.davestechsupport.com/habitatdraft/gallery2

I read over a tutorial somewhere on the web somewhere not too long ago about how this could be done, but it was a little intimidating. What should I do?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26098
Posted: Wed, 2008-04-02 17:50

Take this page:
http://www.topekahabitat.org/contact.html
and copy it.
remove all the info in the middle and add the word Gallery.
save
take the html up to the word Gallery and paste it into theme.tpl
take the html from the word Gallery down the the bottom and paste in theme.tpl

You might have to change some <doc type> tags but it should work out.
if you get stuck post a link to your template you make out of contact.html

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
diablo75

Joined: 2008-04-02
Posts: 5
Posted: Wed, 2008-04-02 22:47

Where is the theme.tpl file located?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26098
Posted: Thu, 2008-04-03 02:58
 
diablo75

Joined: 2008-04-02
Posts: 5
Posted: Tue, 2008-04-08 02:10

Well, here's a link to the modified theme.tpl file. When I try to load my gallery now, I just get a blank white screen.

A backup is located here.

Thanks for your help so far! Now what should I do?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26098
Posted: Tue, 2008-04-08 03:57
Quote:
if you get stuck post a link to your template you make out of contact.html

I guess I did not make sense. I need a link to your HTML file you made with the word gallery in it.

Quote:
A backup is located here.

404 error.
You should edit files only in the local directory. See:
http://codex.gallery2.org/Gallery2:Editing_Templates

Quote:
I just get a blank white screen.

Could be because you did not escape the javascript in the file.
http://www.smarty.net/manual/en/language.function.literal.php
1 In your chosen theme's folder (ex. themes/matrix/templates), create a new folder named 'local'
2 Make a copy of the template you wish to edit in the 'local' folder (theme.tpl, album.tpl, photo.tpl, etc.)
3 Edit your copied template files in themes/matrix/templates/local/

How much HTML do you know?
you have more than one doctype , head and body tags.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
diablo75

Joined: 2008-04-02
Posts: 5
Posted: Tue, 2008-04-08 04:35

Ok, here's a link to the modified contact.html

I've also restored the original tpl file for now.

I know a little HTML, but not a lot.

Ok, I got my gallery back the way it was, and got the custom contact.html file to display the right css stuff...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26098
Posted: Wed, 2008-04-09 00:41

Save the attachment without the .txt extension.

You will see the changes I made... I had to use a full URL to the css file to test it.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

AttachmentSize
theme.tpl_.txt5.35 KB
 
diablo75

Joined: 2008-04-02
Posts: 5
Posted: Wed, 2008-04-09 02:21

This is great! Here's what it looks like now, thanks to your help.

Thank you very much for your help. I think I'll probably be able to take it from here.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26098
Posted: Wed, 2008-04-09 02:29

Better, now I guess you next step is:
http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team