Jump to content

Krlos

Members
  • Content Count

    79
  • Joined

  • Last visited

Community Reputation

40 Excellent

About Krlos

  • Rank
    Full Member

Recent Profile Visitors

1,417 profile views
  1. Nice!, I have a PW website that runs rock solid on a managed VPS at Knownhost, unfortunately it is far from the budget for this website I'm tring to set up properly on Webfation.
  2. Yes, unfortunately the owner did not want to change the webhosting. Do you have any recommendation for a not so expensive webhosting that runs Processwire without problems?
  3. I have progressed a little bit: If I set "Only HTTPS" on the template using Processwire backend, the site resolves. But I have to enter manually "https://" otherwise I get an error. If I set RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] on the .htaccess file I get an instant error. Thank you
  4. Hi, I have a website hosted at webfaction and I was trying to activate SSL on this website, but now I'm having ERR_TOO_MANY_REDIRECTS error. They have a custom panel to administer websites and from their support docs I found this code that should be placed in .httaccess, but I don't know how to integrate this with processwire .httacess RewriteEngine On RewriteCond %{HTTP:X-Forwarded-SSL} !on RewriteCond %{REQUEST_URI} !^/(.well-known)(/|$) RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] I have uncomented the lines, everything else is default processwire 3 .httaccess # ----------------------------------------------------------------------------------------------- # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below. # ----------------------------------------------------------------------------------------------- RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] as I have done before and it worked perfect on Cpanel hosting. Any ideas? Thank you!
  5. 1+ for KnownHost VPS. Great support, most tickets are answered in less than 2 minutes. I have a website hosted there running more than one year 100% uptime.
  6. Thank you @BitPoet It worked perfectly!
  7. Thank you! this is working great. But now I have request, how can I order based on day of birth. I have this selector: $result = $users->find("profile_birth_date.month=$mes, sort=profile_birth_date"); but is not sorting. I tried adding .day to the profile_birth_date selector but I got this error: Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column '_sort_profile_birth_date_day.day' in 'order clause' (in /home/xxxx/xxxx/wire/core/PageFinder.php line 413)
  8. I'm using default datetime field. In my users template I have: but in the custom field is stored: I guess if I construct a date like (month-day): $monthAndDay = "11-18" should match 1962-11-18 00:00:00 but using selector (or any other operator): $result = $users->find("birth_date~=monthAndDay"); it just output all users.
  9. I have tried all selector operators, none of them work for me.
  10. Hello, I suspect that this is very easy, but I can not find the solution. I have created a custom field birth_date in my users template. I'm trying to output users that are celabrating her/his birthday today, but I can't find a selector to do the job. I was checking the data stored in the custom field and is like this: 1992-10-23 00:00:00 I'm using this selector: $result = $users->find("birth_date~=today"); when I use that selector, it just output all users.
  11. Thank you @Soma, you were absolutely right. Using get instead of post fixed my problem!
  12. Hi, I have a page with a form for searching field data. After the results are shown I have a link to view details for every result match. Everything is working fine but after I click to view a detail and try to go back to the results page I get ERR_CACHE_MISS on Chrome and Firefox. I have been reading about this issue here The solutions posted is to add this headers to the page: header('Cache-Control: no cache'); How can I add this header to a template? Thank you
  13. Exactly, I know about this. Could be posible to capture the download file and open it in pdf.js for example? Right now I'm using secure file like this: I pass the file ID to a download template where it queries and serve the file. I was experimenting with Fancybox, usign this code: <a data-fancybox data-type="iframe" data-src="download/?=fid" href="javascript:;"> Sample PDF file </a> If I use a hardcoded or a relative pdf url it woks, but as SecureFile has no URL (As far as I know) I'm getting an error not found.
  14. Hello Again! I was able to make this module work... but now my client wants to open the PDF file on a lightbox or something so users don't need to download and open the files everytime. I have tried many things but browers allways open download prompt, there is a way I can alter the behavior? Much appreciated
×
×
  • Create New...