If you have ever tried to upload large file to wordpress and got the HTTP error when using the the multi-file uploader, Or when using the browser’s built-in file uploader and got a ERR_CONNECTION_RESET error message, you can solve the problem with a plugin. This tutorial requires that you have FTP access to the wordpress installation.
This is more of a quick fix than a solution. But it will get the problem out of the way for those single large files one needs to be uploaded.
"The heart of a CMS is the ability to upload and insert content, WordPress does a fantastic job at this, unfortunately, some web hosts have limited servers, or users simply do not have the ability to upload large files through their web browser. Add From Server is designed to help ease this pain, You can upload a bunch of files via FTP (Or your favourite transmission method) and simply import those files from the webserver directly into WordPress."
2. Upload your large file via FTP to your Wordpress upload folder. If you haven’t changed this it’s located in wp-content/uploads.
3. Now go to Media->Add from server and browse to the path of the file you uploaded.
Media add from server
4. Click on the checkbox of the file and click import.
I finally reached that point where I was satisfied with the development of Honkbark Studios new website. So i released it last week. I wanted a site that was playful with a lot of colors but also had some features that will lead the visitor to install Friendsheep or any other game that i will release after.
A few years ago when I released a new Wordpress-site I posted a list of different plugins to add after a wordpress install (It’s written i Swedish so you english speaking people won’t have to read the horrorful piece). It was a really bad idea to do that, because when i read it now i shake my head and think “I would never install these plugins today”… But I am a man of many talents, and one of them is to learn from my mistakes… so this time i’ll do the same mistake but i’ll fix it by using the duct tape equivalent for the written word and advertising; the asterisk. It allows you to write anything you want and bail you out of anything at all at the end of the post, so you don’t have to stand by your words. Great huh?! :)
Four plugins to add after a wordpress installation *
WP Code Highlight.js This plugin makes code pretty readable using highlight.js. Just put your code inside a <pre> and <code> tag and the plugin fixes the rest.
WP Smush Smush all the unnecesarry shit of the pictures you upload to your Wordpress installation. And it does it automatically after upload. Saving space and making your images load faster.
WP Super Cache This plugin caches your site and saves static html files which it serves instead of going through the whole Wordpress lifecycle to get the markup.
Yoast SEO Helps with on-page SEO. Also tells you how to write your blogpost to get the best possible rankings for specific focus keywords.
* = If this post is more than a day old i probably can’t stand by these plugin suggestions.
To setup an Apache Cordova project you need NPM. When you’ve done that you open a terminal.
1. Installing Cordova
2. Create a project
When this is done it’s time to create a project. This is done with the create command. Run the following line but replace CordovaAndGoogleMaps with the name of your project.
3. Add platform
Next it’s time to add platform. At the time when this is being written you can choose from these available platforms: amazon-fireos, android, blackberry10, browser, firefoxos, ios, osx, webos
Lets go for the ios platform, but first go in to the directory of your new project
4. Running the app
This will start the iOS simulator and fire up your app, looking like this:
Disabling Sitecore search index update during package install will speed up the installation, making it noticable quicker for large packages. We found a good blog post about this by Alex Shyba. During the implementation of that solution we found an enhancement to do.
Instead of enabling the indexing again after the user clicks “close” in the installation wizard this tutorial will re-enable it directly after the installation is finished (before the user clicks close). This will avoid having the indexing disabled if you open another window or browse away from the sitecore gui directly after installing and not clicking close.
This code is tested in Sitecore 8.
1. Custom packager class
Add a new class that will handle enable and disable indexing and make it look like this (code borrowed from Alex Shyba)
2. Copy install package wizard
Copy /sitecore/shell/Applications/Install/Dialogs/Install package/Install Package.xml to /sitecore/shell/override Open that file and edit the codebeside attribute to this:
Also add a checkbox to that xml markup between GridPanel and WizardFormIndent
3. Enhancing functionality
The code above is, as said before, borrowed from Alex. Now to enhance this code to re-enable the indexing directly after package is installed but before clicking the close button. Open web.config and search for packageinstall:ended and edit it to look like this:
Now go back to the CustomInstallPackageForm and lets edit it to look like this instead:
The EndWizard() method and contents is removed and replaced by another method called OnPackageInstallEnded(). This method is referenced from web.config. And as said before, it’s a smaller risk that the indexing will be left disabled with this approach. The checkbox needs to be static as well, because the wizard and the callback is run by different threads.
Something to think about is that both these solutions might enable indexing for another user if more than one is installing packages at the same time. Thanks to Peter Grace for the ideas!
While waiting for the santa to come i took the time to update the Honkbark Studios logo and make my Dribbble debut.
Why the monkey?
The name Honkbark Studios comes from the sound of the Kipunji monkey. It’s a species that was first discovered in 2003. And how cool isn’t it that after so long time on this earth we still discover new species? Inspired by this i needed to discover something new myself so i went from playing games to create my own. With this in mind i created the monkey with a pair of gamepad shades. It turned out pretty nice i think!
Tools used
This logo was made using Pixelmator. It’s an alternative to Photoshop for people like me who doesn’t have that kind of budget and does not want to borrow it from the internet with a pirate bay license :) . At the time of writing this blog post Pixelmator costs 319 SEK on the mac app store.
Upcoming Dribbble shots
I will fill the dribbble account with some graphics from the upcoming game Friendsheep. And hopefully from the upcoming games.
Thanks to Urban Sandén for the invite to Dribbble!