Jump to content

Andy

Members
  • Posts

    118
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Andy

  1. 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
  2. 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
  3. 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
  4. 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
  5. @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.

     

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

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

     

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

  9. @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,"' />";
        }
    ?>    

     

  10. @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
  11. @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
  12. 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 1
  13. I was able to install without errors. With the configuration utf8 MyISAM

    When a delete COLLATE=utf8mb4_0900_ai_ci

    Other way with configuration utf8mb4 MyISAM - gives an error:

    A SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: 'utf8mb4mb3'

    My version MySQL 5.5.62

  14. On 10/1/2022 at 8:02 PM, alexm said:

    Hey @jploch looking forward to checking out your hard work. Thank you for sending over the download.

    I've just created an empty DB and uploaded the packaged, unzipped it then kept the profile zipped. I get the attached error however when trying to run the setup. Any thoughts?

    Screenshot 2022-10-01 at 18.00.20.png

    Some as this problem with installation:

    SQLSTATE[HY000]: General error: 1273 Unknown collation: 'utf8mb4_0900_ai_ci'

    Created DB - utf8_bin

    Server version: 5.5.62 - MySQL Community Server (GPL)

    Database client version: libmysql - mysqlnd 7.4.30

    Here was this collision, I think:

    CREATE TABLE `textformatter_video_embed` (
      `video_id` varchar(128) NOT NULL,
      `embed_code` varchar(1024) NOT NULL DEFAULT '',
      `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
      `data` text,
      PRIMARY KEY (`video_id`),
      KEY `created` (`created`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

    in file - install.sql

×
×
  • Create New...