11
Wonderfish1
Re: Adding items to main menu

Hi and thanks Rod,

I am perplexed - it appears to be using a div and I am not sure how that is even possible, given the code it is drawing from.

The menu part looks like this:

<div class="blockContent"> <div id="mainmenu">
    <
class="menuTop maincurrent" href="http://aqualina.com.au/" title="Home">Home</a>
    <!-- 
start module menu loop -->
            <
class="menuMain " href="http://aqualina.com.au/modules/AMS/" title="Applications">Applications</a>

                    <
class="menuMain " href="http://aqualina.com.au/modules/news/" title="Products">Products</a>
                <!-- 
end module menu loop -->
</
div></div>


If i got the right part.

Should I go back to the div based code and try to change that?



12
Wonderfish1
Re: News module - Recent News block not showing

Thanks Rod,

That looks like it might be the problem. Now to fix it....

I have added some code from the default theme.css to my new theme.css. It looks like this:

<!-- Start center bottom blocks loop -->
            <{if 
$xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
                <
table cellspacing="0">
                    <{if 
$xoBlocks.page_bottomcenter}>
                        <
tr>
                            <
td id="bottomCcolumn" colspan="2">
                            <{foreach 
from=$xoBlocks.page_bottomcenter item=block}>
                                <{include 
file="$theme_name/theme_blockcenter_c.html"}>
                            <{/foreach}>
                            </
td>
                        </
tr>
                    <{/if}>

                    <{if 
$xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
                        <
tr>
                            <
td id="bottomLcolumn">
                            <{foreach 
from=$xoBlocks.page_bottomleft item=block}>
                                <{include 
file="$theme_name/theme_blockcenter_l.html"}>
                            <{/foreach}>
                            </
td>

                            <
td id="bottomRcolumn">
                            <{foreach 
from=$xoBlocks.page_bottomright item=block}>
                                <{include 
file="$theme_name/theme_blockcenter_r.html"}>
                            <{/foreach}>
                            </
td>
                        </
tr>
                    <{/if}>
                </
table>
            <{/if}>
            <!-- 
End center bottom blocks loop -->



I think I need to add something to reference this but I am not sure what. I can't find anything in theme.html that looks close.

Thanks again for your help,
Tim



13
Wonderfish1
Re: News module - Recent News block not showing

Hopefully this will help to debug this - the block works in all of the Top positions, and in left and right columns, and will only not work in any of the bottom locations. Does anyone know where this is specified and may be broken?



14
Wonderfish1
Re: News module - Recent News block not showing

Hmmm

Now it works, but only if it is located at Centre Top

If I try to put it at Centre Bottom it vanishes

I can get it to the bottom of the Home Page by giving the block a larger weight than the the custom block on the page, but it appears at the top of all other pages.

Ah - just discovered something - this only seems to be a problem with the theme I am using - it behaves normally with the default theme.

*heart sinks*



15
Wonderfish1
Re: Adding items to main menu

Hi ghia and thanks again for your help.

I redid everything to ensure it was correct - the code in system_block_mainmenu.html looks as follows:

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
       <!-- 
start module menu loop -->
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>

        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
        <{/foreach}>
      <{/foreach}>
      
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=6">T8 lighting</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=7">T5 lighting</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=8">Power Compact</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=10">Moonlights</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=5">Reptile lighting</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=11">Hi-output</a>
         <
class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=3">Plasma lighting</a>               
      
      
      <!-- 
end module menu loop -->
    </
td>
  </
tr>
</
table>


I have set update templates to on
I have updated the system module
I have flushed all of the caches

I still just get the standard menu

Thanks
Tim



16
Wonderfish1
Re: News module - Recent News block not showing

Hi ghia,

I edited the template and it started to work - I am unsure why. After some slapping it now looks as it should - of course, you have to see it to configure it.


Thanks,
Tim



17
Wonderfish1
Re: Adding items to main menu

Hi all,

I have been researching this very hard because I really need a solution soon and have found some weird things.

According to the FAQ system_blocks_mainmenu.html is supposed to look like this:

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
      <!-- 
start module menu loop -->
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
        <{/foreach}>
      <{/foreach}>
      <!-- 
end module menu loop -->
    </
td>
  </
tr>
</
table>



Mine looks like this:

<div id="mainmenu">
    <
class="menuTop <{if !$block.nothome}>maincurrent<{/if}>" href="<{xoAppUrl }>" title="<{$block.lang_home}>"><{$block.lang_home}></a>
 <!-- 
start module menu loop -->
    <{foreach 
item=module from=$block.modules}>
        <
class="menuMain <{if $module.highlight}>maincurrent<{/if}>" href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><{$module.name}></a>
        <{foreach 
item=sublink from=$module.sublinks}>
            <
class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}></a>
        <{/foreach}>
    <{/foreach}>
    <!-- 
end module menu loop -->
</
div>


Both seem to work, but I can't add links to either of them. I have been updating the system module, clearing the cache etc but I can't make this work.

Anybody have any ideas?


Thanks,
Tim



18
Wonderfish1
Re: News module - Recent News block not showing

Nothing that I can find....

None All Errors (0) Deprecated (0) Queries (27) Blocks (9) Extra (2) Timers(6)

It tells me that the Recent Posts block isn't cached, so it knows about it, but it tells me the same about the other blocks and they work.

Blocks
Themes: Not cached
Recent News: Not cached
Custom Block (HTML): Not cached
Custom Block (HTML): Not cached
Main Menu: Not cached
News Topics: Not cached
User Menu: Not cached
Search: Not cached
Login: Not cached
Total: 9

Very weird.


Tim



19
Wonderfish1
Re: News module - Recent News block not showing

Hey all, not a dumb idea at all - I do dumb things all the time

The block is turned on, in that it is set to visible in all pages. The News Topics block has the same settings, and it is appearing.

I have:

XOOPS Version - XOOPS 2.4.5
PHP Version - 5.3.3
MySQL Version - 5.0.91-community
Server API Version - cgi-fcgi
OS Version - Linux

There are news items in some (but not all) categories, just as a test. No Recent News block tho


Thanks,
Tim




20
Wonderfish1
Adding items to main menu

I have read all of the posts about this and cannot see what I have done wrong....

Ghia advised:

In /modules/system/templates/system_block_mainmenu.html add links like eg
<a class="menuMain" href="<{$xoops_url}>/path/to/yourpage.html>/">My Page</a>
between
<{/foreach}>
<{/foreach}>
and
<!-- end module menu loop -->


My system_block_mainmenu.html now looks like this:

<div id="mainmenu">     <class="menuTop <{if !$block.nothome}>maincurrent<{/if}>" href="<{xoAppUrl }>" title="<{$block.lang_home}>"><{$block.lang_home}></a>  <!-- start module menu loop -->     <{foreach item=module from=$block.modules}>         <class="menuMain <{if $module.highlight}>maincurrent<{/if}>" href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><{$module.name}></a>         <{foreach item=sublink from=$module.sublinks}>             <class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}></a>         <{/foreach}>     <{/foreach}>                  <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=6">T8 lighting</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=7">T5 lighting</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=8">Power Compact</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=10">Moonlights</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=5">Reptile lighting</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=11">Hi-output</a>             <class="menuMain" href="http://aqualina.com.au/modules/news/index.php?storytopic=3">Plasma lighting</a>          <!-- end module menu loop --> </div>


Shouldn't that work?

TIA,
Tim




TopTop
« 1 (2) 3 4 5 ... 14 »



Login

Who's Online

255 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

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

Latest GitHub Commits