Jump to content

flydev

Members
  • Posts

    1,169
  • Joined

  • Last visited

  • Days Won

    38

flydev last won the day on October 6 2022

flydev had the most liked content!

9 Followers

About flydev

  • Birthday 09/21/1983

Profile Information

  • Gender
    Male
  • Location
    France 🥖

Recent Profile Visitors

6,505 profile views

flydev's Achievements

Hero Member

Hero Member (6/6)

2.1k

Reputation

1

Community Answers

  1. @Flashmaster82 what is the issue ?
  2. @JamesKnepper type those keywords « External database » in the following tool : https://cse.google.com/cse?cx=014789015761400632609:fxrf0rj4wr4
  3. I dont get it Marco, did you manage the server or its an hosting plan ? Because as we said, as we can send requests on 80 and 443, there is no firewall blocking it. One thing you could ask them or check on the logs, is if your ip get blocked somewhere, they have antiddos mesures and you might had a bad loop throwing requests during a small period, thats just a idea..
  4. Short answer from mobile, yes. Welcome 🙂
  5. @Marco Ro get and post also works from here, at least we receive http answer code, like @BrendonKoz Also, FYI if it help, GET request on HTTP get redirected to /auth from the js code (window.location.href = "/auth/") and the same request on HTTPS is forbidden. On a VPS or private server, you have to adjust the firewall from the OVH dashboard. If it's an hosting plan, then you have nothing to do. https://docs.ovh.com/it/dedicated/firewall-network/#prerequisiti
  6. @protro thanks 👍 If you have already your site content, you have two simple solutions: A. Using Duplicator: build a package remove all files and folders from the package2.zip and keep only the .sql.zip inside upload the installer.php file and the modified package2.zip on the root directory navigate to https://yoursite.com/installer.php and follow the instructions The modified package2.zip file content 👇 B. Using ProcessDatabaseBackups install the module upload or select a db file restore it ⚠️ As always, make a backup of everything before proceeding
  7. I will add a new answer once I have made some tests, comments are welcome. https://github.com/flydev-fr/Duplicator/issues/37
  8. Just my two cents here, I vote to extend the module's developer doc and/or a note in the coding style guide. That's maybe the role of the community to (help) write it and send it as proposal to @ryan by filling a github issue for an eventual revision.
  9. @Flashmaster82 what's the version of your PHP install ? If I am correct, you need PHP 8.1 to get it working. Just saw the posted issue on the github repo, will comment it there, but @Juergen, as you are using arbitrary Union Type on property declaration in the module, it make it available only on php-8.
  10. On my last post in the thread of AdminStyleDark, when I said: I was refering to this one in particulary. I will send a github PR.
  11. (In my first message, I didn't understood that you was going to modify an existing ProcessWire site). But the message is still valid to get an introduction before the update. What do you mean by "just find the code" ? You mean in an admin page ? You have everything you are looking for in `home.php`, read below. Not really, you could even forget the admin, (even if it's not really the case, but that's how I still see it and saw it), the admin pages, fields and templates let you manage and organize what's inside the db, it's just easier. On your screenshot, we can see that the code of the homepage, is in `/site/templates/home.php` and pull from the database the title of the page from the field `title`, some images for what it look to be, a carousel or hero block `hero_image`, also some client testimonials from `testimonials` field. As you are old, to refresh your memory, remember when you was getting theses data from a database with `select * fields from site_db where page="home"`, now you have it at hand, in an admin page, with a lot of API helpers given by ProcessWire to get/set all of that. Now, if you understand that the $page call give you the current visited page, called `home` in your example, in the page-tree, with a template (file with code) `home.php` then you can understand that $page->title, $page->hero_image and $page->testimonials give you the value (from the db) of theses fields. Anyway, please open with notepad the file /site/templates/home.php and paste it here in the thread so we can get the strategy used (I bet it's the simple one with php include() calls) and we will be able to make things more clear to you.
  12. @protro do you get same result with jsConfig() ? Also, I think it's only exposed on admin pages by default. For frontend you will need (as always) to make it available yourself, as nothing is done on frontend things by default, except processwire api: On your <head> tag in frontend, eg. _main.php : <!-- credit to @soma --> <script type="text/javascript"> var config = <?php echo json_encode($jsConfig); ?>; </script> Then // Set a property from PHP // $config->js() is still here for backward compatibility, use jsConfig() $config->jsConfig('mySettings', [ 'foo' => 'bar', 'bar' => 123, ]); // Get a property (from PHP) $mySettings = $config->jsConfig('mySettings'); // Get a property (from Javascript): var mySettings = ProcessWire.config.mySettings; console.log(mySettings.foo); console.log(mySettings.bar);
  13. @Juergen I needed a solution to start with a quite complex form. I tried the module, thats was fast. Freaking cool ! Thanks .
  14. Hi Mike, welcome, as you are used with Notepad, then you are on the best solutionware to keep using it, easier than wordpress really. Read a bit there and choose an output strategy that feel your dev experience (biased suggestion: Delayed Strat.) : https://processwire.com/docs/front-end/output/ https://processwire.com/docs/tutorials/default-site-profile/ Then watch this vid: And enjoy 👍 edit: before you ask, when you will stumb on some ten years answer forum thread, yes they almost still work in 2022. But at least upgrade your php 3 install 🤣
×
×
  • Create New...