Same problem with PHP's zlib output compression. Again, you don't want to use it and another's gzip at the same time.
I just use a PHP accelerator/cache and avoid the gzip issues. Worth a try to see what works for you.
DonXoop wrote:
Sounds like a "Karma System". Have a search as I think there has been discussion on the topic.
You can also use a one-page module setup which will give you the advantage of having the link to your page appear in the main menu. Using a one-page module will also allow you to use the blocks visibility settings for the module because it appears as an option when selecting which modules the page should be visible in.
Once one module is created multitudes of duplicates can be made, this only involves tweaking about two lines.
To download a useable example click Here
To setup a one page module first create a folder and name it anything. You only need two main files inside the folder and a module image file which appears in the XOOPS modules admin.
So, you need a content file for your HTML called index.php, and a php file called xoops_version.php. The other image file only appears in the XOOPS modules admin
In this instance your content file (index.php) will look like this
<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>
Your HTML Content Here (No Head and Body Tags)
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
Save this file as index.php
To turn this into a module you will also need to create the file called xoops_version.php with the following content
<?php
$modversion['name'] = "mypage";//name of module
$modversion['version'] = 1.01;
$modversion['description'] = "My Module";
$modversion['author'] = "";
$modversion['credits'] = "";
$modversion['help'] = "";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "blackhat.gif";
$modversion['dirname'] = "mypage";//same name as directory folder
// Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminpath'] = "";
// Menu you can add submenus as links to other content files or modules
$modversion['hasMain'] = 1;//0 to remove link from main menu
//$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
//$modversion['sub'][1]['url'] = "../../modules/ipboard/";
//$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
//$modversion['sub'][2]['url'] = "../../modules/weblog/";
?>
I have commented out the sub-menu links so they will not appear in the module, these can also be deleted if no sub-menu required.
Notice this line from the code above::
$modversion['dirname'] = "mypage";//name of directory
The name must match the name of the folder you created
Include an image file for your Module:
$modversion['image'] = "blackhat.gif";//image for your module appears in admin
Inside your module folder you should now have
index.php (content file)
xoops_version.php (module file)
the image file that appears in the XOOPS modules admin
Add your HTML content to the content file (index.php) and upload it to your modules folder on your server i.e.
www.yoursite.com/modules
Then go to System Admin-> Modules and install the module. This module name will appear as a link to the HTML content in your Main Menu. Remember to add access permissions in System Admin-> Groups