********************************************************************************************
* Coumter Module for Mambo Version 1.0 *
* 24-12-2001 *
* *
* Copyright (C) 2001 Emir Sakic *
* Distributed under the terms of the GNU General Public License *
* This software may be used without warranty provided and these statements are left intact.*
* This source is available at http://www.superbosna.com/mambo_hacks *
* *
* LoudMouth and Mambo are Copyright (C) 2000-2001 Miro Construct Pty Ltd *
* Source is available at http://sourceforge.net/projects/mambo *
* *
* Site Name: Mambo Server Site Version 3.0.7 *
* Component Name: Online Users Module *
* Developer: Emir Sakic - saka@hotmail.com *
* Date: 24/12/2001 *
* Version #: 1.0 *
* Comments: This is counter module component for Mambo. *
* Once installed the module can be placed anywhere on the site throught the *
* control panel. *
* Demo can be viewed at http://www.superbosna.com *
********************************************************************************************
This module contains following scripts:
- leftComponent.php (hacked Mambo script)
- rightComponent.php (hacked Mambo script)
- countermodule.php (module sript)
- instcntm.php (installation file)
Instalation
===========
Before you do anything please make a back up of the following files:
leftComponent.php and rightComponent.php so you can regret the changes.
Easy way (replace the files)
----------------------------
1. Go to root directory of your Mambo instalation.
2. Upload the file countermodule.php.
3. Replace the files leftComponent.php and rightComponent.php.
4. Upload the file instcntm.php.
Make sure the configuration.php is in the same directory.
5. Go to URL: http://www.yoursite.com/instcntm.php to execute the installation file.
Once successfully installed you can delete instcntm.php from server.
6. Installation is now finished and you can go to your Mambo control panel to change
module position.
Done!
Harder way (hack your files)
----------------------------
1. Go to root directory of your Mambo instalation.
2. Upload the file countermodule.php.
5. Open your leftComponent.php file.
Search for code:
}elseif ($module == "whos_online"){
include ("whosOnline.php");
$components->component($title, $content);
echo "
";
Under that insert the following code:
}elseif ($module == "counter"){
include ("countermodule.php");
$components->component($title, $content);
echo "
";
Save and upload.
6. Open your rightComponent.php file.
Search for code:
}elseif ($module == "whos_online"){
include ("whosOnline.php");
$components->component($title, $content);
echo "
";
Under that insert the following code:
}elseif ($module == "counter"){
include ("countermodule.php");
$components->component($title, $content);
echo "
";
Save and upload.
7. Upload the file instcntm.php.
Make sure the configuration.php is in the same directory.
8. Go to URL: http://www.yoursite.com/instcntm.php to execute the installation file.
Once successfully installed you can delete instcntm.php from server.
9. Installation is now finished and you can go to your Mambo control panel to change
module position.
Done!
Look at the files included for reference.
Send your comments or suggestions to: saka@hotmail.com