coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Illegalops on April 03, 2010, 05:32:29 PM

Title: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Illegalops on April 03, 2010, 05:32:29 PM
Hi,

I encounter a problem when attached a banner at the top of the title. The banner seems to shift to the right side and it cover the menu bars. This is the code that i had added in template.html.

<h1 align="center"><img src="http://kesmond.host22/images/1035x175.gif" />{GAL_NAME}</h1>


The url is as below:
http://kesmond.host22.com/Gallery/

May I know whats wrong? Urgently needed it.. thanks
Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: vwad on April 03, 2010, 06:00:23 PM
Though I am not an expert, my suggestion would be

Find in template.html of your theme

</head>
<body>
<div id="CUSTOM_HEADER">
  {CUSTOM_HEADER}


Then add following code after above code on next line before </div>

<img src="http://www.thaiparadise69.com/images/1035x175.gif" width="1035" height="175" />

So your full header code should be like below

</head>
<body>
<div id="CUSTOM_HEADER">
  <div align="center">{CUSTOM_HEADER}

    <img src="http://www.thaiparadise69.com/images/1035x175.gif" width="1035" height="175" /></div>
</div>

Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Jeff Bailey on April 03, 2010, 06:08:37 PM
you could do what vwad suggests. You could also paste

<div align="center" style="height:175px;">
<img style="text-align: center;" src="http://www.thaiparadise69.com/images/1035x175.gif">
<div>

into a file called "banner.html" then,

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start
Quote
Path to custom header include

Optional relative path to a custom header file. Using this option, you can include non-coppermine code bits to be included into your theme, e.g. an overall navigation that gets included on your whole website. You can only add a relative path (seen from the root path of your coppermine install) - not an absolute one, nor a http include from another website. This option is only meant for experienced users who have some PHP know-how.

Warning: you mustn't include full html pages that contain an html header or footer (tags like <head> or <body>), nor can the included file do file header manipulation, e.g. reading another (non-coppermine) cookie.

This way you won't have to edit your theme if you decide to change it.
Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Illegalops on April 03, 2010, 06:32:02 PM
ok, thanks... will give it a try now and get back to u...
Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Illegalops on April 03, 2010, 06:39:11 PM
thanks guys!! it works!!!...

By the way, if i want to change the color from white to yellow. I would just have to change the style.css ?

/* Background colors definition */
body { background-color: #FAFAFA; }

change the #FAFAFA which is white to #FFFF00 (yellow)?

Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Jeff Bailey on April 03, 2010, 06:59:50 PM
There will probably be many places you will have to change the background-color property in the themes style sheet.

Please resolve this thread and if you can't figure out how to change all the colors you want, start another one.
Common policies: Resolve your threads (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)
Board rules / Forum policies: One Question per Thread (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270618.html#msg270618)
Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Illegalops on April 03, 2010, 07:06:51 PM
noted. THanks
Title: Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
Post by: Joachim Müller on April 04, 2010, 06:48:02 PM
This forum is not the right place to be taught HTML and CSS basics.