Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Using video/flash in topics?
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 17

Ston
Starting Member

8 Posts

Posted - 13 December 2006 :  06:13:17  Show Profile  Reply with Quote
thanks a great help
look forward to an update ;-)

Ston<
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 16 January 2007 :  08:50:09  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
GoogleVideo have stopped posting the links next to their videos (though they post them on YouTube which is owned by Google). Any tips on how to extract the links?

Here's an example:
http://video.google.com/videoplay?docid=-6936018071617551184

I ask not because i want to 'pirate' links, but because I want to put my own stuff up there and the quality seems better.

BTW, any chance of integrating Youare.tv and ifilm into this mod? Both sites include tags for embedding and oare of far better quality than YouTube.
http://www.youare.tv/watch.php?id=2262
http://www.ifilm.com/video/2813025<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 16 January 2007 :  09:21:43  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Karel; The docid is the 'extracted' link:
http://video.google.com/videoplay?docid=-6936018071617551184 is the webplayer
http://video.google.com/googleplayer.swf?docId=-6936018071617551184 is just the SWF

Here's the functio I'm using :
Function ReplaceGoogleVideoTags(fString)
 	Dim oTag, cTag
 	Dim roTag, rcTag
 	Dim oTagPos, cTagPos
 	Dim nTagPos
 	Dim counter1, counter2
 	Dim strCodeText
 	Dim Tagcount
 	Dim strTempString, strResultString
 	TagCount = 2
  	Dim CodeTags(2,2,2)
 	Dim strArray, strArray2

 	CodeTags(1,1,1) = "[gvid]"
	CodeTags(1,2,1) = "[/gvid]"
	CodeTags(1,1,2) = "<div class=""media""><script language=""javascript"">EmbedGvidT("""
	CodeTags(1,2,2) = """)</script></div><div class=""break""></div>"
	
 	CodeTags(2,1,1) = "[GVID]"
 	CodeTags(2,2,1) = "[/GVID]"
 	CodeTags(2,1,2) = CodeTags(1,1,2)
 	CodeTags(2,2,2) = CodeTags(1,2,2)

 	strResultString = ""
 	strTempString = fString

 	for counter1 = 1 to TagCount

 		oTag   = CodeTags(counter1,1,1)
 		roTag  = CodeTags(counter1,1,2)
 		cTag   = CodeTags(counter1,2,1)
 		rcTag  = CodeTags(counter1,2,2)
 		oTagPos = InStr(1, strTempString, oTag, 1)
 		cTagPos = InStr(1, strTempString, cTag, 1)

 		if (oTagpos > 0) and (cTagPos > 0) then
 		 	strArray = Split(strTempString, oTag, -1)
 		 	for counter2 = 0 to Ubound(strArray)
 		 		if (Instr(1, strArray(counter2), cTag) > 0) then
 		 			strArray2 = split(strArray(counter2), cTag, -1)
					strCodeText = trim(strArray2(0))
					strCodeText = replace(strCodeText,"http://video.google.com/videoplay?docid=","http://video.google.com/googleplayer.swf?docId=")
 					if instr(strCodeText,",") > 0 or _
	 				 	instr(strCodeText,")") >0 or _
	 				  	instr(strCodeText,"(") >0 or _
	 				   	instr(strCodeText,";") >0 or _
	 				   	instr(strCodeText,"""") >0 or _
	 				  	instr(strCodeText,"<") >0 or _
	 				  	instr(strCodeText,">") >0 or _
	 				    instr(strCodeText,"[") >0 or _
	 					instr(strCodeText,"]") >0 or _
	 				 	instr(strCodeText,",") >0 then
 					 		strCodeText = "illegal"
					end if 		 			
				strResultString = strResultString & roTag & strCodeText & rcTag & strArray2(1)
 		 		else
 		 			strResultString = strResultString & strArray(counter2)
 		 		end if	
 		 	next  

			strTempString = strResultString
 			strResultString = ""
 		end if
	next

	ReplaceGoogleVideoTags = strTempString 
end function

Haven't checked out iFilm and oare.tv yet.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 16 January 2007 09:23:03
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 16 January 2007 :  09:30:25  Show Profile  Visit MarcelG's Homepage  Reply with Quote
BTW ; had a quick look at YouAre.tv.
Those are very easy.

the video that's found at http://www.youare.tv/watch.php?id=2262 results in a flash file located at http://www.youare.tv/player/yatvplayer.swf?videoID=2262
So, here's the function:
Function ReplaceYouAreVideoTags(fString)
 	Dim oTag, cTag
 	Dim roTag, rcTag
 	Dim oTagPos, cTagPos
 	Dim nTagPos
 	Dim counter1, counter2
 	Dim strCodeText
 	Dim Tagcount
 	Dim strTempString, strResultString
 	TagCount = 2
  	Dim CodeTags(2,2,2)
 	Dim strArray, strArray2

 	CodeTags(1,1,1) = "[youare]"
	CodeTags(1,2,1) = "[/youare]"
	CodeTags(1,1,2) = "<div class=""media""><script language=""javascript"">EmbedFlashT("""
	CodeTags(1,2,2) = """,470,360,""false"",""best"",""white"",""white"")</script></div><div class=""break""></div>"
	
 	CodeTags(2,1,1) = "[YOUARE]"
 	CodeTags(2,2,1) = "[/YOUARE]"
 	CodeTags(2,1,2) = CodeTags(1,1,2)
 	CodeTags(2,2,2) = CodeTags(1,2,2)

 	strResultString = ""
 	strTempString = fString

 	for counter1 = 1 to TagCount

 		oTag   = CodeTags(counter1,1,1)
 		roTag  = CodeTags(counter1,1,2)
 		cTag   = CodeTags(counter1,2,1)
 		rcTag  = CodeTags(counter1,2,2)
 		oTagPos = InStr(1, strTempString, oTag, 1)
 		cTagPos = InStr(1, strTempString, cTag, 1)

 		if (oTagpos > 0) and (cTagPos > 0) then
 		 	strArray = Split(strTempString, oTag, -1)
 		 	for counter2 = 0 to Ubound(strArray)
 		 		if (Instr(1, strArray(counter2), cTag) > 0) then
 		 			strArray2 = split(strArray(counter2), cTag, -1)
					strCodeText = trim(strArray2(0))
					strCodeText = replace(strCodeText,"http://www.youare.tv/watch.php?id=","http://www.youare.tv/player/yatvplayer.swf?videoID=")
 					if instr(strCodeText,",") > 0 or _
	 				 	instr(strCodeText,")") >0 or _
	 				  	instr(strCodeText,"(") >0 or _
	 				   	instr(strCodeText,";") >0 or _
	 				   	instr(strCodeText,"""") >0 or _
	 				  	instr(strCodeText,"<") >0 or _
	 				  	instr(strCodeText,">") >0 or _
	 				    instr(strCodeText,"[") >0 or _
	 					instr(strCodeText,"]") >0 or _
	 				 	instr(strCodeText,",") >0 then
 					 		strCodeText = "illegal"
					end if 		 			
				strResultString = strResultString & roTag & strCodeText & rcTag & strArray2(1)
 		 		else
 		 			strResultString = strResultString & strArray(counter2)
 		 		end if	
 		 	next  

			strTempString = strResultString
 			strResultString = ""
 		end if
	next

	ReplaceYouAreVideoTags = strTempString 
end function

Be sure that add this function to FormatStr(), and to add the [youare][/youare] tags to the exceptions for the URL handling.

For iFilm ; they use some form of 'conversion' between the number in the URL (2813025) and the SWF (efp). As I don't know which conversion algorithm they use, all you can do is simply take the embedding code, extract the object source, and embed that as SWF, using the flash tags.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 16 January 2007 09:34:48
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 16 January 2007 :  10:35:30  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
Thanks. I'll let you know how I do.<
Go to Top of Page

OBmoderator
New Member

98 Posts

Posted - 16 January 2007 :  11:33:32  Show Profile  Reply with Quote
Marcel,
How do you add that box in a post<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 16 January 2007 :  11:39:54  Show Profile  Visit JJenson's Homepage  Reply with Quote
use the scrollcode tags so some thing like [] putting scrollcode in between them and then [/] with scrollcode after the backslash.<
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 16 January 2007 :  12:29:53  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
Post an example here

(pretty please... )<
Go to Top of Page

OBmoderator
New Member

98 Posts

Posted - 16 January 2007 :  13:16:06  Show Profile  Reply with Quote
OK,
That works here but not on my forum.
is there an add on I'm missing to enable that feature?
<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 16 January 2007 :  13:19:21  Show Profile  Visit JJenson's Homepage  Reply with Quote
Yeah you need to do a search on scrollcode HuwR mentions how to implement it in a topic somewhere not sure where right now.<
Go to Top of Page

OBmoderator
New Member

98 Posts

Posted - 16 January 2007 :  14:08:19  Show Profile  Reply with Quote
found it.<

Edited by - OBmoderator on 16 January 2007 17:18:44
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 16 January 2007 :  14:55:46  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
Shouldn't this be a seperate thread?<
Go to Top of Page

OBmoderator
New Member

98 Posts

Posted - 16 January 2007 :  17:18:25  Show Profile  Reply with Quote
yes.
My error
I appologise
<
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 17 January 2007 :  10:07:42  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
No probs.

For those that may want to persue it here are buttons for iFilm and YouAre.tv








<
Go to Top of Page

Carlos Miranda Levy
Starting Member

26 Posts

Posted - 10 March 2007 :  02:18:52  Show Profile  Reply with Quote
Can't get YouTube or Google Video to work

  1. I uploaded the basic files and followed the instructions on
    http://oxle.com/topic.asp?tid=3437

  2. I then followed the instructions at http://oxle.com/topic.asp?tid=4113 and copied from http://oxle.com/source.asp?page=inc_func_common.asp:
    • The ReplaceGoogleVideoTags and ReplaceTubeTags functions

    • (UCase(Right(strArray(Counter-1), 6)) <> "[TUBE]") and _
      (UCase(Right(strArray(Counter-1), 6)) <> "[GVID]") and _

  3. I updated embedding.js, copying all content over from http://oxle.com/source.asp?page=embedding.js

  4. I have done ILLHILL's update of the EmbedTubeVideoT EmbedTubeVideo functions in embedding.js to recognize the "watch" change in the URL as mentioned in:
    http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60387&whichpage=7
    (I tried using the old format for the link before changing it and no luck either).


The Mod works, as I am able to embed WMV's, however I can't get Youtube or GoogleVideo to work.

Take a look at:
http://www.civila.com/comun/foros/topic.asp?TOPIC_ID=41555

User name: test
Password: test

By the way, I am using Image's MultiLang 3D Portal, which already includes a [flash] tag and function, but I have commented it out to avoid conflicts.
'fString = doCode(fString, "[flash ",":","<EMBED WIDTH=""",""" HEIGHT=""")
'fString = doCode(fString, "]","[/flash]",""" SRC=""",""" HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>")

Marcel, do you have youtube currently working on your site? Anyone?

Thanks,

Carlos.<

Edited by - Carlos Miranda Levy on 10 March 2007 02:20:11
Go to Top of Page
Page: of 17 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07