Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Template  (Read 6500 times)

0 Members and 1 Guest are viewing this topic.

yaxiiah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Template
« 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.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Template
« Reply #1 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.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

yaxiiah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Template
« Reply #2 on: October 22, 2006, 02:44:35 am »

Thanks!!
That will help me!
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Template
« Reply #3 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
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

yaxiiah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Template
« Reply #4 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?
Logged

yaxiiah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Template
« Reply #5 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?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template
« Reply #6 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Bruce

  • Guest
Re: Template
« Reply #7 on: October 22, 2006, 06:02:19 pm »

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>
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template
« Reply #8 on: October 22, 2006, 06:08:10 pm »

No, chekc mine ,( use regular HTML)
Code: [Select]
<td width="100%">
                  <img src="/images/sunheader.jpg" />
                  </td>

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

Code: [Select]
<td width="100%" style="background:url(themes/water_drop/images/blabla.gif) no-repeat;">&nbsp;</td>
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Bruce

  • Guest
Re: Template
« Reply #9 on: October 22, 2006, 11:16:19 pm »

No, chekc mine ,( use regular HTML)
Code: [Select]
<td width="100%">
                  <img src="/images/sunheader.jpg" />
                  </td>

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

Code: [Select]
<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!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template
« Reply #10 on: October 23, 2006, 05:57:59 am »

yes
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.