11
zyspec
Re: Error: Call to a member function getVar() on boolean
  • 2021/7/2 17:34

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


We need a little more information to help you.
  • XOOPS version

  • PHP version

  • List of Active Modules (and their version)

  • Exact error message



  • 12
    zyspec
    Re: Xoopstube 1.08 beta 1 Error when deleting video
    • 2021/6/16 21:51

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    You can temporarily fix this by changing rows 465-466 from:
    [$lid$title] = $GLOBALS['xoopsDB']->fetchrow($result);
                
    $item_tag $result['item_tag'];

    to the single line:
    [$lid$title$item_tag$vidid] = $GLOBALS['xoopsDB']->fetchrow($result);


    which should work (although I didn't try it).... I'll add this as an issues for the Beta 2 code on GitHub since it looks like it's still an issues there too.



    13
    zyspec
    Re: Error in Xoops version 2.5.9
    • 2021/5/25 18:19

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    Thanks for the report....

    I opened a issue on GitHub so we can track it....

    See https://github.com/XOOPS/XoopsCore25/issues/1040



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

    • zyspec

    • Module Developer

    • Posts: 1093

    • 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();



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

    • zyspec

    • Module Developer

    • Posts: 1093

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



    16
    zyspec
    Re: Module xnews 1.71
    • 2020/11/9 17:33

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    @ON2AT

    Are you using xNews or news? These are different modules...



    17
    zyspec
    Re: Constra Construction Xoops Theme
    • 2020/6/19 15:19

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    Very nice! Great job!



    18
    zyspec
    Re: spanish translate for publish module?
    • 2020/6/16 17:19

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    It looks like the most recent translation for Publisher is for version 1.07 RC1 - which should give a pretty close translation for the latest release (1.07 FINAL).

    You can find it at https://www.transifex.com/xoops/dashbo ... -107-rc1#1/?o=perc&d=desc



    19
    zyspec
    Re: Chess module
    • 2020/5/24 6:25

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    @miktre,

    I made a few minor changes so the module will install. You can now create new games. I have not done any extensive testing but it appears that most features are working.

    Drag-and-drop chess piece movement doesn't work (yet) and there are several formatting issues on page display but it looks like most of the functionality of the module is now working.

    Please take a look at it and let us know what you find.

    Download my latest changes at https://github.com/zyspec/chess



    20
    zyspec
    Re: Assessment 2.01 Alpha 1 available for testing
    • 2020/5/3 14:57

    • zyspec

    • Module Developer

    • Posts: 1093

    • Since: 2004/9/21


    You might try using something like xForms. It would allow you to create the questions and collect answers but you'd have to manually evaluate the results.

    There's an updated version in my repository. I think everything's working but I still need to make a few minor adjustments and test it before it's 'released'. If you decide to try it let us know if you find any issues or have any other suggestions so we can get them fixed.

    You can find xForms at https://github.com/zyspec/xforms if you're interested.




    TopTop
    « 1 (2) 3 4 5 ... 100 »



    Login

    Username:
    Password:

    Lost Password? Register now!

    Who's Online

    63 user(s) are online (49 user(s) are browsing Support Forums)


    Members: 0


    Guests: 63


    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