发新话题
打印

[模版演示] [模板问题请教]请大家帮我的站模板做诊断!

[模板问题请教]请大家帮我的站模板做诊断!

我的站的地址是:www.freescript.cn
我模板改差不多了。
但是有3点不会改:
1、为什么在程序资讯版面仍然显示热门文章和最新文章?
2、怎么使我的广告放在每个页面的底部?
请大家结合访问网站以及代码做讨论,共同提高!也谢谢大家对我的问题提出指点!

我的模板代码是
复制内容到剪贴板
代码:
<?php
/**
* C7 Doopal - Mambo 4.5.1 template
* @version 1.0
* @package C7 Doopal
* @copyright (C) 2004 by Karsten Sill
* @license Karsten Sill Webdesign. Distribution permitted!
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( $my->id ) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site;?>/templates/c7_doopal/css/template_css.css"/>
</head>

<body>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
    <td colspan="3" height="100" bgcolor="#044D8F" style="background-position:right; background-repeat:no-repeat;" background="<?php echo $mosConfig_live_site;?>/templates/c7_doopal/images/banner.png">

        <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
            &nbsp;<img src="<?php echo $mosConfig_live_site;?>/templates/c7_doopal/images/header.png">
            </td>
        </tr>
        </table>      
    </td>
</tr>
<tr>
    <td colspan="3" height="35" bgcolor="#336699" style="border-top: solid 2px #6699CC">
                <table width="98%" cellpadding="0" cellspacing="0" align="center" style="line-height:140%;">
        <tr>
            
          <td>
            <?php mosPathWay(); ?>
          </td>
        </tr>
        </table>
   
    </td>
</tr>
<tr>
    <?php if(mosCountModules('left') + mosCountModules('user2') > 0) { ?>
    <td valign="top" bgcolor="#FFFAF0" style="border-right: solid 1px #F5F5F5" width="200">
    <?php } else { ?>
    <td>
    <?php } ?>
   
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <?php mosLoadModules('left'); ?>
            </td>
        </tr>
        </table>

    </td>
    <td valign="top">

               
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left">
                <?php mosLoadModules('user2'); ?>
            </td>
                        <td align="right">
                <?php mosLoadModules('user3'); ?>
            </td>
        </tr>
        </table>
   
                <br>
        
        <table width="98%" cellpadding="0" cellspacing="0" align="center" style="line-height:140%;">
        <tr>
            <td>
                 <?php mosLoadModules('user4'); ?>
            </td>
            <td>
                 <?php mosLoadModules('user5'); ?>
            </td>
            <td>
                 <?php mosLoadModules('user6'); ?>
            </td>
        </tr>
        </table>
        
        
   
        <br>
        <table width="98%" cellpadding="0" cellspacing="0" align="center" style="line-height:140%;">
        <tr>
            <td>
                 <?php mosMainBody(); ?>
            </td>
        </tr>
        </table>

        <table width="98%" cellpadding="0" cellspacing="0" align="center" style="line-height:140%;">
        <tr>
            <td>
                 <?php mosLoadModules('user4'); ?>
            </td>
            <td>
                 <?php mosLoadModules('user5'); ?>
            </td>
            <td>
                 <?php mosLoadModules('user6'); ?>
            </td>
        </tr>
        </table>
      <table width="98%" cellpadding="0" cellspacing="0" align="center" style="line-height:140%;">
        <tr>
          <td>
            <?php mosLoadModules('bottom'); ?>
          </td>
        </tr>
        <tr>
          <td>
            <?php
                if (mosCountModules('banner') >= 1) {
                ?>
            <!-- start banner.  -->
            <div align="center">
              <?php mosLoadModules('banner'); ?>
            </div>
            <!-- end banner. -->
          </td>
        </tr>
      </table>
    </td>
   
    <?php if(mosCountModules('right') + mosCountModules('user1') > 0) { ?>
    <td valign="top" bgcolor="#FFFAF0" style="border-left: solid 1px #F5F5F5" width="200">
    <?php } else { ?>
    <td>
    <?php } ?>
   
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <?php mosLoadModules('right'); ?>
            </td>
        </tr>
        </table>
        
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <?php mosLoadModules('user1'); ?>
            </td>
        </tr>
        </table>
        
    </td>
</tr>
</table>
<div align="center">
<table>
    <?php
                }
                ?>
    <!-- copyright notice -->
    <td align="center">
      <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
    </td>
  </table>
  <?php mosLoadModules('debug', -1);?>
</div>
</body>
</html>
我的网站CSS代码是:
复制内容到剪贴板
代码:
body { font-family: Verdana, Helvetica, sans-serif;
       font-size: 12px;
}

table, tr, td, div, p {
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 12px;
}


a:link, a:visited {
    font-size: 12px;
    color: #CC9966;
    text-decoration:none;
    font-weight: bold;
}

a:hover {
    text-decoration:underline;
    color:#FF0000;
}

a.mainlevel:link, a.mainlevel:visited {
   font-size: 14px;
   font-weight: bold;
   color: #CC9966;
   line-height: 20px;
   padding-left: 5px;
   text-decoration: none;
   width:100%;
   border-bottom:1px dotted #A4A4A4;
   border-left:1px dotted #a4a4a4;
}

a.mainlevel:hover {
   padding-left: 5px;
   color:#FF0000;
   background:#f4f4f4;
}

a#active_menu {
        color: #000000;
}

a.sublevel:link, a.sublevel:visited {
        /* this styling is for menu items that HAS A PARENT */
        font-family: Verdana, Helvetica, sans-serif;
        color: #CC9966;
        width: 100%;
        font-weight: normal;
}

a.sublevel:hover {
        color: #FF0000;
        width: 100%;
        text-decoration: none;
}

.small {
    font-size:11px;
    color:#5F5F5F;
}

.smalldark {
   font-size:11px;
}

/* General styling: cats, sects, items */
.createdate {
  font-size: 11px;
}

.modifydate {
  font-size: 11px;
}

a.readon:link, a.readon:visited {
        color: #CC9966;
        text-decoration: none;
        font-family:  Verdana, Helvetica, sans-serif;
        font-size: 11px;
}

a.readon:hover {
        color: #FF0000;       
  text-decoration: underline;
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 11px;
}

/* forms */
.inputbox {
  background:#F9F9F7;
  border: solid 1px #E1E1E1;
  font-size:12px;
}

.button {
  background:#E1E1E1;
  font-size:12px;
  font-weight: bold;
}
       
/* sections */
.sectiontableheader {
  font-weight:bold;
  font-size: 14px;
  color:#336699;
  height:20px;
  background:#F9F9F7;
  vertical-align:middle;
  border-bottom:solid 1px #51647B;
  text-indent: 2px;
}

.sectiontableentry1 {
  background:#FFFAF0;
  height:20px;
  vertical-align:middle;
}

.sectiontableentry2 {
  background:#FFFBF2;
  height:20px;
  vertical-align:middle;
}

/* content */
.contentpane {
    width:100%;
    padding:20px;
}

.contentheading {
    font-size: 20px;
    font-weight: bold;
    color:#336699;
}

.contentdescription {
    font-size: 12px;
    padding-bottom: 2px;
}

table.contenttoc {
        color: #000000;
        background-color: #FFFAF0;
        border: solid 1px #A4A4A4;
}

table.contenttoc td {
        font-family: Verdana, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
  text-align:left;
  padding: 3px;
}

table.contenttoc th {
  font-family: Verdana, Helvetica, sans-serif;
        background: #FFFAF0;
        vertical-align: middle;
        font-size: 16px;
        font-weight: bold;
        color: #336699;
        text-align: left;
        text-indent: 15px;
        width: 100%;
        height: 24px;
}

.content_rating {
        font-weight: normal;
        font-size: 10px;
}

.content_vote {
        font-weight: normal;
        font-size: 10px;
}

/* categories */
.category {
        color: #CEDC6C;
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        text-decoration: none;
}

a.category:link, a.category:visited {
        color: #CC9966;
  font-weight: bold;
  font-size: 12px;
}

a.category:hover {
        color: #FF0000;
        font-size: 12px;
        font-weight: bold;
}

/* blog */
a.blogsection:link, a.blogsection:visited {
        color: #CC9966;
        text-decoration: none;
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 10px;
        }

a.blogsection:hover {
        color: #FF0000;       
        text-decoration: underline;
        font-size: 10px;
}

/* component */
.componentheading {
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: bold;
        color: #F9F9F7;
        text-align:left;
        vertical-align: middle;
        width: 100%;
        padding-left: 4px;
        height:20px;
        border-bottom: solid 2px #98BADC;
        background:#336699;
}

/* modules */
.moduletable {
   font-size: 12px;
   padding-left: 2px;
   padding-right: 2px;
   margin-top: 5px;
   margin-bottom: 5px;
   margin-left: 5px;
   width:100%;
}

.moduletable th {
   font-size: 18px;
   font-weight: bold;
   text-align: left;
   text-indent:30px;
   height: 27px;
   vertical-align: middle;
   color:#336699;
   background: url(../images/module.png);
   background-position:left;
   background-repeat:no-repeat;
}

.moduletable td {
   font-size: 12px;
}

/* poll */
.poll {
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 13px;
        font-weight: bold;
        color: #000000;
        line-height: 14px
}

.pollstableborder {
        border: 1px solid #808080;
}

/* weblinks */
a.weblinks:link, a.weblinks:visited {
        color: #336699;
  text-decoration: none;
  font-weight: normal;
        font-family: Verdana, Helvetica, sans-serif;
}

a.weblinks:hover {
        color: #FF0000;       
  text-decoration: underline;
}

/* pathway */
.pathway {
  color:#ffffff;
  font-weight:bold;
}

a.pathway:link, a.pathway:active {
color: #686A8A;
text-decoration: none;
font-weight: bold;
}

a.pathway:hover {
color: #FFFFFF;
text-decoration: underline;
}

/* newsfeeds */
.newsfeedheading {
   font-family: Verdana, Helvetica, sans-serif;
   font-size: 11px;
   font-weight: bold;
   color: #000000;
}

.newsfeeddate {
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 12px;
        color: #808080;
        font-weight: normal;
}

.fase4rdf {
        font-family: Verdana, Helvetica, sans-serif;
        font-size: 12px;
        color: #000000;
        font-weight: normal;
}

a.fase4rdf:link {
        font-size: 12px;
        font-weight: bold;
        color: #6699CC;
}

a.fase4rdf:hover {
        font-size: 12px;
        font-weight: bold;
  color: #FF0000;
}

/* module suffix nav */
table.moduletablenav td {
    color: #c0c0c0;
    font-weight: bold;
    padding-left:2px;
}

table.moduletablenav a:link, table.moduletablenav a:active {
    color: #686A8A;
    text-decoration: none;
    font-weight: bold;
}

table.moduletablenav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

table.moduletablenav li {
}

table.moduletableinner {
color: #000000;
        background-color: #FFFAF0;
        border: solid 1px #E1E1E1;
        width:100%;
        padding-left:3px;
        padding-right:3px;
        margin:5px;
}

table.moduletableinner th {
  font-size: 16px;
        font-weight: bold;
        color: #336699;
        text-align: left;
        text-indent: 5px;
        width: 100%;
        height: 24px;
        padding-top:3px;
        padding-bottom:3px;
}

table.moduletableinner td {
    color: #000000;
    font-weight: normal;
    padding-left:2px;
}

table.moduletableinner a:link {
    color: #686A8A;
    text-decoration: none;
    font-weight: bold;
}

table.moduletableinner a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

table.moduletableinner li {
}
/* end module suffix nav */
[ 本帖最后由 nestlr 于 2006-12-21 17:34 编辑 ]
FreeScript中国永远支持技术交流!

TOP

我已经解决一件,我把热门文章和最新文章组块在菜单关联里把它们只关联到首页就解决了第一个问题。
目前俺正在研究第二个问题,那段广告的代码该怎么放才行。

TOP

可以在底部加个位置,然后把广告模块放在该位置

TOP

引用:
原帖由 lang3 于 2006-12-20 16:12 发表
可以在底部加个位置,然后把广告模块放在该位置
谢谢lang3大哥指点,我还有一个问题啊,我的top菜单放在上面为什么是竖向的?即便我在后台把竖向改成横向,可是依然是竖向的。另外其他菜单可以调成放在页面下面做友情链接的那种设置吧?

[ 本帖最后由 nestlr 于 2006-12-21 17:35 编辑 ]
FreeScript中国永远支持技术交流!

TOP

发新话题