![]() |
is there anyway i can do that ..
do u know know how to do that ? |
Go to any zshare video and view the source code of the page. You will find that in the flashvars variable, the stream URL changes every time you refresh the video. Because the URL changes, and because the URL doesn't have anything to do with the address in the browser - it will be very difficult to embed zshare videos.
The easiest way to go about it would be to use an iFrame, but those are unpredictable. The next way to go about it is to download the page code with your PHP file and then strip out everything except the video player - this is a very server intensive process and is probably not worth it. I know how to do those things, but ultimately it's not worth it for me to bother hassling with all of that. EDIT: After about 30 minutes searching on google, I found zShare360. A group of people who keep up with the API changes of zshare that want to help people embed the videos on their own websites. watch.php PHP Code:
watch.php?video=1234455555 |
thanx man ur the best..
1 more quick question.. is it goona work with flash videos only or its goona work with wmp too ? |
From the looks of it, it's flash. I don't really know, I don't use zshare. I haven't used that code either. Guess you should just try it.
|
its giving me error
|
Simply saying you get an error is not going to help us help you. You need to tell us *exactly* what you have done in order for us to help you. That means what hook location, or what exact code, or the template html, etc. Please use the code/html/php tags.
|
LOL He didn't make a complete PHP page.
Osama11, I only gave you part of the code you need. Not all of it. That's why I had the comments at the top and bottom, it said that it's missing the rest of the code. Use this article about how to make a vbulletin powered page: https://vborg.vbsupport.ru/showthread.php?t=62164 Next, you need to call the page like this: watch.php?video=570637318b45024f Without some special .htaccess settings for the apache web server, you cannot call the page it the way you did with the slash. |
lol no error
|
Move watch.php up to your forum root directory, don't put it in a subdirectory.
|
i did ..
its not playing any thing.. :( |
All times are GMT. The time now is 09:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|