[Solved]: Delete title in Avalance skin [Solved]: Delete title in Avalance skin
 

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]

Main Menu

[Solved]: Delete title in Avalance skin

Started by mouse100, April 13, 2008, 04:06:30 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mouse100

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?

Joachim Müller

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.

mouse100

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, 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!

steveeh131047

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

mouse100

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?

Joachim Müller

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.

steveeh131047

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

steveeh131047

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.

mouse100

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!  :)