1
hfwang
modularizing Webfilebrowser Request
  • 2004/7/23 6:15

  • hfwang

  • Just popping in

  • Posts: 15

  • Since: 2004/1/20


Hi all,

I use webfilebrowser (http://www.webfilebrowser.org/) and would love to use it as a module within xoops.

I'm no programmer, but I gave it a try by reading the wiki and looking at samples (e.g. Anti-DOS and phpwiki) but failed.

I could get the home-brew 'module' installed and displayed in the mainmenu, but it shows up full screen instead of block and security (groups) is not working.

Does anybody have some time to take a look at modularizing webfilebrowser? I pretty sure it's not too hard and time consuming, but it's beyond my personal capabilities.

Much appreciated!

hfw

2
Bassman
Re: modularizing Webfilebrowser Request
  • 2004/7/23 10:40

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I've got it working, sort of. I'll hopefully have something to download tomorrow.

3
hfwang
Re: modularizing Webfilebrowser Request
  • 2004/7/23 10:43

  • hfwang

  • Just popping in

  • Posts: 15

  • Since: 2004/1/20


That would be WAY cool!

Thanks for your efforts.

ofcourse I did not give up and got it displaying correctly now.

inserted
include("../../mainfile.php");
include("../../header.php");
include("../../footer.php");

at the right places. Security, uploading and groups is a mess tho. Hopefully you are getting this straight.

HFW

4
Bassman
Re: modularizing Webfilebrowser Request
  • 2004/7/23 13:05

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


well, i got mine going too........with the XOOPS root directory as its base directory. If you want to try it out, you can download it from here. i'm not offering a demo on my site, for obvious reasons :) but i'd be interested in any comments.

5
hfwang
Re: modularizing Webfilebrowser Request
  • 2004/7/23 13:53

  • hfwang

  • Just popping in

  • Posts: 15

  • Since: 2004/1/20


Wel.... just installed it and it works like a charm.

Need to test it more thorough but the first impressions are impressive!!! Nice hack

Just 1 question though, how to change the base path for files? I want to copy over ftp files to a seperate dir and change permissions to apache.

Thank you VERY much for your SWIFT reply en work!!

hfw

6
Bassman
Re: modularizing Webfilebrowser Request
  • 2004/7/24 0:53

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


it just needs to be tidied up a bit, and i'll release it as a module.
the bits i changed in webfilebrowser.php are around line 214:

Quote:
// // ---- Things that **may** be customized (but without any warranty)... ----

// *** I INSIST *** : you be careful what you do here !
// Many people ask me questions because of their mis-usage of these parameters...

//$basedir = @dirname(__FILE__); // Base directory = local directory
$basedir = XOOPS_ROOT_PATH; // Base directory = custom directory (UNIX)
//$basedir = "c:/My Documents"; // Base directory = custom directory (WINDOWS)

// Remember that the trash can must be located in the base directory (local or custom)

$filelinks = true; // Links on files (inhibited with a custom $basedir
// unless you specify $basevirtualdir), works fine
// when $basedir = local directory

$basevirtualdir = XOOPS_URL; // If you have set a custom $basedir AND $filelinks = true
// and if the base directory is accessible thru a
// virtual directory of the webserver
// set this variable (eg. "/virtualfoo/virtualbar")
// in all other cases let it empty !


you would just have to change XOOPS_ROOT_PATH to something like XOOPS_ROOT_PATH/yourdirectorypath

good luck!

7
hfwang
Re: modularizing Webfilebrowser Request
  • 2004/7/24 7:04

  • hfwang

  • Just popping in

  • Posts: 15

  • Since: 2004/1/20


Right! got it.

The module now appears working just fine. But whatever basedir I set it to (which all are apache owned) I can not upload. Ofcourse php.ini is set correctly to allow uploads and another web based upload utility is working just fine.

Something I'm missing here?

Thanks in advance!

HFW

8
carnuke
Re: modularizing Webfilebrowser Request
  • 2004/7/24 7:50

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Firstly, hfwang you may also want to look at IPBFM
im[ported to XOOPS by Jan304.

I use it and it works very well.

Secondly, a big thanks to you Bassman This is not the first time you have picked up posts like this and developed a modularised version (I'm thinking of VisitorMap) This is very useful for users without the skills to complete their coding ideas.

Richard

9
hfwang
Re: modularizing Webfilebrowser Request
  • 2004/7/24 8:10

  • hfwang

  • Just popping in

  • Posts: 15

  • Since: 2004/1/20


Hi there carnuke,

I totally agree and are thankfull for the help!

I did look at the invision filemanager but find it to have too much 'bells and whisstles'. I really like the simplicity of webfilebrowser, but then again that's personal.

Thanks for the pointer tho!

HFW

10
Bassman
Re: modularizing Webfilebrowser Request
  • 2004/7/24 11:01

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


i'm not sure about that one. I did discover, though, that when you change the root directory away from the module root, that you have to create a folder called wfbtrash in the XOOPS root folder, otherwise you can't delete files. you can't use the module to make the file either, it calls it an invalid file name.

Richard, i really enjoy turning scripts into modules. my PHP knowledge is very small, and it really helps me to understand the ins and outs of XOOPS :)

Login

Who's Online

472 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 472


more...

Donat-O-Meter

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

Latest GitHub Commits