<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19002" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2012-06-16T11:45:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19002</id>

		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-06-16T11:45:05-04:00</updated>

		<published>2012-06-16T11:45:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99611#p99611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99611#p99611"/>
		<title type="html"><![CDATA[Embed Youtube Links to a HTML File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99611#p99611"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=18765" class="postlink">http://forum.egghelp.org/viewtopic.php?t=18765</a><br><br>quick forum search returned this.. sounds like what your after<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Sat Jun 16, 2012 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-16T11:15:06-04:00</updated>

		<published>2012-06-16T11:15:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99610#p99610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99610#p99610"/>
		<title type="html"><![CDATA[Embed Youtube Links to a HTML File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99610#p99610"><![CDATA[
Hey doggo,<br><br>Thanks for the script. great stuff!<br><br>Any chance for something similiar, embeding images like .jpg &amp; .bmp please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jun 16, 2012 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-06-16T09:26:46-04:00</updated>

		<published>2012-06-16T09:26:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99609#p99609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99609#p99609"/>
		<title type="html"><![CDATA[Embed Youtube Links to a HTML File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99609#p99609"><![CDATA[
give this a go<br><br>result can be seen <a href="http://omgwtfnzbs.com/youtube.html" class="postlink">http://omgwtfnzbs.com/youtube.html</a><br>has a "dupe checker" so should only save the link to the video once <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><div class="codebox"><p>Code: </p><pre><code># 16/06/2012 # by doggo #omgwtfnzbs @ EFNET # youtube_html.tcl #########################################################bind pubm -|- "% *http://*youtube*" youtube_html#file must exist or you will get an error!set fname "/var/www/youtube.html"proc youtube_html {nick userhost handle channel args} {global fname#edit at own risk!if {[regexp -nocase -- {http://.*youtube.com/watch\?(.*)v=([A-Za-z0-9_\-]+)} $args match fluff video_id]} {       #check if its allready in the file       set file [open $fname r]        set data [read $file]        close $file        foreach line [split $data \n] {            if { [string match -nocase "*$video_id*" "$line"] == 1 } {                catch {unset data}               #stops the video being added again               putlog "youtube link exists.";return           }        } #not in the file? then we will add itset tformat "%a, %d %b %Y @ %r" set date [clock format [clock seconds] -format $tformat]set fp [open $fname "a"]set line_to_add "&lt;center&gt;&lt;strong&gt;$nick $channel $date&lt;/strong&gt;&lt;br /&gt;&lt;iframe class=\"youtube-player\" width=\"1000\" height=\"500\" src=\"http://www.youtube.com/v/$video_id\" frameborder=\"0\" allowfullscreen&gt;&lt;/iframe&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;" puts $fp $line_to_add close $fp   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Sat Jun 16, 2012 9:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-09T14:48:16-04:00</updated>

		<published>2012-06-09T14:48:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99582#p99582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99582#p99582"/>
		<title type="html"><![CDATA[Embed Youtube Links to a HTML File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99582#p99582"><![CDATA[
Well my idea is this:<br><br>Lets say someone posts a youtube url, for example: <a href="http://www.youtube.com/watch?v=lKpMePk-fHg&amp;feature=g-vrec" class="postlink">http://www.youtube.com/watch?v=lKpMePk- ... ure=g-vrec</a><br><br>The script will fetch the embed code for that link and write to a .html file<br><br>Let me show you what I mean, if you go to <a href="http://www.youtube.com/watch?v=lKpMePk-fHg&amp;feature=g-vrec" class="postlink">http://www.youtube.com/watch?v=lKpMePk- ... ure=g-vrec</a><br>and click on 'Share' you can click on a 'Embed' button that will write you the code I need to write to a html file so it will embed the link.<br><br>I want to embed youtube videos posted in the channel to a .html file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jun 09, 2012 2:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
