![]() |
Hello, I'm an 8th grade teacher who uses tutorial videos within forum postings for my students.
I've been successful getitng a pencast (livescribe) into my forum (you can't download actual files for the pencasts, you have to put in an XML refererence within the embed code) The regular expression I'm using is: http://[\w]*[\.]*mywebsite\.[\w/&;%-\.]+/([\d\w]+)(?:.*) I did it this way so when I use $p1 I can just type in http://www.mywebsite/xmlfilename without using the extension because an extenstion like .mp4 will mess things up (as I'm referencing an XML file. However, the above expression is going to try and embed anything now that has 'mywebsite' domain in the URL. Is there anyway that I can set $p1 or $p2, etc so it only grabs the filename (as an example, if I had video.mp4, it only grabs video to put in for $p1 instead of video.mp4 -- I don't want the .mp4 or whatever extension included in $p1). I need some kind of extension so AME only embeds the appropriate links. I've tried everything, and even went to http://www.regexbuddy.com and I got to the point that the above expression sets $p1 without the extension, but now everything embeds. Help please. My 8th grades will be very appreciative, and me too :) |
Quote:
TBH, I couldn't really follow what you are trying to do. If you can provide actual examples of what users would type/paste in and what the site should show (embed code wise) I can see what I can do ;) |
:)
Here's the replacement embed code that I'm using Code:
<object height="316" width="228" align="middle" id="myFlashContent3" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://www.livescribe.com/media/swf/pencastPlayer.swf?path=http://www.livescribe.com/cgi-bin/WebObjects/LDApp.woa/wa/flashXML?xml=$p1" name="movie" /><param value="high" name="quality" /><param value="true" name="allowfullscreen" /> <object height="316" width="228" align="middle" data="http://www.livescribe.com/media/swf/pencastPlayer.swf?path=http://www.livescribe.com/cgi-bin/WebObjects/LDApp.woa/wa/flashXML?xml=$p1" type="application/x-shockwave-flash"><param value="high" name="quality" /><param value="true" name="allowfullscreen" /> <a href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" /></a></object></object> 0000C0A80116000009C5920D00000124F67ECAA959F4B88C and that's it. There's no typical filename like .mp4 or .flv. So the actual code after the $p1 is replaced looks like: Code:
<object height="316" width="228" align="middle" id="myFlashContent3" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://www.livescribe.com/media/swf/pencastPlayer.swf?path=http://www.livescribe.com/cgi-bin/WebObjects/LDApp.woa/wa/flashXML?xml=0000C0A80116000009C5920D00000124F67ECAA959F4B88C" name="movie" /><param value="high" name="quality" /><param value="true" name="allowfullscreen" /> <object height="316" width="228" align="middle" data="http://www.livescribe.com/media/swf/pencastPlayer.swf?path=http://www.livescribe.com/cgi-bin/WebObjects/LDApp.woa/wa/flashXML?xml=0000C0A80116000009C5920D00000124F67ECAA959F4B88C" type="application/x-shockwave-flash"><param value="high" name="quality" /><param value="true" name="allowfullscreen" /> <a href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" /></a></object></object> Code:
(http://[\w]*[\.]*mysite\.[\w/&;%-\.]+\.mp4) Code:
http://[\w]*[\.]*mysite\.[\w/&;%-\.]+/([\d\w]+)(?:.*) I hope that makes more sense. If you'd rather me message you privately with my actual site name for my students, I can do that, but I don't want to say it here publicly since it's a site closed to the public only for my students and for their school work and tutorial videos. Thanks! Tim |
is anyone havign problems with this plugin?? it says embedding disabled by request watch on youtube when I click the vid to watch
|
Quote:
|
To further clarify my previous post, I think really all I need help with is setting up the regular expression formula:
Either Code:
http://[\w]*[/url][\.]*mysite\.[\w/&;%-\.]+/([\d\w]+)(?:.*) Code:
http://[\w]*[/url][\.]*mysite\.[\w/&;%-\.]+\.mp4) Thanks, Tim |
I think I finally figured it out. I must have finally put the right symbol by trial and error into my regular expression. The following works in order for me to get a livescribe pencast correctly embedded:
Code:
http://[\w]*[\.]*mysite\.[\w/&;%-\.]+/([\d\w]+)\.live Tim |
Is there any way to make the container re-sizable to a greater width and height by pressing a collapse button in the corner?
|
This hack has stopped working since yesterday, seems like it needs to be updated for new Youtube settings.
|
Yeah, I can also confirm the hack has stopped parsing all YouTube links since yesterday -- it simply shows the url with the "External Embedding Not Available" title on all links (regardless whether external embedding has been enabled or not.)
Maybe something changed with YouTube's 1080p rollout? |
All times are GMT. The time now is 02:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|