SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How do you make the default module stay at the top of the page?
you need to edit your theme.html and place this
<div><{$xoops_contents}>div>
above the code for displaying blocks (example code from default theme):

        <{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>
          <
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}>
        
.


The comments are owned by the author. We aren't responsible for their content.
user

 Specifics.


Where? Code for which blocks? Left Right or even the side menu bars? Which one and where?

 
user

 Re: Specifics.


This quoted code is located in the theme.html file of the theme your site is using. You need to move this code so that it is placed above all the block display code in your theme.html file if you want module content to be displayed above any blocks you might have set. This is done via editing the theme.html file manually, and cannot be done via the XOOPS interface.

 
user

 Re: Specifics.


You're right, this faq wasn't very specific. I modified it to include example code for the blocks taken from the default theme.

 
user

 Re: Specifics.


I have a similar question. I have a center center block at the top of my page that spans 2 columns and under it 2 blocks in left center and right center columns each. I want to add another center center block module that spans 2 columns under this. The result:

1 center column
Left center and right center columns (2)
1 center column

is this possible.... i've tried to edit the theme.html but i get layout and command issues...
hope you have some answer....

jamboree

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

 
user

 Dont work


I have the kubrick theme which is the only one that my module will not stay at the top.



<{$xoops_contents}>

<{$xoops_contents}>


<{if $xoops_showcblock == 1}>




I'm afraid to say that there is no difference.

 
user

 Re: Dont work


<{$xoops_contents}> should appear twice in Kubrick's theme.html. I think you have it a third time. (I think that is an error I later noticed and corrected.) The one enclosed in div tags should be deleted (

<{$xoops_contents}>
). On my site blocks display below the content, as expected. If You still have problems after fixing that, post in the forums at my site and we'll figure it out.

 
user

 Theme question


Below is the theme.html for the solid_silver_flex theme. I want to change the order of the center blocks, where exactly do you put the

<{$xoops_contents}>
at ? This has been confusing for me, as to it seems the way they write this theme. Can anyone help ?


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

264 user(s) are online (4 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 264


more...

Donat-O-Meter

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

Did you know ?

Go into system admin>mail users and send in the body message this code

Quote:
{X_UACTLINK}


Random question

How do I clone a module?