vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

cliffhanger 11-17-2009 05:49 AM

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 :)

The Geek 11-17-2009 07:58 AM

Quote:

Originally Posted by cliffhanger (Post 1915735)
Help please. My 8th grades will be very appreciative, and me too :)

lol. Play my heart strings!

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 ;)

cliffhanger 11-17-2009 07:30 PM

:)

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>
I have $p1 as a replacement, and the following text gets put in for $p1

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>
The problem is when I had the regular expression as

Code:

(http://[\w]*[\.]*mysite\.[\w/&;%-\.]+\.mp4)
I could write 0000C0A80116000009C5920D00000124F67ECAA959F4B88C.m p4 even though it's not really an mp4 file, the $p1 includes the .mp4 extension. This way I can specify which linkes get embedded with a dummy .mp4 extension. But if I leave the regular expression as

Code:

http://[\w]*[\.]*mysite\.[\w/&;%-\.]+/([\d\w]+)(?:.*)
$p1 replaces correctly as 0000C0A80116000009C5920D00000124F67ECAA959F4B88C but then every link that has my domain name in it tries to get embedded. I just need a way to set $p1 or have a $p2 so I can have the correct xml reference put in (like 0000C0A80116000009C5920D00000124F67ECAA959F4B88C)

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

morphin 11-17-2009 08:43 PM

is anyone havign problems with this plugin?? it says embedding disabled by request watch on youtube when I click the vid to watch

MagicThemeParks 11-18-2009 12:53 AM

Quote:

Originally Posted by morphin (Post 1916189)
is anyone havign problems with this plugin?? it says embedding disabled by request watch on youtube when I click the vid to watch

See notes here: https://vborg.vbsupport.ru/showpost....64&postcount=3

cliffhanger 11-18-2009 02:31 AM

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]+)(?:.*)
or

Code:

http://[\w]*[/url][\.]*mysite\.[\w/&;%-\.]+\.mp4)
to have a second backreference (on how to do that) so I can use $p2. I've tried altering the formula many times, and so far nothing seems to be working.

Thanks,

Tim

cliffhanger 11-18-2009 03:18 AM

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
The .live is just a dummy extension so I'm able to identify which links are livescribe video pencasts. Thanks for your offering to help earlier -- I think I have it all figured out now.

Tim

furst 11-19-2009 03:22 AM

Is there any way to make the container re-sizable to a greater width and height by pressing a collapse button in the corner?

webgroup 11-19-2009 06:22 PM

This hack has stopped working since yesterday, seems like it needs to be updated for new Youtube settings.

jca2112 11-19-2009 07:19 PM

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
  • Page Generation 0.02001 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete