Integration of Gallery 2.3 in my private website

Michael2611

Joined: 2009-02-22
Posts: 2
Posted: Sun, 2009-02-22 05:35

Hi everybody,

I am new to Gallery but I think it is a very good program.
I am about to embed it in my website. I have read this howto:
http://codex.gallery2.org/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates

but unfortunately I can not get this to work. I tried the hybrid theme and put the theme.tpl into the local folder as suggested in the howto. This is what I did, my changes are bold:

 

    {* Include this theme's style sheet *}
    <link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/>
    
<link rel="stylesheet" type="text/css" href="/_selbstgemacht/tfrm.css">
    
  </head>
  <body class="gallery">
  
  
<div id="container">

	<div id="header" title="test">

		<h1>Test</h1>

	</div> 
	<div id="menu">
	    <a href="../gallery2">Bilder</a>
	</div> 
	<div id="contents">  
  
  
    <div {g->mainDivAttributes}>
      {if $theme.pageType == 'album' || $theme.pageType == 'photo'}
	{g->theme include="hyb

and


    {g->trailer}
    {g->debug}
    
	</div> 
	<div id="footer">

		Copyright &copy; Michael 2009

	</div>    
    
  </body>
</html>

Now if I click the link, the gallery starts but it is the default layout and not in mine. Did I miss something?

Any help is appreciated.

Michael

 
scurveedog

Joined: 2009-02-20
Posts: 2
Posted: Sun, 2009-02-22 07:23

hi michael,

I'm totally new also but I had that problem and I solved it by logging in as admin, clicking on 'Site Admin', going to 'maintenance' under admin options.
Under 'Task Name' look for 'delete template cache', all the way to the right click 'run now'. It should show "success" in green after that. Now if you go back to your page and refresh it should come up with your changes.

I would be very interested in how you fare with embedding your gallery. I have mine running perfectly on my localhost but when I put it up to my site I can't get it to work? Please let us know how it works out.

 
scurveedog

Joined: 2009-02-20
Posts: 2
Posted: Sun, 2009-02-22 07:35

Hey michael,

I just found this: http://codex.gallery2.org/Gallery2:FAQ#How_can_I_clear_cached_data.3F

they explain it a lot better than I did :)

 
Michael2611

Joined: 2009-02-22
Posts: 2
Posted: Sun, 2009-02-22 13:26

Hi scurveedog,

thank you very much. That did the trick.
My gallery runs on localhost and on my website without any problems.

Regards,

Michael