![]() |
Quote:
Regular expression by default: PHP Code:
PHP Code:
Also the only way I was able to make Daily Motion working is to set:
|
Quote:
|
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
BTw: Extraction must be on to obtain the embed key. HTHs |
Quote:
I guess that I was under the assumption that one could change the title name that comes up as the definition of the video. Like X video @ YOURWEBSITENAME or whatever you wanted to put there. |
Guess you could edit the ame_container template and change:
<a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">$ameinfo[title]</a> to <a href="$ameinfo[url]" title="$ameinfo[title] @ YOURSITENAME" target="_blank">$ameinfo[title] @ YOURSITENAME</a> |
1 Attachment(s)
Quote:
Dailymotions URL structure is domain.suffix/various/paths/depending/on/things/name_of_video In the embed code, you see a couple of references: http://www.dailymotion.com/swf/name_of_video and http://www.dailymotion.com/swf/name_of_video So, all we need is the name_of_video which can be taken from the URL and put into the replace code. See attached definition |
Quote:
I understand that I can use only Regular expression . This is OK for me. I am trying to understand why Embedding Regexp doesn't work for me on that Daily Motion? As I understand AME does this one:
Am I right? |
You only use the Embedding Regexp if the data needed to embed cannot be found within the URL itself.
For example: if the embed code for www.myvideo.com/watch.php?v=123456 looks like: <embed src="http://www.myvideo.com/watch.php?v=abcdef" ... /> In this instance, the URL doesnt 'tie up' to the embed HTML so AME needs to go to www.myvideo.com/watch.php?v=123456 and find the abcdef part. With the Embedding Regexp, AME pulls down the page and runs something like: http://www\.myvideo\.com/watch\.php\?v=(\w+) Which grabs the abcdef part so the video will properly embed. In the event that the URL contains the information you need (i.e. the dailymotion definition I just posted) then this process is redundant and a time waster. Furthermore, the Embedding Regexp is generally different than the regexp used to match the URL in the first place. Hope this helps. |
Hi the geek, I'm interested in using AME for two things:
-Youtube (works beautifully out of the box) -local hosted .swf The second one is what I'm having trouble with... I've imported the definition for it and configured my hostname for it (only 2 instances right?) I can't get it to work though. It embeds the .swf, and shows the background or first frame of it, but otherwise is unresponsive. For an example see this: http://charles-song.com/testvb/showt...hp?p=17#post17 The .swf (a slideshow) works fine in other areas of my site, and by itself, if I put the direct url in my browser. What am I doing wrong? |
Quote:
2nd, I understand that for the current moment the dailymotion can work only with "Regular expression". This is 100% clear for me. 3rd, I am just trying based on dailymotion to make it working also with "Extract destination data". As I understand this one can be done so? And at this point I meet with the problem. Here is my test case.
And this one doesn't work. I am trying to understand - why? What I am doing wrong? :( |
Hi 'The Geek' firstly thanks for looking into CAgeFilm.com before.
I have disabled the registration process on the site to ask if you could have another quick look for me, see if this site will work with AME? I would realy appreciate your help. Am trying to launch my forum this weekend and the vid embedding is a key feature! Thanks - Tim |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
As I can see there is no meter if the URL does contain enough data or URL doesn't contain enough data. We can extract in both cases. Quote:
Any HTML page consists smth like this: HTML Code:
<HTML> |
I recieved the message
YouTube Duplicate key.This key would clash with an existing item I understand an old one needs to be deleted. Where do I find it to delete it? Then I assume I need to upload the xml again? When I get to the media definitions page do I "add new" or "save"? |
Quote:
|
Quote:
|
Quote:
Where is it! |
AME comes with Youtube and Amazon definitions. You are most likely importing replacement versions. Either don't import those or delete the ones that come with ame.
HTHs |
Quote:
|
It is an option in your settings.
|
Has anyone seen a way to embed "multiply.com" videos?
|
I still cant get my head around the regex, so hoping someone can figure it out. Trying to get http://www.pokerhandreplays.com so videos can be used on our site.
They have code for a converter: <object width="480" height="360"><param name="movie" value="http://www.pokerhandreplays.com/flash/TexasI.swf"></param><param name="bgcolor" value="#FFFFFF" /></param><param name="quality" value="high" /></param><param name="allowScriptAccess" value="always" /></param><param name="scale" value="Exactfit"></param><embed src="http://www.pokerhandreplays.com/flash/TexasI.swf" bgcolor="#FFFFFF" allowScriptAccess="always" scale="Exactfit" type="application/x-shockwave-flash" width="480" height="360"></embed></object> And url example for video: [flash]http://www.pokerhandreplays.com/flash/replayer.swf?pokerhandid=665885[/flash] I had it working using bbcode but dont like the fact that it would have no usergroup permissions, would rather have it through ame. Thanks in advance! |
|
can we get justin.tv
|
Quote:
Then from where the embed extraction extracts items to complete the embed code? Quote:
And then for what it is designed? Thanks |
Hey Mak,
I don't really know of any other way to explain it than how I have done :D. I think we are like passing ships with my explanation and my understanding of what you are wanting to do (I still have no clue what you are trying to do!). Let me try to sum up the way the Extraction regexp works another way. Most of the time, the URL contains the information that is needed to embed without any additional work. For instance a URL may look like this: www.yoururl.com/video=123456 And on that page, will be an 'Embed this video' box which will contain HTML that looks like: <embed src="video" param="123456"> So the replace code in AME looks like: <embed src="video" param="$p1"> So when AME looks at the URL, it pulls out the 123456 and puts it in the $p1 placeholder and Wham! You have your embedded video. Where the extraction tool comes into place is when the URL looks like www.yoururl.com/video=123456 But the Embedding HTML on the page looks like: <embed src="video" param="abcdefg"> In this instance, there is no correlation between the URL and the embedding code so for the embedding to work, AME must go to www.yoururl.com/video=123456 and do a search for that parameter. So if the definition includes an Embedding Regexp, AME knows to download the page the first time it is saved and run the Embed Regexp on the source code to lift the abcdefg out. That way, AME will then have all the information it needs to display the embedded media. You cannot use the Embedding Regexp for anything other than putting parameters in the Replacement code as it wasn't designed to do anything else but what it is currently doing. Saying that, I can put a couple more hooks in so that if you wanted to extract additional information from the destination page at save then you could, however I still am at a loss as to what you are trying to achieve. |
Quote:
Do I understand right that Embedding Regexp searches (works with) ONLY PHP Code:
|
It can technically grab anything from the page, however whatever is grabbed is intended to be used in the replacement code (the <embed>).
|
Quote:
You said "It can technically grab". But what can grab the current version??? You have said your-self in your previous post that: Quote:
Quote:
From where "Embedding Regexp" takes those parameters? Example :) Edited: Quote:
Where it searches? And what it can search and what it can't? You have said "It can technically grab anything from the page." But actually what it (Embedding Regexp) can grab? |
still can't get hardly any to work.
|
Mak,
While running the embed regexp, it already has the entire page contents, therefore a hook can be placed (in an upcoming version) so that after the embed regecp is run you can do something else with it, but for right now it will grab whatever the result is and store it as a parameter for the embed code. It would really help if you could elaborate on what you are trying to accomplish |
Hello,
I'm having an odd issue with the "internal linking (threads)". I deleted the definition and then re-imported it to be sure it wasn't something I messed up, but I still have the issue: When I post a link to a thread (for example my-site.net/forums/showthread.php?t=123456), it is resolved as: [favicon]**Internal Linking (Threads) (as opposed to actually using the linked thread's title) and the URL leads to my-site.net/forums/showthread.php?p=123456. (Notice the P instead of the T that it should be) This is the replacement code (which is the default) (and it looks fine to me): Code:
<a href="$url" target="_self" title="$title"><img src="favicon.ico" border="0" alt="$title" height="16" width="16" /> $title</a> |
Quote:
Quote:
Quote:
Ok. Lets make steps :) Step 1:
Is step 1 is clear? Then continue. Step 2:
Is step 2 is clear? Then continue. Step 3:
Is step 3 is clear? |
That will work. The regexp will capture x9m63m_canarias-timelapse_creation into $p1
So what you need to do is use $p1 in your replace code where you want it to appear. HTHs |
Quote:
Ill look into DJ's internal linking definition. It looks like it isn't updated for 2.5x, however it should still be working ok. |
All times are GMT. The time now is 10:52 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:
|