Jump to content

kongondo

PW-Moderators
  • Posts

    7,476
  • Joined

  • Last visited

  • Days Won

    144

Everything posted by kongondo

  1. Maybe if you could explain your use case a bit more. What do you do with the uploaded file? If you are adding it to a ProcessWire Page, ProcessWire will not allow you to have your 'human-friendly' file name ?. It will be sanitised. I am guessing that is why you wanted to save the original file name in the description? Secondly, who is uploading the files? The general public? Registered users? Site editors?
  2. I don't quite understand. Do you mean you want to save the non-sanitised file name as a description rather than adding a description to the file later yourself?
  3. Great. Give me a few days please to update the dev branch to include a few changes first, including the recent suggestions by @adrian. This way, we can work on one clean (dev) base. I'll also namespace it. Moving forward, we only support PW 3. I missed the memo it seems. Which ones are these?
  4. I wouldn't call it a bug. That's the sanitizer at work. For custom things like that, I suggest you use getMenuItems() method to create your menus. See the examples in that link.
  5. Hi all, Sorry, I'm late to the party! Interesting conversation here. I am not a fan of duplicating modules, if what they offer are very similar. I would prefer to try a PR in the first instance :-). Interestingly, the other day when @adrian was reporting some issues with the module and suggesting changes, I had a rethink about your suggestions and decided it was worthwhile going with your suggestions, especially the auto include. I didn't mention it since I didn't have the time then to work on the module. So, my take is, we can improve the existing module, with new features and/or hooks. All PRs will be duly credited. I suggest we try that first. That's my opinion :-).
  6. Sorry I wasn't clear. I did not wish to dual boot ?.
  7. Thanks for this Adrian. I have used the extension before but to run Python code. Thanks for the example code!
  8. I like the productivity of this lazy man who is in a hurry ?! You are on fire mate! ?.
  9. I followed the instructions to the letter, except for using my home directory, I used a different drive. At first I was getting 403s (maybe because disk had to be mounted first?). Now am getting this site cannot be reached.
  10. Yes, I do, thanks! That would be awesome! If I can skip setting these up manually, even better :-).
  11. So I tried Midori and it rendered ProcessWire website all funny. The Firefox that shipped with BunsenLabs (BL) seemed to be fast enough so I thought, what the heck, maybe Chrome will run just fine as well? We'll, what do you know! Of course it's eating up RAM like it's Google's Birthday but I reckon @OrganizedFellow was right about Solus being 'slow' on my machine due to the visuals. Since BunsenLab has a very light footprint, Chrome still has enough to chew on. I then tried Sublime Text. I've always loved Sublime but after using VSC, going back was difficult. I decided to install VSC to see if it would run OK in BL. Surprise! So far, it seems to run just fine. I haven't opened multiple files (and I don't need to in this machine). I'm just happy I am able to use the tools I am used to without hiccups. One other thing I liked about BL (yes, we are on first names now ;-)) is that it has a post-install script that runs and asks you if you want to install useful tools like a LAMP stack, etc. I let it install the LAMP stack and here I am, up and running. Apache2, PHP 7 with many useful extensions, phpMyAdmin, etc. ps: @OrganizedFellow, was that you who made the request to BL to port the CB welcome script to BL? :-). If it was, thanks!
  12. I tried it when the machine still had Windows 10 and it didn't fare much better than chrome (memory) Worked! Thanks. I've had a quick look. Will investigate more, thanks.
  13. Thanks all. I installed lubuntu and didn't like it at all. My mouse didn't work, which actually turned out its batteries had just died :-)! With hindsight, it was a good thing since it lead me to Debian Crunchband++ and eventually BunsenLabs which I am liking...(I think). Thanks! Went with a derivative, BunsenLabs Thanks. I have now installed Sublime Text. I don't know where to find out though ;-). It's not showing up in the menus. run programme cannot find it as well. Any thing else I should do? Google is taking me down all sorts of rabbit holes...
  14. Good thing with Solus is that I was able to connect to WiFi and was able to use touch right of the bat. Hard to tell maybe, but do you know if Debian would be that friendly?
  15. https://jspreadsheets.com/ lead me to this: jQuery.sheet/WickedGrid > https://spreadsheets.github.io/WickedGrid/ but I am not sure it is still in development...
  16. HI all, I am looking for Browser suggestions for a low end touch device. I occasionally use the machine for development but running VS code and Chrome on it eats up all the memory. It is very slow. I uninstalled the Windows 10 it shipped with, replacing it with Linux Solus. That too is slow on this machine. Google tells me that in this case, I am probably better off with Lubuntu or Puppy Linux. I prefer the former. I have a Sublime Text license and wouldn't mind using it on this machine. All that remains is a browser. The most important thing is speed and memory footprint. If it is developer-centric, that would be a great bonus. Does anyone have a suggestion for me? So far, I've narrowed the list down to these: K-Meleon (unsure if there is a Linux version)? Pale Moon Midori Maxthon The machine specs are: Intel N3350, 4GB DDRIII RAM, 32GB (eMMC) Thanks!
  17. :-)....and your 3D printing?
  18. Hi, Have a look at your menus settings, specifically the 'Use enable/disable menu items feature'. This requires the permission 'menu-builder-disable-items'. When enabled, you will see under each menu item's settings panel, a checkbox 'Disabled'. Tick that for the menu items you wish to disable and voila; no need to delete them. However, if you do not wish the user to be going to these settings, enabling and disabling menu items, you can instead use getMenuItems() and filter out unpublished and hidden pages. If you can open an issue in the project repo, I can consider to add these as options i.e. 'skip_unpublished' and 'skip_hidden'. I can't remember of the top of my head how ProcessWire page->viewable() relates to hidden and unpublished pages. We already check for viewable() in menu builder but I'd have to investigate this further.
  19. It worked on my Win 7. I don't have Hyper-V. It worked fine with VirtualBox running off (the legacy) Docker Toolbox. You can get it on here on GitHub. I hit the request forged issue and gave up on Dbox. Otherwise, it installed fine. The forged issue arose because the token in the hidden input in the login screen somehow gets a different value to the one server-side.
  20. OK, we are getting closer. One more clarification. You say Abdi and Mary-Lou will see their voted added to the total count. This is the crux of this issue. What is total count? If when Abdi was viewing the total was 9 votes and he adds one more, if we don't save it to the server but do it on the browser only (client-side) the count he will see is 10. On the other side of wherever, Mary-Lou also votes. When she was viewing, the count was 5. She votes, and if we don't save to server, she sees a total of 6. Is that what you desire really? I'd have thought you want the true count, i.e. true count as recorded on the server, meaning, Abdi's + Mary-Lou's votes + any other that were already saved on the server. To confuse me further (:-)) you say without the need to refresh the page? Maybe you mean without a need to reload the page? I thought you wanted the page to be refreshed without the need to reload it? I'll have a look when I get the time. If it is only JavaScript, then it's probably using cookies.
  21. I feel like we are going round in circles :-). Maybe it's just me. I was hoping we'd tackle one issue at a time. My previous last question (Abdi and co) was about "refreshing votes" You still haven't answered my questions 1 and 2. Instead, you've further elaborated on another issue you are having (which we could tackle later, namely, simultaneously being allowed to vote up and down). This and ... this are incongruent. How will you prevent unregistered users from voting multiple times? Which of their credentials will you be assessing to prevent voting multiple times? Secondly, JavaScript alone will not prevent anyone from voting more than once :-). For those really determined to vote multiple times, it is very easy to manipulate client-side validation. You really need to validate server-side. If you can please answer #1 and #2 in my previous post, we can move this forward, maybe even with code examples.
  22. OK. Let me try and understand what you are after. I'm not sure I follow. what are {votes} in the curly braces? What do you mean by custom output? Using your own form? How will this site operate? From my understanding: Abdi visits your site. He likes the comment by Susan and up-votes it. Mary-Lou visits your site. She doesn't like the comment by Singh. She down-votes it. Do you want Abdi to see the latest (including his) count of up votes to Susan's comment? The same for Mary-Lou. Do you want her to see the latest total of down votes to Singh's comment? When Abdi and Mary-Lou vote, do you wish their votes to be saved to the server immediately? If the answer to either question is yes, then the voting actions will need to tell the server that a vote has been submitted. If you don't want to refresh the page manually (F5) to see the new votes, then it has to be done via Ajax (the most common method). Before that, the votes have to be submitted to the server. The most common way to do it without a physical refresh is to use Ajax. Maybe I'm still not getting what you are after. On the other hand, if I am on the right track, we can then move to how to submit a vote using Ajax.
×
×
  • Create New...