<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Hot Feeds in YouTube (14 Feeds)"
directory_title="Dir You Tube feeds "
description="14 You Tube feeds including most viewed, most discussed, top rated , top featured You Tube Feeds "
author="yezzbi"
author_email="yezzbi+gadgs@gmail.com"
author_affiliation="Finla Inc."
author_location="Lake View, appolllo"
screenshot="http://milloz.com/gadg/HotFeedsinYouTube.png"
thumbnail="http://milloz.com/gadg/HotFeedsinYouTube.png"
height="350"
scrolling="true"
singleton="false">
<Require feature="setprefs"/>
<Require feature="tabs"/>
<Require feature="analytics"/>
</ModulePrefs>
<UserPref name="title" display_name="Gadget Title" default_value="Hot Feeds in YouTube"/>
<UserPref name="tabFontSize" display_name="Tab Font Size" default_value="0.7em"/>
<UserPref name="showFeedDesc" display_name="Feed Descriptions" datatype="bool" default_value="true"/>
<UserPref name="entries" display_name="# of Entries" datatype="enum" default_value="15">
<EnumValue value="3"/>
<EnumValue value="4"/>
<EnumValue value="5"/>
<EnumValue value="6"/>
<EnumValue value="7"/>
<EnumValue value="8"/>
<EnumValue value="9"/>
<EnumValue value="10"/>
<EnumValue value="11"/>
<EnumValue value="12"/>
<EnumValue value="20"/>
<EnumValue value="50"/>
</UserPref>
<UserPref name="summaries" display_name="Summaries" datatype="enum" default_value="200">
<EnumValue value="-1" display_value="none"/>
<EnumValue value="100" display_value="short"/>
<EnumValue value="200" display_value="medium"/>
<EnumValue value="300" display_value="long"/>
<EnumValue value="400" display_value="longer"/>
<EnumValue value="0" display_value="show all"/>
</UserPref>
<UserPref name="renderHtml" display_name="Render HTML" datatype="bool" default_value="true"/>
<UserPref name="showTimestamp" display_name="Show Timestamp" datatype="bool" default_value="true"/>
<UserPref name="selectedTab" datatype="hidden"/>
<Content type="html"><![CDATA[
   <div style="background-color: #FFD363;padding:1px;border-color:#FFDE63;border-style:inset;border-width:3pt; margin:1px; ">
 <span class="span1 color1 ">Search Youtube for a video</span><br/>
   <center> 
  <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
  <div>
    <input type="hidden" name="cx" value="partner-pub-2949935375931860:ko8ye3-x49s" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="20" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
<form name="selecter">
<select name="select1">
<option value=none>Select a Youtube Feed to Read
<option value=none>--------------------
<option value="1">Most Discussed This Month
<option value="2">Most Discussed This Week
<option value="3">Most Discussed Today
<option value="4">Official You Tube Feed
<option value="5">Recently Added
<option value=none>--------------------
<option value="6">Recently Featured
<option value="7">Top Favorites Today
<option value="8">Top Rated
<option value="9">Top Rated Today
<option value="10">Top Viewed This Month
<option value=none>--------------------
<option value="11">Top Viewed All Time
<option value="12">Top Viewed This Week
<option value="13">Top Viewed Today
<option value="14">YouTube Top Favorites
<option value="15">
</select>
<input type="button" value="Click me to Load Feed" onclick="go()">
</form>
</center>
<div id="mentoxkcontent_div">Loading </div>
<style type="text/css">
  .Txtcolor1 {color:rgb(255, 255, 153);}

.color1 {background:rgb(204, 255, 204);}

.color2 {background:rgb(255, 255, 153);}

.span1    {padding-left:20px;padding-right:20px;text-align:center;align:center;}


#main { background-color: #4F860F;}

.statusLabel {
font-size: 0.75em;
font-style: italic;
padding-top: 10px;
text-align: center;
color: #555555;
}
.feedHeader {
padding-left: 2px;
font-size: 0.7em;
color: #559955;
}
.feedHeader .feedTitle {
font-weight: bold;
font-size: 1.1em;
color: #676767;
}
.feedHeader .feedAuthor {
font-weight: normal;
padding: 2px 30px 2px 3px;
font-size: 0.8em;
color: #679967;
}

.feedList {
font-size: 0.8em;
margin: 0px;
padding: 0px 0px 3px 0px;
border-bottom: 3px solid #aaaaaa;
text-align: justify;
}
.feedList li {
margin-top: 5px;
padding: 20px 3px 20px 3px;
border-top: 1px solid #aaaaaa;
//color: #55FF55;
}
.feedList li div.entryTitle a {
font-weight: bold;
color: #55FF55;
}
.feedList li div.entryTimestamp {
font-size: 0.95em;
font-style: italic;
padding: 3px 3px 8px 8px;
color: #676767;
}
</style>
<script>
// Global variables
var prefs = new _IG_Prefs(__MODULE_ID__);
//var tabs = new _IG_Tabs(__MODULE_ID__);

function callbackTab(tabId, feedUrl) {
var showFeedDesc = prefs.getBool("showFeedDesc");
var summaries = prefs.getInt("summaries");
var entries = prefs.getInt("entries");
var renderHtml = prefs.getBool("renderHtml");
var showTimestamp = prefs.getBool("showTimestamp");
var container = _gel("mentoxkcontent_div");

// Display loading message before fetching feed.
container.innerHTML = '<div class="statusLabel">Loading...</div>';

// Fetch feed and return it as a JSON object.
// Callback function is defined within local scope.
_IG_FetchFeedAsJSON(
feedUrl,
function(feed) {
if (typeof feed == "undefined" || typeof feed.Entry == "undefined") {
container.innerHTML = '<div class="statusLabel">Invalid feed URL:<br>' + feedUrl + '</div>';
} else {
// Fetch feed successful. Generate HTML content from returned JSON object.
// Create feed header containing title and description.
var html = new Array();
html.push('<div class="feedHeader">');
html.push('<div class="feedTitle">');
html.push((feed.Link != "") ? '<a target="_top" href="' + _hesc(feed.Link) + '">' + _hesc(feed.Title) + '</a>' :

_hesc(feed.Title));
html.push((feed.Author != "") ? '<span class="feedAuthor"> by ' + _hesc(feed.Author) + '</span>' : "");
html.push('</div>');
if (showFeedDesc) {
html.push('<div class="feedDesc">' + _hesc(feed.Description) + '</div>');
}
html.push('</div>');

// Iterate through each feed entry and generate list of content.
html.push('<ul class="feedList">');
for (var n = 0; n < feed.Entry.length; n++) {
var entry = feed.Entry[n];
html.push('<li>');
html.push('<a target="_top" href="' + entry.Link + '"><b>' + _hesc(entry.Title) + '</b></a>');
if (typeof entry.Summary != "undefined" && entry.Summary != "") {
var summary = document.createElement("div");
summary.innerHTML = (summaries == 0) ? entry.Summary : entry.Summary.substr(0, summaries);
html.push('<div class="entrySummary">');
html.push((renderHtml ? summary.innerHTML : _hesc(summary.innerHTML)));
html.push('</div>');
}
if (!isNaN(entry.Date) && showTimestamp) {
html.push('<div class="entryTimestamp">[' + new Date(entry.Date * 1000).toLocaleString() + ']</div>');
}
html.push('</li>');
}
html.push('</ul>');
container.innerHTML = html.join("");
}

// Resize iframe height to fit content.
//_IG_AdjustIFrameHeight();
},
entries,
(summaries > -1)
);
}
//--------------------------------------------------------------------------
</script>
<script language="Javascript" type="text/javascript" src="http://milloz.com/js/HotFeedsinYouTube.php">

</script>
<script>
callbackTab("1", "http://youtube.com/rss/global/most_discussed_month.rss");
</script>

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=3457674;
var sc_invisible=1;
var sc_partition=38;
var sc_security="cdc8ceb5";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c39.statcounter.com/3457674/0/cdc8ceb5/1/" alt="counter hit xanga" ></a></div></noscript>
<!-- End of StatCounter Code -->

<!-- start of google analytics Code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2889612-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<!-- end of google analytics Code -->
</div>

]]>
</Content>
</Module>




