Jump to content

stanoliver

Members
  • Posts

    36
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

stanoliver's Achievements

Jr. Member

Jr. Member (3/6)

2

Reputation

  1. 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/
  2. 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
  3. 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?
  4. 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.
  5. 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).
  6. 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.
  7. 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.
  8. 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 ... )
  9. 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.
  10. @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.
  11. @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 ... )
  12. 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!
  13. @dragan Your question made sense I am sorry for confusement. Actually the real templates are like: - templatehome.php - templatebasicpage.php The templates "templatetoparea.php" and "templatefooterarea.php" are included/are partials. The template "mainarea.pp" made no sense at all. Sorry for confusing you. Thanks for your help so far I will try out your guys hints.
  14. @draganWell, I did not say that php is worthless because is one of the most used programming languages out there and it runs in a simple shared host enviroment. Have a look at the elegance of languages like elixir, julia, ruby or even pyton then you will know why I consider php a mess. Php is the same mess as javascript even when both languages are used heavily. If python, julia or elixir would run in simple shared host enviroments for a 3-4 Euros a month then there would be no need for php anymore.
  15. Hi! I tried to implement a simple site search like in the regular site profile by Ryan. http://demo.processwire.com/regular/ I checked out the code on github but I could not make it work for my site. Probably because Ryan uses some advanced output strategy and uikit specific stuff which I don't use or understand. For my site I just use: - 1 template (name: templatetoparea.php) for the toparea of my site - 1 template (name: templatemainare.php) for the main content of my site - 1 template (name: templatefooterarea.php) for the footerarea of my site. Also I have prepared two empty templates: - 1 template (name: templatesearch.php) for the search itself - 1 template (name: templatelistsearch.php) for listing the search results May somebody could let me know how to implement a very basic site search like in the regular site profile without using any module or complicated output strategies. Two things would be a must have: - The search should work with standard repeaters (where most of my content lives) - The search results/hits should be listed and the search word(s) should have a yellow colored background (inline css is fine)
×
×
  • Create New...