Jump to content

michelangelo

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

6 Neutral

About michelangelo

  • Rank
    Jr. Member

Profile Information

  • Location
    Den Haag, NL

Recent Profile Visitors

222 profile views
  1. Yes, I do have ffmpeg, but MAMP is not aware of it, that's why I need to direct to it. I need to do something extra, it didn't work out of the box.
  2. Yes, yes, I saw but I cannot install ffmpeg on my server.
  3. Wow @adrian I am hitting a huge wall with installing ffmpeg-php. There are many outdated or confusing tutorials online. Do you have any tips? I am using MAMP with php 7.4.2 and ZSH as shell.
  4. @adrian good point. I guess I wasn't really taking advantage of it then :D I will install the php-ffmpeg module and see... thank you.
  5. Yes, I agree. I just like it because it keeps everything a bit more tidy at the backend. BTW the thumbnail generation is not really working for me. I am not sure if I did something wrong...
  6. Hello @bernhard, for the super late reply. I was super stressed around this project and just couldn't get my thoughts together. Thank you for your reply and the work on RockFinder3. I wasn't really able to contain the results I was interested in from RockFinder in an array for further use. I think that's what frustrated me. But it's probably due to my lack of knowledge of PHP rather than the module itself.
  7. @Gadgetto I submitted an issue on github with the accompanying images. A bit late but better than never I suppose... I closed the issue as I realised I just had to add the specific currency field to my template... I don't know why I assumed SnipWire is converting all the currency based on the initial one. 🤦‍♂️ Anyways, it's all good now.
  8. Okay, I start to get the general opinion towards Infinite Scroll :D
  9. Wow @MoritzLost, that's quite a response. Thanks so much! I will post a few examples here of my code but reading all your point made me realise a few things. Let's start from back: We don't need to load the events, but eventually there is going to be many of them in the archive. My idea was to display the most recent ones and if you want you can pull the next most recent, etc. With pagination maybe it will work the best as I can render everything on the server and just display what I need. My idea was to render everything at the server side as it is easier for me. But I completely get your point why this is not scalable. The Infinite scroll was also too complicated for the same reason, I didn't know what's going on in the back scenes. Right now: let postData = { "ajax:": true, "itemOffset": itemOffset, }; $.ajax({ type: "POST", url: url, data: postData, beforeSend: function (xhr) { xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded") }, success: function (data, status) { pageData = data; itemOffset += itemsToLoad; } }).done(function () { // when finished and successful container.insertAdjacentHTML("afterbegin", 'loaded: ' + pageData + ' (by jquery ajax)'); }); and then I wanted to execute that with my load_events.php template: $num_new_events = $_POST['itemOffset']; $events = $pages->find('template=nk-event, limit=$num_new_events'); // Render something about these events title, images, etc... foreach ($events as $event) { $event_title = $event->title; //etc... $events_output+= '<div class='event'>'. $event_title .'</div>'; //etc... } return $events_output; and then my JS will take it again from there. Of course, this didn't work last week, now it works but only from the home page, because it cannot find my load_events.php file or CORS policy issues. So at the end, I thought it's a bit more straight-forward but it seems like I need to rethink my approach. I have spent a lot of time on this project, so maybe I will try to make what I have until now work or switch to pagination. Thanks for the feedback!
  10. Hello guys, I know there are several AJAX threads, but I have been struggling for weeks with AJAX and I really want to get it working... Theoretically I understand what is happening, but how can I make it work in a ProcessWire context? Let's say I have 10 events (pages). I am displaying 5 and when I click 'Load More' it loads 5 more, etc. What I understand until now is: 1. Make a button 'Load More'. 2. Connect the button to AJAX function in JS (vanilla or JQuery or infinite Ajax Scroll). I prefer to be as simple as possible so I can tweak it myself. 3. Send the AJAX request to a php template that renders my content ( the 5 more events ) and returns it to my JS. 4. JS takes the returned content and appends it to my container in the DOM Step 3 is impossible for me. I tried so many different ways to just create a simple query, render my content and return it. If you can share your workflow and small bits of code, that will be the best thing ever. Thank you!
  11. Hello @bernhard, this field looks great! Is it possible for us to use it as well? I would like to implement it in a current project and it seems like it will work perfectly. I saw the module on github but is the inputField also available?
  12. Haha, no worries. I am really getting into Snipcart and SnipWire. I hope it's okay to ask a few more questions the next few days. Actually, I got one now because I am using Polish Złoty which is not parsed correctly so I get this message: I suppose that this comes from the Snipcart API, but then there it is formatted well... Is it because it doesn't have a currency symbol but just letters (pl)?
  13. Aha, thanks, so it is not part of the module and I don't have to tinker with that. Thank you again, great job on the module integration!
  14. Hello again @Gadgetto, I managed to make it work on my dev server, unfortunately after a lot of hassle because Duplicator and Site Export didn't work (Profile not found error). Anyways, now it works. I was wondering if I can implement Paypal payments? Is this something I need to implement or it is not yet in the module? Thanks.
  15. Okay, it seems clear. I am just using the SnipWire Module, I have no idea, whether I need to configure more than just the required steps in the module... Update: I saw that the default products from processwire are not included in the Snipwire db. I added them, but it still doesn't work.
×
×
  • Create New...