Krlos

Members
  • Content Count

    75
  • Joined

  • Last visited

Community Reputation

40 Excellent

About Krlos

  • Rank
    Full Member

Recent Profile Visitors

928 profile views
  1. Krlos

    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.
  2. Krlos

    Thank you @BitPoet It worked perfectly!
  3. Krlos

    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)
  4. Krlos

    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.
  5. Krlos

    I have tried all selector operators, none of them work for me.
  6. Krlos

    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.
  7. Thank you @Soma, you were absolutely right. Using get instead of post fixed my problem!
  8. 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
  9. Krlos

    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.
  10. Krlos

    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
  11. Thank you, I will do that.
  12. No, the profile template is not access managed is by default .
  13. I just found this fieldtype, I will look in to that. Thank you.
  14. Hello, I'm trying to build a simple Intranet system but I have been stumbling due to my lack of knowledge of Processwire. I need a very basic functionality, I don't need users to access backend or edit pages or upload content. I have built everything that is content related using pages, custom fields etc, everything is working fine as Processwire is awesome in this regard. This is what I'm missing: I have la 100 users that will read the content of this Intranet, send forms and download files. I have created 10 custom fields in the system template to hold information (Name, Last Name, Date of Birth, Phone, Cellphone etc), but I also need to add a Profile Photo, and 3 fields to hold a PDF file in each field (Contract, curriculum, and some other internal PDF). Here are my problem: I need this 4 fields (PDF and Profile Image) to be secured only accesed by 2 roles (user himself and other more privileged user) and nobody else from outside world. I've set $config->pagefileSecure = true in the config.php but I'm not sure if I don't understand how to use this or I'm doing it wrong. As I only need to show the data I have created a front end page called my-profile, in this page I present the currently logged-in user his/her information including Photo profile and the 3 PDFs. This is where I'm lost: I have give view access to the custom field profile_image only to Employee (Trabajador in spanish) role According to how I think it works... when I activated $config->pagefileSecure = true I have restricted access to this custom field only to Employee role, but if I copy the full URL and pasted in another computer I can direct access the photo profile. What I'm doing wrong?, should I to access manage the template my-profile where I'm displaying this image instead of the profile_image field? I'm planing to do the same with the PDF files but now I'm not sure if I can make this to work I would appreciate some help
  15. Hello, I'm trying to create a front end search from custom fields stored in the user system template. For example I've created a custom field "last_name", what selector can I use to find all the users with "smith" last name in my users table? and how how to combine search terms?, for example to match a search for last name "smith" that have a status of married (married also a custom field in the user template) Thank you