Jump to content

Krlos

Members
  • Posts

    165
  • Joined

  • Last visited

Everything posted by Krlos

  1. I just found this fieldtype, I will look in to that. Thank you.
  2. 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
  3. 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
  4. Further investigation and I think I'm having the same problem. When I add the guest role it works as it shoud, If remove the guest Role the images are not viewable even so the path is correct.
  5. I think I have the same problem. I'm working in simple Intranet with user profiles. I'm using the System User template to add my custom fields. I have like 10 custom fields and 1 image field holding a profile image. I have enabled $config->pagefileSecure = true in my config.php file I have created a new template file called profile.php to use it in the front end for users to see her/his profile information including the profile photo. Processwire has created for every user a folder with a '-' in front of the folder. When I access the profile template in the front end using the superuser I can see my image profile. When I switch to an other user profile not superuser and visit the profile page I don't see the profile image. Inspecting the source code for the page the output for: <?= $user->profile_foto->first()->url; ?> is http://intranetms.cl:8888/site/assets/files/1131/julie-paredes-perfil.jpg Without the '-' in front of the folder name. Still logued in the profile page I copy and paste the JPG path in the Browser address and Chrome start to output gibberish. I'm using ProcessWire 3.0.98 Is this still a bug?
  6. Hello, I'm trying to make this module to work but It seems that my Processwire knowledge is not enough to make it work. I have a user profile with some pdf files that I need to be secured for every user. Only the owner can dowload his/her own files. So, I added the custom field 'profile-contract' to the system user template, so far so good. The secure file module is saving the files outside of the document root. Now I have created a new template in the front end (profile.php) so users can download their files and access other information about their profile. I have been using this: $user->profile_name, $user->birth_date etc to access custom field data from the user template and printed to the profile.php template The question is how can I make a link to download a secured file stored in the user system template?, in this case a custom field named $user->profile_contract in to the profile.php template Thank you.
  7. Hey @adrian, what is that Console window? looks really usefull
  8. You are absolutely right about this, you can build the same or better with PW api, but the views module in Drupal makes so easy for people with little or no technical background to build or modify query of content with no code at all.
  9. IMHO this is the fundamental element in this discussion. In my first discovering of Processwire I did not understand how it really worked, since I came from more trational CMSs. I have always thought that there is a lack of information on how to do "things" that are easy in other CMSs. I know that the power of Processwire comes from the freedom of doing things "your way", but sometimes someone needs just a functionality. In my case I came from Drupal and from time to time I miss a module like Views in Processwire that makes so easy to build any type of queries from simple list to complex building blocks . Maybe we need more documentation on "how to do common things".
  10. @SamC I'm working on a project of this nature, but its an Intranet with profiles and custom fields for storing information about differents kind of user. How did you do it in the end, which approach did you use?
  11. @adrian I never resolve this because it was not a bug. I was pasting some html code inside a Ckeditor field (from another project) that had src img tags with absolute path, so I think when Processwire evaluates the html code in a ckeditor field tries to match the img tag to images uploaded to the image field. Removing the src img path fixed the problem.
  12. Hi, I'm using Formbuilder to build forms in my website, I have different forms to track Google Adwords Conversions but I have like 20 differents forms. I was wondering how do you guys handle conversions in Google Adwords
  13. Hi, I just want to thank to flydev and everyone else who has contributed to this wonderful module. For me, Duplicator It has worked flawlesly to make backups and bring those backups to my local machine to test new functionality. Sincerely a fellow Processwire developer.
  14. Hi, have this php script that does a lookup in an external database. I tryed to insert the script using an iframe , but the query is not validating the input and the script is not working. I tried to paste de code inside a template in processwire but is not working either, I copied the script files to the root folder of the site where the processwire .htacess resides. The script has a call to an external databe and output a pdf file. What can I try to make this work? Thank you in advance.
  15. Thank you guys, as always It's a pleasure to be part of a wonderful community dragan, iank and FrancisChung were right on the spot, the problem was on my .htaccess file. iank Got the solution, My Cpanel was adding those lines to the end of my .htaccess file, as my server uses multiphp and I have other websites that run on different php versions. Thank you again for your priceless help
  16. Hi, I'm just installed this module to try a new way to do my backups, and I have a question: where is stored in Google Drive the backup file?
  17. Hi, I have a weird problem with this site: I have a working pw 3.0.85 installed on a Cpanel VPS, everything is working fine. Now I need to make some changes, so I compressed the files with cpanel compress tool and downloaded to my local mackbookpro mamp server. Here is the weird thing, when I try to visit the home page for this local installation the browser prompts to dowload the index.php file instead of executing. I can log into Processwire admin backend, and everything is working fine, if I browse a page of the site that is not the home page everything is working fine too. So only the home page is not working What could it be? I'm out of ideas. Thank you
  18. Hi, I'm having problems to insert images on a Ckeditor body field. The images are uploaded to a image field and the page is saved. When I do clic in Ckeditor Image button I get: Failed to init module: ProcessPageEditImageSelect - No page specified The requested process does not exist The process returned no content. I'm using the superuser account. Processwire version: 3.0.79 This is the first time I get an error in Processwire... Thank you.
  19. This is why I love Proccesswire community, I have received a lot of useful answers. My needs are very simple, so I'm using this: http://vinceg.github.io/twitter-bootstrap-wizard I'm working in building the repeaters and the questions at this time. Thank you!!
  20. Hi, need to implement a simple quiz form with 10 questions. Yes/No answers. Someone has tried something similar? I had thought to do it with fields, but wich fields? repeaters? I'm not a processwire expert so maybe I'm not seeing something obvious. Thank you.
  21. Hi, I'm having this problem: [06-Nov-2017 16:05:56 America/Santiago] PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /home/maiposalud/devel.maiposalud.cl/wire/core/WireDatabasePDO.php:137 Stack trace: #0 /home/maiposalud/devel.maiposalud.cl/wire/core/ProcessWire.php(371): ProcessWire\WireDatabasePDO::getInstance(Object(ProcessWire\Config)) #1 /home/maiposalud/devel.maiposalud.cl/wire/core/ProcessWire.php(209): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #2 /home/maiposalud/devel.maiposalud.cl/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #3 {main} thrown in /home/maiposalud/devel.maiposalud.cl/wire/core/WireDatabasePDO.php on line 137 Any ideas?
  22. Hi, I'm trying to figure it out how to accomplish this: I have a large list of tabular data with Names, Address, Phones, ID, etc., and I need to present this data for users to search. (about 400 records) I was thinking on creating an ajax live search, but I do not have the knowledge to do it, if someone can direct me on how to approach this that would be great. What I'm missing the most is: - How to query pages (custom fields) in ajax on the front end (Json? how?) - How can I use a pluggin like Jquery Datatable to filter the data OR - There is a Processwire module that I can leverage for this problem. Thanks in advance!!
  23. Hi there, I'm trying to imitate an application built on Microsoft Access, so far I have been able to create most of the functionality, I only lack a part destined to enter records that depend on a parent. I am attaching an image from Microsoft Access, where you can see the functionality that I need to create. I would like to be able to add each of those child records on the same template form for the Parent, then when I list the records of the Parent, I can get all the reports per client and in each of those reports the children records. It would be possible to build this with Processwire? Thank you!
×
×
  • Create New...