Fix for WordPress stripping iFrames and Script Tags from Editor

If you’re frustrated with WordPress’s TinyMCE Editor stripping out your iFrame or script tags within your posts add the following line of code to your functions file:
[cc lang=”php” tab_size=”4″]
// allow script & iframe tag within posts
function allow_post_tags( $allowedposttags ){
$allowedposttags[‘script’] = array(
‘type’ => true,
‘src’ => true,
‘height’ => true,
‘width’ => true,
);
$allowedposttags[‘iframe’] = array(
‘src’ => true,
‘width’ => true,
‘height’ => true,
‘class’ => true,
‘frameborder’ => true,
‘webkitAllowFullScreen’ => true,
‘mozallowfullscreen’ => true,
‘allowFullScreen’ => true
);
return $allowedposttags;
}
add_filter(‘wp_kses_allowed_html’,’allow_post_tags’, 1);
[/cc]
I’m not sure when this became an issue, but I’m running WordPress 3.9 and I didn’t notice this until now.

Posted in PHP / MySQL, WordPress | Comments Off on Fix for WordPress stripping iFrames and Script Tags from Editor

Installing JSLint in Sublime Text 3

I got a new computer today and needed a refresher on installing JSLint with Sublime Text. Linters are now run through the SublimeLinter package/framework. To install Package Control and SublimeLinter follow the links below.

Install Package Control specific to the version of Sublime Text you’re running:
sublime.wbond.net/installation

Install SublimeLinter and Linter plugins:
sublimelinter.readthedocs.org/en/latest/installation.html

The links provide simple straightforward instructions for basic linter configurations for Sublime Text.

Happy Linting!

Also… you likely want to set up Sublime Text’s command line tool. Do so by running the following in Terminal:
[cc lang=”bash”]sudo ln -s “/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl” /usr/local/bin/subl[/cc]

This will set up a symlink to the command ‘subl’ within Terminal.

More documentation here:
www.sublimetext.com/docs/3/osx_command_line.html

Splitboarding The Slot Couloir on Snoqualmie Mountain

March 21st, 2014 the #peakoftheweek crew decided it was great conditions to tackle The Slot Couloir on Snoqualmie Mountain. We woke up early trying to beat as much sun as we could on the skin up. The conditions could not have been better. There seemed to have been a group that toured either earlier that morning or the day prior that got tracks before us, but throughout the whole day we saw no one. It was perfect and exactly what us office warriors needed. After a day of great pow turns in the sun, we headed for the best corn dogs on this earth. They were even better after a great day of touring. Hope you enjoy.

Filming: Brian Behrens & Shawn Bishop
Editing: Brian Behrens
Music: Mungo Jerry – “In The Summertime”
Recorded with GoPro Hero 3 + Black Edition

IMG_2110

Lunch stop

IMG_2131

IMG_2133

Looking back up

IMG_2140

Exit notch

Crossing the South Fork

Featured on thepeakoftheweek.com

Splitboarding Near Rock Mountain

Last Friday, February 28th, 2014 we set out on a splitboard tour up Rock Mountain off US2 in Washington. This was a first attempt for the #magicblack #peakoftheweek crew. The tour began with some mellow switchbacks, as most tours often do. After about 3 switchbacks we began a steep accent up a ridge near the middle basin of Rock Mountain. We observed a several wet slides that had happened within the last day or so. We kept as close to tree lines as we could, trying to avoid the wide open, steep faces. I’m not quite sure what came over me, but I blazed the steepest skin track I’ve been on to date.

Rock Mountain Tour - 02.28.2014

With hearts beating fast and breaths deep, we reached the top. The warm snow was quickly cooled as we lost daylight and winds picked up on the ridge we just ascended on. Selfies and beers were had before we suited up for a fun decent. The snow for about the first 2,000 yards was crusty on top, hard to make turns in, but seemed very stable. Once we got back to the steep open faces, the crust layer softened and the turns got way more enjoyable.

Rock Mountain Tour - 02.28.2014

Overall it was a great tour. Next time we have to arrive earlier at the trailhead if we want to make it all the way to Rock Mountain… we have our eye set on you buddy 😉

Rock Mountain Tour - 02.28.2014

To Wild Waves and Beyond!

30 years into my life and an unforgettable 3 of them spent with Amanda, I still love the feeling of being a kid. Amanda has brought me great happiness and what better way to celebrate each other and the end of summer than a trip to Wild Waves! I love this girl with all my heart. Amanda, let’s grow young together.

Music: Chvrches – “Lungs”
Filming: Brian Behrens and Amanda Krutenat
Editing: Brian Behrens
Recorded with my GoPro Hero3 Black Edition
Edited with Adobe Premiere Pro

Skydiving with Friends for my 30th Birthday

I decided what better way to go into my 30s than jumping out of a plane. After discovering Amanda and some daredevil friends wanted to join, we possied up for some debauchery at Skydive Snohomish. Our jump on my actual day of birth was canceled due to rain/overcast, but we got to go the following week. It was a great experience, and I’d recommend it to anyone interested. I hope you enjoy the video.

Filming: Brian Behrens and the crazy sky gods at Skydive Snohomish
Editing: Brian Behrens
Music: MGMT – “Alien Days”

Recorded with GoPro Hero3 Black Editions

Surfing at Hobuck in July

This gallery contains 3 photos.

We decided to head out for a camp session at Hobuck on the Olympic Peninsula the weekend of July 26th, 2013. The waves were small and fun. They cleaned up great at specific times of the day. Sups, kayaks and surfboards were sporadic along the beach. Laughter could be heard from children playing, campfires crackling […]

Whidbey Island

I went to Whidbey Island for the Memorial Day weekend. This was my first time on Whidbey and it was quite enjoyable, even with the rain.

The weekend started out right with an epic surf day at Westport. Rob and I enjoyed beers on the rocks after our morning session. I’m starting to feel a lot more comfortable on my board.

20130527-121724.jpg

We departed on the Mukilteo ferry late Friday evening after surfing for the day at Westport. By doing so, we avoided the huge ferry lines. Shane’s beard got some photo love with the beautiful horizon beyond.

20130527-121911.jpg

The ferry ride is quite short. Arriving in Whidbey Island the surrounding terminal area seems much more chill than that of the San Juan island ferries. Whidbey doesn’t seem to be as touristy as the San Juan’s or even Bainbridge.

We spent the weekend at our friend’s parents place. They recently purchased it and moved to Whidbey. The land had a horse farm among other small animals. We shot BB guns, went clamming, full dipped in the hot tub, drank many beers and cooked a lot of food.

20130527-130859.jpg

20130527-131028.jpg

We also spent some time checking out Fort Casey. This was a first for me, but as I’m told, many people who grew up in Seattle took several school trips there. There are stunning views of the Puget Sound from all over Fort Casey. While enjoying the views you can hear the children screaming from the halls of the dark, abandoned Fort.

20130527-131350.jpg

Whidbey Island, thanks. It’s been real.

20130527-131507.jpg