xoops forums

mjoel

Quite a regular
Posted on: 5/12 14:47
mjoel
mjoel (Show more)
Quite a regular
Posts: 331
Since: 2006/12/9
#11

Re: Simple WFH Diary module?

Quote:

goffy wrote:
@mjoel

let me know if you need help


modulebuilder look promising..

im currently trying the modulebuilder to generate a module

after generate the example mymodule im having problem with accessing index.php of the generated module in front end and backend

modules/mymodule/index.php
modules/mymodules/admin/index.php

the content of the index.php
header('HTTP/1.0 404 Not Found');


if there is no existing working similar module exist..that i can modify

..i guess i need to learn and use modulebuilder to create the wfh report module

mjoel

Quite a regular
Posted on: 5/12 15:10
mjoel
mjoel (Show more)
Quite a regular
Posts: 331
Since: 2006/12/9
#12

Re: Simple WFH Diary module?

I found an example of a work from home report..this is very similar what i want but i would like to achieve it with xoops if thats possible
https://www.jotform.com/form-templates/employee-end-of-day-report

zyspec

Module Developer
Posted on: 5/12 16:19
zyspec
zyspec (Show more)
Module Developer
Posts: 1087
Since: 2004/9/21
#13

Re: Simple WFH Diary module?

@mjoel,

You could try the Xforms module. It will allow you to create the report you want. The module would need to be modified to create a page that would allow a user to see their own reports. I would think that would be easier than creating a completely new module.

mjoel

Quite a regular
Posted on: 5/12 16:40
mjoel
mjoel (Show more)
Quite a regular
Posts: 331
Since: 2006/12/9
#14

Re: Simple WFH Diary module?

Quote:

zyspec wrote:
@mjoel,

You could try the Xforms module. It will allow you to create the report you want. The module would need to be modified to create a page that would allow a user to see their own reports. I would think that would be easier than creating a completely new module.



Thank you very much..I will look into xforms

goffy

Just can't stay away
Posted on: 5/12 17:46
goffy
goffy (Show more)
Just can't stay away
Posts: 487
Since: 2010/12/27
#15

Re: Simple WFH Diary module?

hi

i fixed the bug with the index.php

mjoel

Quite a regular
Posted on: 5/13 4:34
mjoel
mjoel (Show more)
Quite a regular
Posts: 331
Since: 2006/12/9
#16

Re: Simple WFH Diary module?

thankyou zyspec
i just tested the xforms module and i think it does the job, im able to input date and text and upload image and documents ..and i as admin can see the data inserted by user

i can see the data value of the form are kept as text in mysql

now im trying to figure out
how to direct user to their own data after page submit
how to create a page that would allow a user to see their own reports.
how to allow user to edit their report and save to database

i think i will create a separate topic later

goffy

Just can't stay away
Posted on: 5/13 15:39
goffy
goffy (Show more)
Just can't stay away
Posts: 487
Since: 2010/12/27
#17

Re: Simple WFH Diary module?

hi

are you looking for something like this:
https://github.com/ggoffy/wgwfhdiary

mjoel

Quite a regular
Posted on: 5/13 16:34
mjoel
mjoel (Show more)
Quite a regular
Posts: 331
Since: 2006/12/9
#18

Re: Simple WFH Diary module?

OMG, thank you very much Goffy. that is quick. Module builder is a wonder

That is a good start and i have many request and suggestion

I really think this module can be a multipurpose module and not just a wfh report tool

goffy

Just can't stay away
Posted on: 5/13 16:50
goffy
goffy (Show more)
Just can't stay away
Posts: 487
Since: 2010/12/27
#19

Re: Simple WFH Diary module?

1) take the content of "htdocs\modules\wgwfhdiary\extras\modulebuilder\testdata\english"
2) copy it into "htdocs\modules\modulebuilder\testdata\english"
3) run "import sample data" in modulebuilder than you have the definition of that module in modulebuilder and you can work on this

goffy

Just can't stay away
Posted on: 5/13 16:55
goffy
goffy (Show more)
Just can't stay away
Posts: 487
Since: 2010/12/27
#20

Re: Simple WFH Diary module?

PS: download last version of modulebuilder from github