vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Urgent---some 1 Plzz Help Me (https://vborg.vbsupport.ru/showthread.php?t=209022)

Osama11 03-21-2009 04:48 PM

Urgent---some 1 Plzz Help Me
 
problem is solved

thxx 4 ur help guys

Lynne 03-21-2009 04:52 PM

A thread title that reflects what you want would be a good thing. Your thread title will not get the attention of the people who would be able to help you. And "urgent" should be used if a site is down or similar, not for something you simply want.

UKBusinessLive 03-21-2009 04:58 PM

Quote:

Originally Posted by Osama11 (Post 1773508)
i wanna do ZSHARE EMBED 4 my site.. can some 1 plzz help me or give me the script so i can install it..

how can i display a zshare video on my website without uploading that page on my server...

http://www.zshare.net/video/1234455555/

4 example:if i post a zshare link on my site how can i make it that link to display like www.onlinedesiclub.com/view.php?file=1234455555/

OR
http://www.onlinedesiclub.com/flash.php?url=1234455555/

The first link don't work and the second is full of errors, do you really want this on your site???

The Zshare website is nothing special with no help at all about embedding this??

The best bet would be to try and create a zshare bb code, But with some other far superior video scripts on here, Youtube HD and DIVX, why waste your time with this??? :confused:

TigerC10 03-21-2009 04:59 PM

I agree with Lynne - this is NOT an urgent request.


Besides, some simple searching would net you these:
https://vborg.vbsupport.ru/showthread.php?t=202476
https://vborg.vbsupport.ru/showthread.php?t=195884

Osama11 03-21-2009 05:07 PM

i wanna do like that

when ever i post a zshare link...

i dont have to post full zshare link

i can post it link


SRY about writting a urgent in thread title.. last time i make a thread no body replied .. i reallly need to do that :(

TigerC10 03-21-2009 11:04 PM

You will have to make your own .php file for it then. Good luck.

Osama11 03-22-2009 05:04 AM

i wanna know how can i make that php file so it can redirect my all links ?
plzz help me man :confused::confused::confused::confused::(:(

RLShare 03-22-2009 05:06 AM

You need to learn how to code in PHP, google it, there are tons of tutorials.

Osama11 03-22-2009 05:09 AM

i made it but its not working ..
it show the player..
but its not playing the video when it redirect ...

here is the example

thats the php script i made

but its not playing the video

TigerC10 03-22-2009 05:40 AM

I have come to learn that the zshare playback URL changes every time you visit the page. This means that it will be very difficult to actually do this trick.

Osama11 03-22-2009 05:44 AM

is there anyway i can do that ..
do u know know how to do that ?

TigerC10 03-22-2009 05:48 AM

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:

//.. omitting other page code

$video $vbulletin->input->clean_gpc('p''video'TYPE_STR);

echo 
'<object width="550" height="400"><param name="movie" value="http://www.zshare360.com/submit.api?link=http://www.zshare.net/video/'.$video.'/">
<param name="allowfullscreen" value="true">
<embed src="http://www.zshare360.com/submit.api?link=http://www.zshare.net/video/'
.$video.'/" width="550" height="400" allowfullscreen="true"></embed></object>';

//.. omitting other page code 

You would then call the page like so:

watch.php?video=1234455555

Osama11 03-22-2009 06:14 AM

thanx man ur the best..

1 more quick question.. is it goona work with flash videos only or its goona work with wmp too ?

TigerC10 03-22-2009 06:16 AM

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.

Osama11 03-22-2009 06:18 AM

its giving me error

Lynne 03-22-2009 04:07 PM

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.

TigerC10 03-22-2009 05:20 PM

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.

Osama11 03-22-2009 08:16 PM

lol no error

TigerC10 03-22-2009 08:22 PM

Move watch.php up to your forum root directory, don't put it in a subdirectory.

Osama11 03-22-2009 08:25 PM

i did ..

its not playing any thing.. :(

TigerC10 03-22-2009 08:27 PM

It was a second ago, you must have changed something in the PHP file because now the video number isn't there.

Osama11 03-22-2009 08:33 PM

nope i didn't changed any thing..

TigerC10 03-22-2009 08:35 PM

Then you must not have recieved my code correction via PM.

Osama11 03-22-2009 08:38 PM

i copy n paste the same codes u gave me in the pm..

but still its showing liek that. :(

TigerC10 03-22-2009 08:40 PM

It plays the video for me. It might be a browser caching problem....

If you're using Firefox, hold SHIFT and press the refresh button on the toolbar.

If you're using Internet Explorer, hold CTRL and press the refresh button on the toolbar.

Osama11 03-22-2009 08:40 PM

lol thanx bro i recived ur pm now
its working now .. how can i make that video play auto ..

n is there anyway i can put that video codes on my html page i made .. not on vbulltin page ?

TigerC10 03-22-2009 08:47 PM

I don't know how to make the video automatically start playing.

You will need a PHP page at the very least, and if you didn't want this in vBulletin then why did you ask about it in a general discussion for vBulletin?

If you want to separate this from vbulletin then this is all you need in watch.php:
PHP Code:

<html>
<head>
</title>Watching Video</title>
</head>
<body>
<center>
<?PHP

$video 
$_GET['video'];

echo 
'<object width="550" height="400"><param name="movie" value="http://www.zshare360.com/submit.api?link=http://www.zshare.net/video/'.$video.'/"> 
<param name="allowfullscreen" value="true"> 
<embed src="http://www.zshare360.com/submit.api?link=http://www.zshare.net/video/'
.$video.'/" width="550" height="400" allowfullscreen="true"></embed></object>';

?>
</center>
</body>
</html>


Osama11 03-22-2009 09:28 PM

i try to put those codes on my own html page ..

its not showing the zshare video player

TigerC10 03-22-2009 09:30 PM

You can't use $_GET['video'] in HTML. You also can't use "echo". You must use PHP, not HTML.

RLShare 03-23-2009 01:19 AM

Your not sanitizing the input, theorectically anyone could input anything into the page you posted... XSS anyone?

TigerC10 03-23-2009 01:54 AM

Yeah, but there's no database interaction. The variable is just passed down to the clientside script. While the lack of sanitation could affect the end users, it would only affect the end users that follow the link with the bad input. Can you dig it?


All times are GMT. The time now is 02:28 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
  • Page Generation 0.01226 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete