1
wraith
Auto module install
  • 2004/4/8 13:40

  • wraith

  • Friend of XOOPS

  • Posts: 4

  • Since: 2002/1/16


Has anyone tried to install a module with out going through the admin page to install it? Maybe just calling something in the code to install it thbe module...


2
ladon
Re: Auto module install
  • 2004/4/8 13:48

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Why would you want to do that? You'd have to do everything by hand, or at least write a script for it. Seems useless when there already is a script for that in the core .

3
wraith
Re: Auto module install
  • 2004/4/8 14:17

  • wraith

  • Friend of XOOPS

  • Posts: 4

  • Since: 2002/1/16


I mean more when you install XOOPS it will create a list of modules that are in the module directory and you can select what you want, then with one click of the button you can install all the modules that you selected... I was just curious.

With sending my last post I finished writing something to do this....When I zip it up I will post it to the downloads section.

4
Mithrandir
Re: Auto module install

Module installation integrated in XOOPS installer? Sounds nice and shouldn't bee too hard.

Looking forward to seeing what you come up with.

5
ladon
Re: Auto module install
  • 2004/4/8 14:53

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Oh, I see. I completely misunderstood This would indeed be a nice feature.

6
blafrisch
Re:Auto module install
  • 2004/11/1 21:43

  • blafrisch

  • Just popping in

  • Posts: 3

  • Since: 2004/10/22


I hate to revive old threads in forums, but I was wondering if anyone has done this yet successfully. I am trying to accomplish the same task at the moment, but my knowledge of XOOPS and PHP for that matter are a little weak.

7
m0nty
Re:Auto module install
  • 2004/11/1 21:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


haven't seen anything actually made that does this.. not saying it hasn't been done, but if it has i haven't seen it anywhere whatsoever..

and no need to apologise for reviving old threads, if it's a useful thread etc, then there's no harm and it can benefit others :)

8
Mikhail
just an idea.... // Re:Auto module install
  • 2004/11/1 23:45

  • Mikhail

  • Just can't stay away

  • Posts: 412

  • Since: 2003/1/19


<?php
// ego area
// mikhail was here, hehe

include("zip.lib.php");
// Zip class created by bouchon
// download at http://dev.maxg.info
// Help here: http://forum.maxg.info

$source_file 'https://xoops.org/xoops.zip';
// remote server

$new_file 'xoops.zip';

if (!
copy($source_file$new_file)) {
echo 
"Unable to copy...<br>n";
exit;
} else {
echo 
"Copy completed...<br><br>n";
}

// Contents :

$zip = new Zip;
$zip->Extract("xoops.zip","htdocs",Array(-1));

// unlink($new_file);
// unlink("thisfile.php"
?>

9
blafrisch
Re:Auto module install
  • 2004/11/2 21:10

  • blafrisch

  • Just popping in

  • Posts: 3

  • Since: 2004/10/22


I have been working on this sporatically for a couple of days now. I haven't stumbled across any code snippets to do this yet, but if I do I'll be sure to post them somewhere.

This heading atop files seems to be what is holding me back, is there any easy way to circumvent this without having the user physically log in?
if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) )

Login

Who's Online

175 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

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

Latest GitHub Commits