<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UBB.threads and Wordpress experts</title>
	<atom:link href="http://sirdude.com/feed" rel="self" type="application/rss+xml" />
	<link>http://sirdude.com</link>
	<description>Customizations, integrations, bridges and more</description>
	<lastBuildDate>Thu, 05 Jan 2012 16:35:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Bob is the Oil Guy</title>
		<link>http://sirdude.com/bob-is-the-oil-guy.html</link>
		<comments>http://sirdude.com/bob-is-the-oil-guy.html#comments</comments>
		<pubDate>Mon, 16 May 2011 01:41:16 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[Integrations]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=964</guid>
		<description><![CDATA[I just finished up a remake of a highly trafficked UBB.Threads forum and it turned out very well. The UBB.Threads forums are the number one ranked for their category on Google, but the front portal was an aging Joomla install. Enter WordPress. With a very nice theme to start from (Glance ) and some custom [...]
Related posts:<ul>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html' rel='bookmark' title='UBB.threads user selectable tooltip preferences'>UBB.threads user selectable tooltip preferences</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-965" style="border: 0pt none; margin: 10px;" title="Motor-Oil-v41-298x300" src="http://sirdude.com/wp-content/uploads/2011/05/Motor-Oil-v41-298x300-128x128.png" alt="" width="128" height="128" />I just finished up a remake of a highly trafficked <a title="BITOG Forums" href="http://www.bobistheoilguy.com/forums/ubbthreads.php?ubb=cfrm">UBB.Threads forum</a> and it turned out very well.</p>
<p>The UBB.Threads forums are the number one ranked for their category on Google, but the front portal was an aging Joomla install.</p>
<p>Enter WordPress.</p>
<p>With a very nice theme to start from (<a title="Glance business and portfolio" href="http://themeforest.net/item/glance-business-portfolio-theme/full_screen_preview/166968">Glance </a>) and some custom WordPress plugins that I wrote, we have a much needed and functional makeover.</p>
<p>I&#8217;m happy with the way it turned out.</p>
<p>Stop by and check it out.</p>
<p style="text-align: center;"><a href="http://www.bobistheoilguy.com/"><img class="aligncenter size-full wp-image-969" title="bitog-top-logo" src="http://sirdude.com/wp-content/uploads/2011/05/bitog-top-logo.png" alt="" width="588" height="120" /></a></p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html' rel='bookmark' title='UBB.threads user selectable tooltip preferences'>UBB.threads user selectable tooltip preferences</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/bob-is-the-oil-guy.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Vimeo BBCode for UBB.Threads</title>
		<link>http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html</link>
		<comments>http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html#comments</comments>
		<pubDate>Thu, 05 May 2011 18:11:54 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[UBB.threads]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=942</guid>
		<description><![CDATA[I've had quite a few customers request a custom BBCode for Vimeo, so rather than go into a long post about it, I will post the file and some short instructions on how to implement.
Related posts:<ul>
<li><a href='http://sirdude.com/a-better-youtube-custom-bbcode.html' rel='bookmark' title='A Better YouTube custom BBcode'>A Better YouTube custom BBcode</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html' rel='bookmark' title='UBB.threads user selectable tooltip preferences'>UBB.threads user selectable tooltip preferences</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-958" style="border: 0pt none; margin: 0pt 10px 10px 0pt;" title="Web Coding" src="http://sirdude.com/wp-content/uploads/2011/05/Web-Coding-128x128.png" alt="" width="128" height="128" />I&#8217;ve had quite a few customers request a custom BBCode for Vimeo, so rather than go into a long post about it, I will post the file and some short instructions on how to implement.</p>
<p>There are really two ways to add a Custom Tag. One being to manually type all the appropriate fields in and the other is to import from a previously exported tag from a working UBB.Threads site.</p>
<p>Since I have one working on many sites, I exported it for your convenience.</p>
<p>The file to import into the Custom Tag Editor is below:</p>
<div class="woo-sc-box download  rounded ">
<img alt="txt" title="txt" class="download-icon" src="http://sirdude.com/wp-content/plugins/download-monitor/img/filetype_icons/document-text.png" /><a href="http://sirdude.com/wp-content/plugins/download-monitor/download.php?id=7" title="Downloaded 118 times">Vimeo Custom Tag - v1</a> - Downloaded 118 times
</div>
<p><img class="size-full wp-image-946 alignleft" title="import-new-tags" src="http://sirdude.com/wp-content/uploads/2011/05/import-new-tags.png" alt="" width="496" height="104" />To import this file, go to your Admin Control Panel, Content tools and select the 2nd Tab ( <em>Custom Tag Editor</em> ).</p>
<p>The URL to this page would be: <em></em></p>
<p>&#8220;http://<em><span style="color: #800000;">yourforums.com/forums</span></em>/admin/rebuildcontent.php&#8221;</p>
<p>where the colored text would be replaced with the base URL to your forums.</p>
<p>Locate the bottom menu ( or tabs, if you prefer ) and click on &#8220;Import New Tags&#8221;.</p>
<p>Once imported, you will see the following form:</p>
<p><a rel="wp-prettyPhoto" href="http://sirdude.com/wp-content/uploads/2011/05/vimeo.png"><img class="aligncenter size-large wp-image-947" title="vimeo" src="http://sirdude.com/wp-content/uploads/2011/05/vimeo-640x594.png" alt="" width="640" height="594" /></a></p>
<p>The &#8216;Custom Tag&#8217; I used is &#8216;vimeo&#8217;, however you are free to use the more common &#8216;video:vimeo&#8217; if you would like. I prefer the shorter / less typing approach.</p>
<div class="woo-sc-box note  rounded ">
The other reason I use the vimeo tag, is that it mirrors the same tags or &#8220;shortcode&#8221; used in WordPress. Makes sense to keep it consistent  <img src='http://sirdude.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /><br />
</div>
<p>So when the user inserts the tag into a post with the following as an example:</p>
<pre class="brush: plain; title: ; notranslate">
[ vimeo ]http://vimeo.com/23199805[ /vimeo ] ( no spaces )
</pre>
<p>The result is:</p>
<p><p><a href="http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html"><em>Click here to view the embedded video.</em></a></p><br />
Have at it and enjoy !</p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/a-better-youtube-custom-bbcode.html' rel='bookmark' title='A Better YouTube custom BBcode'>A Better YouTube custom BBcode</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html' rel='bookmark' title='UBB.threads user selectable tooltip preferences'>UBB.threads user selectable tooltip preferences</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Better YouTube custom BBcode</title>
		<link>http://sirdude.com/a-better-youtube-custom-bbcode.html</link>
		<comments>http://sirdude.com/a-better-youtube-custom-bbcode.html#comments</comments>
		<pubDate>Tue, 03 May 2011 15:52:42 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[7.x]]></category>
		<category><![CDATA[Custom BBCode]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=898</guid>
		<description><![CDATA[A forum that I consult to ( SimHQ ), recently informed me that YouTube has changed the URL format for when you click the "Share" Link below the video. It no longer matches the URL in the address bar and this was causing some confusion.

The URL in the address bar remains the familiar one that links to youtube.com, adding the ?v=xxxx parameter as always, but the Share link has gone a different way now.

So... how do we modify the existing custom BBCode tag to accomplish this, you ask?
Related posts:<ul>
<li><a href='http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html' rel='bookmark' title='Custom Vimeo BBCode for UBB.Threads'>Custom Vimeo BBCode for UBB.Threads</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/upcoming-events-custom-island.html' rel='bookmark' title='Upcoming events Custom Island'>Upcoming events Custom Island</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-911" title="page_php_128" src="http://sirdude.com/wp-content/uploads/2011/05/page_php_128.png" alt="" width="128" height="128" />A forum that I consult to ( <a title="Simulation Headquarters" href="http://simhq.com" target="_blank">SimHQ </a>), recently informed me that YouTube has changed the URL format for when you click the &#8220;Share&#8221; Link below the video. It no longer matches the URL in the address bar and this was causing some confusion.<img class="alignright size-full wp-image-933" title="share-video" src="http://sirdude.com/wp-content/uploads/2011/05/share-video.png" alt="" width="139" height="73" /></p>
<p>The URL in the address bar is the still the familiar one that links to youtube.com, adding the ?v=xxxx parameter as always, but the Share link has gone a different way now.</p>
<p>Namely, YouTube decided to use &#8220;<em>http://youtu.be/kXRSZSxXB9g</em>&#8221; for example.</p>
<p>This, of course broke any existing BBcode regexes that UBB.Threads had in place and simply didn&#8217;t parse if the user used the URL generated from the &#8220;<em>Share</em>&#8221; button.</p>
<p>Quandary, you say?</p>
<p><img class="size-full wp-image-907 alignnone" title="No not really" src="http://sirdude.com/wp-content/uploads/2011/05/nrly.png" alt="" width="72" height="66" /></p>
<p>I looked at the resulting embed code and it is the same as before, so the regex simply needs to be updated to handle both cases; old and new.</p>
<p>For UBB.threads forum admins, go to your Control Panel, Content Tools and Custom Tag Editor ( shown below ):</p>
<div id="attachment_904" class="wp-caption aligncenter" style="width: 604px"><a rel="wp-prettyPhoto" href="http://sirdude.com/wp-content/uploads/2011/05/yt-custom1.png"><img class="size-large wp-image-904" title="yt-custom" src="http://sirdude.com/wp-content/uploads/2011/05/yt-custom1-594x640.png" alt="" width="594" height="640" /></a><p class="wp-caption-text">Click to see Full size</p></div>
<p>The only line that needs to be modified is the Matching regex:</p>
<pre class="brush: php; title: ; notranslate">

(|.*youtu\.be/|.*v=)([a-zA-Z0-9_-]{8,12})(|&amp;.*)
</pre>
<p>and you are good to go.</p>
<div class="woo-sc-box tick large rounded " style="padding-left:15px;background-image:none;">You can double click on the regex above and the line will be automatically selected. You can then copy it and paste it into your UBB.threads admin BBcode edit window.</div>
<p>Just a note on the regex. It actually parses three different types:</p>
<div class="shortcode-unorderedlist green-dot"></p>
<ul>
<li>YouTube URL from address bar: http://www.youtube.com/watch?v=JOddp-nlNvQ&amp;feature=grec_index</li>
<li>YouTube from &#8220;Share&#8221;: http://youtu.be/JOddp-nlNvQ</li>
<li>YouTube ID: JOddp-nlNvQ</li>
</ul>
<p></div>

<p>All three produce the same embed code and a case in point would be:</p>
<p style="text-align: center;"><strong><span style="color: #800000;">[yt]http://youtu.be/JOddp-nlNvQ[/yt]</span></strong></p>
<p>produces:</p>
<p><a href="http://sirdude.com/a-better-youtube-custom-bbcode.html"><em>Click here to view the embedded video.</em></a></p>
<p>You can also just download the entire custom text file below and import it, so as to play with it separately before enabling. I used the &#8216;yt&#8217; tag, instead of what you may be more familiar with &#8216;<em>video:youtube</em>&#8216;. Typing [yt] seems much easier for my forum members anyway!  <img src='http://sirdude.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<img alt="txt" title="txt" class="download-icon" src="http://sirdude.com/wp-content/plugins/download-monitor/img/filetype_icons/document-text.png" /><a href="http://sirdude.com/wp-content/plugins/download-monitor/download.php?id=6" title="Downloaded 116 times">Youtube Custom BBcode for Import - v1.1</a> - Downloaded 116 times
<p>Enjoy  <img src='http://sirdude.com/wp-includes/images/smilies/llama.gif' alt=':llama:' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/custom-vimeo-bbcode-for-ubb-threads.html' rel='bookmark' title='Custom Vimeo BBCode for UBB.Threads'>Custom Vimeo BBCode for UBB.Threads</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/upcoming-events-custom-island.html' rel='bookmark' title='Upcoming events Custom Island'>Upcoming events Custom Island</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/a-better-youtube-custom-bbcode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UBB.threads user selectable tooltip preferences</title>
		<link>http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html</link>
		<comments>http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html#comments</comments>
		<pubDate>Sun, 13 Mar 2011 20:13:11 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Modifications]]></category>
		<category><![CDATA[7.x]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=225</guid>
		<description><![CDATA[In version 7.3 of UBB.threads, we introduced tooltips. This allows users to hover over a topic title in a lists of posts for a forum and have a sneak preview of what was inside, so to speak.

Well, the mistake I made was to make it only an admin selectable option. In other words the entire user base for a particular forum would either have it or not have it. This caused problems, because I've found that users either love it or hate it and the middle ground is rare.
Related posts:<ul>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/how-to-install-ubb-threads-on-your-site.html' rel='bookmark' title='How to install UBB.threads on your site'>How to install UBB.threads on your site</a></li>
<li><a href='http://sirdude.com/demystifying-the-ubb-threads-content-structure.html' rel='bookmark' title='Demystifying UBB.threads framework &#8211; Part I'>Demystifying UBB.threads framework &#8211; Part I</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-877" title="Coding" src="http://sirdude.com/wp-content/uploads/2011/03/package_code_128.png" alt="" width="128" height="128" /></p>
<p>From what I&#8217;ve seen, the naysayers win in most cases and it ends up with the forum turning off the option entirely. Whoever wants it, just can&#8217;t get it. Matter of fact, this is the case over at <a title="Home of UBB.threads" href="http://www.ubbcentral.com/forums/ubbthreads.php/topics/242110/Give_users_option_to_enable_di.html#Post242110" target="_blank">Ubb.central</a> right now ( I posted the solution there as well ).</p>
<p>It&#8217;s turned off for whatever reason.</p>
<p>So, that leads me to this post and the first modification to stock UBB.threads 7.5.6. This post will walk you through what you need to do in order to give the users the option to have it or not by editing their profile and choosing which they prefer.</p>
<h3>Step 1:</h3>
<p>Go into Registration settings / Registration screen and set the Custom field prompt ( example picture below ) to something meaningful:</p>
<p><img class="aligncenter size-full wp-image-881" title="Custom Field 1" src="http://sirdude.com/wp-content/uploads/2011/03/custom-field-1.png" alt="" width="576" height="87" /></p>
<p>When saved, this will add an extra field to the user profile screen that allows them to show the Tooltip ( 1 ) or to not show it ( 0 ).</p>
<h3>Step 2:</h3>
<p>Enable tooltips globally for the forum. In other words, it will be turned on by default. This is done in Display Options, General and is pictured below:</p>
<p><img class="aligncenter size-full wp-image-882" title="Enable Forum Tooltips" src="http://sirdude.com/wp-content/uploads/2011/03/forum-enable-tooltips.png" alt="" width="575" height="309" /></p>
<h3>Step 3:</h3>
<p>Open up the file &#8216;scripts/postlist.inc.php&#8217; and make 2 small changes. This will essentially look at the user profile setting and enable tooltips or not.</p>
<p>Find:</p>
<pre class="brush: php; title: ; notranslate">

&quot;user_fields&quot; =&gt; &quot;t2.USER_TOPIC_VIEW_TYPE, t2.USER_TOPICS_PER_PAGE, t2.USER_POSTS_PER_TOPIC&quot;,
</pre>
<p>Change to:</p>
<pre class="brush: php; title: ; notranslate">

&quot;user_fields&quot; =&gt; &quot;t2.USER_TOPIC_VIEW_TYPE, t2.USER_TOPICS_PER_PAGE, t2.USER_POSTS_PER_TOPIC,USER_EXTRA_FIELD_1&quot;,
</pre>
<p>Then find:</p>
<pre class="brush: php; title: ; notranslate">

$postrow[$z]['tooltip'] = &quot;&quot;;
if ($config['TOOLTIP_LENGTH'] &amp;&amp; $config['TOOLTIP_LENGTH'] &gt; 0) {
</pre>
<p>and change to:</p>
<pre class="brush: php; title: ; notranslate">

$postrow[$z]['tooltip'] = &quot;&quot;;
if ($config['TOOLTIP_LENGTH'] &amp;&amp; $config['TOOLTIP_LENGTH'] &gt; 0
                                              &amp;&amp; $user['USER_EXTRA_FIELD_1'] == '1') {
</pre>
<h3>Step 4:</h3>
<p>Tell your forum members about it or better yet, link to this post!  <img src='http://sirdude.com/wp-includes/images/smilies/hihi.gif' alt=':hihi:' class='wp-smiley' /> </p>
<p>That&#8217;s it!</p>
<p> <img src='http://sirdude.com/wp-includes/images/smilies/llama.gif' alt=':llama:' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/how-to-install-ubb-threads-on-your-site.html' rel='bookmark' title='How to install UBB.threads on your site'>How to install UBB.threads on your site</a></li>
<li><a href='http://sirdude.com/demystifying-the-ubb-threads-content-structure.html' rel='bookmark' title='Demystifying UBB.threads framework &#8211; Part I'>Demystifying UBB.threads framework &#8211; Part I</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>My Review of Roku HD Player</title>
		<link>http://sirdude.com/my-review-of-roku-hd-player.html</link>
		<comments>http://sirdude.com/my-review-of-roku-hd-player.html#comments</comments>
		<pubDate>Sat, 01 Jan 2011 21:12:53 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Neat stuff]]></category>

		<guid isPermaLink="false">http://sirdude.com/2011/848/my-review-of-roku-hd-player.html</guid>
		<description><![CDATA[Originally submitted at Roku &#160; The new HD, with built-in wireless, delivers top value in high-definition streaming. Roku HD Player Works As advertised By Haleunit from Valencia, CA on 1/1/2011 4out of 5 Pros: Built in Wi-Fi, Easy to set up, Reliability, Easy to use Cons: Need fast internet service Best Uses: Bedroom, Primary TV, [...]
Related posts:<ul>
<li><a href='http://sirdude.com/stackable-usb-plugs-i-like.html' rel='bookmark' title='Stackable USB plugs: I like'>Stackable USB plugs: I like</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="hreview">
<div class="item">
<p><a href="http://www.roku.com/roku-products">Originally submitted at Roku</a></p>
<div><img class="alignleft size-thumbnail wp-image-856" title="roku-xds" src="http://sirdude.com/wp-content/uploads/2011/01/roku-xds-128x84.jpg" alt="" width="128" height="84" />&nbsp;</p>
<p style="margin-top: 0;">The new HD, with built-in wireless, delivers top value in high-definition streaming.</p>
</div>
<p><a class="url fn" style="display: none;" href="http://www.roku.com/roku-products"><span class="fn">Roku HD Player</span></a></p>
</div>
<p><strong class="summary">Works As advertised</strong></p>
<div>By <strong>Haleunit</strong> from <strong>Valencia, CA</strong> on <strong><abbr class="dtreviewed" style="border: none; text-decoration: none;" title="201111T1200-0800">1/1/2011</abbr></strong></div>
<div style="display: none;"><span class="rating">4</span>out of 5</div>
<p><strong>Pros: </strong>Built in Wi-Fi, Easy to set up, Reliability, Easy to use</p>
<p><strong>Cons: </strong>Need fast internet service</p>
<p><strong>Best Uses: </strong>Bedroom, Primary TV, Living room</p>
<p><strong>Describe Yourself: </strong>Technophile, Netflix fan, Power User, Movie buff, Home entertainment enthusiast, Early adopter</p>
<p class="description" style="margin-top: 1em;">Primarily for Netflix, but i also stream mp4s from my local in-home server</p>
</div>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/stackable-usb-plugs-i-like.html' rel='bookmark' title='Stackable USB plugs: I like'>Stackable USB plugs: I like</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/my-review-of-roku-hd-player.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I am so gonna get one of these</title>
		<link>http://sirdude.com/i-am-so-gonna-get-one-of-these.html</link>
		<comments>http://sirdude.com/i-am-so-gonna-get-one-of-these.html#comments</comments>
		<pubDate>Thu, 25 Nov 2010 18:01:50 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Cool]]></category>
		<category><![CDATA[Neat stuff]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=831</guid>
		<description><![CDATA[I remember watching the original Tron movie by Disney and was fascinated back then with the whole idea.

Now I can relive it every time I check the time!
Related posts:<ul>
<li><a href='http://sirdude.com/innovative-way-to-use-google.html' rel='bookmark' title='Innovative way to use Google'>Innovative way to use Google</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I remember watching the original Tron movie by Disney and was fascinated back then with the whole idea.</p>
<p>Now I can relive it every time I check the time!</p>
<p>It&#8217;s a &#8216;design&#8217; now, but if it ever becomes reality, watch for it <a href="http://www.tokyoflash.com/blog/2010/10/tron-inspired-led-watch/">[ here ]</a></p>
<blockquote><p>This watch design takes its inspiration from one of Scott’s favorite  films as a kid, TRON, and from his Pimp Pimpin Ain’t Easy watch.  He  wants something that will get noticed when it lights up and that’s why  he came up with an electroluminescence strip around the whole watch  strap.</p>
<p>The two rings (styled on a Tron Disc) represent minutes (outer) and  hours (inner).  The break in the ring represents the time in a normal  clock face layout.</p>
<p>The electroluminescence strip and LED watch face makes the whole  watch light up and will definitely stand out from other watches.</p></blockquote>
<p style="text-align: center;"><a href="http://sirdude.com/wp-content/uploads/2010/11/seven-R-zero-N.jpg"><img class="size-large wp-image-833 aligncenter" title="seven-R-zero-N" src="http://sirdude.com/wp-content/uploads/2010/11/seven-R-zero-N-640x640.jpg" alt="" width="640" height="640" /></a></p>
<p style="text-align: center;"> <img src='http://sirdude.com/wp-includes/images/smilies/rawk.gif' alt=':rawk:' class='wp-smiley' /> </p>
<p style="text-align: center;">The llama approves  <img src='http://sirdude.com/wp-includes/images/smilies/llama.gif' alt=':llama:' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/innovative-way-to-use-google.html' rel='bookmark' title='Innovative way to use Google'>Innovative way to use Google</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/i-am-so-gonna-get-one-of-these.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Image upload directly into your post</title>
		<link>http://sirdude.com/image-upload-directly-into-your-post.html</link>
		<comments>http://sirdude.com/image-upload-directly-into-your-post.html#comments</comments>
		<pubDate>Sun, 21 Nov 2010 08:05:57 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Modifications]]></category>
		<category><![CDATA[UBB.threads]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=796</guid>
		<description><![CDATA[A feature that has always been needed is a simple way to upload images directly into a new post without having to either upload to a gallery forum first or a popular picture sharing site, then link to it.

There are other methods too, including having a companion photopost installation that links the board members together, but in the end, you can't beat, just clicking on a button in the editor toolbar, selecting a number of images and uploading them right into a post.
Related posts:<ul>
<li><a href='http://sirdude.com/alternating-row-colors-in-a-post-island.html' rel='bookmark' title='Alternating row colors in a Post Island'>Alternating row colors in a Post Island</a></li>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-810" style="margin: 10px; border: 0pt none; background:transparent;" title="7 ALT Links" src="http://sirdude.com/wp-content/uploads/2010/11/7-ALT-Links.png" alt="" width="128" height="128" />A feature that has always been needed on <a href="http://www.ubbcentral.com/forums/ubbthreads.php/forum_summary.html">ubb.threads</a> is a simple way to upload images directly into a new post without having to either upload to a gallery forum first or a popular picture sharing site, then link to it.</p>
<p>There are other methods too, including having a companion <a href="http://www.photopost.com/">photopost </a>installation that links the board members together, but in the end, you can&#8217;t beat, just clicking on a button in the editor toolbar, selecting a number of images and uploading them right into a post.</p>
<p>Furthermore, it would be nice for all the bbcode markup to be auto-generated without thinking.</p>
<p>Bottom line: Click, browse and Save!</p>
<p>Well, this now exists as a custom modification. The difference with this modification is that I won&#8217;t be posting all the files to change here, because they aren&#8217;t trivial. I will instead describe how it works, then make it available as a paid modification by me for your board.</p>
<p>Here is how it works:</p>
<p>First of all the modification adds the editor buttons to the quick reply area. This is logical, since those images are cached once the images are loaded the first time. No speed issues really apply. The new and improved quick reply is shown below:</p>
<p style="text-align: center;"><a href="http://sirdude.com/wp-content/uploads/2010/11/quick-reply1.jpg"><img class="size-large wp-image-800  aligncenter" title="quick-reply" src="http://sirdude.com/wp-content/uploads/2010/11/quick-reply1-640x171.jpg" alt="" width="640" height="171" /></a></p>
<p>There is a new kid on the block, which initiates the image up-loader.</p>
<p>It&#8217;s the 5th icon over from the left <img class="alignnone size-full wp-image-801" title="2" src="http://sirdude.com/wp-content/uploads/2010/11/2.jpg" alt="" width="31" height="31" /></p>
<p>The blue up arrow over the image is the symbol for uploading the image into a post.</p>
<p>Clicking this image pops up a nifty shadowbox dialog that guides the user through the process of uploading one or more images into the post.</p>
<p>The dialog is shown below:</p>
<p style="text-align: center;"><a href="http://sirdude.com/wp-content/uploads/2010/11/upload-dialog.jpg"><img class="size-large wp-image-802 aligncenter" title="upload-dialog" src="http://sirdude.com/wp-content/uploads/2010/11/upload-dialog-640x229.jpg" alt="" width="640" height="229" /></a></p>
<p>When first used, there is a fairly lengthy help text to guide the user through what is really an easy and painless process. You simply browse to your computer and &#8220;Add file from your PC&#8221; or alternatively can paste a URL from a remote picture (ie: imageshack, tinypix or photobucket) and the up-loader will send it to the server.</p>
<p>Since the process is so easy, you will find that the help text is no longer needed and that can be hidden (cookie based to remember your preference) by clicking the [ Hide help ] button on the upper right corner.</p>
<p>Uploading is all ajax driven and you will get feed back as the file uploads with a loading icon ( <img class="alignnone size-full wp-image-803" title="ajax-loader" src="http://sirdude.com/wp-content/uploads/2010/11/ajax-loader.gif" alt="" width="56" height="21" /> ). Once complete, the dialog shows a thumbnail for each image on the left. An example of two images is shown below:</p>
<p style="text-align: left;"><a href="http://sirdude.com/wp-content/uploads/2010/11/two-pics.jpg"><img class="size-large wp-image-804  aligncenter" title="two-pics" src="http://sirdude.com/wp-content/uploads/2010/11/two-pics-640x348.jpg" alt="" width="640" height="348" /></a>The user can continue to repeat the process of adding files from their PC or from remote URLs and the thumbnails will keep being added to the vertical list.</p>
<p>If for some reason, you change your mind after seeing a particular thumbnail, just click on the [ Remove ] button to the right of the specific thumbnail and it won&#8217;t be included in the batch to be inserted into the post.</p>
<p>When ready, you have two options to save into the post and they are &#8220;<a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox</a>&#8221; or &#8220;Standard&#8221;</p>
<p>Lightbox would normally be used if you are uploading very large pictures, that you want to expand as a lightbox effect when clicked. I actually use a free library called &#8220;<a href="http://www.shadowbox-js.com/">Shadowbox</a>&#8220;, which is based upon the Lightbox idea.</p>
<p>Standard is for normal or smaller images that don&#8217;t need to be clicked on at all to see their full potential.</p>
<p>There are admin settings to set the maximum width of an image when it appears in a post, so as to not interfere with the board display as well as a maximum physical width of the expanded image in lightbox mode.</p>
<p>For this example, I saved the images as a Lightbox to see how this effect works:</p>
<p><a href="http://sirdude.com/wp-content/uploads/2010/11/bbcode.jpg"><img class="alignnone size-large wp-image-807" title="bbcode" src="http://sirdude.com/wp-content/uploads/2010/11/bbcode-640x69.jpg" alt="" width="640" height="69" /></a></p>
<p>The IMG tags are auto generated, with an additional set of parameters (gal and a hash value) to specify that they are to be treated as a lightbox gallery.</p>
<p>Clicking either image, brings up the lightbox and you can click on all the images to cycle through them:</p>
<p><a href="http://sirdude.com/wp-content/uploads/2010/11/lightbox.jpg"><img class="alignnone size-full wp-image-808" title="lightbox" src="http://sirdude.com/wp-content/uploads/2010/11/lightbox.jpg" alt="" width="530" height="542" /></a></p>
<p>I&#8217;ve installed this on quite a few sites now and they simply love it, since it&#8217;s all in one place.</p>
<p>If you are interested, just use the <a href="http://sirdude.com/a-new-frickin-contact-page">contact form</a> and ask for a quote. You can view <a href="http://www.ubbcentral.com/forums/ubbthreads.php/users/3429.html">my profile comments</a> on the many satisfied customers that have had this and / or other modifications done.</p>
<p>One satisfied customer even went as far as to write an article on it <a href="http://www.simhq.com/_commentary/all_043a.html">here </a> <img src='http://sirdude.com/wp-includes/images/smilies/rawk.gif' alt=':rawk:' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/alternating-row-colors-in-a-post-island.html' rel='bookmark' title='Alternating row colors in a Post Island'>Alternating row colors in a Post Island</a></li>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/image-upload-directly-into-your-post.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upcoming events Custom Island</title>
		<link>http://sirdude.com/upcoming-events-custom-island.html</link>
		<comments>http://sirdude.com/upcoming-events-custom-island.html#comments</comments>
		<pubDate>Sat, 06 Nov 2010 05:26:18 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Custom island]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=777</guid>
		<description><![CDATA[Ubb.threads has a very underused, but powerful capability in what are called "Custom Islands".

You essentially can have a php code module be scheduled to run at whatever interval you want to produce output to be used as one of the custom islands (left or right) on your forums.

This will show you how

Related posts:<ul>
<li><a href='http://sirdude.com/a-custom-island-that-grabs-an-rss-feed.html' rel='bookmark' title='UBB.threads Custom Island from an RSS feed'>UBB.threads Custom Island from an RSS feed</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/getting-more-out-of-the-custom-island-editor.html' rel='bookmark' title='Getting more out of the Custom Island Editor'>Getting more out of the Custom Island Editor</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-779" style="margin: 10px;" title="Calender" src="http://sirdude.com/wp-content/uploads/2010/11/Calender-128x128.png" alt="" width="128" height="128" /><a title="UBB Central" href="http://www.ubbcentral.com/forums/ubbthreads.php/ubb/cfrm">Ubb.threads</a> has a very underused, but powerful capability in what are called &#8220;Custom Islands&#8221;.</p>
<p>You essentially can have a php code module be scheduled to run at whatever interval you want to produce output to be used as one of the custom islands (left or right) on your forums.</p>
<p>I was recently asked to provide such a beast for a customer of mind at <a title="Fishing Minnesota forums" href="http://fishingminnesota.com/forums">Fishing Minnesota</a> and figured that I would share it with the Threads public. Thanks to Rick Paquin for this!</p>
<p>I&#8217;ve done the work, so all you have to do is copy the code and paste it into one of your empty custom islands, enable it, set a schedule for how often it updates and you are good to go.</p>
<p>The code is shown below:</p>
<pre class="brush: php; title: ; notranslate">/* PHP CODE HERE, IF NECESSARY */

# Change the next parameter to the maximum future events you want
$maxEvents = 10;
# Change to whichever column this Custom Island will be shown (for CSS)
$portalCol = 'left';

# -- Nothing changes below, unless you are non-n00bers ;)
$intTime = time();
$dateParts = getdate($intTime);
$dtYr = $dateParts['year'];

$q = &quot;
 SELECT ce.CALENDAR_EVENT_SUBJECT, ce.TOPIC_ID, t.POST_ID,
 ce.CALENDAR_EVENT_DAY, ce.CALENDAR_EVENT_MONTH,
 ce.CALENDAR_EVENT_YEAR, ce.CALENDAR_EVENT_BODY
 FROM {$config['TABLE_PREFIX']}CALENDAR_EVENTS ce, {$config['TABLE_PREFIX']}TOPICS t
 WHERE ce.CALENDAR_EVENT_TYPE='public'
 AND ce.CALENDAR_EVENT_RECURRING = 'never'
 AND ce.CALENDAR_EVENT_YEAR &gt;= $dtYr
 AND ce.TOPIC_ID=t.TOPIC_ID
&quot;;
$r = $dbh-&gt;do_query($q);
$ceList = array();
while (list($ceSubject, $topicID, $postID, $ceDay, $ceMon, $ceYr) = $dbh-&gt;fetch_array($r)) {
 $ceTime = mktime(0,0,0,$ceMon,$ceDay,$ceYr);
 if ($ceTime &gt;= $intTime) {
 $ceList[$ceTime]['Subject'] = $ceSubject;
 $ceList[$ceTime]['postID'] = $postID;
 }
}

# Create the list
$i=0;
sort($ceList);
foreach ($ceList as $ce) {
 $cssExt = ($i++&amp;1) ? '2' : '1';
 $cssClass = 'class=&quot;' . $portalCol . 'alt-' . $cssExt .'&quot;';
 if ($i == 1) {
 $htmlList .= &quot;&lt;a href=\&quot;{$config['FULL_URL']}/ubbthreads.php?ubb=showflat&amp;Number={$ce['postID']}\&quot;&gt;{$ce['Subject']}&lt;/a&gt;&quot;;
 } else {
 $htmlList .= &quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td $cssClass&gt;&quot;;
 $htmlList .= &quot;&lt;a href=\&quot;{$config['FULL_URL']}/ubbthreads.php?ubb=showflat&amp;Number={$ce['postID']}\&quot;&gt;{$ce['Subject']}&lt;/a&gt;&quot;;
 }
}

/* DO NOT CHANGE THE LINE BELOW */
$body = &lt;&lt;&lt;EOF

$htmlList

EOF;
/* DO NOT CHANGE THE LINE ABOVE */</pre>
<p>There really are only two things to change here:</p>
<ul>
<li>How many upcoming events to display (line 4)</li>
<li>Which column the island will be on (left or right &#8211; line 6)</li>
</ul>
<p>That&#8217;s it for the code!</p>
<p>The final thing to do is to configure the custom island&#8217;s behavior and I&#8217;ll just show a screenie of the parameters I chose:</p>
<p><img class="size-full wp-image-784 aligncenter" style="border: 1px solid black; margin: 10px; padding: 4px;" title="ci-params" src="http://sirdude.com/wp-content/uploads/2010/11/ci-params.jpg" alt="" width="521" height="427" /></p>
<p>I set the island to update every 2 hours (120), gave it a title and that was it! Well, almost. One final thing was to go to portal settings and select which column (left or right) to display it on and what order.</p>
<p>Here&#8217;s how it looks on the right hand column at Fishing Minnesota forums:</p>
<p><img class="aligncenter size-full wp-image-793" title="ci-right" src="http://sirdude.com/wp-content/uploads/2010/11/ci-right.jpg" alt="" width="174" height="292" /></p>
<p>Enjoy and hit the tip jar on the upper right of the site, if you find this worth it  <img src='http://sirdude.com/wp-includes/images/smilies/smiley.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/a-custom-island-that-grabs-an-rss-feed.html' rel='bookmark' title='UBB.threads Custom Island from an RSS feed'>UBB.threads Custom Island from an RSS feed</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
<li><a href='http://sirdude.com/getting-more-out-of-the-custom-island-editor.html' rel='bookmark' title='Getting more out of the Custom Island Editor'>Getting more out of the Custom Island Editor</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/upcoming-events-custom-island.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Innovative way to use Google</title>
		<link>http://sirdude.com/innovative-way-to-use-google.html</link>
		<comments>http://sirdude.com/innovative-way-to-use-google.html#comments</comments>
		<pubDate>Fri, 14 May 2010 01:34:30 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Neat stuff]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=754</guid>
		<description><![CDATA[This guy spent $6 on google adwords and used it very wisely.. Great stuff!
No related posts.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-756" style="margin: 10px; border: medium none;" title="Thumbs_Up" src="http://sirdude.com/wp-content/uploads/2010/05/Thumbs_Up.png" alt="" width="128" height="128" /></p>
<p>This is an interesting use of Google Adwords.</p>
<p>I&#8217;ve notice it in the past where I will Google (yes, that is also now accepted as a verb  <img src='http://sirdude.com/wp-includes/images/smilies/laugh.gif' alt=':D' class='wp-smiley' />  ) something and the top hit returned is something seemingly unrelated or pretty &#8216;far fetched&#8217; from what  I was actually looking for.</p>
<p>Cudos to this guy for taking advantage of it.</p>
<p>Watch and see what he did!</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/7FRwCs99DWg?fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7FRwCs99DWg?fs=1" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Smart man!  <img src='http://sirdude.com/wp-includes/images/smilies/rawk.gif' alt=':rawk:' class='wp-smiley' /> </p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/innovative-way-to-use-google.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Gametrailers.com video tag</title>
		<link>http://sirdude.com/adding-a-gametrailer-com-video-tag.html</link>
		<comments>http://sirdude.com/adding-a-gametrailer-com-video-tag.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 21:41:08 +0000</pubDate>
		<dc:creator>SD</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[7.x]]></category>
		<category><![CDATA[bbcode]]></category>
		<category><![CDATA[UBB.threads]]></category>

		<guid isPermaLink="false">http://sirdude.com/?p=730</guid>
		<description><![CDATA[A customer of mine recently wanted to know if I could gin up a custom ubbcode tag for Gametrailer.com and I obliged him.
Related posts:<ul>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/adding-smiley-pop-up-to-the-shoutbox.html' rel='bookmark' title='Adding Smiley pop-up to the Shoutbox'>Adding Smiley pop-up to the Shoutbox</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-743" style="margin: 10px; border: none;" title="package" src="http://sirdude.com/wp-content/uploads/2010/04/pack.png" alt="" width="128" height="128" />A customer of mine recently wanted to know if I could gin up a custom ubbcode tag for <a href="http://gametrailers.com">Gametrailers.com</a> and I obliged him.</p>
<p>The first thing is to note a pattern that can be matched from the video URL and the resulting embed code at the site. In most cases, this is what you want to do; look at a source URL or other identifier and try to find a correlation between that and the resulting html markup that is normally called the <em>embed code.</em></p>
<p>For this example, the URL I used was:</p>
<pre class="brush: xml; title: ; notranslate">http://www.gametrailers.com/video/pax-east-breach/63822</pre>
<p>and the resulting embed code was:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div style=&quot;width: 480px;&quot;&gt;
  &lt;object
    classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;
    codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot;
    id=&quot;gtembed&quot;
    width=&quot;480&quot;
    height=&quot;392&quot;&gt;
  &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;
  &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
  &lt;param name=&quot;movie&quot; value=&quot;http://www.gametrailers.com/remote_wrap.php?mid=63822&quot;/&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
  &lt;embed
    src=&quot;http://www.gametrailers.com/remote_wrap.php?mid=63822&quot;
    swLiveConnect=&quot;true&quot;
    name=&quot;gtembed&quot;
    align=&quot;middle&quot;
    allowScriptAccess=&quot;sameDomain&quot;
    allowFullScreen=&quot;true&quot;
    quality=&quot;high&quot;
    pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot;
    type=&quot;application/x-shockwave-flash&quot;
    width=&quot;480&quot;
    height=&quot;392&quot;&gt;
  &lt;/embed&gt;
  &lt;/object&gt;
&lt;div style=&quot;font-size: 10px; font-family: Verdana; text-align: center; width: 480px; padding-top: 2px; padding-bottom: 2px; background-color: black; height: 32px;&quot;&gt;
  &lt;div&gt;
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://www.gametrailers.com&quot; title=&quot;GameTrailers.com&quot;&gt;Video Games&lt;/a&gt; |
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://www.gametrailers.com/game/breach/12938&quot; title=&quot;Breach&quot;&gt;Breach&lt;/a&gt; |
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://www.gametrailers.com/video/pax-east-breach/63822&quot; title=&quot;PAX East 10: Destruction Walkthrough&quot;&gt;PAX East 10: Destruction Walkthrough&lt;/a&gt;
  &lt;/div&gt;
  &lt;div style=&quot;padding-top: 3px;&quot;&gt;
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://xbox360.gametrailers.com/&quot; title=&quot;XBox 360&quot;&gt;XBox 360&lt;/a&gt; |
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://ps3.gametrailers.com/&quot; title=&quot;PS3&quot;&gt;Playstation 3&lt;/a&gt; |
    &lt;a style=&quot;color:#FFFFFF;&quot; href=&quot;http://wii.gametrailers.com/&quot; title=&quot;Wii&quot;&gt;Nintendo Wii&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>I cleaned up the code to be on multiple lines, instead of a giant glob of embed code, for readability.</p>
<p>The first thing I want to do is just to remove the extraneous crap after the object and embed code. No need to have all those extra links, so we&#8217;ll just remove them and the resulting embed code looks like this:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;gt-embed&quot;&gt;
  &lt;object
    classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;
    codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot;
    id=&quot;gtembed&quot;
    width=&quot;480&quot;
    height=&quot;392&quot;&gt;
  &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;
  &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
  &lt;param name=&quot;movie&quot; value=&quot;http://www.gametrailers.com/remote_wrap.php?mid=63822&quot;/&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
  &lt;embed
    src=&quot;http://www.gametrailers.com/remote_wrap.php?mid=63822&quot;
    swLiveConnect=&quot;true&quot;
    name=&quot;gtembed&quot;
    align=&quot;middle&quot;
    allowScriptAccess=&quot;sameDomain&quot;
    allowFullScreen=&quot;true&quot;
    quality=&quot;high&quot;
    pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot;
    type=&quot;application/x-shockwave-flash&quot;
    width=&quot;480&quot;
    height=&quot;392&quot;&gt;
  &lt;/embed&gt;
  &lt;/object&gt;
&lt;/div&gt;
</pre>
<p>Also note that I wrapped the whole thing in a containing div with the <em>class=&#8221;gt-embed&#8221;</em></p>
<p>The key things to note is the relationship between the URL and the resulting embed and to further hone in on that point, lines 10 and 13 are key. They take the numeric value from the URL and include it there.</p>
<p>This is where a regex comes into play. We&#8217;ll capture that number from the URL and substitute it into the embed code and be done with it.</p>
<p>The regex that does this is:</p>
<pre class="brush: php; title: ; notranslate">(|.*/video/.*/)(\d+)</pre>
<p>It has two captures, with the first one being just to discard all of the URL up to the final numeric value. The second capture is then used in the substitution markup as follows:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;gt-embed&quot;&gt;
	&lt;object
		classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;
		codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot;
		id=&quot;gtembed&quot;
		width=&quot;480&quot;
		height=&quot;392&quot;&gt;
	&lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;
	&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
	&lt;param name=&quot;movie&quot; value=&quot;http://www.gametrailers.com/remote_wrap.php?mid=\\2&quot;/&gt;
	&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
	&lt;embed
		src=&quot;http://www.gametrailers.com/remote_wrap.php?mid=\\2&quot;
		swLiveConnect=&quot;true&quot;
		name=&quot;gtembed&quot;
		align=&quot;middle&quot;
		allowScriptAccess=&quot;sameDomain&quot;
		allowFullScreen=&quot;true&quot;
		quality=&quot;high&quot;
		pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot;
		type=&quot;application/x-shockwave-flash&quot;
		width=&quot;480&quot;
		height=&quot;392&quot;&gt;
	&lt;/embed&gt;
	&lt;/object&gt;
&lt;/div&gt;</pre>
<p>Lines 10 and 13 use the <em>\\2</em> to represent the 2nd capture value; namely the number.</p>
<p>That&#8217;s it!</p>
<p>One further thing to note is that the gametrailer site also has user videos too and the relationship between URL and resulting embed is slightly different. It is different enough to warrant another ubbcode tag.</p>
<p>Rather than go into all of what would pretty much be the same concept, I will just include the exported tags. You  can import both of them in the Custom Tag editor and make any changes you&#8217;d like. For example, you might want to use different tags than what I chose ( and ).</p>
<p>That is all up to you.</p>
<div class="download">
<p>Text or Zip available, you decide:</p>
<p><img alt="txt" title="txt" class="download-icon" src="http://sirdude.com/wp-content/plugins/download-monitor/img/filetype_icons/document-text.png" /><a href="http://sirdude.com/wp-content/plugins/download-monitor/download.php?id=4" title="Downloaded 195 times">Gametrailer ubbcode - v1.1</a> - Downloaded 195 times<br />
<img alt="zip" title="zip" class="download-icon" src="http://sirdude.com/wp-content/plugins/download-monitor/img/filetype_icons/document-zipper.png" /><a href="http://sirdude.com/wp-content/plugins/download-monitor/download.php?id=5" title="Downloaded 179 times">Gametrailer ubbcode (zipped) - v1.1</a> - Downloaded 179 times</p>
</div>
<p>The  <img src='http://sirdude.com/wp-includes/images/smilies/llama.gif' alt=':llama:' class='wp-smiley' />  approves.  <img src='http://sirdude.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Related posts:<ul>
<li><a href='http://sirdude.com/adding-a-top-logo-to-your-ubb-threads-forum.html' rel='bookmark' title='Adding a top logo to your UBB.threads forum'>Adding a top logo to your UBB.threads forum</a></li>
<li><a href='http://sirdude.com/adding-smiley-pop-up-to-the-shoutbox.html' rel='bookmark' title='Adding Smiley pop-up to the Shoutbox'>Adding Smiley pop-up to the Shoutbox</a></li>
<li><a href='http://sirdude.com/ubb-threads-twitter-custom-island.html' rel='bookmark' title='UBB.threads Twitter Custom Island'>UBB.threads Twitter Custom Island</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://sirdude.com/adding-a-gametrailer-com-video-tag.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.200 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-29 19:41:44 -->

