Print Page | Close Window

YouTube Mod

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25219
Printed Date: 29 March 2026 at 2:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: YouTube Mod
Posted By: DomitianX
Subject: YouTube Mod
Date Posted: 28 January 2008 at 4:56am
Since the existing code only likes the http://www.youtube.com/v/ YouTube format and most people either use the embed code or the link code presented by YouTube in the clips, I made a little mod to the format post page. Watch the wrap. Around line 839 on functions_format_post.asp

strYouTubeLink = Replace(Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos)), "watch?v=", "v/")

If the user uses the "/watch?v=" format, its replaced with the "v/" format instead.

So far it seems to work. You can post the link in the "http://www.youtube.com/v/xxxxxxx" format, the  "http://www.youtube.com/watch?v=xxxxxx" format or just the clip number and it will work either way.

If anyone sees an error in my logic, let me know.





Replies:
Posted By: iSec
Date Posted: 28 January 2008 at 7:05pm
Excellent job.
 
Bruce, I hope that this gets added to the next release. I had an awful time trying to train users on how to use the Tube BBCode.


-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: freakdaddy
Date Posted: 29 January 2008 at 6:32am
Good job, this works well!


Posted By: bconway99
Date Posted: 12 February 2008 at 5:10am
Sorry to sound all Noobish.
 
That line of code you have is that to be put in place of something or just in and around line 839?  Will it allow the poster to past a youtube link and it will display as a utube video instead of the link.
Thank you and I appreciate you allowing people to use your code.  Your knowledge and hard work is greatly appreciated


Posted By: chong67
Date Posted: 12 February 2008 at 10:07pm
How does this think work?

I added that code on post # 1, but I didnt see the youtube video.  All I see is the hyperlink.


Posted By: raisingkids
Date Posted: 13 February 2008 at 3:55pm
Superb bit of code - many thanks for all your work.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net