How to use with other Modules:
Add these two lines to as near to the top of the page as possible, just below admin_header include:
$spaw_root = XOOPS_ROOT_PATH . '/modules/spaw/';
include_once $spaw_root . 'spaw_control.class.php';
For the news module, use the following:
echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />\n";
//xoopsCodeTarea("hometext", 60, 15);
$sw = new SPAW_Wysiwyg( 'hometext', $hometext, 'en', 'full', 'default', '99%', '600px' );
$sw -> show();
xoopsSmilies("hometext");
$name = $xoopsUser->getVar("uname");
$email =$xoopsUser->getVar("email");
echo "nome $name";
echo"email $email";
<? $name = $xoopsUser->getVar("uname");$email = $xoopsUser->getVar("email");echo "nome $name";?><br><? echo "email $email"; ?>
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/home/web/www.lettorimp3.it/website/xoops205');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://www.lettorimp3.it:8080/xoops205');
// Database
// Choose the database to be used
define('XOOPS_DB_TYPE', 'mysql');
// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
define('XOOPS_DB_PREFIX', 'xoops_205');
// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'localhost');
// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'xxxxx');
// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'xxxxx');
// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'xoops205');
// Use persistent connection? (Yes=1 No=0)
// Default is 'Yes'. Choose 'Yes' if you are unsure.
define('XOOPS_DB_PCONNECT', 0);
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');
if (!isset($xoopsOption['nocommon'])) {
include XOOPS_ROOT_PATH."/include/common.php";
}
}
?>