Jump to content

stanoliver

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by stanoliver

  1. Thanks a lot @teppoand a Happy New Year to you and the community! I will try out version 1.5.0 of the module soon but I am pretty sure it will rock anyways. To my second point about the missing stylings I also started to think it may is another problem not related to your module at all.
  2. Hi @adrian after reading the docs/the modules forum of Fieldtype Json I was pretty sure that module would be enough and installed without problems. If I am informed right then @Martijn Geerts stepped back from developing his module. I may ask you for help because you mentioned the module is working for you. Problem: Installation of Fieltype Json works fine and the settings page for the module I also found. Most setting options clicked seem to save just fine but if I copy-paste some csv-text-content into the textareafield (csv-field) under settings nothing happens (I can not even see that text was inserted) when I click on save. Can you may help me? Alternative: which would help me too (in case you know a simple solution or some good links😞 I have a standard fieldtype file in my template and uploaded a csv-file. How can I make the content data of the csv-file visible in a different textareafield? In the next step I would like that if I change content in the visible textareafield and save it everything gets synchronised with the original uploaded csv-file in the file field. Idea: 2-way-synchronisation (maybe one way-sync could work too) between an pw file field/a single csv-file and a pw textarea field HAPPY CHRISTMAS!
  3. Hi @virtualgadjothanks for your comment! Yeah, but for a specific task I really would prefer a solution directly right before the "save" button.
  4. @szabeszReally "wow" these beautiful impressions from Hungary!! These impressions enriched my Sunday morning!
  5. @teppoYes, in my specific case I just ask for a way to render the snippet on the front-end only for logged-in users. Thanks! I have already installed the latest version (1.4.0) and all works fine except two little things I could not accomplish yet (maybe because I do not understand or maybe not yet possible): 1. I forgot to mention: "render all, logged in, or non-logged in is great" but it would be awesome to have "logged in user with a specific role", too. 2. Problem: I have placed a snippet (just a little button with simple css and simple javascript) and when logged in as full admin => Button with default admin uikit styles and javascript modal works perfectly fine for me logged in as user => Button misses css styles and javascript modal not working (just some "dead" text visible)
  6. Hi @teppo! How can I show the "view" of a specific snippet only to user which is logged in?
  7. @adrian thanks for your advice! I also read about FieldtypeJson but I was irritated by the warnings "Alpha state", " To be fair, i've already set this module to be deleted 2 times, but somehow it won't delete. Better to go for other options like Kongondo's matrix field or use the Profields. There's big change that there will be Data loss when using this module as it relies heavily upon Javascript." and "Please us Matrix Fieldtype & Inputfield" from @kongondo. Do you guys @adrianand @kongondo think the following statement is right? Inputfield json is for beginners and easy tasks (like I described above) faster/easyier and more comfortable to use than Matrix Fieldtype which is to be fair probably way more powerful?
  8. Hi community! In the admin area we have the green save button (reno default uikit theme). I would like to add another button (or dropdown / or just an text slogan ...) before the save button. Just overwriting some less/css in not possible because the button does not even exist yet. So the question is how can I 1. create the button: I think I have to copy the whole orginal admin.css and include it in admin.less where I can create this new button and its button class. Is there no simplier way? 2. The new created button must be protected from automatic updates of processwire
  9. Hi @adrian, sometimes I have just stored some .csv-data in a normal processwire textarea field per copy-paste Nothing more than for example: id;name;age; 1;Joe;34 2;Jane;32 So far so good. Now I would like to do same thing (copy-paste these 3 lines of code into a textarea field) but this time these 3 lines should be "magicly" transformed into json and saved as json. Could you may implement it as an admin action? If not could may just tell me how I could transform it to json via php or javascript but as an simple standalone script. It's not possible for me to use an online csv-to-json converter. Hopefully my English was good enough Stan Oliver
  10. @cpx3Most shared hosting provider I used in the last 2 years at least provided 256 MB PHP memory limit. If it's your own server may you can try to set it up to 256 or 512 MB. If that does not change anything either some coding went definitely wrong.
  11. Hi @cpx3 these kind of messages I only got a long time ago when I was using hosting providers which sucked in providing enough memory limit in shared hosting but I have never used the backup module.
  12. Hello Community! I found quite a few ways or tools to style the admin or build a dashboard: - the new way with the .less compilation (reno style, rock style) - dashboard modules or tutorials how to build your own - admin on stereoids Vocabulary: With "admin like user" I do not mean a full admin but an user with quite a lot of priviledges ... My problem is that I do want to change the admin template for every (admin like) user in a different way. Or if I would build a bigger dashboard certain functionlity should only be available for a few (admin like) users but not for everyone. I would need different versions of the admin theme or the built dashboards for different admin users To start with a very simple example: Let's say I wanna give one (admin like) user a different background color (with css). Let's say I wanna have an extra button or tab for some (admin like) user which another (admin like) user should not have How can I take advantage of processwire roles in all these examples I mentioned in the beginning?
  13. Hi @teppo thanks for your help! I finally found out what was wrong. My logs showed "Error: Exception: Unrecognized operator: +" and then I realized I had some "example code snippet" which was not fully commented out the right way and therefore caused problems. Before the update processwire was probably ignoring that failure but the newer version may not.
  14. Good morning @teppo! These problems are only appear at the front-end of the site. Also I should have mentioned more explicit that I really think that the problems are somehow related to htacess file(s) wich are causing problems. May you remember that @ryanmentioned 1-2 years ago updating to a new processwire version would require his new htacess file too. Ryan was explicitly mentioing it. At that point the trouble with my update problems started. I think the whole idea according to Ryan's post was (or still is) that if a htacess file is missing the later should get generated automaticly. At that time around two handful if not more htacess files got generated automaticly when I tried to update 1-2 years ago. At that time I could somehow get rid of that htacess files and everything seem to work fine until I wanted to update to a new version again. I did not change anything beside only replacing the wire folder. In case I am not phantasizing with my htacess story I hope you understand my point with the htacess file. Do you may know how I could kick out that mechanism (so that no htacess files get generated automaticly) because it only causes trouble in my installations? I also could find Ryan's post again: https://processwire.com/blog/posts/pw-3.0.135/
  15. Hello community! At the moment I am using pw version 3.0.148 and I have problems to update to newer versions. Problem: After replacing the old wire folder with the new wire folder it seems like parts of css styles are not working anymore. For example: I had two rows with each having 4 pictures side by side before the update After updating I have eight rows with just containing one picture per row The rest seems to work quite ok after updating. I also can see the new version number in the backend. That happend when I tried to update to the latest version number of pw which was released that weekend. The same problem occured in general when I tried to update to a version higher than 3.0.148 in the past too. I also remember that problem occured around the first time when Ryan pointed out the last time updating to a new pw version would also need to set a new .htacess (from that point on I think htacess files were automatically generated when no htacess file was found for security reasons) file in place. At that time I faced the first time layout problems when trying updating pw. PS I do not think it's a caching problem
  16. Hi @rick that reference I also have found but as far as I understand there are just hints how to sanitize normal text/textarea fields. I do not now how that reference could help me with radio boxes or checkboxes. Can anyone provide an full example?
  17. Yes, @rick your example is just fine. A simple form is all I need. I already got to work simple forms with text fields, attachment, "answer" mails ... to work. Just with radio buttons and check boxes I had problems, because I did not know how to sanitize the input through php or the processwire way. If I look at your example I only would still like to know how to sanitize your form with php/the processwire way. Thanks, for your help already.
  18. Hi @rick yes you are right and thanks for your clarification. It's not a big deal for me to use radio buttons or checkboxes in the frontend, especially there are a lot of frameworks for it. Could you just help me to provide some php code which validates a minimal checkbox/radio button form from the serverside with wiremail? I just do not know how to validate from serverside (sanitize the inputs of the form with php).
  19. Could someone my add a sanitized (serverside) form example with radio checkbox. I would be very happy because I have no idea yet how sanitize a radio check box in a form.
  20. Hi @bernhard , thank you for your help! It works all fine now. I gaze my only mistake was that in "file->path" I actually had my real path in my code.
  21. Thanks @bernhard for the link but there is still a problem for me, because: 1. If use the examples of the provided link it works fine for sending an email with $m->... but I do not know how to save the pdf this way and therefore no pdf-file is attached If I use something like $pdf->save() I get a failure which tells me "... not allowed in this context ..." 2. Could may provided just very basic example code how that $pdf->... in your module works together with $m->... you provided in the link above? All I need would be: A pdf created by RockPdf which gets send as an attachment by $m->... (the link you provided ... )
  22. Hi @bernhard "rockpdf" works just fine for my needs but I still have two little problems: 1. I already have a little form with takes a few inputs (text values) which get nicely saved too when the pdf is generated and saved with "rockpdf" on the server sending me an email. I only do not know how to attach the output.pdf before submitting the email form. May you can help? 2. Not so important right know for me but I also realized "$pdf->show() => does not work" like @Ralf mentioned just above does not work for me either on a very minimal example.
  23. @mdaniel You do the right thing by exploring MarkupHTMLPurifier.modul or other modules in detail (good for learning ...). I have normally no time for such (as long I do not really have to understand them for getting a better solution) explorations. I normally turn both filter (html purifier and ACF) just of and have no problems anymore.
  24. @mdaniel If only trusted user allowed to use the editor than I would set html purifier: no may also set acf: no (so that the editor does accept different css frameworks ... )
  25. Hi @mdaniel! Welcome to the forum! I am not 100% sure if I understood you right, but two things come to mind. 1. If you have the CKEDITOR fields in his default settings a lot of code will be filtered out/disappear because there are different security mechanism. You can change that behaviour by making the filter for input not too strict. If I remember right you can find these settings in the "area" where you create new fields (a ckeditor field) or they are settings in the modules area of the ckeditor. Beside the default settings there were at least two options available to avoid too much unwanted filtering. But be aware if you choose the less strict option because the filter mechanism is then more or less inactive and only trusted persons or admins should be allowed to use the editor without the filtering because otherwise unfiltered input of "bad stuff" could be harmfull for your pw-setup. 2. Something looks strange to me in your provided code but maybe I missed something in the "css school": I never saw any < or > between the quotations of css classes What seems strange/wrong to me and you did this several times <div class="<uk-card uk-card-default uk-card-small uk-padding-small" style="display:inline-block"> I hope I could help you!
×
×
  • Create New...