Help: A global header Help: A global header
 

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

Help: A global header

Started by wjhsmf, May 24, 2007, 05:05:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wjhsmf

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

Joachim Müller

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

wjhsmf

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

wjhsmf

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
Quote from: GauGau 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.

Joachim Müller

Edit http://bls-fcc.dyndns.org/cpg/themes/water_drop/template.html, find<img src="images/spacer.gif" width="1" height="15" alt="" />and remove.
Find<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 <!-- 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