Jump to content

Sergio

Members
  • Posts

    530
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Sergio

  1. Sorry, completely forgot about it! The admin user is sjardim. You can reset the password running on any page: <?php $users->get("sjardim")->setOutputFormatting(false)->set('pass', 'XXXXXX')->save();
  2. To work on PW 3+, you need to change two lines on AmazonS3Cloudfront.module: Line 1 - Add PW namespace: <?php namespace ProcessWire; Line 21 - Add a slash before the class name. This references it on global namespace, not on PW's: use \Aws\S3\S3Client;
  3. Forgot to mention to enable gzip, you can save 74,5% on the page weight: http://checkgzipcompression.com/?url=http%3A%2F%2Fwww.bcal.co.uk%2F
  4. More quick suggestions, now about performance. If the project has still budget, you can quickly improve a lot on this area. // IMAGES - Compress images. Just on the homepage, you have 1.5MB of images being downloaded. This is too much! I did a quick compression and the results are: Logo: from 11.3kb to just 1.25kb. One carrousel image: from 178KB to 86kb. Images are attached. // CSS - You can inline the content of these 2 small css files inside the homepage, to avoid http requests, as they are very small: slideshow.css slidenav.css - And inline this one on contact and career pages as well: form-select.min.css - Minify bcal.css // JAVASCRIPTS - Concatenate all these javascript files into one: uikit.js (or at least minify this one) slideshow-fx.min.js slideset.min.js slideshow.min.js lightbox.min.js - Move jquery to the end of the file - Is add this truly necessary on the homepage? By removing you got less js being loaded. And I suggest change the position of the icons below the sidenav on the other pages. People won’t look at the footer the share something. --- UPDATE: I just notice that I compressed the logo too much. I set it to 4 colours. Should've being 8.
  5. Hi @sivsy, you got a nice clean site. I kinda agree with @szabesz. Maybe on desktop, you can list the projects like you listed the news? One other thing, I missed a active item on the left nav items. It's easy for a user to be a little confused where (s)he is if she only look at the sidenav. Maybe something like this (just a quick example):
  6. I think this will work pretty good, Mike. And it will work for pages that are only published in one language as well.
  7. Mike, thanks a lot for taking the time to reply. Your solution worked! I thought something similar before posting, but decided to give it a shot. For these book pages, your approach is good indeed, as there are few books. But for my next challenge, mapping hundreds of download items to their new pages, my proposed solution would be handy. But for now I'll just create a script to generate the collection list for me. Cheers!
  8. Actually there is, you can setup a different origin, like your server: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowCloudFrontWorks.html
  9. Still on the topic about multilanguage URLs, I have the following use case: It's a Wordpress site with the qTranslate plugin Old url: example.com/books/book-details/25/ New url: example.com/books/title-of-the-book/ (it has a field called wpid that stores the old wordpress id) The jumplink: Source: books/book-details/{id}[/] / Destination: [[template=book, wpid={id}]] works for the default language, the problem is when I try to redirect to the non-default language, Portuguese: Old url: example.com/pt/books/book-details/25/ New url: example.com/pt/books/title-of-the-book/ I got a 404 so I changed the rule to: <|pt/>books/book-details/{id}[/] and it almost works, BUT only redirects to the default language. Is there a way to keep the matched string ('pt/') in the redirect? Or something like: Source: <|pt/>books/book-details/{id}[/] / Destination: [[template=book, wpid={id}, language=$user->language]] Or is there other workaround?
  10. Hi @WinnieB, No I didn't. I decided to use Laravel instead. PW's admin capabilities would've being great, but the main thing that drove my decision is that I couldn't find an easy way to store some of the info needed to generate reports, although I know it's possible with PW. Is just my lack with advanced experience with it yet. There are other reasons, most business related, and I'm also waiting for Laravel Spark to be released, as it will reduce a lot the code I'll need to write to handle payments and user management. Maybe in the future I'll decided to try again and create this kind of advanced quiz/exam application in PW. Maybe turn it into a module.
  11. Notice that it's not guaranteed that other search engines will not index your content. A robot.txt can be ignored, it's not mandatory. The safest way to hide the pages is by unpublished them or restrict access via a form or an Apache password, for instance.
  12. I haven't done it in a project yet, but I've found 2 reliable sources of information: https://sites.google.com/site/webmasterhelpforum/en/faq-internationalisation https://moz.com/learn/seo/international-seo I think you're covered.
  13. Something like the (soon available) Laravel Spark would be awesome: https://www.youtube.com/watch?v=uOU_N8PNOD8
  14. Update: For the curious minds, the site is published at: http://www.ecocarb.com.br/ ( but only pt-br version for now) --- I'm creating a small project for a company owned by a cousin of mine and I'm using it to try new things, most on the front-end side but I decided to try jade with php. What I'm using: gulp to run all tasks – compile all sass and jade files and copy processwire files to the public folder bourbon + neat – nice mixins and grid system with a small footprint (project total css if less than 8kb - gzipped) jade + jade-php – I'm loving jade and with the jade-php npm package I can run ProcessWire code just fine. It's not the perfect world, sometimes I have to mix <?php ?> tags but I'm fine with it for such small project. Here's my basic-page.jade file: The rendered html: And here's the homepage so far (please ignore the translation, it is not done yet): And homepage's code: extends _main block header link(rel='stylesheet', href!='<?php echo $config->urls->templates?>css/home.css') block main-content include partials/_hero.jade .cta section h6 - echo __('O que dizem nossos clientes') include partials/_comments.jade a.button(href!="<?php echo $pages->get('/contact/')->url ?>") - echo __('Teste grátis por 30 dias') br small - echo __('Agende uma apresentação') section.desc h2 - echo $page->summary .services .line-behind-text h6.section-title - $services = $pages->get('/services/')->get("headline|title") - echo $services include partials/_cards.jade
  15. @Pierre-Luc, thanks for your module, but I always thought that redirect to a language automatically isn't good and Google seems to support this: https://support.google.com/webmasters/answer/182192?hl=en What do you guys think?
  16. [news from the trenches] I created a page called "Question Bank" and populated it with 3 questions. I'm showing one per page and storing the answers in the session, along with the user id. I'm using the session values to mark the choice made (if the user goes back to a previous question) and I'll save it in the DB on the end of each quiz attempt. The code is on github (along with a db dump) -> https://github.com/sjardim/ProcessWire-Quiz-App This is the admin so far.
  17. Thank you all for the suggestions, I'll do some more research and create a prototype in the next days and I'll come back here. @mr-fan, I've found another script that seems good (but I rather develop my own because this will be a LTS product)-> http://codecanyon.net/item/digi-online-examination-system-does/8610180 Best regards, Sergio
  18. This is what I've in mind. The purple tables are the pivot ones. To see the relationships you have to click on the double arrow button. You can comment/fork it here: http://www.laravelsd.com/share/hEYbzi Screenshot: https://www.dropbox.com/s/3292k9ppviz0y13/Screenshot%202015-08-21%2023.38.18.png?dl=0 Planned Features Storing of quiz results under each user Previous quiz scores can be viewed on category (Knowledge Area) page Success rate for each category (there will be more can be monitored on a progress page Multiple choice question type Display an optional image alongside the question I think I'll use Laravel for this.
  19. Hello there folks, I'm having trouble visualising how can I create an exam app that will have many exams with 20-200 questions (multiple choice) each. The questions will be organised by 3 categories (knowledge area, process group and level of proficiency). The students will take several tests as a preparation for a real certification exam. I'll have to create reports with the total of correct questions, stats from each category (showing where they need to improve), how long they took etc. The real exam is 4-hour long (200 long questions). The exams will be created by the admin and are the same for all users. There will exames with different levels of difficulty on each category and exams comprising all categories and all levels. We will have something like 1,000 questions on the database to choose. See the screenshot from a desktop system (not my own). My problem is: how can I approach this? When the user take and exam, should I create an instance of the exam page? Will form builder help me on that (I think not)? How can I save the user answers from each question to show the statistics at the end and have a history of exams taken along a year? I need to show how the student is improving along the way. Should I create a page that will work like a pivot table? It will good to now also what questions are most incorrectly answered by all students, so we can improve them if needed. And also be able to receive student's feedback on each question. I know that is a lot to ask, so feel free to ignore. --- I know I can create this app on other frameworks easily enough, but PW will be a handy tool for other features I'm planning but I cannot see how to best approach this. Thanks!
  20. Tom, do you mind sharing the hardware specs you're using? Is your local machine or a server?
  21. Take a look at this module by Adrian -> http://modules.processwire.com/modules/process-get-video-thumbs/ I think you can adapt it to your use case. Also, maybe it is worth to study the Embed.ly API http://embed.ly/
  22. I fully agree. "For a beginner there is just too much freedom to begin with." This is the best and the worse of PW when you are a beginner. That's where the book aims to help. What I think is to write for absolute beginners on ProcessWire, not fully beginners. People that have developed at least one website using Wordpress or other CMS in the past. So they know how to handle at least some basic PHP of course. I'm imagine the possible buyers/readers: 1. Project leaders/managers of small digital agencies that want to improve their speed on creating websites, reducing costs and problems (maybe caused by other CMS performance and security issues). He/she will buy the book (after they knew a little about PW of course here in the forums), read some pages, and give it to the developers and designers so they can learn the basics quick. I was in this situation back in 2008, the agency had a CMS developed internally, a piece of crap, so I decided to get rid of. I made some research and decided to use Wordpress at the time. For us it was perfect, and for many companies it still is, we became a reference on Wordpress. In the small agencies' market, usually there are two types of websites, one that is made to last for long time and needs to be well done and have the smaller cost of maintenance possible, and one that is more common, that is made to last for a only a couple months, because it is part of a campaign that will be off air soon. This is the one that needs to be the cheaper to develop. 2. People like ourselves, that were hooked by PW's web interface, API and so forth, that want to offers their freelance clients something easier to use and that has a better performance than Wordpress, Joomla, Modx etc. and just want to know how to start by reading a book (some people prefer to read a book than see videos or web tutorials) --- The same project leader/manager I said earlier will also need to convince her/his boss to choose ProcessWire over other choices from a market stand point, this will not be as easy. Wordpress marketshare in Brazil is huge and a lot of people don't see a reason to change because they cannot see its problems and that there's something better available. This is now their fault, that's the way it is. Some people still use SharePoint to develop websites... There is a lot of developers who claim to know how to create a website using WP, so from a HR point of view, if the agency need to contract more developers, will easier to find ones that know Wordpress. This is understandable. --- Going further, and a little off topic if I may, I also have a client that asked me some questions and I don't have numbers to answer them emphatically. Questions like: - How many big companies/websites use ProcessWire in the world. How is it compared to WP? - If you die , how long it will take to find a new developer in the market that knows how to continuing working on my website? Will it not be quicker and less expensive to find one that knows Wordpress? - If the main developer (Ryan) dies, what happens to ProcessWire, will it be actively developed? How can you assure that?
  23. @MatthewSchenker, how things are going with the book? Would you consider put it on LeanPub? Even if it's not finished, there you can see how many people are interested and receive feedback. I'm planning to write one book for absolute beginners, in Brazilian Portuguese and maybe in English (if I may be bold to write both at the same time) from a front end developer/designer point of view, so it will not compete directly with yours.
  24. It's pretty easy, just create a new "File" field and assign it to your template (for instance, the Basic Page template). To create a field, go to Settings > Fields on the admin.
×
×
  • Create New...