-
Posts
1,554 -
Joined
-
Last visited
-
Days Won
48
Everything posted by gebeer
-
this request was aborted because it appears to be forged
gebeer replied to joshuag's topic in General Support
My issue was related to wrong apache user/group in my vagrant box. After changing those I can now login. -
I'm still not sure exactly which way to go with PDF creation. There is also a client side JS library: https://github.com/MrRio/jsPDF We'll have to check this out more thoroughly. Maybe it will make things like floating images possible?
-
Sorry for crossposting from there. I have the same problem on admin login on my vagrant dev box. I went through all related posts here in the forum but couldn't find a solution. Here's what I tried: First thing I grabbed latest dev branch and updated /wire and index.php. I checked permissions for /assets folder and content as well as config.php. All set to 777 just to make sure, I recreated cache, logs, sessions inside assets and reapplied permissions I tried setting $config->sessionChallenge = false; I tried adding $config->protectCSRF = false; (here the login screen just reloads without showing the message) I'm not using blank profile Installed a brandnew dev version -> same problem Turning on debugging, I get: Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/pwfoundation5/site/assets/sessions) in Unknown on line 0 A 0 byte session file gets created. So sessions folder is obviously writable. jan reported the same here. But in my case there's ample space on the dev machine and I can manually create files with content from command line inside the session folder. Now I'm really lost and don't know what else to try.
-
git push ignores those dirs because they are listed in .gitignore Just came across this post trying to solve the same issue...
-
@benbyf nice website you have there. I particularly like the way you present your works. Elegant animation on the buttons and the filter effect is way cool.
-
This is great and very useful. Thanks a lot Can! May have spotted an error. In line 33 you define the HTML table as $pdfOutput. And the in line 71 you go $mpdf->WriteHTML($table); I think it should read $mpdf->WriteHTML($pdfOutput); I will most likely put this to use. Only waiting for the customer to finally confirm that they want this feature. I will add the cart logic as discussed in the other thread and publish my code here. Will take another month more or so. Cheers Gerhard
-
Hello Can, thanks a lot for your input. I will give this a shot and let you know how it works out. Vielen Dank! Gerhard
-
Thanks Can for your ideas. After browsing through available modules, I think I'm going to use a modified version of Apeisa's cart module https://github.com/apeisa/Shop-for-ProcessWire/blob/master/ShoppingCart.module to add pages to a cart. Do you have any idea how to hook into the pages2pdf module on save/update of pages in the admin? I found this post https://processwire.com/talk/topic/2331-doing-additional-logic-after-saving-a-new-page/ Not sure though if that goes in the right direction and how to hook into pdf creation from there. Cheers Gerhard
-
Hello and thank you for this module! I'm planning to use it on a client's side, but with some extended features: Users can add pages to some type of "shopping cart". All pages in the cart are then merged into a pdf that is offered for download. I am not talking about a webshop here, just the cart functionality. There is an extension for Joomla that does exactly that: http://netamity.com/extensions/contented-pdf I'm currently researching possibilities to build this with PW as I'm switching more and more over to PW from Joomla. So it would be great if you could give me any pointers on how to achieve the pdf cart thing in PW. Another idea is to create the PDFs for every page on save from admin. Then have the cart functionality which collects the already created pages and merges them into one downloadable pdf file. This would be less workload for the server (only merging existing files, no creation on the fly). Can we hook into your module from the admin on creating/saving a page? Cheers Gerhard
-
this request was aborted because it appears to be forged
gebeer replied to joshuag's topic in General Support
I'm experiencing this problem on a vagrant box with nfs mapped www folder. Changing permissions of site/assets recursively and config.php to 777 doesn't help. I checked sessions folder. a 0 byte session file gets created. But the vagrant box has plenty of space available. I checked out brandnew dev branch, installed it and get the error on login to admin. All other PW sites on that vagrant box have the same problem. They used to work until recently. I'm not aware of any changes to the box that could have led to this behaviour. Any pointers to a solution would be much appreciated. -
Hi Larry, I have started a new thread about Yeoman genarator for PW.
-
Hi all, today I stumbled upon yeoman and went searching for a PW generator. Larry Botha mentioned in a side not in his thread about MVC template approach that he has put a yeoman generator for PW together. I test installed it and it is working great. Pretty fascinating how quick we can setup a PW project with yeoman. This definitely can be a great timesaver. Larry's generator sets up a pretty opinionated PW install with his MVC structured fixate template and KSS etc. It would be great if we could have an unopinionated version that gives us a clean PW install. We could add options to the generator for installing a choice of boilerplate templates like the blank template, Foundation, Bootstrap, Blog etc. Just wanted to get your opinion on this. If any of you are interested, we could pull something together. Cheers Gerhard
-
Hi Larry, thanks for the quick reply. I just test installed it on my dev box and am browsing through the structure. Indeed, this is pretty opinionated. So I'm not sure if I would want to work with it (no offense intended). It would be great if we could pull together a more general yeoman generator. I#ll start a new thread on that so we can get some feedback from the community.
-
Hello Larry, this is great. Thank you for putting the Yeoman genarator together. Would you mind elaborating a little more on this, maybe in a new Yeoman generator thread? I think this can drastically improve our workflow with PW. Cheers Gerhard
-
Thanks for pointing me to these options. I use these already and tried many other kinds of similar services. But none of them are like the real thing. I also like http://www.responsinator.com/. The name is just too cool. Especially when it comes to iOS-Safari specific bugs, Chrome device emulation doesn't reproduce them, like this one. When using device detection scripts, Chrome emulator doesn't return the correct user agent strings, see for example here I do test things with Chrome Dev tools but always on the real device, too. This seems the only way to make sure it is really looking as expected. Too bad, there is no real emulation for iPAd/iPhone available on Linux/Windows. Cheers Gerhard
- 11 replies
-
- 2
-
-
Thanks again. I see your point but don't have iPad available for testing right now. Will have a look at that next week. Cheers Gerhard
- 11 replies
-
Thanks for that. I'll give it a try. It resizes for screens 1024x768 (IPad), but not optimized for lower than that. Guess thats why the viewport meta tag is in there. Cheers Gerhard
- 11 replies
-
Hello totoff, thank you for taking a look at that site and taking your time to comment. I agree with what you are saying. But the design, images and structure of the site all came from the agency mentioned. I'm merely the guy who does the programming stuff. So, unfortunately, I have no influence on the contents of the site. If it was me, I would have placed "Im Notfall" under "Behandlungszeiten". Different people, different logic, it seems. If people ever read the welcome text on the homepage, I think they can associate the dentists name with the image. And she really is looking like a dentist, isn't she?
- 11 replies
-
- 1
-
-
Hi there, I just saw totoff's new doctor's site and thought, I add my dentist site here: http://zahnarztpraxis-wunschik.de/ Credits for design and concept go to http://www.gruenklee.de/grkl/ They did a great job on the design and photography. This is my first PW project where I learned my ways around. It is running on v2.3. I used the default site and married it with H5BP and added a sass framework for the styling part that I used in good old Joomla days. From the PW side of things, this wasn't a great challenge thanks to this great forum. I was very happy about the Gmaps field. Only had to tweak it a little to display the info bubble. And FormBuilder. Didn't want to spend too much time on the form coding in a new environment. Tricky part here was to get the datepicker to display in German. There are some Animation features. The three info boxes at the top are slidable. And there state (closed/open) is remebered across the site. That was tricky, too because I had never worked wit jQuery cookies before. Gave me some headache but finally worked out fine. There are also some image slideshow features in the header on the "Praxis&Philosophie" page and on the start page. I used cycle2 jQuery plugin which is absolutely great. And some slide-in effects on the team page. All in all I learned really a lot from setting this up. It gave me a good base to explore PW further and work on more challenging projects with even more Animations AJAX etc. that shall be presented here in the near future.
- 11 replies
-
- 10
-
-
That's what I actually did before. But then I wanted to get rid off the extra periods and single quotes to make the code shorter and more readable. I have this code and it is working well: note that $image->url is not in curly braces. This seems to prove your assumption wrong (no offense intended). Definitely
-
What confused me in connection with curly brackets is the different behaviour when using single or double quotes. Starting with double quotes, e.g. $carouselId = 10; $carouselMarkup = "<div id='carousel-{$carouselId}'>" Result markup <div id="carousel-10"> BUT, starting with single quotes $carouselMarkup = '<div id="carousel-{$carouselId}">' Result markup <div id="carousel-{$carouselId}"> I just spent an hour until I realised that starting with double quotes is important when using variables inside a string (no matter if curly brackets or not).
-
Thanks to Soma's teaching, I got this solved very quickly. And here's the code of my Bootstrap 3 carousel render function as gist. $carouselId = $images->get('page').$images->get('field')->id; is doing exactly what I wanted to achieve.
-
@Soma thank you very much for taking your time to post this very informative lesson on how to do things in PW! Obviously, I'm still pretty new to PW and a self-taught PHP fiddler who is just emerging from the rookie stage. From this forum, I've already gained a lot of new insights. Love PW
-
A different way of using templates / delegate approach
gebeer replied to Soma's topic in API & Templates
Hello Horst, thank you for that link. Very helpful, indeed. Actually, I found the solution to my problem through a link in that post to Ryan's post here. I can pass my own variable in the options array of $page->render(). On the page that gets rendered I check for the variable. If it is there, I don't include main.php. Love PW