forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: kattmarl on June 10, 2010, 08:25:12 am

Title: igames theme missing banner header graphic
Post by: kattmarl on June 10, 2010, 08:25:12 am
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/ (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  :o :  http://www.jetwashimages.com/gallery/index.php (http://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
Title: Re: igames theme missing banner header graphic
Post by: Αndré on June 10, 2010, 04:06:04 pm
Do you use your 1.4.x theme or the already ported 1.5.x version?
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 10, 2010, 11:47:57 pm
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
Title: Re: igames theme missing banner header graphic
Post by: Joe Carver on June 11, 2010, 12:14:32 am
The folder /themes/igames/images/  seems to be missing, empty or corrupted.
Title: Re: igames theme missing banner header graphic
Post by: onthepike on June 11, 2010, 12:20:56 am
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...)
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 12:38:44 am
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?  ???
Title: Re: igames theme missing banner header graphic
Post by: onthepike on June 11, 2010, 12:39:26 am
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.
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 12:41:12 am
Could it really be THAT easy?  hahaa!  Ok, I'll try!   ;D
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 12:45:26 am
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
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 12:52:10 am
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?  ::)
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 01:05:10 am
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?  ;)
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 01:15:43 am
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.

Code: [Select]
.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?
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 02:34:11 am
 :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?   :-\
Title: Re: igames theme missing banner header graphic
Post by: onthepike on June 11, 2010, 03:08:28 am
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.

Title: Re: igames theme missing banner header graphic
Post by: Joachim Müller on June 11, 2010, 07:51:06 am
Not 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.
Title: Re: igames theme missing banner header graphic
Post by: Αndré on June 11, 2010, 07:56:15 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 (http://documentation.coppermine-gallery.net/en/php-content.htm#php-content_header_footer)?
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 11, 2010, 07:18:05 pm
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!
Title: Re: igames theme missing banner header graphic
Post by: Αndré on June 11, 2010, 09:46:24 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 (http://documentation.coppermine-gallery.net/en/configuration.htm#admin_theme_custom_header_path_start) instead.
Title: Re: igames theme missing banner header graphic
Post by: Joachim Müller on June 12, 2010, 09:53:44 am
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.)
Target audience (http://documentation.coppermine-gallery.net/en/requirements.htm#personal) are people who already know a little HTML/CSS to add their own.
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 14, 2010, 08:46:30 am
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
Title: Re: igames theme missing banner header graphic
Post by: Αndré on June 14, 2010, 07:11:35 pm
No need to add it to the FAQs. It's already described in the docs and accessible via the help icon on the config page.
Title: Re: igames theme missing banner header graphic
Post by: kattmarl on June 14, 2010, 08:31:33 pm
Hi Αndré,
Well.. I'm glad it's documented somewhere - but the only reason why I had to bug you guys was because it wasn't ON the FAQ.  That's the first place newbies go - If it was on there - I could have figured it out!   ;D
Thanks again for everyone's assistance.

 ;)
Title: Re: igames theme missing banner header graphic
Post by: Αndré on June 14, 2010, 08:47:01 pm
There is no dedicated FAQ for cpg1.5.x. That's why it's called 'FAQ for cpg1.4.x'. Anyway, you should read the documentation in the first place instead of reading just the FAQ.
Title: Re: igames theme missing banner header graphic
Post by: Joachim Müller on June 15, 2010, 07:52:39 am
...because the "F" in "FAQ" stands for "frequently". It doesn't stand for "Encyclopedia", so not all questions are answered, but only some of them (those that get answered very often). Hence the term "FAQ". Only reading the FAQ and ignoring the documentation is sheer and utter laziness. From the FAQ for cpg1.4.x:
Quote from: http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm
This document is the second best resource to understand Coppermine - it's mandatory that you read the documentation (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm) first that comes with your Coppermine package.
Don't try to come up with excuses for being too lazy to look up the docs.