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

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 11 April 2006 :  20:01:08  Show Profile  Reply with Quote
Somehow YouTube stopped playing.
I noticed that Youtube keeps track
of the videos used and list linking pages/sites
on the page of the video.
Is it possible YouTube blocks these pages?
Anybody noticed anything similar?

Also another strange thing occuring is that when for example somebody posts this:

****Flash/Wmv etc. player with link****
Text (title of song etc.)

****Flash/Wmv etc. player with link****Text (title of song etc.)
****Flash/Wmv etc. player with link****
Text (title of song etc.)

in the final result it will display as this:

****Flash/Wmv etc. player with link****
Text (title of song etc.)

With the top/first player putting the text on its right side.

Anybody has the same issue or could it be due to my
changes in certain files when it comes to the blog thing?
However, I just remember that this issue happens in my regular forum too.
(I'm using version 3.4.03 of the forum)

Greets & thanks, Dominic
<

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 12 April 2006 :  03:07:19  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
DO you have a link to where this is happening on your forum? YouTube is working for me.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 12 April 2006 :  18:14:38  Show Profile  Reply with Quote
http://www.illhill.com/forum/topic.asp?TOPIC_ID=12840 (use demo demo)

The white field on the left is the YouTube.
The smaller one on the right is a Flash with a YouTube link (extracted from the YouTube embed player code).

Both have been posted with 2 enters (breaks) between them, however they get displayed next to
eachother.

Also, youtube is only displaying blank.

And, when I try to edit the post, this is how my code shows up:

[tube" SRC="http://youtube.com/watch?v=cWv5QaSuo9w[/tube]

[flash]http://www.youtube.com/v/cWv5QaSuo9w" HIDDEN="false" AUTOSTART="true" LOOP="true" volume="100"></EMBED>

I copied the last .js file Marcel linked to and uploaded that one, but still no success.
The same problem occurs in the blog app, but I thought that could be due to some heavy code modification, however the forum is not that heavily modded at all.

Greets, Dominic
<

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 12 April 2006 :  18:17:49  Show Profile  Reply with Quote
Small update: The problem with both files displayed next to eachother instead of under eachother happens only in Firefox, in IE they do display underneath eachother. However the YT is still not playing.
Internet explorer is claiming 1 file is not yet opened for that page,
but the page has been loaded for nearly 10 minutes, I have broadband and the YT in flash loaded in a couple of seconds.
I have cleared cache after the upload of the new JS but without success.

D
<

CLPPR.com - All The News Only Seconds Away

Edited by - ILLHILL on 12 April 2006 18:22:44
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 April 2006 :  07:16:23  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Illhill ; I've noticed that the permalink by Youtube has changed.
The old permalink structure:
http://www.youtube.com/?v=-4tHgI0rb-w
the new structure:
http://youtube.com/watch?=-4tHgI0rb-w
So, they ditched the www part, and replaced the ?v by ?watch
I guess this is causing the blank screen in the first media-div.

Regarding the FireFox positioning issue ; this might be caused by the <div class="break"></div> part ; maybe this class is not correctly defined in your stylesheet, or incorrect CSS according to FF?

Regarding the edit thing ; when I quote your post, the code is shown correctly. No transformation to HTML etc. Do you have the Admin Only HTML mod running ?<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 April 2006 :  09:43:39  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
I can't check it from work. Is the old YouTube permalink working or not ? I mean will the changes to the function have to process either format or just the new one ?<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 13 April 2006 :  18:18:47  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
Aw shucks! I'll be going away for a week on Sunday and will miss all the fun!

On the other hand, you guys will have all the bugs sorted out by the time I get back!

<

Edited by - Karel Bata on 13 April 2006 18:19:21
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 14 April 2006 :  03:09:46  Show Profile  Visit MarcelG's Homepage  Reply with Quote
quote:
Originally posted by Podge

I can't check it from work. Is the old YouTube permalink working or not ? I mean will the changes to the function have to process either format or just the new one ?

Both permalink formats exist next to each other.
However, an permalink entered in the new format cannot be reworked to the old format, et vice versa.<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 14 April 2006 :  14:58:50  Show Profile  Reply with Quote
Sorry for the late reply guys.
I edited Embedding.js to be able to work with the new links,
but without result.
Will look into it this weekend.

D
<

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 14 April 2006 :  18:48:33  Show Profile  Reply with Quote
I have spent some quality time with my files and solved some things.
The partial showing of code when editing was due to an old flash mod I installed.
It never worked so I forgot all about it.

But, I'm not in it just for me.
YouTube, as Marcel mentioned, has indeed changed its links.
The only change though is that they added "watch" to the link.

Therefor the YouTube functions in Embedding.js should look like this:

function EmbedTubeVideoT(YTPermalink, width, height, autostart) {
if(autostart != true && autostart != false && autostart != "true" && autostart != "false"){
autostart = false; //Replace with default. Default = false.
}//See if we can continue.
if(YTPermalink == null || YTPermalink == "illegal"){
//Nope, we can't.
document.writeln(" error: illegal use of video tag! ");
}else{
//Add the code to the document.
genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/\watch\?v\=/g), "");
//document.writeln("gencode-"+genCode);

document.writeln('<object width="' + width + '" height="' + height + '"><param name="movie" value="http://www.youtube.com/v/' + genCode + '"></param>');
document.writeln('<embed src="http://www.youtube.com/v/' + genCode + '" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
}
}

function EmbedTubeVideo(YTPermalink, width, height, autostart) {
if(autostart != true && autostart != false && autostart != "true" && autostart != "false"){
autostart = false; //Replace with default. Default = false.
}//See if we can continue.
if(YTPermalink == null || YTPermalink == "illegal"){
//Nope, we can't.
document.writeln(" error: illegal use of video tag! ");
}else{
//Add the code to the document.
genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/\watch\?v\=/g), "");
//document.writeln("gencode-"+genCode);

document.writeln('<object width="' + width + '" height="' + height + '"><param name="movie" value="http://www.youtube.com/v/' + genCode + '"></param>');
document.writeln('<embed src="http://www.youtube.com/v/' + genCode + '" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
}
}

Works like a charm once more.

Greets, Dominic


<

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Karel Bata
Junior Member

United Kingdom
122 Posts

Posted - 24 April 2006 :  05:29:16  Show Profile  Visit Karel Bata's Homepage  Reply with Quote
quote:
There's a small problem with QuickTime which I'm trying to fix.
Any news on this yet? <
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 April 2006 :  08:34:24  Show Profile  Visit AnonJr's Homepage  Reply with Quote
He's going for the Google approach: long periods of "Beta" designation followed by an eventual "official ok". <
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 24 April 2006 :  09:56:09  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Update ; also support for DailyMotion videos!
DEMO: http://oxle.com/topic.asp?tid=3798
It's a bit harder, but ok ; you need to have the HTML code that the DailyMotion website provides.
For example this one:
<div style="margin-bottom:25px;margin-top:25px;"><div style="width:320px;text-align:left;">
<style type="text/css">
<!-- #idn5sabdqi7ui0zud5iuskzpdkw3jyex7q1yexjmz{width:320px;height:256px;border:none;margin:0px;} 
--></style>
<iframe src="http://www.dailymotion.com/blog/video/124227?key=dn5sabdqi7ui0zud5iuskzpdkw3jyex7q1yexjmz" 
style="width:320px;height:256px;border:none;margin:0px;" width="320" height="256" 
frameborder="0" marginwidth="0" marginheight="0" scrolling="no" id="idn5sabdqi7ui0zud5iuskzpdkw3jyex7q1yexjmz">Dailymotion blogged video</iframe>
<br /><span style="margin-top:0px;"><a href="http://www.dailymotion.com/video/124227">QUAD LOOPING</a>
<br />Video sent by <a href="http://www.dailymotion.com/300KMH">300KMH</a>
<br /></span></div></div>

Strip out the entire URL of the iframe source.
Enclose it with [dm][/dm] ; that's it.
Add the following function to your inc_func_common.asp: fString = ReplaceDMTags(fString)
Function ReplaceDMTags(fString)
 	Dim oTag, cTag
 	Dim roTag, rcTag
 	Dim oTagPos, cTagPos
 	Dim nTagPos
 	Dim counter1, counter2
 	Dim strCodeText
 	Dim Tagcount
 	dim url
 	dim code
 	Dim strTempString, strResultString
 	TagCount = 2
  	Dim CodeTags(2,2,2)
 	Dim strArray, strArray2

 	CodeTags(1,1,1) = "[dm]"
	CodeTags(1,2,1) = "[/dm]"

	'user logged in, show the media
	CodeTags(1,1,2) = "<div style=""margin-bottom:5px;margin-top:5px;""><div style=""width:320px;text-align:left;""><style type=""text/css""><!-- #id"
	CodeTags(1,2,2) = """>Dailymotion blogged video</iframe></div></div>"

	CodeTags(2,1,1) = "[DM]"
 	CodeTags(2,2,1) = "[/DM]"
 	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))
 					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
 					if left(strCodeText,38) <> "http://www.dailymotion.com/blog/video/" then
 						strCodeText = "illegal"
 					end if
 					if len(strCodeText) > 100 or len(strCodeText) < 70 then
 						strCodeText = "illegal"
 					end if
					if strCodeText <> "illegal" then
						url = strCodeText
						code = mid(url,(instr(url,"=")+2),len(url))
						dm01 = "{width:320px;height:256px;border:none;margin:0px;} --></style><iframe src="""
						dm02 = """ style=""width:320px;height:256px;border:none;margin:0px;"" width=""320"" height=""256"" frameborder=""0"" marginwidth=""0"" marginheight=""0"" scrolling=""no"" id=""id"
 			 			strResultString = strResultString & roTag & code & dm01 & url & dm02 & code & rcTag & strArray2(1)
					else
						strResultString = strResultString & strArray(counter2)
					end if
 		 		else
 		 			strResultString = strResultString & strArray(counter2)
 		 		end if	
 		 	next  

			strTempString = strResultString
 			strResultString = ""
 		end if
	next

	ReplaceDMTags = strTempString
end function

Don't forget to add this function to FormatStr, just above or below the line fString = ReplaceWMVTags(fString)

Also, add this line to the function ChkURLs;
				(UCase(Right(strArray(Counter-1), 4)) <> "[DM]") and _

just below this line:
				(UCase(Right(strArray(Counter-1), 5)) <> "[IMG]") and _

Enjoy.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 24 April 2006 10:32:19
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 26 July 2006 :  18:59:01  Show Profile  Visit i011877's Homepage  Reply with Quote
Is all this stuff updated on your site MarcelG?<


Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 27 July 2006 :  03:33:46  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Well, I've also added GoogleVideo and Metacafe.
JS file: http://oxle.com/embeddingv2.js
Functions : http://oxle.com/source.asp?page=inc_func_common.asp<

portfolio - linkshrinker - oxle - twitter
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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07