Jump to content

tinacious

Members
  • Posts

    82
  • Joined

  • Last visited

Everything posted by tinacious

  1. Hey teppo, thanks for the reply, this is the sort of thing I'm looking for. The "only grants edit access if this page was created by current user" is key. Any idea how to do this? You mention a module that hooks to page::editable. ProcessWire core already checks edit access on a per-template basis, would I need to address this when hooking into page::editable? Also, is this module publicly available? I would love to know how to go about this. Would you recommend creating a module, using the code Ryan wrote that you linked to, except altering the $page->name to be $page->createdUser? I haven't created modules yet so I'm wondering what the best way to go about this would be. Thanks!
  2. Hi all, I am creating a site that will have multiple users in ProcessWire and I want to be able to limit the ability to edit pages so users can only edit the pages that they themselves created. I noticed the default functionality allows you to assign roles yet anyone with this role appears to be able to edit whatever pages and templates have access to that role. Thank you for your help!
  3. Manfred, the slight shifting looks like it shows up because of the active state indicator. Good eye. Oops on forgetting alt tags for social media icons. I'll address these as well as other things you passed through the validator... I'm not sure what you're suggesting with the image on the biography page—I intended to have the text wrap around the image, not show up in columns, so as to avoid a large area of unused white space. As for your suggestion for using icons as background images, I chose to use images as elements instead of using them as background images because background images show up pixelated on retina displays (iPhone, iPad, retina MacBooks). I initially wanted to use icon fonts but found that the ones I chose were not compatible with older versions of IE. In an effort to keep up with the times and support retina display all the while still thinking about Accessibility and supporting older versions of IE, I opted for using images as elements instead of background images. If I went with your proposed solutions I'd have one too many fuzzy images for mobile users. No thanks! Thanks, I'm not sure how long it took. There was some iteration to get the colours to work with the photography but eventually these were the colours we went with.
  4. Hey everyone. I've created another screencast for a ProcessWire site I developed. Another you ask? My first one was of my own site, here. I developed this website for a Toronto-based opera singer from Norway. Nils needed a website where clients could go to learn about him, listen to his music, watch his videos, look at pictures and see where he'll be performing. The website features custom Responsive Design and a separate mobile image gallery for phones and devices. Read about the project and see some screenshots here, visit the website here, or view the . The admin theme used is a modified version of an older version of the Teflon admin theme.
  5. Since I asked, I'd love to be a part of making it. I'll contact you via private message.
  6. I was wondering if maybe the ProcessWire site could have a directory of contractors that work in ProcessWire kind of like how the ModX site has. I think it would be a great way to make connections and spread the word about ProcessWire.
  7. Thanks! I didn't realize ProcessWire could do that! That's great!
  8. Thanks Nik, using a break within the foreach loop worked (without the $firstUpcomingEvent line). I used this code: <?php $today = mktime(0,0,0,date("m"),date("d"),date("Y")); $events = $pages->find("template=calendar-event, sort=calendar_event"); foreach($events as $event) { $date = $event->getUnformatted('calendar_event'); if($date > $today) { echo $event->render(); break; } } ?> I did not try your other suggestion because I tried your first one and it worked, but it does look like a more efficient, less bloated way to accomplish the same task. Thanks for your help!
  9. I haven't tried your suggestion but wouldn't it get the first event based on sorting order (ascending)? I want to get that but using the condition that the date is no earlier than today, i.e. "get events sorted by date in ascending order, from that get the first event but only if the date hasn't past yet." I want to get the soonest upcoming event.
  10. Hi everyone, thanks in advance for your help. I have an Event set up using a datetime field. I'm trying to grab the earliest event that has not yet passed, e.g. soonest upcoming event. This is what I have so far. <?php $today = mktime(0,0,0,date("m"),date("d"),date("Y")); $events = $pages->find("template=calendar-event, sort=calendar_event"); foreach($events as $event) { $date = $event->getUnformatted('calendar_event'); if($date > $today) { echo $event->first()->render(); } } ?> The first() part is throwing an error but I put it here so you can see what I'm trying to do. What would be the best way to go about doing this? Thanks for your help.
  11. Thanks Ryan, both of these options are great. Thanks!
  12. How do I grab the admin user's email address? Thanks!
  13. I cleared my cache before posting to see if that was it (is that the same as a hard refresh? lol) Anyhow, I just checked now and the top right admin bar area works again. Yay!
  14. I'll attach a screenshot. The green arrow points to the area in question. There is a down arrow beside my username that looks like if I hover or click I should see more options. I feel like this was the functionality before. I was able to easily get to Content I Follow and my notifications I think from this area. There is no longer any functionality when clicking/hovering (can't remember which it was) in that area. Finding the Content I Follow is less intuitive now because it is not as easily accessible.
  15. Nice work, it looks great! One thing: I miss the way the admin section in the top right worked, with either clicking or hovering to see notifications and see content I follow, and all those other things up top. It's no longer as intuitive as it used to be to see the content I follow. I'm using Chrome. Actually, I've been clicking around and can't find the Content I Follow section anymore... Am I just missing something? Was also going to note the padding but you moved really fast with that one! It looks amazing! Nice work. I love the new site design.
  16. Yes, please do! I'm flattered that it's the best you've seen. Thanks! Please share once you do. Thanks, Pete! Agreed! I think even though ProcessWire is easy for us, it still seems daunting for users. Having a library of videos to refer clients to sounds like a great idea! That was why I created it. I wanted to show clients how easily they could add content to their website.
  17. I'm a Toronto-based web designer and developer. Tinacious Design is my ProcessWire-powered website and it includes my web design and development portfolio and information about my services. See the website here: TinaciousDesign.com The back-end uses a modified version of the Moderna admin theme. I also posted a video on Vimeo showing the behind-the-scenes process of adding a new portfolio item.
  18. Thanks Ryan for this information. The ImageSizer thing sounds great. I will do this for images and have users later email me non-image files normally. Knowing that there is a solution for working with data attributes with the Form Builder, this will definitely be top of my list next time around. You seem to have taken lots of security issues into account. For form uploads and file handling, Form Builder seems like a great options for future projects. For this one, I will take the current path and use your ImageSizer recommendations. Thanks.
  19. I will check the machine for this project when I'm in later this week to see what the memory limit. My home machine is at 128 but I've adjusted it since its default, which I can't remember off-hand. Both my home machine and the machine for this project use MAMP. I will check the limits for the other one later this week and keep you posted. Thanks.
  20. Ryan, thanks for that info on security. Using Diogo's example, would it be safer to get users to upload a file and have the download link available on the page created as opposed to emailing the file? I would like to use the ProcessWire file upload functionality to have users upload a file (and limit the file format). I'm just wondering how to handle that and pass it through ProcessWire and have it post to the new page that is created. In the email that sends I was thinking of just supplying basic information and a link to the new transaction page. That would avoid the need (and security issues) with emailing a file. Assuming I have a file field with the name and id of snapshot_file, I'm guessing I would create a file field and limit its types and then do something like: $snapshot = $input->post->snapshot_file; // and in the new page creation section $tr->snapshot_field = $snapshot; I'm just wondering the specifics of passing a file through ProcessWire into a field, e.g. file sanitizer, etc. The Form Builder looks like a great option. It sounds like you've already thought of everything for it. As someone who loves to have control over my markup and CSS, I was avoiding this option because of the need to use a jQuery UI theme and the extra work required to workaround the way it outputs the HTML, assuming that it renders the form similar to FormTemplateProcessor in that it outputs the HTML in an unordered list. One of the plus sides to this is there are lots of classes to work with in the CSS! For this project I'd like to continue on this path but as Form Builder is a quick way to make forms, I can definitely see myself choosing it for quicker development in the future, especially for larger forms. For this form I needed to add some data attributes for use with jQuery. As a somewhat off-topic question related to Form Builder, is the ability to add attributes (specifically data attributes) to inputs an option with the Form Builder?
×
×
  • Create New...