Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2014
Posts: 1
H
stranger
stranger
H Offline
Joined: Mar 2014
Posts: 1
I can't seem to get it to work. I've got the javascript in the head, and the embedding code in a post which I'm previewing, but I'm getting 404s in the logs and no clue why.

Any help from someone who has successfully done this would be appreciated.

file structure:
/ubbthreads/jwplayer/player files
/ubbthreads/videos/video files (all .flv videos)


Javascript in the head:
Code:
<script src="/ubbthreads/jwplayer/jwplayer.js" ></script>

I have tried ubbthreads/jwplayer..., /jwplayer/... and jwplayer, all without success.

Embed code in the body:
Code:
<div id="myElement">Loading the player ...</div><script type="text/javascript">
jwplayer("myElement").setup({
file: "/ubbthreads/videos/Session1.flv",
height: 360,
width: 640
});
</script>

Same thing here. I've tried ubbthreads/videos/...., /videos/.. and videos/.... all without success.

Here's a log file entry:

Code:
/var/log/ubb/access_log:cpe-76-183-65-74.tx.res.rr.com - - [02/Oct/2013:14:23:55 -0500] "GET /ubbthreads/FlashPlayer.swf?file=videos/Session1.flv HTTP/1.1" 404


I can't tell if this is a pathing problem or something else entirely. I'm baffled.

NOTE: The embedding works fine in a very simple html page.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Did you elect : Using HTML Code

Instead of : Using UBBCode

In the markup box before your submit?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Always try using a full URL when you refer to an external file; it's likely that the short urls rewriting are causing your issue... think of it, you're just saying "grab this file, it's here from the root of the last used directory" when the "last used directory" is a rewrited url...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Napalm), 806 guests, and 165 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)