11
mjoel
Re: Simple WFH Diary module?
  • 2021/5/12 14:47

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


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

12
mjoel
Re: Simple WFH Diary module?
  • 2021/5/12 15:10

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


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

13
zyspec
Re: Simple WFH Diary module?
  • 2021/5/12 16:19

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


@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.

14
mjoel
Re: Simple WFH Diary module?
  • 2021/5/12 16:40

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


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

15
goffy
Re: Simple WFH Diary module?
  • 2021/5/12 17:46

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

i fixed the bug with the index.php

16
mjoel
Re: Simple WFH Diary module?
  • 2021/5/13 4:34

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


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

17
goffy
Re: Simple WFH Diary module?
  • 2021/5/13 15:39

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

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

18
mjoel
Re: Simple WFH Diary module?
  • 2021/5/13 16:34

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


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

19
goffy
Re: Simple WFH Diary module?
  • 2021/5/13 16:50

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


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

20
goffy
Re: Simple WFH Diary module?
  • 2021/5/13 16:55

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


PS: download last version of modulebuilder from github

Login

Who's Online

157 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

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

Latest GitHub Commits