Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-23-2007, 01:04 PM   #1
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
WordPress Gurus - How to embed video into your blog?

I had a script but since the WP update it doesnt work. Anybody know of a tool that can embed some vids into my blog hosted on my own server?
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 01:24 PM   #2
MikesTraffic
Confirmed User
 
Join Date: Jan 2006
Location: Montgomery, Alabama
Posts: 1,992
go to options, author options, uncheck "use rich text media editor" it auto edits the code if it is turned on, turn it off and your shit works
__________________
Fortinet GURU
MikesTraffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 01:28 PM   #3
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally Posted by MikesTraffic View Post
go to options, author options, uncheck "use rich text media editor" it auto edits the code if it is turned on, turn it off and your shit works
So just plain old html code will work? Like so.
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://servername/path/to/media.file">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://servername/path/to/media.file" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<tr><td align='center'>
<a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 01:29 PM   #4
JeanClaude VanDamme
Confirmed User
 
JeanClaude VanDamme's Avatar
 
Join Date: Apr 2001
Location: Belgium
Posts: 652
http://www.viper007bond.com/wordpres...deo-quicktags/
JeanClaude VanDamme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 01:46 PM   #5
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Thanks^

I'll check it.
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 02:44 PM   #6
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally Posted by JeanClaude VanDamme View Post
I uploaded it and activated it but dont see it in the admin area.. hmmm.
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 03:13 PM   #7
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
convert them to flash and embed the super sexy flash player

http://mac-dev.net/blog/?p=3
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 03:15 PM   #8
yys
Confirmed User
 
Join Date: Aug 2001
Posts: 1,922
Quote:
Originally Posted by Martin View Post
I uploaded it and activated it but dont see it in the admin area.. hmmm.
Try putting this in your post to see if the plugin is working and your just not seeing the buttons

Code:
<div class="vvqbox vvq400 vvqyoutube"><object width="425" height="335" type="application/x-shockwave-flash" data="https://youtube.com/v/5bGtGUhhUi8">
<param name="movie" value="https://youtube.com/v/5bGtGUhhUi8" />
<param name="wmode" value="transparent" /></object></div>
yys is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 04:08 PM   #9
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally Posted by yys View Post
Try putting this in your post to see if the plugin is working and your just not seeing the buttons

Code:
<div class="vvqbox vvq400 vvqyoutube"><object width="425" height="335" type="application/x-shockwave-flash" data="https://youtube.com/v/5bGtGUhhUi8">
<param name="movie" value="https://youtube.com/v/5bGtGUhhUi8" />
<param name="wmode" value="transparent" /></object></div>
Im not seeing the buttons.
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 04:17 PM   #10
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Just getting a black box with that code. No buttons.
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 04:18 PM   #11
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally Posted by Jace View Post
convert them to flash and embed the super sexy flash player

http://mac-dev.net/blog/?p=3
Hey Jace know any good flash coverters?
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 04:26 PM   #12
tenderobject
Need Designs? 312352846
 
Industry Role:
Join Date: Dec 2004
Location: Somewhere
Posts: 11,687
Quote:
Originally Posted by MikesTraffic View Post
go to options, author options, uncheck "use rich text media editor" it auto edits the code if it is turned on, turn it off and your shit works
can't see this in my version 1.5.2 damn. my flv player is acting weird. still haven't got any solution since i'vused a lot of wordpress flv plugins.. right now i used the flv player from http://jeroenwijering.com/ and iframe it in my posts waaaah! maybe its in my wordpress version or any code conflict. i have had the using the nubiles flash rss feeds in one of my site with different version of wordpress and theme and it fucking works!
__________________


NEED DESIGNS?!?
tenderobject is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 04:58 PM   #13
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by Martin View Post
Hey Jace know any good flash coverters?
I use Sorenson Squeeze for flash encoding
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:35 PM   #14
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
i can show you how to do it a very very easy way
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:36 PM   #15
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally Posted by SmokeyTheBear View Post
i can show you how to do it a very very easy way
Do it, Do it. ;)
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:44 PM   #16
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
this will sav you time indeed , takes a few moments to setup but once it is you wont need to setup multiplle code for diff filetypes of videos. this will cover flash or wmv or asx or anything and it wont show that stupid <click here to activate this control" in ie and you dont need to even post code . all you gotta do is surround your videos in simple bbcode type tags..

ok heres how its done.

Code:
window.onload = function(){
changeVid('div','extra');
}
function changeVid(strTag,strClass) {
	for (i=0;i<document.getElementsByTagName(strTag).length; i++) {
		if (document.getElementsByTagName(strTag).item(i).className == strClass){
kk = document.getElementsByTagName(strTag).item(i).innerHTML ;

gfyt = kk;

thid = document.getElementsByTagName(strTag).item(i).idName;

var stb1 = "stbvidw-";
var stb2 = "stbvidf-";
var stb3 = "stbvida-";
var stb4 = "-etbvid";


mpo = gfyt.search(stb1);
if(mpo != -1){
rkw = "<embed width=800 height=600 src=http://";
gfyt = replace(gfyt,stb1,rkw);
}

mpo = gfyt.search(stb2);
if(mpo != -1){
rkw = "<embed width=800 height=600 src=http://";
gfyt = replace(gfyt,stb2,rkw);
}

mpo = gfyt.search(stb3);
if(mpo != -1){
rkw = "<embed width=800 height=600 src=http://";
gfyt = replace(gfyt,stb3,rkw);
}

mpo = gfyt.search(stb4);
if(mpo != -1){
rkw = "></embed>.";
gfyt = replace(gfyt,stb4,rkw);
}

bj = document.getElementsByTagName(strTag).item(i).id;
document.getElementsByTagName(strTag).item(i).innerHTML = gfyt ;



		}
	}

}


function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}
save that as video.js add a script tag in your wordpress header like
<script src='pathto/video.js'></script>

Then edit your post template to include <div class=extra> * depending on your template this may vary just try to wrap your "xtra" div inside the post wrapper

ok now all you gotta do is post your videos like this

stbvidw-brandibelle.bangbros1.com/102/vids/01.wmv-etbvid

notice A) the video url is missing the http:// dont worry about that
B) notice the video is surround by the tags stbvidw- and end with -etbvid

this is now your simple embed code. all videos will end with the same tag -etbvid , depending on the video type you can specify the embed code to use

stbvidw- for windows media like wmv
stbvids- for flash videos
stbvida- for asx files. you can add more varities and customize the setting like width and height in the js file so you dont have to do it every time.
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:45 PM   #17
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
ps heres an example http://www.wctin.com/demo view source and you will see there is no embed code nor is the video url in the js file, .

The js file pulls the url from the page then redisplays it with video wrappers
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:49 PM   #18
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
if you need help let me know and ill walk you thru install


remember once its done you no longer have to even post embed code or anything you can just post videos like this using common text

stbvidw-www.fileurl.com/movie.wmv-etbvid

the script will change that into <embed width=800 height=600 src=http://www.fileurl.com/movie.wmv></embed>

of course you can add all the tags you want to the embed code to be more fancy like autostart transparency looping volume etc
__________________
hatisblack at yahoo.com

Last edited by SmokeyTheBear; 02-23-2007 at 05:51 PM..
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 05:52 PM   #19
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
smokey, you never cease to amaze me
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 06:01 PM   #20
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by Jace View Post
smokey, you never cease to amaze me
its a handy tool , i will put it to good use ( i just coded that up on the fly from another script for something diff i had laying around )

this will take the ease out of posting videos


ps if you wanna be tricky and kinda hide the real video url if your hosting the files you can add this just below the replacement items in the js file

var stb5 = "-secretfolder-";


mpo = gfyt.search(stb5);
if(mpo != -1){
rkw = "realfolder";
gfyt = replace(gfyt,stb5,rkw);
}

then when you post a video using the code like this

stbvidw-www.mysite.com/-secretfolder-/vid1.wmv-ebtvid

it would actually change it to

<embed src=http://www.mysite.com/realfolder/vid1.wmv></embed>

notice the folder is different. the viewer wont actually be able to see the real url unless they dig into the js file to see how its done
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 06:47 PM   #21
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
great stuff smokey
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2007, 06:56 PM   #22
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Good thread, lots of useful info. Thanks yo.
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.