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: [Solved]: Delete title in Avalance skin  (Read 4761 times)

0 Members and 1 Guest are viewing this topic.

mouse100

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 69
[Solved]: Delete title in Avalance skin
« on: April 13, 2008, 04:06:30 am »

Hi guys!

I downloaded Avalanche theme here: http://coppermine-gallery.net/forum/index.php?topic=37669.0

and I'd like to delete the site name and site description from the theme's header:

[Edit GauGau] Replaced hotlinked image with attachment [/Edit]


I tried to delete them from the admin panel but the template's layout become not aligned.

So is there a way to leave the header without any written or a way to change the title in an image like a logo?
« Last Edit: April 14, 2008, 09:29:33 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Delete title in Avalance skin
« Reply #1 on: April 13, 2008, 04:39:46 am »

Edit themes/avalanche/template.html, find the placeholder tokens {GAL_NAME} and {GAL_DESCRIPTION} and remove them. This is the same for all themes. Is being covered in the docs, please read them before asking questions.
Logged

mouse100

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 69
Re: Delete title in Avalance skin
« Reply #2 on: April 13, 2008, 11:38:40 am »

Edit themes/avalanche/template.html, find the placeholder tokens {GAL_NAME} and {GAL_DESCRIPTION} and remove them. This is the same for all themes. Is being covered in the docs, please read them before asking questions.


I had already tried this, but as you can see in the attachement the result is not very good!
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Delete title in Avalance skin
« Reply #3 on: April 13, 2008, 01:58:11 pm »

Not quite sure exactly what effect you're trying to achieve. Do you simply want to remove the gallery name and description?

This layout is quite complex and depends on having some "real" characters in the Gallery name and Gallery description. If you remove the tokens, or style them as invisible, the layout collapses.

A "quick and dirty" work around is to replace the {GAL_NAME} and {GAL_DESCRIPTION} tokens in themes/avalanche/template.html with the HTML special character
Code: [Select]
 
Or perhaps I've misunderstood?

Steve
Logged

mouse100

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 69
Re: Delete title in Avalance skin
« Reply #4 on: April 13, 2008, 02:22:06 pm »

Not quite sure exactly what effect you're trying to achieve. Do you simply want to remove the gallery name and description?

This layout is quite complex and depends on having some "real" characters in the Gallery name and Gallery description. If you remove the tokens, or style them as invisible, the layout collapses.

A "quick and dirty" work around is to replace the {GAL_NAME} and {GAL_DESCRIPTION} tokens in themes/avalanche/template.html with the HTML special character
Code: [Select]
 
Or perhaps I've misunderstood?

Steve


Thanks! It worked perfectly! :) But if i'd attach a logo? Is it impossible?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Delete title in Avalance skin
« Reply #5 on: April 13, 2008, 04:23:18 pm »

Only if you really know your way around and are capable to hack that theme. If you don't have the skills to accomplish this, use another theme.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Delete title in Avalance skin
« Reply #6 on: April 13, 2008, 04:25:09 pm »

OK - two things you can try to insert a logo image:

1) EASY: Replace the {GALLERY_NAME} token with an HTML image tag, something like
Code: [Select]
<img src="themes/avalanche/images/logo.jpg">The "logo.jpg" image needs to be in the theme's "images" folder and will need to be no more than 75px high.

2) HARD: Replace the 2_5.gif image in the theme's images folder with your own design. It needs to be 278x103px and the bottom section will need to reproduce the Avalance background pattern. One to do this would be to perform a "screen grab" of the layout and use a graphics program to add your logo.

As with everything in life, try the easy way first  ;)

Steve
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Delete title in Avalance skin
« Reply #7 on: April 13, 2008, 05:24:24 pm »

If the EASY method doesn't work for you, I've made the HARD method a bit easier. I'm attaching a full size 278x103 version of 2_5.gif which you can edit with your logo.

You can't just use the original version of 2_5.gif because it was only 2px wide and was "auto-repeated" horizontally to fill the space by the CSS styling.
Logged

mouse100

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 69
Re: Delete title in Avalance skin
« Reply #8 on: April 13, 2008, 09:00:46 pm »

If the EASY method doesn't work for you, I've made the HARD method a bit easier. I'm attaching a full size 278x103 version of 2_5.gif which you can edit with your logo.

You can't just use the original version of 2_5.gif because it was only 2px wide and was "auto-repeated" horizontally to fill the space by the CSS styling.

Thanks! You're my best friend!  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.