PDA

View Full Version : Code Share Video pro !



n.e.o
06-11-2009, 09:52 AM
Code video lấy video từ Youtube và các trang khác cực pro

Demo : http://mvideo.uni.cc (http://mvideo.uni.cc/)

About Direct Input
Direct input allows you to add a video from any location (both local and remote) by simply pasting in the link to the video.
Local videos
In case you want to add a *.flv or a *.mp4 video that you uploaded via FTP, please first make sure the video has been uploaded to /uploads/videos/. If you upload it to another location the video won't be added properly. Once you have the full and correct URL to the video, please post it under 'Direct Input' and press the 'Step 2' button.
Remote videos
The remote videos are videos that you add to PHP Melody from other video sites. Thanks to the new PHP Melody, you can add videos from any of the following video sources:

Youtube
Google
Dailymotion
Metacafe
Myspace
Veoh
Break
Myvideo
Clipfish
Windows media player
Current
Current
Vimeo
Trilulilu
Bliptv
Sevenload
Funnyordie
Yahoo
Mtvmusic
Filebox
Youku
Guba
Viddler
Imeem
Sina
Livevideo
Liveleak
Onsmash
Supervideo
Vaizdelis
Rutube
Musicme
Travelistic
Revver
Joost
Spike
Megavideo
Photobucket
Musicplayon
Quicktime


Tạo folder clip/video.... tuỳ bạn trên host
rồi upload file zip lên bung ra!
Cài đặt cực kỳ dễ
Đổi tên file config-sample.php thành php và sửa chửa thông số data của bạn cho hợp lý

<?php
// +------------------------------------------------------------------------+
// | PHP Melody version 1.6 ( www.phpsugar.com )
// +------------------------------------------------------------------------+
// | PHP Melody IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than www.phpsugar.com or if you have received
// | this software from someone who is not a representative of
// | phpSugar, it's likely that you are involved in an illegal activity.
// | ---
// | In such case, please contact: support@phpsugar.com.
// +------------------------------------------------------------------------+
// | Developed by: phpSugar (www.phpsugar.com) / support@phpsugar.com
// | Copyright: (c) 2004-2009 PhpSugar.com. All rights reserved.
// +------------------------------------------------------------------------+

// Not sure how to configure PHP Melody? Please read the Installation Manual
// or visit http://www.phpsugar.com/phpmelody_videos.html
// +------------------------------------------------------------------------+

//-- MySQL information --//
$db_name = 'video'; // MySQL database name
$db_user = 'video'; // MySQL username
$db_pass = 'pass'; // MySQL password
$db_host = 'localhost';

//-- Site info --//
define('_SITENAME', "Title!"); // Site Name/Title (e.g My Music Video Site)
define('_URL', 'http://site-cua-ban.com/clip'); // Insert full URL WITHOUT any trailing slash (e.g http://www.example.com)

//-- Customer ID --//
// Replace YOUR_CUSTOMER_ID with your own Customer ID.
// Your Customer ID should begin with 'PS' you it's not the same as your Transaction/Order ID.
// If you don't know your customer id, please contact support at: support@phpsugar.com
define('_CUSTOMER_ID', 'Nulled by TrioxX');

// ================================================== ======= //
//-- MySQL Backup Directory Name --//
define('BKUP_DIR', 'temp'); // WITHOUT any trailing slash

@header('CONTENT-TYPE: text/html; charset=utf-8');
define('ABSPATH', dirname(__FILE__).'/'); // Full path to the installation folder. No need to change this.
if( !file_exists('install.php') ) {
require_once( ABSPATH.'include/settings.php');
}
?>CHMOD

blacklist.txt
censor_words
sitemap.xml
admin/tmp.pm
admin/temp
uploads
uploads/articles
uploads/avatars
uploads/videos
uploads/thumbsthành 777
Sau đó chạy file
http://site-cua-ban.com/clip/install.php
Finish !
Download : http://www.ziddu.com/download/7240001/up.zip.html

Mr.Hảo
06-11-2009, 01:54 PM
Thanks đã share
Bản này chạy khá mượt
Demo : http://site4vn.net/clip/

duchienan
06-11-2009, 02:03 PM
attach lên cho chắc cái.