Encounter Problem when attaching a banner at the title of Mac_ox_X Encounter Problem when attaching a banner at the title of Mac_ox_X
 

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

Encounter Problem when attaching a banner at the title of Mac_ox_X

Started by Illegalops, April 03, 2010, 05:32:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Illegalops

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

vwad

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>

God is Greatest !!

Jeff Bailey

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.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Illegalops


Illegalops

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)?


Jeff Bailey

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
Board rules / Forum policies: One Question per Thread
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford


Joachim Müller

This forum is not the right place to be taught HTML and CSS basics.