Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. 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?
  2. 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...
  3. 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!
  4. :-)....and your 3D printing?
  5. 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.
  6. 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.
  7. No; Intelephense, not IntelliSense :-).
  8. 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.
  9. 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.
  10. 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.
  11. The error is happening because a Comment object does not have a such a method. If you look at the file CommentList.php, you will see it has a method renderVotes() as well as a renderStars(). Both are passed one argument/parameter, a Comment object. The two methods just implement some string cleanup and html output. The most important thing for you is the number of votes, down and up. You get this using: $comment->downvotes; for down votes $comment->upvotes; for up votes You can wrap those around whatever element you want, e.g. "<span class='down_votes'>{$comment->downvotes}</span>"; "<span class='up_votes'>{$comment->upvotes}</span>"; Then style those as you wish using CSS.
  12. Was there a question in there? ?. Or maybe you are just documenting progress? If not, what is pending?
  13. Quoting from your recent questions in the other thread: 1. The votes count is working, but is not automatically refreshing so the page has to be reloaded in order to see the numbers 2. The votes allow a user to vote UP and Down at the same time which in my scenario does not make much sense as you either like a comment or don't. 3. How to implement the comment depth. #1. Refresh: If you need anything to be automatically refreshed without loading a page, you need to use Ajax. I know of no other technology. Simple steps: On click votes count, capture that event using Ajax (JavaScript) Send the Ajax post (or get) to the specified URL, most likely the current page, so "./" Server-side, the template file that the current page uses checks if an Ajax call has been made, i.e. if($config->ajax) {capture and sanitize form inputs, send response back, usually as JSON) Client-side, the code you used to send your Ajax post is waiting for an answer from the server in a particular format. If that response comes through... Find the inputs on the page you need to refresh and refresh them. Example $config->ajax is here: #2: Up/Down Votes: How do you want to control this? Do you want to stop it client-side or both client-side and server-side? If server-side as well, how are you distinguishing users? Are you requiring users to log in before voting? If client side, you can use JavaScript to enable the HTML elements act like a toggle switch. If voting is mission critical to your system, you cannot rely on client-side prevention alone, hence the server-side checks. Server-side, if you are relying on IP only, that doesn't work always as some users could have dynamic or share IPs. Are you using email and registered users? 3#. Comment Depth: I already answered this question. I pointed you to the code in Dashboard Notes. If you want nested replies/comments, then you need to use a recursive function. If you want to limit output (in your case depth), you will need to use some sort of counter, in this case a count-down counter works well. Both of these are in the code I referred you to in Dashboard Notes. Did you have a look? How did it work for you? What went wrong? Etc...?
  14. Please, no need to double post. You've already started a topic here: I know there are no answers there but I've directed you to some code that can help you implement comment depth. Please let's use your other thread. I'll make a few comments there.
  15. Thanks for sharing your experience! I was on Solus. Please see my thread about that here. I still have it running on a not-so-powerful touch device that came with Win 10. For this touch device, I have subsequently looked around for lighter distros and ended up with Kubuntu and Puppy. I'm yet to replace Solus on the device as I've not been able to make the device boot from the USB! This is off topic but a real puzzler. To install Solus, I booted from a USB stick. Now, to replace it, the computer is refusing to boot from USB! Sigh... I really loved Windows XP. I could go back if they let me :-). I like Windows 7 a lot. Anything above that, meh! I tried Win 10 once and rolled back. I'll hold on as long as I can to Win 7. True, and I have sought help here and elsewhere. What I don't have unfortunately is a lot of time to try out things and hope they work. Sure, Windows has its quirks (duh! :-)), but they are quirks I know how to deal with and have learnt to live with. Solus worked mostly fine (to my delightful surprise) until it didn't. I read all the docs! Some of the best docs I've seen, btw. He/she has done a great job. I'm quite happy with WampServer though, so I don't think I am going back to docker, or anything else for that matter.
  16. Have you asked your questions in the forums to see if you can get help there? I'm not sure what you mean, so I could be off base here. Have you seen Dashboard Notes? I'm using a custom comments render and the comments/replies are indented. If you have a topic, let's take this discussion there.
  17. Hi Karinne, A bit more information perhaps ? ? PW version? Export type (zip or JSON)? How large is the export/import? Have you tried without exporting/importing Multiplier fields?
  18. It does, thanks! An easy finder like page title in 'my language' is what I was after. I'd also want this for page reference fields, pointing to the found pages titles. I'll check the docs. Cheers.
  19. I have a feeling this could (in future) perhaps play nicely with @bernhard's RockFinder?
  20. Hi @bernhard, I've not had a chance to test this yet. Quick question, in multilingual setups, is it language aware? If not, can it be made to be language aware? Many thanks for all the hard work!
  21. Although I don't know what your reasons for using var_dump(), I really recommend that you use the module TracyDebugger instead. It will give you better and cleaner information regarding any ProcessWire objects and their properties.
  22. Cross-posting my Vega Visualisation module (very early WIP) that I mentioned above.
  23. I recently mentioned that I was working (more like messing about quickly :-)) on a Visualisation module based on the awesome chart lib Vega. I haven't touched this module in a while. I only realised today as I was transferring my dev setup to WampServer and testing things out that I'd left this off at a stage where one could view a basic Viz. See the screenshots below. Word of warning: this does not even qualify as pre-alpha in my opinion. It is very early days. It is more of a playground to test ideas. It's also not high in my list of priorities so I don't know when it will be ready... Screenshots Create new viz from list of pre-built visualisations/charts Editing a single visualisation/chart
  24. Success!!! And no, not with Laragon. Laragon I tried all tricks and trips, I shut down antivirus prog, etc, nothing. It was still slow for me and MySQL 5.1 only Devilbox Once I set up SSL, that was the end of being able to log in. For some reason, the TOKEN set on the login page was always different from the one stored server-side that sessionCSRF compared with. Maybe a PHP thing? And so, it was back to Google. I almost bought Mamp Pro but decided to check on an old friend, WAMP, now WampServer. WampServer Wow! A lot has changed since I last used WAMP! It looks sleek and packs a mean punch. It has lots of settings hidden away neatly in its menus. You can change PHP ini settings (stuff like memory, etc) right from within the menu. One is not restricted to one www folder. Each project can have its own folder anywhere on your system. The mysql/data directory can also point to whatever location you want (I know one can do this in Laragon as well). Installing ProcessWire was a breeze as usual. Back- and frontend page load speeds? Using the Blank Profile: 130 - 200ms!!! I haven't tried SSL yet and I am not in a hurry to do this Thanks all!
×
×
  • Create New...