Monthly Archives: January 2012

Posted by Michael Alfaro on January 27, 2012

Iframing a portion of a webpage to exclude unwanted navs, and sidebar callouts

0

This code was shared by a great client of ours, Kevin Ormsby (Web Developer) over at ELS. Wanted to reshare with the world as I’m sure there’s a need for this if we found a need for it.

It will allow you to give the top left coordinates that you’d like the iframe to begin with.  And you could eliminate items from the right and bottom by adjusting the over width and height of the iframe itself, thus you can get a perfect iframe until the page you’re pointing to changes :)

Thanks Kevin!

<style type=”text/css”>
#contact{
width:700px;
height:700px;
overflow:hidden;
}

#contact iframe {
margin-left:-15px;
margin-top:-255px;
border:0;
}
</style>

<div id=”contact”>
<iframe src=”http://www.els.edu/ContactUs” scrolling=”no” width=”600″ height=”840″></iframe>
</div>


Topics: , , ,

Posted by Michael Alfaro on January 25, 2012

How to restrict viewing wordpress pages to logged in users

0

If you’re looking to make particular pages visible to only people that are logged in and letting them know that they need to log in, I found this article that help you achieve that through the page templates:

http://www.wprecipes.com/how-to-restrict-page-view-to-authenticated-users

Here’s the sample code:

if (is_user_logged_in()) {
// You page code goes here
} else {
echo "You must be logged in to view this page.";
}

Enjoy!!!


Topics: , ,

Posted by Michael Alfaro on January 25, 2012

How to use .htaccess to redirect properly

0

All I have to say is this site makes it so much easier! Give it a try, absolutely works.

http://www.htaccessredirect.net/index.php


Topics: , , ,

Posted by Michael Alfaro on January 13, 2012

Action Movie FX – Kim chucks a Missile at Mike

5

Kim stopped by my desk, recorded me and then chucked a Missile at me through the Action Movie FX mobile app (Itunes link) .  Great stuff, enjoy:


Topics: , , ,

Posted by Michael Alfaro on January 9, 2012

Fbootstrapp, create pages in Facebook styling quickly

0




Shoutout to Tim Jaeger for sending this out today. If you’re looking for the FB styling to use in IFramed apps within Facebook, you can use Fbootstrapp to get the look and feel with very little effort on your part.  Check it out, great resource: http://ckrack.github.com/fbootstrapp/

Bootstrap itself was created by folks at Twitter, so you can check out the original project here: http://twitter.github.com/bootstrap/


Topics: , , , ,