Chris Whissen

Members
  • Content count

    16
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Chris Whissen

  • Rank
    Jr. Member
  1. Thanks for looking into it @kongondo. I have quite a few modules running, so there could be something in there making a mess of things. Another mystery to solve - at least that one can wait a bit. Appreciate the help and love the module!
  2. Okay, I managed to get it to work, but I'm not sure it's the best and safest way to do it. Ran Tracey Debugger and got "This request was aborted because it appears to be forged." error message. I did some research on that and disabled protectCSRF through config.php ($config->protectCSRF = false;). Now. anonymous uploads work fine. I'm not sure if that's the right way to do it, but I'm also not sure this is the right post to be asking - that might be more a ProcessWire issue than this module.
  3. So, I'm stretching my knowledge here and can't quite figure out an issue. If I'm logged in to PW and go to front-end upload page, everything works fine. If a guest attempts to upload a file, they get an "Internal Server Error." I'm guessing it has something to do with the security, specifically(emphasis added): I'm not sure what I need to be doing for that though. I've tried to figure out on my own, but am not having much luck. Can anyone point me towards how to make this work? (Assuming there's no other obvious reason for the error.) EDIT: Just to narrow possibilities, I created a user with guest permissions. If logged in, uploads without issue. It's only an anonymous user that can't upload. Which is an essential function for this site. Am I overlooking something obvious?
  4. So, thanks again for the ideas. I ended up going a slightly different way. I'm not sure is the most efficient, but it works and it's easy for the user. The relevant pieces of what I'm using(there are more parts to the repeater that aren't relevant here, but are why I used a repeater): <?php foreach($page->threewide as $three) { $idlink = $pages->get("$three->sp_link"); echo "<a href='".$idlink->parent->name."#".$idlink->name."'>";} ?> Since there are multiple template options, I have the page field limited to the children of the services page. I need to learn how to use that filedtype better. So, it's not perfect if they decide to link to multiple subsections. However, it serves their current needs which lets me move forward and figure out a better solution later. Perhaps after I've gotten the hang of hooks and such. Thank you both!
  5. Thank you both I'll give it a try this weekend.
  6. I'm not even sure where to start here. I'm trying to find the best way to do this... Basically, I have a page Services. This page has a number of children which represent sections of the Services page. So, the tree is: Home - Services -- Thing1 -- Another2 -- LastOne3 Services has a template that renders each child page as a separate Div - allowing for flexiblity in layout and easy editing. On the home page, I have several links that relate specifically to Thing1, Another2, and LastOne3. If I was hardcoding those links, I would just do href="services.html#Thing1" to link directly to the proper section. How can I do that in ProcessWire? My first thought is to do a two part selection where they select the parent page (i.e. sevices) and then the child page (i.e. Thing1). I'd then have the childpages use their title as a section id, and then pull the two links in separately. Something like: echo href='{$parentlink}#{$childlink}' (That's simplified, just to get point across) The problem is it requires the user to select two things to get to the link right. Is there a way I can allow the user to just select the child page and still output the jump link? As an additional twist, the links on the home page are part of a repeater if that matters. Using ProcessWire 3.0.42. My PHP and ProcessWire skills are still in early stages of development, so please take that into consideration. Thanks in advance for any ideas or help.
  7. @kongondo I'm an idiot and thank you for your time and help. I reread the module a little closer and realized I need the acceptfiletypes twice - once for Ajax options and once for JFUoptions. I only had it once. Added that in and everything is working fine. Apologies for wasting your time, truly appreciate the help.
  8. Yes. I'm doing it like this: 'allowedNonImageMimeTypes' => array('application/pdf', 'application/postscript', 'application/octet-stream', 'application/x-compressed', 'application/x-zip-compressed'), No problem. I'll have something to you in a moment. I personally created the Zip in Windows and the AI in Illustrator, so they shouldn't be fake.
  9. @kongondo thanks - I'm new to alot of this and just starting to figure it out. These forums and the modules have taught me alot! I don't believe any of those apply - the server is running PHP 5.4+ on Linux.
  10. @kongondo love the module, it's helped me get past a hurdle. One issue I'm encountering is uploading more diverse file types - zip and various Adobe types. Is this something that the module can support? If so, any ideas what I'm doing wrong? I've added allowedNonImageMimeTypes under the ajaxoptions('application/pdf', 'application/postscript', 'application/octet-stream', 'application/x-compressed', 'application/x-zip-compressed') and added the extensions to the acceptfiletypes under jfuoptions. The files show up, I get upload progress, and then I get the message: Empty file upload result Nothing shows up on the server. If I upload JPGs or PDFs - either on their own or at the same time as non-working files - they work just fine. I'm on PW 3.0.42.