igames theme missing banner header graphic igames theme missing banner header graphic
 

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

igames theme missing banner header graphic

Started by kattmarl, June 10, 2010, 08:25:12 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kattmarl

Hello!   ;D

I've upgraded from 1.4 to 1.5 and all seems to have gone well - I was able to backup my database, my albums, install the new 1.5 version... and modify some of the configuration settings to our liking.

I installed the igames theme, applied it - but the coding is somehow missing the banner graphics which used to be on the theme.  I tried looking for the code but, I'm not very sharp at it.  Was this part omitted in the new release?  Or is something else going on?  Does the banner table code exist within the index.php file, or in the theme.php file?  ???

For example, when you view the demo:  http://coppermine-gallery.net/demo/cpg15x/ and select theme Igames, there's a header graphic shown - what looks like a table of 3 images used for the banner header.  The grid-looking graphic, the flat grey spacer graphic, and the right side graphic.

In our old site, I simply replaced one of the graphics called "top_panel_r1_c1.jpg" with a different one using the same name.. and voila!  My logo banner appeared exactly as desired.  :D

Only now, after applying the 1.5 theme igames - there's nothing on top  :ohttp://www.jetwashimages.com/gallery/index.php

Was the coding removed in the theme, or is something else amiss?   ???
Can someone help explain, or show me what to add to get our logo (attached) back on the header of the gallery?

Thanks you anyone!  ;D
~ Katt

Αndré

Do you use your 1.4.x theme or the already ported 1.5.x version?

kattmarl

Thanks for your reply!  ;D

I installed the new 1.5, and then downloaded the 1.5 igames theme. I copied the theme folder into the Themes directory as instructed, logged in, applied the theme.. and it all seems to look ok, except - no header graphic.   ???

Any ideas?
Thanks!   :D

Joe Carver

The folder /themes/igames/images/  seems to be missing, empty or corrupted.

onthepike

Hi Joe,

Looks on my end like directory browsing has been turned off by default in the control panel and the 404 message is generic in nature. See here:

http://www.jetwashimages.com/gallery/themes/igames/images/important.gif

So the directory is there. But is the header image? And set to what permissions?

(butting out now...)

kattmarl

Hey everyone, thanks for assisting!

Not even sure where to start..  you said the directory browsing was disabled?  Is it disabled by default in CM?  Cuz I sure don't know how to do that!   :D

The images appear to be in the folder /top_panel_r1_c1.jpg is there..  so the basic files appear to be where they need to be, they just don't show in the header of the page.  Is that coming from the main CM Index.php, or from the Theme php page?

I don't know enough about how CM uses the themes to know where it draws the theme info from.

Any other ideas?  ???

onthepike

Here's the banner: http://www.jetwashimages.com/gallery/themes/igames/images/top_panel_r1_c1.jpg

In config, try entering some data in the Gallery Name and Gallery Description fields and see if the banner shows up.

kattmarl

Could it really be THAT easy?  hahaa!  Ok, I'll try!   ;D

kattmarl

Partial Success!   :D

Why does adding info into those fields affect the display of a header?  WEIRD!

So now the image shows - sort-of..  I'm guessing I need to adjust the img size code?  Where can I find that?

And.. last time, the banner shows center and full.. now it's only on the left, with the other images on the right.   Any idea how to remote the other images?

Thank you SOO much everyone!   ;D

kattmarl

Ok, so I'm confused.  ???

When I add text in those Description Fields.. the banner does show, but it seems the height of the banner is linked to the existence of each description line.
If I have only the Gallery Name used... the banner is shrunk vertically..
If I use both Gallery Name and Description, the banner is slightly taller - to show the next line, but it's still not full size.   :-\

The other images still show as well... but we can fix that last.

What should I do to make the whole image show as a logo/banner on top?  ::)

kattmarl

Am I going about this the wrong way perhaps?   :-\

In the 1.4.x version.. this was simply a graphic swap and a code adjustment.

In 1.5.x, is this now a "custom header" element?  ;)

kattmarl

Ok wait, I found the image codes within the STYLE.CSS file..   Now there's a ticket!  ;D   Sorry I'm new with CSS and how CM works in 1.5.x  seems all strange to me again.

.top_panel {
background-image: url(images/top_panel_r1_c4.jpg);
background-repeat : repeat-x;
border-collapse:collapse;
margin: 0;
padding: 0;
}

.top_panel_left {
background-image: url(images/top_panel_r1_c1.jpg);
background-repeat : no-repeat;
background-position: top left;
margin: 0;
padding: 0;
}

.top_panel_right {
background-image: url(images/top_panel_r1_c2.jpg);
background-repeat : no-repeat;
background-position: top right;
margin: 0;
padding: 0;
}



.top_panel_btm {
background: #4A4A4A;
background-image: url(images/top_panel_r2_c3.jpg);
background-repeat : no-repeat;
background-position:right;
padding-top : 0;
padding-bottom : 0;
}


What is the difference between these .top_panels?
If I just want one image, is that - then - the background image?  How can I get this image centered and full size?

kattmarl

 :D  WE DID IT!  :D

Well... mostly.  I still don't know why we HAVE to have a Gallery Name and Description in order to show the header graphic.
If there's a way around this - let me know.  I'd rather have the logo be the only thing written above the Nav Bar.

So, I went in to the STYLE.CSS file and modified the code for the .top_panel_left tag - changing the alignment to "center" and added a "Height: 120px;" requirement.

This did the trick - the graphic now shows at full size.  ;)

Is there any way to get rid of the Gallery Name & Description which sits above the image?   :-\

onthepike

Welcome to the fascinating world of custom themeing!

http://www.jetwashimages.com/gallery/docs/en/theme.htm
http://www.jetwashimages.com/gallery/docs/en/theme_create.htm
http://www.jetwashimages.com/gallery/docs/en/theme_theme_php.htm
http://www.jetwashimages.com/gallery/docs/en/theme_template.htm
http://www.jetwashimages.com/gallery/docs/en/theme_style_css.htm

Give your docs a good read-through and play around with the three files in the igames theme folder. Might be a good idea to rename the igames theme to something else and begin your custom theme with your new name avoiding any possible future conflict when the actual igames theme is eventually updated. You won't want to lose your work overwriting your personalized igames theme with CPG's default issue.


Joachim Müller

Quote from: kattmarl on June 11, 2010, 12:38:44 AMNot even sure where to start..  you said the directory browsing was disabled?  Is it disabled by default in CM? 
That's not a feature in Coppermine (official abbreviation "cpg" by the way, not "cm"), but a feature in your webserver's setup (usually Apache). It's recommended to leave directory browsing (aka indexes) off, so no need for action here. YIf your webhost ist displaying a 404 when someone tries to browse a directory that's of course bad and not the intended way. However, that's something you usually have no control over.

Αndré

Quote from: kattmarl on June 11, 2010, 02:34:11 AM
Is there any way to get rid of the Gallery Name & Description which sits above the image?   :-\
I cannot see any text above your header graphic. But wouldn't it be easier just to add a custom header?

kattmarl

Thank you everyone for your input!   ;)

Yes, after modifying the CSS tag for the image, I was able to remove the wording in CPG fields (removed the Gallery Name & Description) and the image still shows perfectly.   ;D  I think we're good!

I suppose a custom header is what's required, but I'm surprised that CPG - by default - doesn't have a menu-driven option in the config area to simply upload a header logo/graphic and select a placement area (left, center, right.)

However - ALL the help you guys have offered has been brilliant!  THANK YOU!

Αndré

Quote from: kattmarl on June 11, 2010, 07:18:05 PM
I'm surprised that CPG - by default - doesn't have a menu-driven option in the config area to simply upload a header logo/graphic and select a placement area (left, center, right.)
That option is just inflexible imo. We have that option instead.

Joachim Müller

Quote from: kattmarl on June 11, 2010, 07:18:05 PMI'm surprised that CPG - by default - doesn't have a menu-driven option in the config area to simply upload a header logo/graphic and select a placement area (left, center, right.)
Target audience are people who already know a little HTML/CSS to add their own.

kattmarl

Thank you Joachim & Αndré,

I guess more familiarity with the way CPG uses it's files would be the most helpful.
I do know enough CSS to uncover a few things and can code in html just fine.

I think I was just hoping something like this - something basic like header/logo modification would have been listed in the FAQs and I was completely bewildered as to why it wasn't.  It would have at least pointed me in the right direction of Custom Header so I wouldn't need to bother anyone.  Maybe add it to an FAQ saying - "Customizing Header with your own Logo/Banner graphic" and then describe that this MUST be done by following the link ANDRE lists?   Maybe I can write it from a basic user perspective?

Sorry to take up your time.  ::)
I really REALLY appreciate it though!  Thanks again!
You guys ROCK!   ;D