coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: mouse100 on April 13, 2008, 04:06:30 AM

Title: [Solved]: Delete title in Avalance skin
Post by: mouse100 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?
Title: Re: Delete title in Avalance skin
Post by: Joachim Müller 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 (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_template_token_list), please read them before asking questions.
Title: Re: Delete title in Avalance skin
Post by: mouse100 on April 13, 2008, 11:38:40 AM
Quote from: Joachim Müller 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 (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_template_token_list), 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!
Title: Re: Delete title in Avalance skin
Post by: steveeh131047 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  

Or perhaps I've misunderstood?

Steve
Title: Re: Delete title in Avalance skin
Post by: mouse100 on April 13, 2008, 02:22:06 PM
Quote from: steveeh131047 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  

Or perhaps I've misunderstood?

Steve


Thanks! It worked perfectly! :) But if i'd attach a logo? Is it impossible?
Title: Re: Delete title in Avalance skin
Post by: Joachim Müller 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.
Title: Re: Delete title in Avalance skin
Post by: steveeh131047 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
<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
Title: Re: Delete title in Avalance skin
Post by: steveeh131047 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.
Title: Re: Delete title in Avalance skin
Post by: mouse100 on April 13, 2008, 09:00:46 PM
Quote from: steveeh131047 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.

Thanks! You're my best friend!  :)