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

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 10 March 2007 :  13:20:34  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Carlos, sorry, I changed embedding.js to video.js. Try that one: http://oxle.com/video.js<

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

Carlos Miranda Levy
Starting Member

26 Posts

Posted - 10 March 2007 :  20:45:26  Show Profile  Reply with Quote
quote:
Originally posted by MarcelG

Carlos, sorry, I changed embedding.js to video.js. Try that one: http://oxle.com/video.js



Thnx,

got it working as I explained on your site.

Great work.<
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 18 May 2007 :  08:40:51  Show Profile  Reply with Quote
Hi,

Great work!

Having a little trouble, appreciate some help.

I have wmv files working perfectly but having trouble with flv files and videos that are on youtube. I'm more concerned getting the youtube working right now than the flash.

I think I'm missing the youtube code and the tags to do this which isn't in the original instructions. I tried to follow the youtube message discussion but was having trouble understanding exactly what I need to do to get youtube to work.

I followed all the instructions here:
http://oxle.com/topic.asp?tid=3437

Thanks again for this great enhancement. Appreciate any comments or help.
<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 18 May 2007 :  09:27:30  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Zenfor,

For YouTube to work you need to use the function ReplaceTubeTags.
Here's my source : http://oxle.com/source.asp?page=inc_func_common.asp&lines=yes
On line 546 of my inc_func_common.asp I added the call to ReplaceTubeTags to the function FormatStr(fString).
fString = ReplaceTubeTags(fString)

And then, further on (starting on line 2023) the function itself.
I cannot paste the code here....(cause some of it is being interpreted).

To prevent the youtube urls from being interpreted as normal urls, we need to exclude them from that process.
This is done by adding a line to the function ChkURLs.
(UCase(Right(strArray(Counter-1), 6)) <> "[TUBE]") and _

In my version this is on line 402, but in a default inc_func_common.asp you can add it below the lines that say this:
elseif ((UCase(Right(strArray(Counter-1), 6)) <> "HREF=""") and _
				(UCase(Right(strArray(Counter-1), 5)) <> "[IMG]") and _
				(UCase(Right(strArray(Counter-1), 5)) <> "[URL]") and _
				(UCase(Right(strArray(Counter-1), 6)) <> "[URL=""") and _
				(UCase(Right(strArray(Counter-1), 8)) <> "_BLANK"">") and _

so it looks like this:
elseif ((UCase(Right(strArray(Counter-1), 6)) <> "HREF=""") and _
				(UCase(Right(strArray(Counter-1), 5)) <> "[IMG]") and _
				(UCase(Right(strArray(Counter-1), 5)) <> "[URL]") and _
				(UCase(Right(strArray(Counter-1), 6)) <> "[URL=""") and _
				(UCase(Right(strArray(Counter-1), 8)) <> "_BLANK"">") and _
				(UCase(Right(strArray(Counter-1), 6)) <> "[TUBE]") and _

Then, make sure you've got the right js file loaded ; http://oxle.com/video.js
Load that one in inc_header.asp.
Above this:
Response.Write	"<style><!--" & vbNewline & _

Add this:
response.write"<script type=""text/javascript"" src=""video.js""></script>" & vbNewLine
If you also have the line about embedding.js, remove that one, as video.js replaces it completely. Video.js also has the functions for GoogleVideo in it, but you'll need to add those functions to inc_func_common.asp similar to the YouTube functions.

That's it.

For the FLV files, I've added the [flv][/flv] function.
	fString = ReplaceFLVTags(fString)
	fString = ReplaceWFLVTags(fString)

Again the approach is similar.
Add the functions ReplaceFLVTags(fString) and ReplaceWFLVTags(fString), exclude them from ChkURLs, and you're set to go.
Only thing I ask you is to change the entry http://storage.oxle.com/flash/flvplayer.swf in video.js to your own flv-player location. This will save me some bandwidth.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 18 May 2007 09:41:17
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 18 May 2007 :  11:07:45  Show Profile  Reply with Quote
MarcelG,

I got the youtube videos to play in my forum (woohoo) and I will try the flash later after my brain takes a rest. This is a great enhancement to message forums.

http://www.eastonmass.com/forum/topic.asp?TOPIC_ID=3249

Great work and thanks for all your help!!

<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 18 May 2007 :  14:20:10  Show Profile  Visit MarcelG's Homepage  Reply with Quote
You're welcome, and have fun!

Completely offtopic: man, that site has a lot of obtrusive ads....<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 18 May 2007 14:23:45
Go to Top of Page

skellyx
Starting Member

24 Posts

Posted - 20 May 2007 :  10:18:24  Show Profile  Reply with Quote
hi to everybody
after so many tests I have succeeded in installing the mod and it works very well but if they are insert more than three video from youtube in the same page the page with explorer is very slow and some video they are not seen anymore.
has you happened to some other? you have some solution

P.s. the problem is verified only with explorer me, for example with opera, I don't find any problem then I try with explorer and disaster

Best regards
Lory<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 May 2007 :  13:46:49  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Well, it might be that more than 3 youtube flash objects is simply too heavy for the resource intensive IE ?<

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

skellyx
Starting Member

24 Posts

Posted - 24 May 2007 :  07:45:06  Show Profile  Reply with Quote
Yes
in fact in all the forums of example you don't see more than 3 of it.
the problem is only with explorer ( as always)
an idea
link and opening video in new window of dimension of the video ..........if it is possible ...mah
Hi and kiss
sorry for English terrible <

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 10 July 2007 :  09:30:36  Show Profile  Reply with Quote
Hi,

The video is working great on my site and a great way to enhance and stimulate discussions. The only thing I'm missing is adding the Format icons and code so I don't have to hand code the [tube] and [/tube] each time. My users haven't figured out how to do it yet so I have to edit their video posts. I must have missed that part in reading the documentation and postings on it. Appreciate any help or ideas. Thanks!<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 21 August 2007 :  06:30:56  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Youtube changed their link format again. These functions in embedding.js should fix the problem while supporting the old style links.
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), "");  
		genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/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>');
		document.writeln('<br><center>Hosted by <a href ="http://youtube.com" target="_blank">YouTube</a></center>');
	}
}

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), ""); 
		genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/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>');
		document.writeln('<br><center>Hosted by <a href ="http://youtube.com" target="_blank">YouTube</a></center>');
	}
}
<

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

dj_shawn
Starting Member

22 Posts

Posted - 24 August 2007 :  08:58:01  Show Profile  Reply with Quote
Hi all, I did not read this whole topic because of the length, but I think I may be able to share some info about embedding video to your Snitz Topic / Forums.

1. I use the JW Media Flash Media Player http://www.jeroenwijering.com/?item=JW_Media_Player

2. I have my boards set to only use HTML mode, no smilies, no basic forum code.

3. Here is an example of what I have been doing and it works great! NO Extra Snitz Mods needed :) http://djshawn.com/forum_/topic.asp?TOPIC_ID=141

Rock On!
DJ_Shawn<

Edited by - dj_shawn on 24 August 2007 09:01:23
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 24 August 2007 :  09:07:05  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Its a very bad idea to allow the use of html on your forum.<

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

AnonJr
Moderator

United States
5768 Posts

Posted - 24 August 2007 :  09:54:22  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I hope you absolutely know and trust all your members... allowing HTML in posts could potentially be a huge security issue - but that's a discussion for a different thread. <
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 22 September 2007 :  15:26:10  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Now I've read through all nine pages of this thread... is the info here put together somewhere or do I have to do all changes mentioned in the thread one by one? =)
<

/Tribaliztic
- www.gotlandrace.se -
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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07