Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Video Gallery
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #21
RE: Video Gallery
OK, you can try this:

For using JW Player (the simplest way):
Upload jwplayer.js, swfobject.js and player.swf into videoplayer folder/directory.
Use this code in the Display Format of the Video Upload custom thread fields:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
<script type='text/javascript' src='videoplayer/jwplayer.js'></script>
<div id='mediaspace'>{$GLOBALS['thread']['subject']}</div>
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'videoplayer/player.swf',
    'file': '{URL}',
    'controlbar': 'bottom',
    'width': '520',
    'height': '330'
  });
</script>

Modify it as your needs.

This is the demo thread for using the JW Player:
http://www.14.mynie.co.cc/showthread.php?tid=391

I still keep the flowplayer if you want to compare it:
http://www.14.mynie.co.cc/showthread.php?tid=392

If you've successfully adding the JW Player and make it works in your forum, we will clean some templates from the flowplayer (the previous player).


(This post was last modified: 06-02-2011 06:05 AM by RateU.)
06-02-2011 06:03 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #22
RE: Video Gallery
Please don't needlessly copy and paste large tutorials here hamed.ramzi - I've edited your post and put links to them instead.
Thanks.

My Blog
06-02-2011 08:44 AM
Find all posts by this user Quote this message in a reply
hamed.ramzi Offline
Junior Member
**
Posts: 12
Joined: May 2011
Post: #23
RE: Video Gallery
Thank you.
Thanks you RateU.

Sorry sorry and should ZiNgA BuRgA.


Just uploaded a difficult time of eight addresses which gives you this message:

Code:
Operation timed out after 10000 milliseconds with 2377509 out of 15846923 bytes received


in the file Xt_urlfetcher.php code var $ timeout = 10; it would have changed?

Please guide.
I uploaded my files do high volume.
I have to transfer the addresses:
I use this command any pressure by her not to come, not cpu time system and server administrator will not notice.
I've attached links 700 mb.
Any chance this can be used.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div align=right><?php
if (isset($_POST['url'])) { 
$url=$_POST['url'];
define('BUFSIZ', 4095);
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);
fclose($rfile);
fclose($lfile);
}

?>
<form method="post" action="">
<input type="text" name="url">
</form></div>

(This post was last modified: 06-03-2011 03:31 PM by hamed.ramzi.)
06-03-2011 01:10 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #24
RE: Video Gallery
Yes, just edit the line if you don't want it to die after 10 seconds.  You can set it as high as you want (hours, days etc), as long as no one tries to abuse it.
Also you should note that if the client (or the webserver/PHP) cuts the connection, the transfer will stop.  You may want to consider transferring it manually (ie wget, FTP etc) to the admindrop folder and use that instead. (note, your above PHP code is susceptible to the same thing)

Actually, I probably should put in a higher value by default now that I think about it.

My Blog
(This post was last modified: 06-03-2011 03:44 PM by ZiNgA BuRgA.)
06-03-2011 03:39 PM
Find all posts by this user Quote this message in a reply
hamed.ramzi Offline
Junior Member
**
Posts: 12
Joined: May 2011
Post: #25
RE: Video Gallery
Thank Zinga
But I'll do do with the error. Difficult site occurred on the server I'm facing
This mode can not withdraw
For example, I have access to the admin and super moderator and I do not need this case.

I have a file transfer that power password  uploads.
Might hurt you eat can change the name during the transition time scale..
And push the CPU and RAM will not.


.zip  WSDLink.zip (Size: 6.51 KB / Downloads: 448)
(This post was last modified: 06-03-2011 05:28 PM by hamed.ramzi.)
06-03-2011 05:25 PM
Find all posts by this user Quote this message in a reply
hamed.ramzi Offline
Junior Member
**
Posts: 12
Joined: May 2011
Post: #26
RE: Video Gallery
With the permission of the Director
If you want to upload the system's use of this scale do changes to be used directly to you.

template xtmv_postbit_first

find :

Code:
{$GLOBALS['threadfields']['xtmv_flv']['value']}


replace with:

Code:
<strong>{$GLOBALS['threadfields']['xtmv_flv']}</strong>


and save .

Admin CP -> Configuration -> Custom Thread Fields -> edit Thread Field

   1. Video/FLV Uploader  (change to Direct Link)
          * Title: Direct Link
          * Key : xtmv_flv
          * Description: Upload your video. Video format: FLV or MP4 only direct link.
          * Applicable Forums: Select our Video Gallery forum
          * Input Field Type: textbox
          *Maximum Text Length :50
          *Field Input Width : 50
          * Editable by / Required Field?: everyone required
          * Blank Replacement Value :

Code:
<strong>&ndash;</strong>

          * Display Format
for JWplayer

Code:
1
2
3
4
5
6
7
8
9
10
11
<script type='text/javascript' src='videoplayer/jwplayer.js'></script>
<div id='mediaspace'>{$GLOBALS['thread']['subject']}</div>
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'videoplayer/player.swf',
    'file': '{VALUE}',
    'controlbar': 'bottom',
    'width': '520',
    'height': '330'
  });
</script>

for flowplayer

Code:
<a href="{VALUE}" style="display:block;width:520px;height:330px" id="player"></a>
<script>flowplayer("player", "flowplayer/flowplayer-3.2.7.swf");</script>

          * Text Mask Filter : URL

ok save and go to forum .

Thanks ZiNgA BuRgA and RateU's aid

(This post was last modified: 06-03-2011 08:32 PM by hamed.ramzi.)
06-03-2011 08:28 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #27
RE: Video Gallery
(06-03-2011 05:25 PM)hamed.ramzi Wrote:  Thank Zinga
But I'll do do with the error. Difficult site occurred on the server I'm facing
This mode can not withdraw
For example, I have access to the admin and super moderator and I do not need this case.

I have a file transfer that power password  uploads.
Might hurt you eat can change the name during the transition time scale..
And push the CPU and RAM will not.
I know your English isn't great but I'm really having trouble trying to understand what you're saying.
I looked at the package you uploaded, but it just appears to be a simple URL fetcher.  I'm not terribly sure what you mean by its password support or ability to change saved filename otherwise.

My Blog
06-03-2011 11:28 PM
Find all posts by this user Quote this message in a reply
av8r_bra Offline
Junior Member
**
Posts: 11
Joined: Jun 2011
Post: #28
RE: Video Gallery
Awesome feature!

Is there a way to choose a custom button image for posting a new video? So it won't be the same as New Threads(Picture 3 on 1st post)?

Also, thumbnails aren't working for me, I keep getting this error Error attaching file for "Video Thumbnail";It says that the filetype is not permitted, tried with jpg, png, all >15kb.. =/

EDIT: Trying to show a thumbnail from imageshack I get an error: Error attaching file for "Video Thumbnail"; Could not fetch specified URL - the server returned 302 Found

Anything I could be doing wrong?

Great job...thanks!
(This post was last modified: 06-05-2011 04:17 PM by av8r_bra.)
06-05-2011 01:49 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Video Gallery
(06-05-2011 01:49 PM)av8r_bra Wrote:  Is there a way to choose a custom button image for posting a new video? So it won't be the same as New Threads(Picture 3 on 1st post)?

You need to create a new template in your global templates:
xtmv_forumdisplay_newthread:

HTML Code
<a href="newthread.php?fid={$fid}"><img src="{$theme['imglangdir']}/newvideo.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>

Upload the newvideo.gif to the same folder/directory with the newthread.gif image.

(06-05-2011 01:49 PM)av8r_bra Wrote:  Also, thumbnails aren't working for me, I keep getting this error Error attaching file for "Video Thumbnail";It says that the filetype is not permitted, tried with jpg, png, all >15kb.. =/

Try to delete the values inside the Valid File Extensions setting in the Video Thumbnail custom thread field. Then try to upload the image again. Is there any error messages?

(06-05-2011 01:49 PM)av8r_bra Wrote:  EDIT: Trying to show a thumbnail from imageshack I get an error: Error attaching file for "Video Thumbnail"; Could not fetch specified URL - the server returned 302 Found

What's the example of the imageshack thumbnail URL? Of the URL is not go to the image directly, probably you need a textbox custom field for that, not a file custom fields.

06-06-2011 02:17 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #30
RE: Video Gallery
(06-05-2011 01:49 PM)av8r_bra Wrote:  EDIT: Trying to show a thumbnail from imageshack I get an error: Error attaching file for "Video Thumbnail"; Could not fetch specified URL - the server returned 302 Found
Urgh, I guess I should support redirects for sockets.  For now, either enable cURL or disable sockets (if you have the ability to - which I'm guessing not), or open the URL in your browser, which will send you to a different URL - use this one instead.

Also check the dimensions of the image.  I guess I shouldn't throw a "invalid type" error if the file exceeds the dimension restriction.

My Blog
06-06-2011 06:28 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: