5
I've implemented Lazarus standalone guestbook within XOOPS as if it is within XOOPS and even a module, but actually isn't. It stays a standalone script.
http://carbonize.co.uk/Lazarus/Install this script as it says within it's readme file.
Since I've uploaded it within the xoops/modules dir I made a xoops_version.php and loaded this also within this guestbookscript.
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// E-Mail: none //
// Project: The XOOPS Project (https://xoops.org/) //
// ------------------------------------------------------------------------- //
$modversion['name'] = "GUESTBOOK";
$modversion['version'] = 1.52;
$modversion['description'] = "LAZARUS GASTENBOEK. Standalone guestbookscript geinstalleerd en geintegreerd in XOOPS MODULES";
$modversion['credits'] = "Lazarus";
$modversion['author'] = "Lazarus. XOOPS bridge built by Shine";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "gastenboek.png";
$modversion['dirname'] = "guestbook";
//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";
// Templates
//$modversion['templates'][1]['file'] = 'gastalbummod_index.html';
//$modversion['templates'][1]['description'] = '';
// Menu
$modversion['hasMain'] = 1;
?>
Next I've adjusted 3 files of this script:
addentry.php
comments.php
index.php
Within all of these 3 files I've added right behind the first ( )
include '../../mainfile.php';
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
and right before the ( ?> )
include(XOOPS_ROOT_PATH."/footer.php");
Now since you already installed this script but go to your admin-modlues section it will say Module file not found. Scroll downwards and look for the guestbook, which appears not be installed. Click on it. It will call up the xoopsversion and pretend as if the guestbook will install within xoops. Now the error msg is gone but al works fine. It will automaticly appear within the mainmenu.
Even grouprights can be set.
If the guestbook has an update, just overwrite the files of this script, adjust the 3 files as you did before and done.
You administrate the guestbook from the script itself.
Grtz., Shine