811
mjoel
Re: Estimate profile completeness
  • 2021/5/15 13:55

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i would like to try this where do we exactly put this code ?
is it still working?, im using xoops 2.5.10 and php 7.3

i tried putting it in php block but i got
Error : Error: Call to a member function getVar() on null



812
goffy
Re: Simple WFH Diary module?
  • 2021/5/15 7:39

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Mamba suggested to simplify name and to use lower characters to avoid any case sensitive problem, and I agree wtih him

new name: https://github.com/XoopsModules25x/wgdiaries

new path to issues: https://github.com/XoopsModules25x/wgdiaries/issues



813
goffy
Re: Simple WFH Diary module?
  • 2021/5/15 7:15

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


I created github project
https://github.com/XoopsModules25x/wgWfhDiaries

I changed name into multiple (as it is usual)

please check issues at https://github.com/XoopsModules25x/wgWfhDiaries/issues and add your opinion

if you have other/new ideas you can also create a new issue



814
mjoel
Re: Xforms Module- show user their own data report
  • 2021/5/14 11:07

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thanks again
im not a programmer and i tried to replicate in the front end, it is somehow working but with error and no page style

i've send you PM zyspec.

For future it would be better this feature to be integrate in this great module



815
mjoel
Re: Simple WFH Diary module?
  • 2021/5/14 11:00

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

goffy wrote:
hi

if you really want to continue on this I would suggest that I create a new project on https://github.com/XoopsModules25x and you create issues there.
it is easier to split the work when you and I have forks of it which we can merge and I can try to solve problems/wishes issue by issue


that would be great



816
goffy
Re: Simple WFH Diary module?
  • 2021/5/14 7:34

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

if you really want to continue on this I would suggest that I create a new project on https://github.com/XoopsModules25x and you create issues there.
it is easier to split the work when you and I have forks of it which we can merge and I can try to solve problems/wishes issue by issue



817
mjoel
Re: Simple WFH Diary module?
  • 2021/5/14 5:59

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

goffy wrote:
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


thank you goffy, i'll try first..if i have any question. i'll post here later



818
zyspec
Re: Xforms Module- show user their own data report
  • 2021/5/13 20:36

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The best way to get this info is to use the class object handlers (in this case UserDataHandler. Once you use the handler you can get the userData object(s) and then perform a getVar on the udata_value.

The udata_value is stored as a serialized variable. The class does some 'sanity' checking when saving/retrieving the data to prevent errors. You could do the same checking as the UserData:;getVar() method does (make sure it's a serialized value, and unserialize it and then base64_decode the values) but it would be better to use the class methods "as intended".

You might look at the ./admin/reports.php to get an idea for how to set it up. Since you're doing this on the front side you'll want to look at ./index.php to make sure you include/use the classes you need to get everything setup.

If you post (or PM me) I can try and look over what you create but my time's limited for the next couple of weeks... If you post here maybe we can get others to 'chime in' and help along the way.

I'd start with:
use XmfFilterInput;
use 
XmfRequest;
use 
XoopsModulesXforms;
use 
XoopsModulesXformsConstants;
use 
XoopsModulesXformsUtility;

require 
__DIR__ '/header.php';
$myts   MyTextSanitizer::getInstance();



819
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



820
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




TopTop
« 1 ... 79 80 81 (82) 83 84 85 ... 29425 »



Login

Who's Online

399 user(s) are online (296 user(s) are browsing Support Forums)


Members: 0


Guests: 399


more...

Donat-O-Meter

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

Latest GitHub Commits