Archive

Archive for the ‘Web Tips’ Category

Why use flash anymore?

July 20th, 2011 No comments

image

The net is changing fast. Release of the iPad and other mobile devices that have correctly made the decision to discontinue Adobe Flash.

I say correct decision because not only is flash yesterdays technology, but it is far from the optimal way to produce simple motion in web pages.

Flash still has it’s place, just not as a way to inject interesting motion into websites.

So what do we use on http://www.InteractiveWebs.com home page?

We have some simple code that renders motion:

<div class="slideshow">
<div class="slide">
<div class="inblock_first">
<div class="wsc_image_frame">
<div class="wsc_frame_tl">
<div class="wsc_frame_tr">
<div class="wsc_frame_tc">
</div>
</div>
</div>
<div class="wsc_frame_cl">
<div class="wsc_frame_cr">
<div class="wsc_frame_cc">
<img alt="" src="/Portals/0/banners/slide2.jpg" />
</div>
</div>
</div>
<div class="wsc_frame_bl">
<div class="wsc_frame_br">
<div class="wsc_frame_bc">
</div>
</div>
</div>
</div>
</div>
<div class="inblock_second">
<h1>Have a Business that needs to get a message out?</h1>
<p>InteractiveWebs provides the best of Content Management Systems on our professional hosting services.<br />
Combining DotNetNuke, WordPress Blogs, iPhone Apps, Microsoft CRM &amp; hosted solutions..<br />
<br />
</p>
<a class="button2" href="/Services/Mushroom.aspx"><span><strong>More</strong></span></a>
</div>
<div class="cleaner"></div>
</div>
<div class="slide">
<div class="inblock_second">
<h1>We have a solution… that is perfect…</h1>
<p>We have some&nbsp;increasable solutions with years of experience…</p>
<h4>
We would love to share them!</h4>
<p><br />
</p>
<a class="button2" href="/Services/Mushroom.aspx"><span><strong>More</strong></span></a>
</div>
<div class="inblock_first">
<div class="wsc_image_frame">
<div class="wsc_frame_tl">
<div class="wsc_frame_tr">
<div class="wsc_frame_tc">
</div>
</div>
</div>
<div class="wsc_frame_cl">
<div class="wsc_frame_cr">
<div class="wsc_frame_cc">
<img alt="" src="/Portals/0/banners/slide1.jpg" />
</div>
</div>
</div>
<div class="wsc_frame_bl">
<div class="wsc_frame_br">
<div class="wsc_frame_bc">
</div>
</div>
</div>
</div>
</div>
<div class="cleaner"></div>
</div>
<div class="slide">
<div class="wsc_image_frame">
<div class="wsc_frame_tl">
<div class="wsc_frame_tr">
<div class="wsc_frame_tc">
</div>
</div>
</div>
<div class="wsc_frame_cl">
<div class="wsc_frame_cr">
<div class="wsc_frame_cc">
<img alt="" src="/Portals/0/banners/slide.jpg" />
</div>
</div>
</div>
<div class="wsc_frame_bl">
<div class="wsc_frame_br">
<div class="wsc_frame_bc">
</div>
</div>
</div>
</div>
<div class="cleaner"></div>
</div>
</div>

 

The source references some jQuery effects known as cycle: http://jquery.malsup.com/cycle/

You will see on this page that it uses code in this method:

<!DOCTYPE html>

<html>

<head>

<title>JQuery Cycle Plugin – Basic Demo</title>

<style type="text/css">

.slideshow { height: 232px; width: 232px; margin: auto }

.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }

</style>

<!– include jQuery library –>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>

<!– include Cycle plugin –>

<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$(‘.slideshow’).cycle({

fx: ‘fade’ // choose your transition type, ex: fade, scrollUp, shuffle, etc…

});

});

</script>

</head>

<body>

<div class="slideshow">

<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />

<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />

<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" />

<img src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" width="200" height="200" />

<img src="http://cloud.github.com/downloads/malsup/cycle/beach5.jpg" width="200" height="200" />

</div>

</body>

</html>

 

Producing this page: http://jquery.malsup.com/cycle/basic.htmlimage

Within DotNetNuke

Within DotNetNuke, there are a bunch of module and skins that have this effect built in. We use a skin known as LightHeads (not developed by us) that uses some hard coded references that make the implementation of this effect really simple. As the first block of code above indicates.

We love jQuery and have used it in our Mushroom Image module and our Mushroom Lite Module.

Categories: DotNetNuke Tips, Web Tips Tags:

YouTube Search Results as RSS Feed

July 2nd, 2011 Comments off

imageToday we were working on producing some custom Youtube video searches that output to RSS feed. The intent being to then consume the result into a Yahoo Pipes manipulation and ultimately use the result in a new iPhone / iPad app.

Google and Youtube have made the quite easy, which was nice.

YouTube Search as RSS

Search

If you wanted to search for the term “A380” (like the aircraft) then you would use a URL like this: http://www.youtube.com/rss/search/a380.rss 

http://www.youtube.com/rss/search/[SEARCH_TERMS].rss

Tag

If you wanted to find all the videos recently posted that are tagged “A380” you would use a URL like this: http://www.youtube.com/rss/tag/a380.rss

Two Words

The above examples can have a space in the search. "Airbus A380” would be:

http://www.youtube.com/rss/search/airbus%20a380.rss

Must have the two words

Using the + sign you can conjoin two words.

http://www.youtube.com/rss/search/airbus+a380.rss

However this appears to deliver the same results as the above search.

Google YouTube API

There is an API available to do more complex searches. These produce some interesting results. The API is available here.

YouTube User Search

Using a USER ID like ours “interactivewebs” you can find all the videos published by us using this search: http://www.youtube.com/rss/user/interactivewebs/videos.rss

Sorting

It is possible to sort the search results using a tag on the end that looks like this:

=video-date-uploaded.rss

http://www.youtube.com/rss/search/a380=video-date-uploaded.rss

Also

Did you know, you can use complex boolean searches at YouTube, and get these out as an RSS feed, but that you may need to fiddle with the feed url to get it to work properly.
You can use:
  quoted strings
  parenthesis ( …. )
  AND
  OR
  "-" for negation (or is it just excluding the next word)
in searches.  For example here is a search I just conducted:
("light sport aircraft" OR (microlight OR ultralight OR lightsportaircraft OR lsa)) AND -ultralightnews
Fancy huh.  You can grab this as an RSS by using the rss link in your browser should it provide it, however take note, that YouTube seems to cut the query short in the RSS link if it’s too long (and doesn’t fully evaluate it either if you force it), and it does not return in the expected "most recent upload" order, so some modification of the string is necessary to make it useful.  Here’s the RSS feed for the above search
http://gdata.youtube.com/feeds/base/videos?q=(%22light%20sport%20aircraft%22%20OR%20(microlight%20OR%20ultralight%20OR%20lightsportaircraft%20OR%20lsa))%20AND%20-ultralightnews&client=ytapi-youtube-search&alt=rss&v=1&orderby=published

Returning Large Images of the Feed

We also found a neat little search that looks like this:

http://gdata.youtube.com/feeds/base/videos?q=%28a380%29youtube-search&alt=rss&v=1&orderby=published

The end result of this produces some great looking feeds for our use.

Hope this helps others.

Categories: General Tips, iOS, iPhone, Web Tips Tags:

We tried Auto Tweet – our blog died

September 28th, 2009 Comments off

We tried the http://wordpress.org/extend/plugins/auto-tweet/ adding and found nothing but death to our blog. Suggest people stay away.

Categories: Web Tips Tags: