coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Mariluz1976 on February 06, 2006, 06:31:57 PM

Title: header
Post by: Mariluz1976 on February 06, 2006, 06:31:57 PM
Yes I know, problably another simple question but..

How am I to make a path to a file that becomes my own header.
Where do I do this and how should such a path look like?
http:...... or??
Als this file, do I need to load it?


Thx!!!
Title: Re: header
Post by: Joachim Müller on February 06, 2006, 06:41:58 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start
Title: Re: header
Post by: Mariluz1976 on February 06, 2006, 07:29:32 PM
Dear Gaugau,

I already read this, but didn't understand it.
What is a path? How should I write it down??

Thx  ;)
Title: Re: header
Post by: Joachim Müller on February 06, 2006, 09:12:32 PM
Basic html terminology:
http://www.webdiner.com/webadv/begin/paths.htm
http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm

It's important that you understand the basic concept before trying to fiddle with includes.
For the custom footer in coppermine, use a relative path
Title: Re: header
Post by: Mariluz1976 on February 06, 2006, 11:07:23 PM
Hi again,

Ow well..I knew this already...Didn't know it was called relative path (in English).
But still somehow it doesn't seem to work. I've tried every relative path option in the book.
Well I'll keep trying.
Thx!!
Title: Re: header
Post by: Joachim Müller on February 07, 2006, 07:36:56 AM
Post the URL of your coppermine gallery and the URL of the file you're trying to include, and we'll probably be able to come up with the proper path settings. If you're trying to include a file that is not only plain html, but a dynamic page (PHP), attach the file you're trying to include to your posting (using "addtional options" when composing your message, renaming the file from "myscript.php" to "myscript.php.txt" before trying to attach it).
Title: Re: header
Post by: Mariluz1976 on February 07, 2006, 02:46:57 PM
Ow cool...
I've a feeling that I'll be hanging around this forum a lot in the near future ;D

http://www.sousacreative.com/coppermine/cpg143/index.php (http://www.sousacreative.com/coppermine/cpg143/index.php)

<img src="www/coppermine/cpg143/albums/fotobestanden/headtop.jpg"> or something...

But I think I got it...
It's problably not possible to put just a jpg pic above the template header. I must make a complete header in php, right??
???
Title: Re: header
Post by: Tranz on February 07, 2006, 03:44:33 PM
You would need to put the code in a php or html file:
<img src="http://www.sousacreative.com/coppermine/cpg143/albums/fotobestanden/headtop.jpg">

Make sure the path is correct. The one you tried to use is in an incorrect format. I tried to merge the info given your gallery url and the image path and got a 404.
Title: Re: header
Post by: Mariluz1976 on February 07, 2006, 04:29:44 PM
Ow stupid, sorry, I changed the file to a PHP one... but the jpg one is back now.

B.t.w.It also doesn't seem to work in PHP & HTML.My scripts must be wrong.

I'll leave it for the time being and focus on the construction of my website  ;)
But..I'll be back!

Thx guys 8)
Title: Re: header
Post by: Tranz on February 07, 2006, 05:13:37 PM
I'll mark the thread "closed" for now but once you want to resume working on this, feel free to reply to the thread to reopen it.
Title: Re: header
Post by: Joachim Müller on February 07, 2006, 11:38:41 PM
if it's only an image file, why don't you simply add it to themes/yourtheme/template.html (using regular html)?