Gravity Forms – Regular URL for File Upload
add_filter( 'gform_secure_file_download_location', '__return_false' );
I do a fair amount of Gravity Forms to posts. Many times those posts have files, mainly images, associated with them that I’d like to have embedded in the post. Gravity Forms did some changes a while back to prevent people from guessing where files are (which is good) but the secure URL change also made my embed patterns break. Throwing the little line above in a plugin makes things work again (although at the risk of people guessing where other files may reside).
I submitted something like this already to NMC but it failed . . . and I did not have a backup copy. They happened to extend the deadline so I’ve resubmitted and I’m sticking a copy here for future reference. It might also be useful just for a handy list of examples. 100 Word Summary NMC’s form counts differently but whatever. Open Source, highly flexible, and running 1 in every 4 sites on the Internet today, yet many still put WordPress in the “cat diary” box.What’s up 2005! In the initiative’s third year, we have 21,000+ sites. See examples of WordPress as a single-use tool and how it can be used to build truly customized courses. All examples are open to the world (no passwords). We’ll explore design patterns (build fast at scale) and powerful plugins (use the community). Mind expansion is the goal. The code’s on GitHub. Warning: 1980s Canadian TV show references will occur. These are all public examples. They’re in real courses in a large, public university. This is work that is accessible and possible for anyone. Additionally, all the plugins and themes we create are on GitHub (here and here). I’ve also done my best to document how it all works on many posts on my site. I want people to be able to do this […]
One of the things I love about my little community of people is the in-process sharingI initially wrote “documentation” and then changed it so I wouldn’t hate myself for making stuff sound harder than it is. of work. Alan is a master of this and he puts in serious work.Even taking pictures – see evidence above In an attempt to give a little bit of energy back I present you a very rough version of the LPCLeast Possible Code SPLOT Story Brancher. To get at the roots of this idea, go read Alan’s initiating post. Alan’s making little web tools that don’t require logins and are focused on doing one small thing well (smallest possible online learning tools). Alan is capable of doing far more coding than I can so I tend to try to compensate by choosing non-programistan paths. This proof of concept took about 10 minutes this morning and probably shows that but it might inspire some deeper thoughts down the road. This is a quick and dirty example of how Gravity Forms would enable you to- create one form that enables the duplication/forking of whatever post it is in w/o requiring user login/account or creating new forms have the option to do some sort of incremental titling trackback to the parent post automatically for some sort of […]
First, go try it out if you want. Submit something. It’ll help it make more sense. I thought this would be a lot easier than I made it. I tried lots of paths and considered spending various amounts of money to make this easier. Please benefit (probably) from my wandering. I try to link in where I learned different things and, more importantly, I tried to emphasize vocabulary that might be useful to you. My goalThe goal elements expand once I get into the details as usually happens. was to- have a GoogleI did look at Leaflet and a few other options . . . but found Google to be the easiest path. Map interface that auto-located the device allow the user to drag the marker to adjust the location plot the resulting WordPress posts on a map To make this work you do need a Google Maps APISee here for more API evangelism key and on the WordPress side you’ll need the Gravity Forms (Costs money but worth it) and Geo Mashup (free) plugins. Gravity Forms will let you create posts via a form and provision form elements via URL parameters. Geo Mashup is the friendliest way I found to display posts on a Google Map based on lat/long parameters associated with the post. Auto Locate I went to […]