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).
So here’s the proof of concept page for those who just want the idea and know how to change things already. It’s a great way to let students quickly and easily build an interactive online comic book story or display their art work. I really like the potential. I’m documenting some process here in hopes of giving people who care how I end up where I end up an idea of the path I traveled. I saw a tweet and ended up at the site below. I liked the way it looked so I noted the reference to the theme at the bottom right. That URL led me to the designer’s homepage but I was either too impatient or too lazy to find the theme there. I backed out and did a search via google for ipseity theme and end up where I want (which is here). However it looked like this when I installed it- which is fine and good but not what I wanted. I liked the clean, white version that had started me on this journey. I’ve now have two options. Option One One, I download the css from the other page and replace it. To do that I go back to the original site. I click view page source (in firefox) I search for cssand find […]
One of the minor hassles of running WordPress Multisite is dealing with the rules about HTML cleansing- mainly the removal of iframe elements. You could install unfiltered MU but the plugin itself warns you that’s end-of-the-world dangerous and the plugin hasn’t been updated in two years. The combination might make one a bit nervous. In this particular case, I have a group who wants to use videos from dotsub.com. Turns out it’s a good site for captioning and other things that make the video more accessible. This group is working on universal design so dotsub makes doubly good sense. WordPress supports a number of sites using oEmbed. That’s the magic that allows you to paste in a YouTube URL and the embed codes are taken care of without you having to do anything. WordPress essentially run off a white list of sites that it accepts off the bat. It turns out that oEmbed lists a bunch of sites that support the API and dotsub.com ended up being one of them.Another option is to view the page source and search for oembed. That means I just have to add dotsub.com to the WordPress install’s whitelist. The ever handy WordPress codex lets me know that I do that using wp_oembed_add_provider and further down on that page you’ll see that lives wp-includes/media.php. I […]
flickr photo shared by duncan under a Creative Commons ( BY-NC ) license It’s particularly helpful in a rather specific situation- i.e. one where you’re doing a mother blog and want to see all the student comments (like Allen did with the #thoughtvectors reader) but since we have students using their blogs for more than one class things get messy fast. Enter me asking smarter people on Twitter, almost going to the forsaken land of Yahoo Pipes,I like Yahoo Pipes but one has to assume Yahoo will kill it dead very soon . . . although I’ve been hearing that for several years. and being saved by Google liking Mark more than me. So anyway, here’s the structure to get the comments for specific categories/tags. by name – http://bionicteaching.com/comments/feed/?category_name=apple by category ID – http://bionicteaching.com/comments/feed/?cat=18 by tag name – http://bionicteaching.com/comments/feed/?tag=tutorial-2 This is one of those things that barely rates a post but given I didn’t know how to do it maybe it’ll help some other wanderer and for people who want this it’ll be really useful. Thanks to Mark, Alan, and Martin for helping me out.