SmartFAQ 由 SmartFactory 开发(https://www.smartfactory.ca),SmartFactory 是 InBox Solutions 分公司(https://www.inboxsolutions.net)

如何让默认模块始终显示在页面顶部?
您需要编辑您的 theme.html 并放置此代码
<div><{$xoops_contents}>div>
在显示块的代码之上(来自默认主题的示例代码)

        <{if 
$xoops_showcblock == 1}>

        <
table cellspacing="0">
          <
tr>
            <
td id="centerCcolumn" colspan="2">

            
            <{foreach 
item=block from=$xoops_ccblocks}>
              <{include 
file="default/theme_blockcenter_c.html"}>
            <{/foreach}>
            

            td>
          tr>
            <
td id="centerLcolumn">

            
              <{foreach 
item=block from=$xoops_clblocks}>
                <{include 
file="default/theme_blockcenter_l.html"}>
              <{/foreach}>
            

            td><td id="centerRcolumn">

            
              <{foreach 
item=block from=$xoops_crblocks}>
                <{include 
file="default/theme_blockcenter_r.html"}>
              <{/foreach}>
            

            td>
          tr>
        table>

        <{/if}>
        
.


评论归作者所有。我们对内容不承担责任。
user

 具体细节。


在哪里?哪个块的代码?左边、右边或者侧边菜单栏?哪一个在哪里?

 
user

 Re: 具体细节。


这个引用的代码位于您站点使用的主题的 theme.html 文件中。如果您想将模块内容显示在任何您可能设置的块上方,需要将此代码移动到 theme.html 文件中所有块显示代码的上方。这是通过手动编辑 theme.html 文件完成的,无法通过 XOOPS 界面完成。

 
user

 Re: 具体细节。


你说得对,这个常见问题没有给出足够的细节。我已经修改它,包括了来自默认主题的块的示例代码。

 
user

 Re: 具体细节。


我有一个类似的问题。我的页面上方有一个居中的中心块,跨越两列,下面每个左中列和右中列各有一个块。我想在此下方添加另一个跨越两列的中心中心块模块。结果如下

1 个居中列
左中列和右中列(2个)
1 个居中列

这是否可能.... 我已经尝试编辑 theme.html,但遇到了布局和命令问题...
希望你能有一些答案....

jamboree

http://www.grandz.net/dragonfly/

 
user

 不工作


我有 kubrick 主题,这是唯一一个我的模块不会停留在顶部的。



<{$xoops_contents}>

<{$xoops_contents}>


<{if $xoops_showcblock == 1}>




恐怕来说,没有区别。

 
user

 Re: 不工作


<{$xoops_contents}>应在Kubrick的theme.html中出现两次。我认为你出现了三次。(我认为这是一个我后来注意到并纠正的错误。)应删除括在div标签中的内容(

<{$xoops_contents}>
)。在我的网站上,块显示在内容下方,正如预期的那样。如果你修复后仍存在问题,请在我的网站上(我的网站)论坛中发帖,我们将解决这个问题。

 
user

 主题问题


以下是solid_silver_flex主题的theme.html。我想改变中心块顺序,你在哪里放置?这对我来说一直是个谜,因为他们编写这个主题的方式。

<{$xoops_contents}>
什么?有谁能帮忙吗?


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" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<{
$xoops_module_header}>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}>title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<
script type="text/javascript">

script>
head>
<
body>

<{
include_php file="$xoops_rootpath/themes/solid_silver_flex/ex_assign.php"}>
<
div align="center" id="top"> <br />
  <
table border="0" cellpadding="0" cellspacing="0" style="width:750px; ">
    <
tr>
      <
td id="header_01"><img src="<{$xoops_imageurl}>images/logo.gif" alt="<{$xoops_sitename}>" />td>
      <
td id="header_adspace"><{$xoops_banner}>td>
    tr>
  table>

<
form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
<
div class="log_bar">
  <
table style="width:750px; " border="0" cellspacing="0" cellpadding="0">
    <
tr> <{if !$xoops_isuser}>
        <
td id="header_02">
            <
img src="<{$xoops_imageurl}>images/log_id.gif" alt="ID" align="middle" />
            <
input type="text" name="uname" size="8" value="<{$block.unamevalue}>" maxlength="25"style="font-size:11px; padding:0px;" />
            <
img src="<{$xoops_imageurl}>images/log_pass.gif" alt="Password" align="middle" />
            <
input type="password" name="pass" size="8" maxlength="32"style="font-size:9px; padding:0px;" />
            <
input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
            <
input type="hidden" name="op" value="login" />
            <
input type="submit" value="Login" style="font-size:10px; padding:0px;" />
            <
a href="<{$xoops_url}>/user.php#lost">PassºÆÁ÷a> / <a href="<{$xoops_url}>/register.php">¿·µ¬ÅÐÏ¿a>
        td>
    <{else}>
        <
td id="header_02"><a href="<{$xoops_url}>/user.php"> <img src="<{$xoops_imageurl}>images/u_menu_01.gif" alt="View Account" border="0" align="middle" /> a> | <a href="<{$xoops_url}>/edituser.php"> <img src="<{$xoops_imageurl}>images/u_menu_02.gif" alt="Edit Account" border="0" align="middle" /> a> | <a href="<{$xoops_url}>/notifications.php"> <img src="<{$xoops_imageurl}>images/u_menu_03.gif" alt="Notifications" border="0" align="middle" /> a> | <a href="<{$xoops_url}>/user.php?op=logout"> <img src="<{$xoops_imageurl}>images/u_menu_04.gif" alt="Logout" border="0" align="middle" /> a> | <{if $ex_new_messages 0}> <class="highlight" href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_imageurl}>images/u_menu_05.gif" alt="Logout" border="0" align="middle" />(<span style="color:#ff0000; font-weight: bold;"><{$ex_new_messages}>span>)a> <{else}> <a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_imageurl}>images/u_menu_05.gif" alt="Logout" border="0" align="middle" />a> <{/if}> | <{if $xoops_isadmin}> <a href="<{$xoops_url}>/admin.php"><img src="<{$xoops_imageurl}>images/u_menu_06.gif" alt="Admin" border="0" align="middle" />a> | <{/if}> td>
    <{/if}> tr>
  table>
div>
<
table border="0" cellpadding="0" cellspacing="0" style="width:750px; ">
  <
tr>
    <
td id="menu_bar">
| <
a href="<{$xoops_url}>/">Homea> |
<{foreach 
item=module from=$ex_mainmenu.modules }>
    <
a href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a> |
    <{/foreach}> td>
  tr>
  <
tr>
    <
td id="menu_bar2">
    <{if 
$ex_moduledir }>
      <{foreach 
item=module from=$ex_mainmenu.modules }>
          <{if 
$module.directory == $ex_moduledir && $module.sublinks }>| 
              <{foreach 
item=sublink from=$module.sublinks}>
              <
a id="mainmenu" href="<{$sublink.url}>">
              <{
$sublink.name}>a> | 
              <{/foreach}>
          <{/if}>
      <{/foreach}>
     <{/if}>
     td>
  tr>
table>
form>
<
table border="0" cellpadding="0" cellspacing="0">
    <
tr><{if $xoops_showlblock == 1}>
      <
td id="leftcolumn"><{foreach item=block from=$xoops_lblocks}><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td class="left_top">td>
  tr>
  <
tr>
    <
td class="left_back"><{if $block.title|regex_replace:"/.*nene/":"none" ne "none"}>
      <
div class="blockTitle"><{$block.title}>div>
      <{/if}>
      <
div class="blockContent"><{$block.content}>
      div>
      td>
  tr>
  <
tr>
    <
td class="left_btm">td>
  tr>
table><br />
<{/foreach}>
td>
      <{/if}>
      <
td style="width:10px; ">td>
      <
td id="centercolumn">
<{if 
$xoops_showcblock == 1}>
      <
table border="0" cellpadding="0" cellspacing="0">
        <
tr>
          <
td id="centerLcolumn"><{foreach item=block from=$xoops_clblocks}> <{if $block.title|regex_replace:"/.*nene/":"none" ne "none"}>
              <
div class="blockTitle"><{$block.title}>div>
        <{/if}>
              <
div class="blockContent"><{$block.content}>div>
        <{/foreach}> td>
          <
td id="centerRcolumn"><{foreach item=block from=$xoops_crblocks}> <{if $block.title|regex_replace:"/.*nene/":"none" ne "none"}>
              <
div class="blockTitle"><{$block.title}>div>
        <{/if}>
              <
div class="blockContent"><{$block.content}>div>
        <{/foreach}> td>
        tr>
        <
tr>
          <
td id="centerCcolumn" colspan="2"><{foreach item=block from=$xoops_ccblocks}> <{if $block.title|regex_replace:"/.*nene/":"none" ne "none"}>
              <
div class="blockTitle"><{$block.title}>div>
        <{/if}>
              <
div class="blockContent"><{$block.content}>div>
              <
br />
<{/foreach}> td>
        tr>
      table>
      <{/if}>
      
      <
div id="content"><{$xoops_contents}><br />
    div><div align="center">
  div>
    td>
    
      <
td style="width:10px; ">td>
      <{if 
$xoops_showrblock == 1}>
      <
td id="rightcolumn">
          
          <{foreach 
item=block from=$xoops_rblocks}>
                  <
table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td class="right_top">td>
                    tr>
                    <
tr>
                      <
td class="right_back"><{if $block.title|regex_replace:"/.*nene/":"none" ne "none"}>
                          <
div class="blockTitle"><{$block.title}>div>
                    <{/if}>
                          <
div class="blockContent"><{$block.content}> div>td>
                    tr>
                    <
tr>
                      <
td class="right_btm">td>
                    tr>
                  table>
                  <
br />
<{/foreach}>        
td>
      <{/if}>
    tr>
  table>
  

  <
br />
  <
br />div>
  <
div align="center"><table border="0" cellpadding="0" cellspacing="0" style="width:750px;">
    <
tr>
<
td align="center" id="footer"><br />  <{$xoops_meta_copyright}> <{$xoops_meta_author}> ,       <{$xoops_footer}> theme design by <a href="http://2bcool.net" target="_blank">BCOOL a><br />
  <
br />td>
    tr>table>
div>
body>html>

 


<{foreach item=block from=$xoops_ccblocks}>
<{include file="kubrick/theme_blockcenter_c.html"}>
<{/foreach}>



Login

Who's Online

278 user(s) are online (18 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 278


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

By the way you can enlarge smilies with Koivi, just insert them with Koivi then you can stretch them, the possibilities are endless, especially with WIWImod, have fun!


Random question

Where is the administration guide?