Jump to content

Fuzen

Members
  • Posts

    79
  • Joined

  • Last visited

Everything posted by Fuzen

  1. As of today, yes! Your prayers were answered today ?
  2. @ryan does Horst’s commit fix the problem of image uploads that are rotated 180 degrees when saved to a page? From what I can remember in my mini app, even the thumbnail preview when using the file upload field flips images upside down. Which isn’t a deal breaker but still. I end up doing an image rotation on the front-end so the image is showed right-side up.
  3. @horst Thank you. I think Curl may do the trick. This will give me something to learn.
  4. I meant uploading a file from my PW page to a remote server. It has to be part of my app and not something done via an FTP client (in my case Transmit on macOS). Also, file permissions and such I don't have to set. I already have access and permissions based on my login credentials to the remove server.
  5. Hey everyone. This community has been of help and I need a little direction. I’m in need of uploading files to a remote FTP server (not at my hosting company). I have to use SFTP and not standard FTP. Can anyone point me in a direction on how to do that within a PW page/app? I have the credentials along with a port number. I’m assuming PW doesn’t have built-in code to facilitate this, correct? So doing research, I found this package: https://phpseclib.com/docs/sftp Assuming I have to use this package, seeing I’m a designer (not developer), could I download the package and simply install it somewhere within PW’s directory structure and then call it from my page? If so, where would I place it? And then once placed, would I call it at the top of my page like so?… use phpseclib3\Net\SFTP; $sftp = new SFTP('localhost'); $sftp->login('username', 'password');
  6. This is amazing. This might finally get me started with APIs in the comfort of my favorite CMS/CMF.
  7. That map is very nice. I’ll keep Leaflet in mind for my next improvement to my app. Thank you, as I see how some of that code you posted would be beneficial. Turns out MapMarker can’t be used in FormBuilder, which I didn’t realize. I wanted to use it for capturing coordinates as entries were saved. So instead, I ended up using a PHP script that I tailored to my needs. In PW, I queried and saved all the addresses (right now about 10–12, eventually up to 30) to an array. I then passed that array to Google’s GeoCoder API and let it do the hard work (parsing the address) instead of me having to figure out latitude and longitude. It works well and loads fast. I’m not a developer but thanks to helpful answers by everyone in this community, I’m able to learn as I go.
  8. Well, looks like it may be simpler than I thought. This has a PHP example: https://phppot.com/php/add-markers-to-show-locations-on-google-maps/ This tutorial has a nice Fiddle code example: https://gis.stackexchange.com/questions/300121/multiple-markers-on-google-maps-using-javascript-php-and-sql
  9. I would like to iterate through PW pages and grab the coordinates (that FieldtypeMapMarker created on saving the page) and display those multiple markers in __one__ map. I would love to have a module that does that, but I don’t see that in the PW module directory. Has anyone done anything like this in a PW project? I did a little research and found this from Google: https://googlemaps.github.io/js-markerclusterer/ It appears to ingest a JSON file for the marker locations.
  10. Can this be used in FormBuilder forms?
  11. Is there a simple code example for using module with a simple Options list (one per line)? I don’t need fancy visuals. I’d just like to use this module because of its search capability. All I want to do is search the list I entered in the Options field. Options ----- Option A Option B Option C UPDATE: Disregard. I figured it out.
  12. Great to see HTMX getting some love:
  13. Fuzen

    WordPress compromise

    So happy to be a Processwire user: https://news.ycombinator.com/item?id=30041815
  14. @Soma This code works perfect. In my case the file is being saved to server, I want to initiate a download and not save it to the server. How could I do that? I know it has to do with headers, correct? Any help would be appreciated.
  15. Yes, I can imagine it would be complex. I think ExpressionEngine did it by means of an inline group-by. For instance: <li class="whatever" groupby="datacolumn"> And then there was a sort-by also: <li class="whatever" groupby="datacolumn" sortby="whatever">
  16. Generally, this would be a shared template as the homes all contain the same content blocks (title, description, number of bedrooms, number of bathrooms, picture gallery, etc.). The only difference really is the classification of homes. Years ago, I used to work with the CMS Expression Engine which would allow for this type of grouping. I can’t remember how it did it, but it was was useful.
  17. I’d love to learn. I would pay for a tutorial like this.
  18. It’s been a while since I developed a new project with PW, but I have an upcoming client/project that could certainly use SearchEngine. I have a question about search results: Is SearchEngine able to return results into groups? For instance, the client is a home builder/seller. If a user performs a search, it would be nice to return the results as sets. In their case, single-floor homes; two-story homes; etc. That’s just an example. The bottom line is that their homes are divided into categories, so it would be nice if users could see results grouped as such. Is this possible?
  19. What would be awesome is if Form Builder had built-in support for creating Edit and Create ProcessWire page forms that mirrored the back-end forms. I haven't used the module in some time and am getting ready to use it for a new site, but as I understand it: you create fields that are independent of ones already present in back-end forms. The holy grail would be to spit out front-end forms that match the back-end forms exactly. And/or these features: 1) Restrictions on who has access based on member/permissions level. 2) An option to lock down editing of a form to the user that the form data belongs to. 3) Ability—when not exactly mirroring a back-end form—to designate which ProcessWire page should populate a given field. Then have the form update or create those Processwire pages upon submission of the entire form. I know this is crazy stuff I'm rambling about here, but something along these lines just exponentially opens up a whole new world to non-developers. We could create sophisticated apps in much the same manner as we already can on the back-end. Being able to update not just one page, but multiple instances throughout ProcessWire would be mind-blowing.
×
×
  • Create New...