Customize a static HTML website to include gallery2
taskmaster
![]()
Joined: 2004-12-01
Posts: 135 |
![]() |
Hello I have downloaded gallery2, now I need to get it into my site a pure static html website, I have sql, php on my dedicated server. I could not find html_wrap in the directory, I read shadow wolfs post and I just cant find html_wrap directory. :D A thing to the forum, its said that the search function delivers so bad results, its a great forum. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
moved to G2 User Interface forum. Dave |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
no html_wrap in G2.. read the help text at the top of templates/global.tpl |
|
taskmaster
![]()
Joined: 2004-12-01
Posts: 135 |
![]() |
Thanks Is it better to dowload a older version of GALLERY if I want to have it in my old site, the global thing sounds a little complicated and there is no dummy information how to |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
check README.html in G2 to see if the current state of G2 works for you. |
|
taskmaster
![]()
Joined: 2004-12-01
Posts: 135 |
![]() |
Issent there any real description how to do this, I read the top of global, why dont it say place your html here for top and html here for the end. thats it. as I understand it is all in the global.tpl so no 2 ducoments to change like in the old Gallery verrsion. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
the documentation looks pretty good to me.. you can clearly see where the main G2 content goes and there are images just above and below that, so it's easy to see where those are on the page. just experiment.. if you break anything you can always change it back or remove your global.tpl.local |
|
taskmaster
![]()
Joined: 2004-12-01
Posts: 135 |
![]() |
Call me stupid, but I just cant get this to work - this error I got the last time and now I cant change it back so I have to install the gallery2 again. Fatal error: Smarty error: [in gallery:templates/global.tpl line 181]: syntax error: unrecognized tag: window.location="http://www.1freewallpaper.com/links.htm"; (Smarty_Compiler.class.php, line 408) in /home/httpd/vhosts/1freewallpaper.com/httpdocs/gallery2/lib/smarty/Smarty.class.php on line 1083 Here is the global script, please mark where I put my tables/content, thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> {* Content that G2 wants to display inside the <head> element *} {* Content that G2 wants to display inside the <body> element *} <div id="gsFooter"> <a href="http://gallery.sourceforge.net"><img style="border: 0px" {* If debugging or profiling is enabled, we'll display it here *} maybe I have a totaly other problem with this program. :D |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
perhaps you removed your global.tpl.local file? as mentioned in the FAQ, you'll need to resave or 'touch' the original global.tpl file to get smarty to recognize this file as newer. |
|
zberke
Joined: 2006-03-16
Posts: 1 |
![]() |
Hi, I've got gallery-2.0.2-full. I can't find a global.tpl file (find . | grep global) ... has this process changed? Thanks, |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
yes, notice this thread is from 2004. look for themes/{yourtheme}/templates/theme.tpl and find more info by clicking "documentation" at the top of this page. |
|
phatass
Joined: 2006-03-20
Posts: 4 |
![]() |
Look at my site and see if the gallery there is what you are trying to do. www.phatasscycles.com/gallery I had some help with it but you may be able to look at the code and see how to set your template up. |
|