Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Morgan), 46 guests, and 384 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 25
Joined: November 2012
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 17
M4TT 12
Ruben 8
FREAK 7
mmkk 4
isaac 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Can you embed flv videos in ubbthreads? #253761
10/02/13 03:59 PM
10/02/13 03:59 PM
Joined: Oct 2007
Posts: 215
Baldeagle Offline OP
enthusiast
Baldeagle  Offline OP
enthusiast
Joined: Oct 2007
Posts: 215
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/13 04:29 PM.

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

UBBThreads 7.6.0
Web Server Apache/2.4.25
PHP Version 5.6.30
MySQL Version 5.5.55-log
Database Size 1.95 GB
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253762
10/02/13 04:04 PM
10/02/13 04:04 PM
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
Lutz,FL
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
Re: Can you embed flv videos in ubbthreads? [Re: Ruben] #253763
10/02/13 04:34 PM
10/02/13 04:34 PM
Joined: Oct 2007
Posts: 215
Baldeagle Offline OP
enthusiast
Baldeagle  Offline OP
enthusiast
Joined: Oct 2007
Posts: 215
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/13 05:36 PM.

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

UBBThreads 7.6.0
Web Server Apache/2.4.25
PHP Version 5.6.30
MySQL Version 5.5.55-log
Database Size 1.95 GB
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253766
10/03/13 12:37 PM
10/03/13 12:37 PM
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
Lutz,FL
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
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253768
10/03/13 02:02 PM
10/03/13 02:02 PM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
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.
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!
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253769
10/03/13 02:08 PM
10/03/13 02:08 PM
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
Lutz,FL
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
Re: Can you embed flv videos in ubbthreads? [Re: Gizmo] #253777
10/07/13 08:48 AM
10/07/13 08:48 AM
Joined: Aug 2006
Posts: 1,530
Breda, NL
Yarp™ Offline
veteran
Yarp™  Offline
veteran
Joined: Aug 2006
Posts: 1,530
Breda, NL
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]
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253780
10/08/13 10:54 PM
10/08/13 10:54 PM
Joined: Jun 2006
Posts: 885
Mitch P. Offline

old hand
Mitch P.  Offline

old hand
Joined: Jun 2006
Posts: 885
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.


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,544
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)