Keyword

How to change AllVideos' default directory?

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • New Member
More
17 years 2 months ago #66 by hhtmp88
Dear all,

My current Joomla is installed in a subdirectory:
/home/mysite/public_html/joom/

and hence the default media directory of AllVideos Plugin is in:
/home/mysite/public_html/joom/images/stories/video/
/home/mysite/public_html/joom/images/stories/audio/

My question is how to change them to:
/home/mysite/public_html/joomFiles/video/
/home/mysite/public_html/joomFiles/audio/


My purpose is to separate codings from large images and multimedia files (i.e. audio and video files) -- This keeps joomla codings remains slim and easy to backup at regular intervals!

Thanks for any kind of helps!

Rgds,

JMY(晉明夷)<br />mfYoga.org -- Mindfulness Yoga Association
JinMY.me -- Blog of JinMing 晉明日誌

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #67 by JoomlaWorks
Replied by JoomlaWorks on topic Re: How to change AllVideos' default directory?
Well, you see the path to video or audio folder is made up from the livesite path -e.g. http://www.domain.com- and then a part like images/stories/video. The livesite path is hardcoded inside all video/audio embed codes.

Can you be a little more specific as to what formats interest you?

BTW there is an alternative. Use the "remote" tags to directly embed any video/audio file located anywhere on your server. Don't forget to read documentation for that.

The upcoming version of the plugin will be more "configurable" in such matters.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • New Member
More
17 years 2 months ago #68 by hhtmp88
Hi Fotis!

I wish that the video and audio directory can be specified out of the Joomla's root directory, that is anywhere under "public_html"

In my case, I install joomla in a sub-folder,
e.g. public_html/joom

and I hope that I can specify the media file directories in,
e.g. public_html/joomFiles/video
and  public_html/joomFiles/audio

Before you release next version which is configurable in this manner, how can I hack the code to achieve this purpose?
.....just replace all paths in "plugin_jw_allvideos.php" with my exact site paths,
e.g www.mysite.com/joomFiles/video    ??
and www.mysite.com/joomFiles/audio    ??

Would you mind tell me which line(s) of "plugin_jw_allvideos.php" should I work on?

Thanks for any kinds of help!

JMY(晉明夷)<br />mfYoga.org -- Mindfulness Yoga Association
JinMY.me -- Blog of JinMing 晉明日誌

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #69 by JoomlaWorks
Replied by JoomlaWorks on topic Re: How to change AllVideos' default directory?
There are dozens! That's why I asked you to specify which formats you're going to use. To narrow the code tweaks...

Otherwise, gimme a day to hack it entirely and post it here at the forum.  ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • New Member
More
17 years 2 months ago #70 by hhtmp88
ok!

mp3 if audio
flv if video

Looking Forwards to hearing from you soon for the info. of the hack!

Thanks!

JMY(晉明夷)<br />mfYoga.org -- Mindfulness Yoga Association
JinMY.me -- Blog of JinMing 晉明日誌

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #71 by harperaa
I am running 2.4 and have an issue when trying to view a video outside my public_html path.

I notice the above quote in this thread:
"BTW there is an alternative. Use the "remote" tags to directly embed any video/audio file located anywhere on your server. Don't forget to read documentation for that.

The upcoming version of the plugin will be more "configurable" in such matters."

I have tried to point to a path on my server that is outside my public_html directory, specifically "/videos/".  I am trying to use the remote tag like this

{swfremote}/videos/foo.swf{/swfremote}

I then try to view page and get a blank screen where the video should be.  I look at the source of the page and it all looks correct...

<param name=\"movie\" value=\"/videos/fm_foo.swf\" />  <param name=\"quality\" value=\"high\" />  ... <embed src=\"/videos/fm_foo.swf\" ...

I notice my server errors show:

[Mon Jan 28 10:41:22 2008] [error] [client 75.178.77.85] File does not exist: /home/[sitenameremoved]/public_html/portal/404.shtml
[Mon Jan 28 10:41:22 2008] [error] [client 75.178.77.85] File does not exist: /home/[sitenameremoved]/public_html/portal/videos/fm_backtrack.swf

Note:/public_html/portal is the root of the joomla portal... So I ask, why is Joomla overwriting my directory path and prepending the joomla site path to it?

Ideas?
Allen

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum