Embed Latest Video from Channel

My Previous post about doing this was using a previous api and using callback to get the info.

Thanks to Shix_ for pointing it out there is a easier way to do this.

Simply drop this html into the place where you want the video and change the username with your username and its done.

<iframe width="300" height="200" src="http://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=YOUR_USERNAME_HERE" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

Even Responsive Inline Divs

responsive

Phew what a long time ago I posted.. Time to get back into it with a little responsiveness.

So you want to align divs next to each other evenly and have it responsive.. no problem!

The problem is by using 4 divs next to each other with text in, you have to apply the styling to only the inline divs and that can cause some headaches.. not going into it. The solution.

Read On…

.htaccess url rewrite with http:// and https://

htaccess

I thought I would share this, if anyone ever came across this.

Scenario

We had a online shop on a http:// domain. and on the same http:// domain we had 3 other sites in sub folder lets call it /site1, /site2 and /site3 so we had:

The online shop – http://www.ourdomain.co.za/
Site 1 – https://www.ourdomain.co.za/site1
Site 2 – https://www.ourdomain.co.za/site2
Site 3 – https://www.ourdomain.co.za/site3

Obviously our shop had categories for example http://www.ourdomain.co.za/category-1

So we decided to move the online shop to a secure site thus changing the http: to https:.
Now in a SEO perspective this is bad because google see’s this as n whole new site and you will loose your ranking, a simple 30 redirect in the index.php on the old root will tell google you have a new site but it still leaves you with a bunch of broken links because http://www.ourdomain.co.za/category-1 will not give you the category anymore it would rather take you to the new home page.. not Ideal.. So how do you redirect ALL old URL’s to the new site and there respective places and still keep Site1, Site2 and Site3 working.. We use .htaccess.

Read On…