Adding Header/Footer in theme - please help

XtremeCamera

Joined: 2005-08-11
Posts: 24
Posted: Thu, 2007-09-27 13:30

Good morning,

According to the instructions in the theme.pl file we should be able to easily add a header/footer in HTML so that it works well. I did that, and was able to get the header/footer to show up in all the pages EXCEPT when an ALBUM is created and you go to that album page and its photo pages. While the actual HTML shows up fine on ALL pages the images do not. That's because of the added "letter" in the URL when you create an album. Like this:

Note: NSFW !! NSFW <<- Not safe for work!!

http://photo.spinfuel.com/members/main.php << - This shows up fine

but when you click on the album link:

http://photo.spinfuel.com/members/v/Anni/ << - This shows the HTML added, but the image path is now wrong.

How do I fix this? Where, in which template, would I add information that would allow the path to work? Since the "v" is virtual (there is no directory "v") I cannot simply add the "img" directory to that "v" directory.

Surely there is a way to overcome this, and I am missing something easy. Can anyone help?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-09-27 13:58

http://www.communitymx.com/content/article.cfm?cid=230ad

Use the path from the document root or the full url.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
XtremeCamera

Joined: 2005-08-11
Posts: 24
Posted: Thu, 2007-09-27 14:26

Thanks. The problem is the virtual "v" directory when I created the album called Anni. I did fix it with using the full http: URL. Not a perfect fix since that will depend on the DNS working exactly right all the time, but it will do for now.

Thanks again!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-09-27 14:34