Jump to content

Andy

Members
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Andy

  1. Hello @Juergen

    Thank you for your quick and complete response.

    Regarding the captchaimage.php file. I think we should add a couple of lines about this in the Quick Start documentation section.

    "During installation, you will need to write the captchaimage.php file to the root folder. You can change permissions on this folder for the time of module installation. Or write the captchaimage.php file to the root folder and allow the system to update it."

    Another way is to change the functionality of the module installer. Check if it is possible to write captchaimage.php to the root folder. And if it is not possible, send a message to the user: "No access to root folder. Move the file /site/modules/FrontendForms/Formelements/Captcha/captchaimage.php to the root folder yourself."

    Yours Andy

    • Like 1
  2. Hello @Juergen

    Thanks for the quick response. Yes, this feature now is working.

    But I immediately have a question - how to remove some IP from this list?

    I am testing your module now and see what a great job you have done. I will try to help you with debugging.

    Another problem occurred when updating your module.

    Warning: copy(/var/www/htdocs/minotaur/htdocs/captchaimage.php): Failed to open stream: Permission denied in /var/www/htdocs/minotaur/htdocs/wire/core/WireFileTools.php on line 282

    I have the root folder locked from writing. That's not safe. Are you sure that captchaimage.php should be in the root folder?

    Another small find. In example /site/modules/FrontendForms/Examples/contactform.php 

    $accept = new \FrontendForms\InputCheckbox('accept');
    $accept->setLabel('I accept the data privacy');
    $accept->setRule('required')->setCustomMessage('You have to accept the data privacy');
    $accept->setRule('accepted');
    $form->add($accept);

    $accept->setRule('accepted'); Incorrect construction. You must use a different function for checked.

    $accept->setChecked();

    Best regards.

    Yours Andy

    • Like 1
  3. I see a very handy module. When I have a lot of different open projects, it can be hard to figure out what you have open at the moment. I wanted to do something like this myself. But my hands did not come to the matter. Thank you very much @BitPoet

    However, I would like to mention one more important parameter. I would like the tab icon to change its color as well. This will be visible by the color of the tab in the browser on which development is taking place.

    I also have different icons for frontend and backend. This is convenient for clients in a running project.

    Such a method can be easily implemented in ready.php

    $page->addHookAfter('render', function($event) {
        $template = $event->object->template;
        if ($template == 'admin') {
            $event->return = str_replace("<title>", "<link rel='icon' type='image/png' href='/img/backend_favicon.png'><title>", $event->return);
        }
    });

     

     

  4. Hi @rst

    On 3/29/2023 at 6:23 PM, rst said:

    Looks like theres an issue with this module and PHP 8+

    Fatal Error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in site/modules/FieldtypeMapMarker/InputfieldMapMarker.module:208

    For some reason in PHP8+, the coordinate values default to the empty string.

    You can fix the module code and hard-code their values to float. Until @ryan fixes it.

     

     if( ((string) round($lat, $precision)) != ((string) round((float)$this->defaultLat, $precision)) || ((string) round($lng, $precision)) != ((string) round((float)$this->defaultLng, $precision))) {

    I've requested changes to the https://github.com/ryancramerdesign/FieldtypeMapMarker

     

    • Thanks 1
  5. 2 hours ago, zoeck said:

    The form is blocked by my adblocker (uBlock origin) 😉 Maybe the same thing happens to you...

    Oh, yes, it is. I'll have to be more careful. Thank you.

    • Like 1
  6. Hi @bernhard

    On 8/11/2023 at 10:33 PM, bernhard said:

    I've often heard people say "It's hard to keep track" with all the updates to my modules. That's why I work on the DEV branch now in all of my modules for one month and then merge the changes into MAIN and create a new release that lists all new features and bug fixes.

    If you are interested you can sign up here: https://www.baumrock.com/rock-monthly/

    🚀🤘🎸

    I can't connect to the website. Blank page only.

    • Thanks 1
  7. Hi @Juergen

    Thanks for this module. I can see that a great and good job has been sold.

    The main problem why I still use custom forms is the date picker.
    The first problem is to set the range of acceptable times to specify. The second is to inform the user of a date error if the range is still not respected. You do realize that both POST and GET are not perfect.
    The other case is when the user needs to specify a range of a start date and an end date. There are more error options here.
    There is also a variant when dates are linked. For example, after specifying the first date, the second date can be as much as two weeks later.
    Usually such collisions are solved with jQuery.

    I looked at your module documentation and didn't see any examples with dates. Maybe you have a similar functionality, but I would like to see an example. 

    • Thanks 1
  8. @Joachim

    First, you should check the PHP configuration. To do this you have to run a command in the program code -
     

    phpinfo();

    The PHP configuration page should have this block:

    phpinfo-zip.jpg.a92284db695064edd4efeee50ba69a2e.jpg

    The version numbers may vary. This picture is just an example.

    If not, ask your hosting provider to compile PHP with the ZIP library.

     

  9. @Juergen

    Thank you for your reply.

    How much you need to add avatar images to your profile depends on the format of your project. In my projects, this is a fairly common feature. I use LoginRegisterPro, which @ryan suggests. There, adding an image doesn't give you any image editing functionality. But you don't really need it either, as there are a lot of image editing programs on the fly right now.

  10. Hi @benbyf

    On 3/30/2020 at 4:46 PM, benbyf said:

    Hi, Looking to create form elements on a page–some input with a colection of form inputs and the appropriate labels and variables for that input. I've used ProForms in the past and rolled out my own when creating simply one off forms, but I wonder if anyone has found a good way of allowing form creation on page editing so that clients can adhocly make and edit forms?

    Thanks

    Perhaps you should check out this forum thread:

    Try it if you've already upgraded to PHP 8

     

  11. @LAPS

    On 2/24/2023 at 12:26 PM, LAPS said:

    @Andy my problem is not related to check if the users have or not have the profile image set but to publicly display their image file. Because the user pages are located under PW Admin > Access > Users, (normally) their profile image is not accessible to the public, and I would like to make those images publicly visible the right way.

    BTW I'm using LoginRegisterPro features to allow users to edit their profile image.

    I too use LPR to add pictures to user profile.

    Usually the user's image files are in the user's folder. As example: https://mysite.pw/site/assets/files/41/cot.jpg

    And such pictures are available to everyone, unless you specify otherwise. 

    You can change this behavior in the user template by enabling access control.

    usersccessimage.thumb.jpg.d9a0a4c72ee7f8acc3a861897513824a.jpg

  12. @LAPS

    14 hours ago, LAPS said:

    In my case, I've the profile_picture Image field in the user template and I cannot move the user pages outside PW Admin > Access > Users.

    How did you solve this?

    Use the user page as a normal page. Any user fields can be shown if you have not set a ban in the template.

    <?php
        $usr = $users->get('id='.$user_id);
        if(empty($usr->photo)){
            echo "Photo empty";
        }else{
            echo "<img src='",$usr->photo->httpUrl,"' />";
        }
    ?>    

     

  13. @bernhard

    17 hours ago, bernhard said:

    Would be nice to know how old that site is 🙂 

    It wasn't really a website. It's a catalog of machine parts for the company. We were then looking for a CMS that could display the hierarchical structure of the catalog well. In addition, we needed the templates to have a different structure for different types of parts. One of our young programmers at the time said: there is a great American CMS - ProcessWire, it is perfect for our task. That was in 2012. In any case, we finished this project in 2012. 
    I found a backup now. We used ryancramerdesign-ProcessWire v 2.2

    In 2013, we moved our windsurfing store project from a self-described CMS to PW 2.4. By the way, the self-written CMS has been around since 2000. At that time @Soma cheatsheet helped us much. We still maintain that project, but have updated PW each time for new features from @ryan

    Back then, there was no PW module for a full-fledged store. But in 2012, @apeisa published an example of such a module Shop-for-ProcessWire. We took it as a basis and now it is a working online shop.

    In fact, I made my first site in 1994, and it is now also converted to PW. It was such a long story with a happy ending.

    • Like 7
  14. @ryan

    What I love about PW is that you can do the craziest projects with it. The flexibility of PW allows you to implement anything from a payment terminal to an e-book with maps. And even the older versions remain reliable and work as designed. I have PW version 2.3 running somewhere - no complaints from customers. This is a genius invention. Thanks.

    I hope to post a new project on PW here soon that implements a remote medical equipment management system.

    • Like 4
  15. On 4/6/2017 at 5:30 AM, Zeka said:

    Hi.

    I have several sites on which I periodically get this exception 

    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY' (in /wire/core/FieldtypeMulti.php line 295)

    All exceptions go from URLs http404 or 404.

    I understand what this exception means, but can't found out what is causing it.

    Do you have any suggestions? 

    Make a static page 404.html
    Fix the line in the .htaccess file
    From
    ErrorDocument 404 /index.php
    to
    ErrorDocument 404 /404.html

    Also, it would be useful to read the article "Optimizing 404 requests in Processwire"

    • Like 2
×
×
  • Create New...