Jump to content

LimeWub

Members
  • Posts

    33
  • Joined

  • Last visited

Profile Information

  • Location
    Glasgow, United Kingdom

Recent Profile Visitors

1,112 profile views

LimeWub's Achievements

Jr. Member

Jr. Member (3/6)

13

Reputation

  1. Haven't used the module before but I recommend adding $config->debug = true; to your config.php, during development, to get more detailed errors, so that you can debug this easier.
  2. @LostKobrakai Out of curiosity, and I have never used formbuilder, but wouldn't something similar to this be possible? $a = $people_who_have_signed_up->findOne("email_field=email_adrress_posted"); if($a->count){ //you have submitted this form before. } And if so, wouldn't that be decently efficient as it's a 'findOne'?
  3. Maybe a silly question, but is php properly installed on your server?
  4. @MarcU Your $item->thumbnail is probably not set, and thus a non-object (so you can't get its url without the Notice). Are you checking if your have an $item->thumbnail before trying to access it's property?
  5. @Roych Not sure if I'm right here, but have you tried something like: $Events = $pages->get('/Events/')->Events_repeat->find('limit=3,sort=-created')->getArray(); More info on sorting and limiting: https://processwire.com/api/selectors/#sort https://processwire.com/api/selectors/#limit
  6. Thanks so much for the responses @adrian @fbg13 and @gebeer ! You are all fantastic and so helpful! Looking into the recommended options now
  7. @fbg13 Yes! Having the submission under the users on the tree makes quite a bit of sense as I wont have to be storing a UserID! Thanks Just wondering though, shouldn't the users be created the same way admin users are created, just with a different usergroup (instead of as "pages" ?) -to allow for things like password reset etc?
  8. Just bumping as I did a bit more thinking about this today. Basically I think I am almost there, but as I don't want to reinvent the wheel, I'll just share my ideas in case there is functionality that does more of what I want to achieve out of the box instead. Form is built (by the developers) Users login Not sure exactly how to do but have seen multiple threads about this on this forum so should be ok to do. Potentially useful links from my search: https://bitbucket.org/pwFoo/frontenduser/wiki/Documentation https://processwire.com/api/user-access/permissions/ https://processwire.com/talk/topic/3706-how-to-blockredirect-one-user-role-away-from-admin-pages/ https://processwire.com/talk/topic/107-custom-login/ https://processwire.com/talk/topic/12896-frontend-user-login-and-access-levels/ https://processwire.com/talk/topic/2937-creating-a-front-end-admin/ Users edit multi form Angular 2 has been recommended to do this. Although might be overkill and should be able to do with pure JS/ajax (?) opinions? Form autosaves/saves per page Same as above... opinions? Secure Uploads included on the form, need to be visible only for the user who uploaded and site admin Never done this before either but was thinking of using Wanze's Secure Files module http://modules.processwire.com/modules/fieldtype-secure-file/ I'd need to create a front end upload field too, so could be a bit tricky? ideas? On save, form visible in the user's dashboard and submission's admin Should be straightforward enough. Form data would be saved in json form but I would be able to render that. Submission's admin an extension of the site admin for the admin user to be able to view submissions. An extra 'status' field in the only thing editable in the submission's admin. Maybe possible via Admin Custom Pages Module, although not 100% sure. On final submit, form gets posted to salesforce Data is sent to salesforce api and awaits an ok response if all ok, confirmation emails are sent. Not sure which module to use for that, or maybe just raw php but assuming should be very easy (?) Basically, if there's some easier way to do what I'm thinking or have any better ideas, please let me know (rough chart of my way of thinking included) Feel free to ask me to clarify if I don't make sense ^^
  9. Hey! This is more of a brainstorming phase question (sorry if it's a bit generic). We are currently tasked to make a website, whose main purpose is users logging in and then submitting a couple of multiple-page forms. An outline of the expected functionality would be something like this: User registers / logs in So user registration/dashboard will need to be possible. User begins stepped form (logged in users only) User can save progress and continue later from where they left off Means part of the form should be posted every time they go to the next step (or maybe via ajax every X seconds) WITHOUT sending a final confirmation email. Then when final 'Finish' button is clicked it should THEN email both admin user and posting user. Documents will be uploaded during the form. We want only the site admin and the submitter to be able to view these. Users shouldn't be able to see each other's uploads. User eventually submits form and then can view it (only their submission, not others) Submission available, to view only, in the user's dashboard. Users shouldn't be able to see each other's submissions. Form needs to be able to send data to Salesforce. On form final submit, data gets sent to salesforce. User submitting gets emailed. Admin User gets emailed of submission. Basically, asking for ideas for how to achieve this, if possible. Have been looking into modules and the FormBuilder module looks quite nice but might need quite a bit of extending to achieve the multi-page, progress saving functionality (?) @ryan Do you think using/extending this module would work for the above situation? Also, any ideas for how to limit front end users from seeing other people's content in processwire? Anyone who has any ideas for how to handle this, please throw them this way Thanks!
  10. Hey guys, Just a quick question this time. When a template is cloned most of its fields get correctly cloned with their notes and descriptions properly altered etc. However, their widths and other visibility settings don't clone properly (they seem to get entirely ignored). Is there a setting/page somewhere that lets me enable cloning for these? Or maybe a small module someone has already written? Would be very convenient if such a thing exists Thanks!
  11. Great module @ryan Our client wants support for another video site too, though. So I'm just trying to properly create/extend a module/use hooks for the first time, so as to add an extra embed function. Supposing I wanted to create support for an additional platform, where would I hook this into (I don't see any hookable functions other than install and uninstall in it)? Is this module extendable?
  12. Thanks for the responses guys! I got it! (not sure how I had missed it earlier...) Anyway, I've attached the settings I'm using for the block. Very similar to what @louisstephens suggested Thanks so much for pointing me to the right direction!
  13. Hey, I am using a block-like structure for a website I'm building, in which a page can be created using many building block "pages". For example - Page - slideshow block ("Page") - content block ("Page") On render, Page gets all it's children blocks and renders them. Everything with this approach works great, however, I have one issue... Issue: Block templates have a template file (to render with). This makes them accessible by url. For example: website.com/page/slideshow-block is a (very ugly) page on the site atm. Question: Is there any way to block certain templates from being accessed by their url? Seems like something that should be feasible but I just can't find the setting/way to do it... Thanks
×
×
  • Create New...