Stephen Burge's Blog, page 91

January 18, 2016

How to Embed Slideshare Presentations in Joomla

If you use Joomla, then you've had problems with embeds.

Before the launch of the OSEmbed extension, it was difficult to reliably embed any outside sources into your Joomla articles.

In this tutorial, I'm going to show you how easy it is to embed Slideshare presentations into Joomla.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 18, 2016 17:16

Use Openlayers to Build Drupal Maps

Openlayers is a Javascript library that allows you display maps from multiple different sources. It works with Mapquest, Yahoo Maps, Stamen, Google Street Map, Open Street Map and more.

Openlayers' flexibility makes it a very useful option. For example, an OSTraining member wanted to use Openlayers because he needed to build a site in China, where Google Maps is blocked.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 18, 2016 13:25

January 15, 2016

Don't Use Pixel-Width Values in HTML Tables!

Be careful when using tables in your website, specially when width property uses px. Why? It can breaks the responsive design of your site, mainly in mobile.

In this post, I'll show you how to fix this issue.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 15, 2016 20:24

January 14, 2016

Build Your Own Image Scraper with PHP

There are various ways to scrape information from other websites, including JSON and RSS. However, it's also possible to build a scraper using PHP.

With regular expressions you can extract portions of content such as images, text and metadata.

Why would you do this? In one example, I build a WordPress site that automatically generate new posts every day by crawling the content of my Facebook page. 

In this post, I'll share with you the code to extract images from a URL by using the file_get_contents() and preg_match_all() functions.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 14, 2016 19:27

Show Drupal Content Only With Terms of Specific Depth

It is possible to allow Views to show only content that has child terms from a taxonomy?

Yes, it is. This is similar but slightly different to our tutorial on using Views to show only child terms.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 14, 2016 15:18

The Easiest Way to Switch Editor in Joomla

When I'm using Joomla, I often need to change my editor settings.

Sometimes I'm working with HTML or CSS code, so I choose "No editor" from my account settings. Other times, I use JCE for writing blog posts.

This process is slow because it requires me to close the article I'm editing, go to my account settings to choose a different editor, and finally go back to edit my article.

In this tutorial, I will show you how to quickly change the editor without losing your page.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 14, 2016 14:32

Show Only Specific Levels of Taxonomy in Views

One OSTraining member asked us this question:
How can I set the filter criteria so that Views shows only the second level in of a taxonomy?

We've had that question from other members before, so here's a tutorial explaining how it's done.

First, you need a taxonomy that has parent and child terms, as in this example:



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 14, 2016 11:55

January 13, 2016

Embed YouTube Videos in ZOO and K2 with OSYouTube for Joomla

ZOO and K2 are popular Content Construction Kits for Joomla. Both extensions have ready to use features such as social sharing, comments, custom fields management and more. 

OSYouTube by Alledia makes so simply to embed YouTube videos in Joomla.

In this post, I'll show you how to embed YouTube videos in ZOO and K2 items within seconds. Let's start...



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 13, 2016 19:22

Use Views to Show Content Created by Drupal Users

One OSTraining member wanted to allow site admins to show the content created by different users.

For example, the admins wanted to see all the articles written by a particular user, or all the orders they made in the store.

I'm going to make this happen by creating a search page using Views.



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 13, 2016 18:32

Count the Total Number of Results in Drupal Views

One of our members wondered if it was possible to automatically calculate the number of results displayed in a View.

Yes, this is definitely possible. To make this work, you will need Views, plus also the Token module installed.

Start with a long list of entries in a View, as in the image below:



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on January 13, 2016 17:33