Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
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.

Last edited by Baldeagle; 10/02/2013 5:29 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I don't know anything about flv but have you tried editing:
The custom tag editor and adding it there?



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
What's the custom tag editor?

Never mind. I figured it out. Not sure that will solve my problem though.

Last edited by Baldeagle; 10/02/2013 6:36 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Humm,
Looking at your paths again,it could be that since it is a relative path and may not always be correct.
try a absolute path.
Like mine would be
/home/mysite/public_html/ubbthreads/jwplayer/jwplayer.js

same goes for the media file path
Or a full url path

you can get a clue from the path setting in the ubb control panel


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Use a fully qualified domain name; the UBB will screw up links trying to do what you're doing, IE:
Code
<script src="http://www.yourdomain.tld/ubbthreads/jwplayer/jwplayer.js" ></script>

And I would recommend against hardcoding new UBBCode, the reason I convinced Rick to adding the custom tag editor was to cut down on having to do this and make an extremely simple method of adding new items (there are huge lists of custom bbcode before and after the tag editor at UBBDev).


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!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I went to the jwplayer site.
It appears in your code you are using the free player.
which they recommend a full url in the head tag.
meaning how you would reach the player using a browser.
http://www.mysite.com/ubbthreads/jwplayer/jwplayer.js
then on to the embed code they use relative paths.
so you may need to play with this some.
meaning
/ubbthreads/videos/Session1.flv
may become
/home/mysite/public_html/ubbthreads/videos/Session1.flv
or
../ubbthreads/videos/Session1.flv
or
../videos/Session1.flv

Not sure how they parse the paths.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
And I would recommend against hardcoding new UBBCode,


Would too, but some things just can't be done with the custom tag editor.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 811
old hand
old hand
Joined: Jun 2006
Posts: 811
Are you talking about within a post?

If you enable html for that particular forum in your CP, you can inset FLV embed code in a post and it will work.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 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)