Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Encounter Problem when attaching a banner at the title of Mac_ox_X  (Read 4659 times)

0 Members and 1 Guest are viewing this topic.

Illegalops

  • Coppermine newbie
  • Offline Offline
  • Posts: 14

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
Logged

vwad

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • God & Sun are the only divine things in universe.
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #1 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

Code: [Select]
</head>
<body>
<div id="CUSTOM_HEADER">
  {CUSTOM_HEADER}

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

Code: [Select]
<img src="http://www.thaiparadise69.com/images/1035x175.gif" width="1035" height="175" />
So your full header code should be like below

Code: [Select]
</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>
Logged
God is Greatest !!

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #2 on: April 03, 2010, 06:08:37 pm »

you could do what vwad suggests. You could also paste
Code: [Select]
<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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Illegalops

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #3 on: April 03, 2010, 06:32:02 pm »

ok, thanks... will give it a try now and get back to u...
Logged

Illegalops

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #4 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)?

Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #5 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
Board rules / Forum policies: One Question per Thread
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Illegalops

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #6 on: April 03, 2010, 07:06:51 pm »

noted. THanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Encounter Problem when attaching a banner at the title of Mac_ox_X
« Reply #7 on: April 04, 2010, 06:48:02 pm »

This forum is not the right place to be taught HTML and CSS basics.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.