1
nikki
Stand-alone module
  • 2006/1/26 19:27

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


This might be a weird thing but...

I have a html page that is somewhat separate from the rest of the XOOPS site in that it is not wrapped within the XOOPS format. It's just a link from the Main Menu which I added, to an ordinary html page.

Anyway, I would like to incorporate some sort of feedback module in this page (guestbook or any simple comment type module).
But I wouldn't want that module on the Main menu, just in that one page.

Does anybody have a clue to what I mean? :)

TIA
:)


Xoopsv2

2
mongrel
Re: Stand-alone module
  • 2006/1/27 3:16

  • mongrel

  • Just popping in

  • Posts: 62

  • Since: 2005/1/15


Yes, I think that I have an idea about what you're talking about, though I am curious as to why you chose to use a page that is not wrapped within XOOPs. There are several guestbook modules in the repository.

Alternatively, if you can run CGI scripts, you could go to Matt's Script Archive and download the replacement for his guestbook, the NMS Guestbook. That could be run separately from the XOOPs system.

But that would not be nearly as easy as making one of the XOOPs guestbooks work for you.
Improve the time.

3
nikki
Re: Stand-alone module
  • 2006/1/27 8:54

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


Hi there,

Well you see, it's various media, such as Flash or javascript slideshow presentations, for meditation type purposes. So they fill their purpose best by being in one page without the distractions of side bars, menus, etc.

I think a guestbook would work. I have no idea if I can run CGI scripts.

>>But that would not be nearly as easy as making one of the XOOPs guestbooks work for you.

Could you point me in the right direction?

tia
:)

4
daranp
Re: Stand-alone module
  • 2006/1/30 20:06

  • daranp

  • Just popping in

  • Posts: 32

  • Since: 2005/5/26



5
Shine
Re: Stand-alone module
  • 2006/1/30 23:22

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


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

Login

Who's Online

435 user(s) are online (364 user(s) are browsing Support Forums)


Members: 0


Guests: 435


more...

Donat-O-Meter

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

Latest GitHub Commits