- Posts: 28
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [REOPENED] local domain prepended to url before 'use remote video' url
[REOPENED] local domain prepended to url before 'use remote video' url
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
{flvremote}remotedomain.com/path/video.flv{/flvremote}
However the flvplayer rendered on the page sees this address instead:
localdomain.net/http://remotedomain.com/path/video.flv
when I disable the plugin so the page will reveal the plugin code instead of the player, I see:
{flvremote}localdomain.net/http://remotedomain.com/path/video.flv{/flvremote}
so though the plugin code is being stored in the database properly, it
apparently is being delivered by k2 improperly to the plugin.I don't know where to go from here to troubleshoot further. Any help from you K2 aficionados is greatly appreciated.An example can be seen here at dev site: nvcacademy.net/2Using K2 2.3 fresh installallvideos plugin 3.3Joomla 1.5.17PHP 5.2.12mySQL 5.0.91-communityApache 2.2.14This issue was originally reported in the advanced discussion, I moved it here because it does appear to be a bug.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Mark Schultz said:Looks like it was just item.php that was modified, is that correct? Can I just overwrite my existing item.php, or do I need to more? thanks.
Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Mark Schultz said:I tried replacing models/item.php in the component, that fixed it on the front end, thanks. didn't help the backend. is there another file modified? thanks.
Mark Schultz said:Looks like it was just item.php that was modified, is that correct? Can I just overwrite my existing item.php, or do I need to more? thanks. Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Lefteris Kavadas said:Hi. It should be fine now... Thanks again for reporting
Mark Schultz said:I tried replacing models/item.php in the component, that fixed it on the front end, thanks. didn't help the backend. is there another file modified? thanks. Mark Schultz said:Looks like it was just item.php that was modified, is that correct? Can I just overwrite my existing item.php, or do I need to more? thanks. Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
- Posts: 28
there is possibly another issue with the video plugin usage in K2. When I attempt to use a remote XML file, I get a similar symptom as before.
At this URL you can see the plugin string in the light gray box on the page:
bit.ly/a4Yeb6
{xmlremote}nvctraining.com/media/LinM/TP-felt-sense/longtail.xml{/xmlremote}
In the K2 backend, the string is displayed as:
{xmlremote}nvcacademy.net/2/http://nvctraining.com/media/LinM/TP-felt-s...{/xmlremote}
again with the local domain prepended to the URL.
my XML file looks like this(view source):
longtail.xml
Any thoughts if the issue remains with K2 or my XML file sucks?
thanks.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Mark Schultz said:Hi Lefteris,
there is possibly another issue with the video plugin usage in K2. When I attempt to use a remote XML file, I get a similar symptom as before.
At this URL you can see the plugin string in the light gray box on the page:
bit.ly/a4Yeb6
{xmlremote}nvctraining.com/media/LinM/TP-felt-sense/longtail.xml{/xmlremote}
In the K2 backend, the string is displayed as:
{xmlremote}nvcacademy.net/2/http://nvctraining.com/media/LinM/TP-felt-s...{/xmlremote}
again with the local domain prepended to the URL.
my XML file looks like this(view source):
longtail.xml
Any thoughts if the issue remains with K2 or my XML file sucks?
thanks.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Lefteris Kavadas said:Hi. I will check it again but in any case i think that AllVideos does not support this XML file. So even without the local domain prepended this will not work. Mark Schultz said:Hi Lefteris, there is possibly another issue with the video plugin usage in K2. When I attempt to use a remote XML file, I get a similar symptom as before.
At this URL you can see the plugin string in the light gray box on the page:
bit.ly/a4Yeb6
{xmlremote}nvctraining.com/media/LinM/TP-felt-sense/longtail.xml{/xmlremote}
In the K2 backend, the string is displayed as:
{xmlremote}nvcacademy.net/2/http://nvctraining.com/media/LinM/TP-felt-s...{/xmlremote}
again with the local domain prepended to the URL.
my XML file looks like this(view source):
longtail.xml
Any thoughts if the issue remains with K2 or my XML file sucks?
thanks.
Please Log in or Create an account to join the conversation.
- Fritz Müller
-
- Offline
- New Member
- Posts: 7
Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- David R.
-
- Offline
- Premium Member
- Posts: 81
Joomlaworks is using the Google Code service, so you can find the integrated svn repo here:
code.google.com/p/joomlaworks/
Get the files they mentioned that have Lefteris's changes and use them to replace the ones in your Joomla installation.
Fritz Müller said:Hi, I do not understand your anwser. What should I do to solve the problem? What means "SVN"? Thanks...
Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- David R.
-
- Offline
- Premium Member
- Posts: 81
www.joomlaworks.gr/content/view/35/41/
For example, the only options you can pass are described in the doc as:
{format/provider}filename|width|height|autoplay{/format/provider}
I hacked the code to allow it to insert {format/provider img=path_to_cover_img} and I had to rewrite the regex code in several places. It's quite a hornets nest in there.
With that said, the key seems to me to be tricking the K2 admin to accept the .xml file as the remote file source, so I'm guessing that if you just use the flvremote and specify your .xml as the source, JW Player takes care of the rest.
Mark Schultz said:OK, thanks. Are you saying that the allvideos plugin won't support any remote xml file, or that my xml file won't work? If it is the latter, can you tell me which version of the JWplayer is being used by the plugin so I can write an XML file that will work?
Lefteris Kavadas said:Hi. I will check it again but in any case i think that AllVideos does not support this XML file. So even without the local domain prepended this will not work. Mark Schultz said:Hi Lefteris, there is possibly another issue with the video plugin usage in K2. When I attempt to use a remote XML file, I get a similar symptom as before. At this URL you can see the plugin string in the light gray box on the page:
bit.ly/a4Yeb6
{xmlremote}nvctraining.com/media/LinM/TP-felt-sense/longtail.xml{/xmlremote}
In the K2 backend, the string is displayed as:
{xmlremote}nvcacademy.net/2/http://nvctraining.com/media/LinM/TP-felt-s...{/xmlremote}
again with the local domain prepended to the URL.
my XML file looks like this(view source):
longtail.xml
Any thoughts if the issue remains with K2 or my XML file sucks?
thanks.
Please Log in or Create an account to join the conversation.
- David R.
-
- Offline
- Premium Member
- Posts: 81
David R. said:If you look at the docs, xml is not a type/tag that AllVideos handles. The available options for AllVideos are very simple and K2's code to handle that is hardwired to do what AllVideos allows for.
www.joomlaworks.gr/content/view/35/41/
For example, the only options you can pass are described in the doc as:
{format/provider}filename|width|height|autoplay{/format/provider}
I hacked the code to allow it to insert {format/provider img=path_to_cover_img} and I had to rewrite the regex code in several places. It's quite a hornets nest in there.
With that said, the key seems to me to be tricking the K2 admin to accept the .xml file as the remote file source, so I'm guessing that if you just use the flvremote and specify your .xml as the source, JW Player takes care of the rest.
Mark Schultz said:OK, thanks. Are you saying that the allvideos plugin won't support any remote xml file, or that my xml file won't work? If it is the latter, can you tell me which version of the JWplayer is being used by the plugin so I can write an XML file that will work? Lefteris Kavadas said:Hi. I will check it again but in any case i think that AllVideos does not support this XML file. So even without the local domain prepended this will not work. Mark Schultz said:Hi Lefteris, there is possibly another issue with the video plugin usage in K2. When I attempt to use a remote XML file, I get a similar symptom as before. At this URL you can see the plugin string in the light gray box on the page:
bit.ly/a4Yeb6
{xmlremote}nvctraining.com/media/LinM/TP-felt-sense/longtail.xml{/xmlremote}
In the K2 backend, the string is displayed as:
{xmlremote}nvcacademy.net/2/http://nvctraining.com/media/LinM/TP-felt-s...{/xmlremote}
again with the local domain prepended to the URL.
my XML file looks like this(view source):
longtail.xml
Any thoughts if the issue remains with K2 or my XML file sucks?
thanks.
Please Log in or Create an account to join the conversation.
- Fritz Müller
-
- Offline
- New Member
- Posts: 7
David R. said:svn is short for subversion. It's a code repository that they are using to manage changes to the source code files and to group together these files into versions for release. So basically you can get access to changes before they are bundled together as a release.
Joomlaworks is using the Google Code service, so you can find the integrated svn repo here:
code.google.com/p/joomlaworks/
Get the files they mentioned that have Lefteris's changes and use them to replace the ones in your Joomla installation.
Fritz Müller said:Hi, I do not understand your anwser. What should I do to solve the problem? What means "SVN"? Thanks... Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- David R.
-
- Offline
- Premium Member
- Posts: 81
code.google.com/p/joomlaworks/source/detail?r=520
code.google.com/p/joomlaworks/source/detail?r=521
There are multiple ways to handle this. You can download the files in their entirety, or you can use the diff feature to see the changes, open the files in question and cut and paste those changes into the files at the location.
To download the file, click on the link, then you can do a save as on the "view raw file" link, save that file and copy it over the file of the same name.
Fritz Müller said:Ok, thanks. I tried to download SVN with the App for Macs. But it does not work. I can not find the folder k2_svn on the desktop. Any idea?
David R. said:svn is short for subversion. It's a code repository that they are using to manage changes to the source code files and to group together these files into versions for release. So basically you can get access to changes before they are bundled together as a release. Joomlaworks is using the Google Code service, so you can find the integrated svn repo here:
code.google.com/p/joomlaworks/
Get the files they mentioned that have Lefteris's changes and use them to replace the ones in your Joomla installation.
Fritz Müller said:Hi, I do not understand your anwser. What should I do to solve the problem? What means "SVN"? Thanks... Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Fritz Müller said:Ok, thanks. I tried to download SVN with the App for Macs. But it does not work. I can not find the folder k2_svn on the desktop. Any idea?
David R. said:svn is short for subversion. It's a code repository that they are using to manage changes to the source code files and to group together these files into versions for release. So basically you can get access to changes before they are bundled together as a release. Joomlaworks is using the Google Code service, so you can find the integrated svn repo here:
code.google.com/p/joomlaworks/
Get the files they mentioned that have Lefteris's changes and use them to replace the ones in your Joomla installation.
Fritz Müller said:Hi, I do not understand your anwser. What should I do to solve the problem? What means "SVN"? Thanks... Lefteris Kavadas said:Hi. Just fixed the bug for the next release. You can see the patch at the SVN version. Thanks for reporting this issue to us.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [REOPENED] local domain prepended to url before 'use remote video' url