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: Help: A global header  (Read 3197 times)

0 Members and 1 Guest are viewing this topic.

wjhsmf

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Help: A global header
« on: May 24, 2007, 05:05:48 pm »

Hi,

I just integgrated CPG with SMF and I am sure this is a very good combination as CPG uses SMF for their BBS. In my website, there are three + pages:

  • Home or front page
  • SMF Forum
  • CPG Gallery

I managed to add global header on Front page and SMF Forum. For SMF Forum, I manually edited index.template.php and style.css and it works beautifully.

I am stuck with CPG global header, as I do not know which file I need to edit.

Any suggestions are greatly appreciated.

Thanks,
Jimmy
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help: A global header
« Reply #1 on: May 24, 2007, 08:58:47 pm »

Edit themes/yourtheme/theme.php or use the custom_header include feature. Not related to bridging, moving accordingly.
Logged

wjhsmf

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Help: A global header
« Reply #2 on: May 24, 2007, 10:35:21 pm »

Thanks and I will try it tonight. I think that I will do manually to change theme.php.
Logged

wjhsmf

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Help: A global header
« Reply #3 on: May 25, 2007, 05:08:32 am »

GauGau,

I followed what was said. It turned out great. I still have a little thing want to ask: How do I remove the 20px gaps, URL between top navigation menu and CPG body? The gap is not as result of the margins from top navigation menu as the bottom margin is 0px. I'd like to know which part of the file that creats the margin.

Thanks again.
Jimmy
Edit themes/yourtheme/theme.php or use the custom_header include feature. Not related to bridging, moving accordingly.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help: A global header
« Reply #4 on: May 25, 2007, 07:07:47 am »

Edit http://bls-fcc.dyndns.org/cpg/themes/water_drop/template.html, find
Code: [Select]
<img src="images/spacer.gif" width="1" height="15" alt="" />and remove.
Find
Code: [Select]
<table width="100%" border="0" cellpadding="20" cellspacing="20">and edit as you see fit (removing the cellspacing/cellpadding attributes, or setting them to "0").

Sidenote: the output of your gallery is not valid, there is
Code: [Select]
<!-- SITE TOP NAVBAR -->
<div id="topnavbar" width="100%">

<!-- DCAP- INSIDE TOP NAVBAR -->
<div id="navbarL">
<a href="http://bls-fcc.dyndns.org/index.php">Home</a> |
<a href="http://bls-fcc.dyndns.org/bbs/index.php?PHPSESSID=rfl9mlb6u5pulkui3chkr2a2n5&amp;action=calendar">Calendar</a> |
<a href="http://bls-fcc.dyndns.org/bbs/index.php?PHPSESSID=rfl9mlb6u5pulkui3chkr2a2n5&amp;">Forum</a> |
<a href="#">Gallery</a> |
<a href="http://bls-fcc.dyndns.org/bbs/index.php?PHPSESSID=rfl9mlb6u5pulkui3chkr2a2n5&amp;action=downloads">Download</a> |
<a href="#">About</a>

</div>
<!-- DCAP- INSIDE BOTTOM NAVBAR -->

</div>
before the doctype declaration. This is of course wrong. Not sure how you include this overall header, but this is definitely wrong. Check http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fbls-fcc.dyndns.org%2Fcpg%2Findex.php
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.