coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: yaxiiah on October 22, 2006, 02:01:02 AM

Title: Template
Post by: yaxiiah on October 22, 2006, 02:01:02 AM
Is possible to upload  only a picture at the top of the gallery without modifying anything else of the theme?
For ex the classic theme but instead of saying gallery is an image.
Title: Re: Template
Post by: Gizmo on October 22, 2006, 02:42:09 AM
Sure can, just replace the {GAL_NAME} tag with your image using standard HTML code. Check out this theme and you'll notice that is the case - http://coppermine-gallery.net/demo/cpg14x/index.php?4x=&theme=supernova (http://coppermine-gallery.net/demo/cpg14x/index.php?4x=&theme=supernova).
Title: Re: Template
Post by: yaxiiah on October 22, 2006, 02:44:35 AM
Thanks!!
That will help me!
Title: Re: Template
Post by: Gizmo on October 22, 2006, 02:45:56 AM
Here's another released by Sami today call My Tanks. Again the header title is an image.
http://coppermine-gallery.net/demo/cpg14x/index.php?4x=&theme=my_tank (http://coppermine-gallery.net/demo/cpg14x/index.php?4x=&theme=my_tank)
Title: Re: Template
Post by: yaxiiah on October 22, 2006, 06:11:54 AM
i thought that it'll appear but it appears just like this..[img<IMG SRC="images/Untitled-2.jpg" WIDTH=1024 HEIGHT=768 ALT="">[/img]
do i place it an incorrect place?
Title: Re: Template
Post by: yaxiiah on October 22, 2006, 06:13:15 AM
mmm like this...http://www.juicy-duff-site.exofire.net/galeria/
maybe i put and incorrect code...what's the problem?
Title: Re: Template
Post by: Sami on October 22, 2006, 07:01:39 AM
You should edit themes/yourtheme(in your case water_drop)/template.html and replace the {GAL_NAME} tag with your image as Gizmo suggested,
You can't put html code under gallery config page this way :o
Title: Re: Template
Post by: Bruce on October 22, 2006, 06:02:19 PM
Quote from: Sami on October 22, 2006, 07:01:39 AM
You should edit themes/yourtheme(in your case water_drop)/template.html and replace the {GAL_NAME} tag with your image as Gizmo suggested,
You can't put html code under gallery config page this way :o

Are you saying that in the following snippet of TEMPLATE.HTML...

<td width="100%">
                    <h1>{GAL_NAME}</h1>
                    <h3>{GAL_DESCRIPTION}</h3>
                  </td>

...to put a custom image there in place of the text name you would do this?

<td width="100%">
                    <h1>{image src="/images/sunheader.jpg"}</h1>
                    <h3>{My Photo Gallery}</h3>
                  </td>
Title: Re: Template
Post by: Sami on October 22, 2006, 06:08:10 PM
No, chekc mine ,( use regular HTML)

<td width="100%">
                  <img src="/images/sunheader.jpg" />
                  </td>


or you could set it as a background image for that td , something like this:


<td width="100%" style="background:url(themes/water_drop/images/blabla.gif) no-repeat;">&nbsp;</td>
Title: Re: Template
Post by: Bruce on October 22, 2006, 11:16:19 PM
Quote from: Sami on October 22, 2006, 06:08:10 PM
No, chekc mine ,( use regular HTML)

<td width="100%">
                  <img src="/images/sunheader.jpg" />
                  </td>


or you could set it as a background image for that td , something like this:


<td width="100%" style="background:url(themes/water_drop/images/blabla.gif) no-repeat;">&nbsp;</td>


Okay Sami, so instead of putting that code inside the {} marks (?), I just remove the...

<h1>{GAL_NAME}</h1>
                    <h3>{GAL_DESCRIPTION}</h3>

...H1 and H3 entirely and replace that with regular html, correct?

Thanks!
Title: Re: Template
Post by: Sami on October 23, 2006, 05:57:59 AM
yes