1
netpuppy
Re: Adding a HTML page to Xoops 2.2.3
  • 2006/4/26 22:37

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


I just checked the smarty site and it looks like their codes do accept functions (I'd be surprised if they didn't).

Try this code in your system_block_mainmenu.html file, it is in your system templates (remember to clone from the default set or you will not be able to edit it).

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

<!-- 
this is where the new bit starts-->
        <{if 
$module.name == '<!-- put the name of your module here-->' }>
      <
class="menuMain" href="<!-- put the URL of the page you want to link to here-->" target="_blank"><{$module.name}></a>
    <{else}>
<!-- 
finish of new bit -->

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

      <{/if}><!-- 
you'll need to close the if statement here -->

        <{/foreach}>
      <!-- end module menu loop -->
    </td>
  </tr>
</table>


Let us know how you get on.



2
netpuppy
Re: Adding a HTML page to Xoops 2.2.3
  • 2006/4/26 22:15

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


All I can think of doing is to hack the system_block_mainmenu.html and make a conditional if/else statement to check for the $module.name your looking for then direct it to the page you want.

I think smarty codes allow for this, but it is a very messy hard coded way of doing it and I am still new to XOOPS and trying to get to know the structure so I'm not much help I'm afraid... maybe one of the more experienced members can help here?



3
netpuppy
Re: No content in custom blocks with 2.2.4
  • 2006/4/26 7:48

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


I am getting very good at answering my own questions here...

well, I've only posted 2 and I've been the only one that has answered them... do I smell funny or something???

Anyway, problem solved after a couple of days of smashing my head against the wall... quite embarrasingly simple really. For some reason the templates for the custom block, theme block and a couple of others must not have installed when I installed Xoops. As a random act I decided to update my modules and after updating the system module, the templates must have installed and away I went... arrggghhh!!!

Still, the longer it takes to solve a problem the happier you are when you finally do... silver lining, cup half full, bright side of life... I'm sure you get the drift.

It was nice talking to myself... cya



4
netpuppy
Re: Adding a HTML page to Xoops 2.2.3
  • 2006/4/25 12:45

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


Try this...

<?php
include("../../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>

put everything between your html page body tags in here

<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>





5
netpuppy
No content in custom blocks with 2.2.4
  • 2006/4/25 10:50

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


Hi All,

I am unable to get anything showing up in a custom block with my 2.2.4 install. The block title is being displayed just fine. This is also happening with the miniCalender block from piCal0.8, however all other blocks seem to display fine.

I have checked all the things I can think of and although the content is in the database, the smarty debug option tells me that the content is empty (and it is not showing up in the block). This what I get from the Smarty Debug Console:

Array (5)
id => 21
typeid => 13
title => Custom1
content => empty
weight => 0


... and this is what is in the database:

instanceid: 21
bid: 13
options: a:2:{i:0;s:20:"Testing custom block";i:1;s:1:"H";}
title: Custom1
side: 1
weight: 0
visible: 1
bcachetime: 0


... Ideas Anyone???



6
netpuppy
Re: 2.2.4 + firefox - returning server error
  • 2006/4/20 12:25

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


Ok... finally found the problem. It appears it was a cookie issue.

I tried it with firefox on another computer and it worked fine... didn't leave many other options, so I cleared my cookies and off it went again.

I'd still be interested if anyone knows how it happened or what may have caused it?



7
netpuppy
2.2.4 + firefox - returning server error
  • 2006/4/20 10:39

  • netpuppy

  • Just popping in

  • Posts: 8

  • Since: 2006/4/20


I have had 2.2.4 running really nicely using firefox 1.5.0.2, the default XOOPS theme, News 1.44, newBB 3.01, xoopsPoll 1 and lastly wfDownloads 3.1.

I spent a good amount of time playing around, but now I am getting a server error when I try and login or install a module etc..

Server Error

[code=ICAP_REQMOD_SVC_READ_FAIL] Could not read the response from the ICAP service.

When I change to Internet explorer I can log in, install modules and it seems to work just fine (even in firefox's IE Tab).

Anyone heard of anything like this... ??

It's got me stumped!




TopTop



Login

Who's Online

105 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 105


more...

Donat-O-Meter

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

Latest GitHub Commits